Advertisement
antoshka1312

Untitled

Nov 12th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [ENABLE]
  2. //code from here to '[DISABLE]' will be used to enable the cheat
  3. alloc(newmem,2048)
  4. alloc(newwindow,4)
  5. label(returnhere)
  6. label(originalcode)
  7. label(exit)
  8.  
  9. newmem: //this is allocated memory, you have read,write,execute access
  10. //place your code here
  11. push 00000120 { 8560 }
  12. mov [esp+28],1
  13. mov [esi+000027C8],eax
  14. call game.exe+2306C3
  15. add esp,04 { 4 }
  16. mov [esp+18],eax
  17. mov byte ptr [esp+24],21 { 33 }
  18. cmp eax,ebp
  19. je zero
  20. push 2 //типа номер панели
  21. mov ecx,eax
  22. call game.exe+FFBC0
  23. jmp originalcode
  24.  
  25. zero:
  26. xor eax,eax
  27. originalcode:
  28. mov edx,[esi+000001A4]
  29.  
  30. exit:
  31. jmp returnhere
  32.  
  33. "game.exe"+2B4C8:
  34. jmp newmem
  35. nop
  36. returnhere:
  37.  
  38.  
  39.  
  40.  
  41. [DISABLE]
  42. //code from here till the end of the code will be used to disable the cheat
  43. dealloc(newmem)
  44. "game.exe"+2B4C8:
  45. mov edx,[esi+000001A4]
  46. //Alt: db 8B 96 A4 01 00 00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement