Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable>
  3.   <CheatEntries>
  4.     <CheatEntry>
  5.       <ID>1</ID>
  6.       <Description>"Auto Assemble script"</Description>
  7.       <LastState Activated="1"/>
  8.       <VariableType>Auto Assembler Script</VariableType>
  9.       <AssemblerScript Async="1">{ Game   : MageAndMinions.exe
  10.   Version:
  11.   Date   : 2022-02-17
  12.   Author : OWNER
  13.  
  14.   This script does blah blah blah
  15. }
  16.  
  17. globalalloc(_Key_is_Down,16)
  18.  
  19. [ENABLE]
  20. {$lua}
  21. if not syntaxcheck then synchronize(function()
  22.   local name  = 'keydownTimer'
  23.   local tmr = MainForm.findComponentByName(name)
  24.   if tmr and tmr.Destroy then tmr=nil,tmr.Destroy()end
  25.   tmr = createTimer(MainForm,false)
  26.   tmr.Name,tmr.Interval,tmr.OnTimer = name, 60, function(tm)
  27.     if readSmallInteger'_Key_is_Down'==1 and getOpenedProcessID()==getForegroundProcess()then
  28.       writeSmallInteger('_Key_is_Down',0)
  29.       DoKeyPress(VK_UP)
  30.     end
  31.   end
  32.   tmr.Enabled = true
  33. end) --[[ synchronize]] end -- syntaxcheck
  34. {$asm}
  35.  
  36. aobscanmodule(autoCoolKey,mageandminions.s86,EB 06 C7 06 00 00 00 00 c7) // should be unique
  37. alloc(newmem,$1000,mageandminions.s86)
  38.  
  39. label(code)
  40. label(return)
  41.  
  42. newmem:
  43. code:
  44. push     rax
  45.   mov    rax,_Key_is_Down
  46.   mov    byte ptr[rax],1
  47. pop      rax
  48. readmem(autoCoolKey+2,6)
  49. jmp  autoCoolKey+8
  50.  
  51. autoCoolKey+02:
  52.   jmp newmem
  53.   nop
  54. return:
  55. registersymbol(autoCoolKey)
  56.  
  57. [DISABLE]
  58. {$lua}
  59.  
  60. if not syntaxcheck then synchronize(function()
  61.   local name  = 'keydownTimer'
  62.   local tmr = MainForm.findComponentByName(name)
  63.   if tmr and tmr.Destroy then tmr=nil,tmr.Destroy()end
  64. end)end
  65. {$asm}
  66. autoCoolKey+02:
  67.   db C7 06 00 00 00 00
  68.  
  69. unregistersymbol(autoCoolKey)
  70. dealloc(newmem)
  71.  
  72. {
  73. // ORIGINAL CODE - INJECTION POINT: mageandminions.s86+1F1897
  74.  
  75. mageandminions.s86+1F1862: F3 0F 11 85 A4 FC FF FF  - movss [ebp-0000035C],xmm0
  76. mageandminions.s86+1F186A: D8 8D A4 FC FF FF        - fmul dword ptr [ebp-0000035C]
  77. mageandminions.s86+1F1870: D9 9D A4 FC FF FF        - fstp dword ptr [ebp-0000035C]
  78. mageandminions.s86+1F1876: F3 0F 10 85 A4 FC FF FF  - movss xmm0,[ebp-0000035C]
  79. mageandminions.s86+1F187E: F3 0F 58 06              - addss xmm0,[esi]
  80. mageandminions.s86+1F1882: F3 0F 11 06              - movss [esi],xmm0
  81. mageandminions.s86+1F1886: 80 3D 42 EE BB 79 00     - cmp byte ptr [mageandminions.s86+7FEE42],00
  82. mageandminions.s86+1F188D: 74 0E                    - je mageandminions.s86+1F189D
  83. mageandminions.s86+1F188F: C7 06 00 00 40 40        - mov [esi],40400000
  84. mageandminions.s86+1F1895: EB 06                    - jmp mageandminions.s86+1F189D
  85. // ---------- INJECTING HERE ----------
  86. mageandminions.s86+1F1897: C7 06 00 00 00 00        - mov [esi],00000000
  87. // ---------- DONE INJECTING  ----------
  88. mageandminions.s86+1F189D: C7 46 04 00 00 00 00     - mov [esi+04],00000000
  89. mageandminions.s86+1F18A4: 83 BB BC 08 00 00 00     - cmp dword ptr [ebx+000008BC],00
  90. mageandminions.s86+1F18AB: 75 13                    - jne mageandminions.s86+1F18C0
  91. mageandminions.s86+1F18AD: 8B 46 0C                 - mov eax,[esi+0C]
  92. mageandminions.s86+1F18B0: 80 78 0B 00              - cmp byte ptr [eax+0B],00
  93. mageandminions.s86+1F18B4: 74 0A                    - je mageandminions.s86+1F18C0
  94. mageandminions.s86+1F18B6: 80 78 08 00              - cmp byte ptr [eax+08],00
  95. mageandminions.s86+1F18BA: 75 04                    - jne mageandminions.s86+1F18C0
  96. mageandminions.s86+1F18BC: C6 46 08 01              - mov byte ptr [esi+08],01
  97. mageandminions.s86+1F18C0: 8B BD 78 FC FF FF        - mov edi,[ebp-00000388]
  98. }
  99. </AssemblerScript>
  100.     </CheatEntry>
  101.   </CheatEntries>
  102. </CheatTable>
  103.