Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <CheatTable>
- <CheatEntries>
- <CheatEntry>
- <ID>1</ID>
- <Description>"Auto Assemble script"</Description>
- <LastState Activated="1"/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript Async="1">{ Game : MageAndMinions.exe
- Version:
- Date : 2022-02-17
- Author : OWNER
- This script does blah blah blah
- }
- globalalloc(_Key_is_Down,16)
- [ENABLE]
- {$lua}
- if not syntaxcheck then synchronize(function()
- local name = 'keydownTimer'
- local tmr = MainForm.findComponentByName(name)
- if tmr and tmr.Destroy then tmr=nil,tmr.Destroy()end
- tmr = createTimer(MainForm,false)
- tmr.Name,tmr.Interval,tmr.OnTimer = name, 60, function(tm)
- if readSmallInteger'_Key_is_Down'==1 and getOpenedProcessID()==getForegroundProcess()then
- writeSmallInteger('_Key_is_Down',0)
- DoKeyPress(VK_UP)
- end
- end
- tmr.Enabled = true
- end) --[[ synchronize]] end -- syntaxcheck
- {$asm}
- aobscanmodule(autoCoolKey,mageandminions.s86,EB 06 C7 06 00 00 00 00 c7) // should be unique
- alloc(newmem,$1000,mageandminions.s86)
- label(code)
- label(return)
- newmem:
- code:
- push rax
- mov rax,_Key_is_Down
- mov byte ptr[rax],1
- pop rax
- readmem(autoCoolKey+2,6)
- jmp autoCoolKey+8
- autoCoolKey+02:
- jmp newmem
- nop
- return:
- registersymbol(autoCoolKey)
- [DISABLE]
- {$lua}
- if not syntaxcheck then synchronize(function()
- local name = 'keydownTimer'
- local tmr = MainForm.findComponentByName(name)
- if tmr and tmr.Destroy then tmr=nil,tmr.Destroy()end
- end)end
- {$asm}
- autoCoolKey+02:
- db C7 06 00 00 00 00
- unregistersymbol(autoCoolKey)
- dealloc(newmem)
- {
- // ORIGINAL CODE - INJECTION POINT: mageandminions.s86+1F1897
- mageandminions.s86+1F1862: F3 0F 11 85 A4 FC FF FF - movss [ebp-0000035C],xmm0
- mageandminions.s86+1F186A: D8 8D A4 FC FF FF - fmul dword ptr [ebp-0000035C]
- mageandminions.s86+1F1870: D9 9D A4 FC FF FF - fstp dword ptr [ebp-0000035C]
- mageandminions.s86+1F1876: F3 0F 10 85 A4 FC FF FF - movss xmm0,[ebp-0000035C]
- mageandminions.s86+1F187E: F3 0F 58 06 - addss xmm0,[esi]
- mageandminions.s86+1F1882: F3 0F 11 06 - movss [esi],xmm0
- mageandminions.s86+1F1886: 80 3D 42 EE BB 79 00 - cmp byte ptr [mageandminions.s86+7FEE42],00
- mageandminions.s86+1F188D: 74 0E - je mageandminions.s86+1F189D
- mageandminions.s86+1F188F: C7 06 00 00 40 40 - mov [esi],40400000
- mageandminions.s86+1F1895: EB 06 - jmp mageandminions.s86+1F189D
- // ---------- INJECTING HERE ----------
- mageandminions.s86+1F1897: C7 06 00 00 00 00 - mov [esi],00000000
- // ---------- DONE INJECTING ----------
- mageandminions.s86+1F189D: C7 46 04 00 00 00 00 - mov [esi+04],00000000
- mageandminions.s86+1F18A4: 83 BB BC 08 00 00 00 - cmp dword ptr [ebx+000008BC],00
- mageandminions.s86+1F18AB: 75 13 - jne mageandminions.s86+1F18C0
- mageandminions.s86+1F18AD: 8B 46 0C - mov eax,[esi+0C]
- mageandminions.s86+1F18B0: 80 78 0B 00 - cmp byte ptr [eax+0B],00
- mageandminions.s86+1F18B4: 74 0A - je mageandminions.s86+1F18C0
- mageandminions.s86+1F18B6: 80 78 08 00 - cmp byte ptr [eax+08],00
- mageandminions.s86+1F18BA: 75 04 - jne mageandminions.s86+1F18C0
- mageandminions.s86+1F18BC: C6 46 08 01 - mov byte ptr [esi+08],01
- mageandminions.s86+1F18C0: 8B BD 78 FC FF FF - mov edi,[ebp-00000388]
- }
- </AssemblerScript>
- </CheatEntry>
- </CheatEntries>
- </CheatTable>
Add Comment
Please, Sign In to add comment