Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. [ENABLE]
  2. //code from here to '[DISABLE]' will be used to enable the cheat
  3. alloc(newmem,2048)
  4. alloc(crashcount,4)
  5. registersymbol(crashcount)
  6. label(returnhere)
  7. label(originalcode)
  8. label(exit)
  9.  
  10. newmem: //this is allocated memory, you have read,write,execute access
  11. //place your code here
  12.  
  13. push eax
  14. {$try}
  15. mov eax,[esi+95c]
  16. cmp [eax+10],0
  17. jmp ok
  18. {$except}
  19. pop eax
  20. add [crashcount],1
  21. jmp originalcode
  22.  
  23. ok:
  24. pop eax
  25.  
  26. je aftersub //it is 0
  27. originalcode:
  28. subss xmm0,xmm3
  29.  
  30. aftersub:
  31. movss [esi+00000164],xmm0
  32.  
  33. exit:
  34. jmp returnhere
  35.  
  36. "HomeworldRM.exe"+22AEEA:
  37. jmp newmem
  38. nop
  39. nop
  40. nop
  41. nop
  42. nop
  43. nop
  44. nop
  45. returnhere:
  46.  
  47.  
  48.  
  49.  
  50. [DISABLE]
  51. //code from here till the end of the code will be used to disable the cheat
  52. dealloc(newmem)
  53. "HomeworldRM.exe"+22AEEA:
  54. subss xmm0,xmm3
  55. movss [esi+00000164],xmm0
  56. //Alt: db F3 0F 5C C3 F3 0F 11 86 64 01 00 00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement