Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; project name:         Memory Hacker
  2. ; author:               OldCheatEngineUser
  3. ; special thanks:       Dark Byte
  4. ; about:                basic memory reading and writing with pointer loading
  5. ; visit:                forum.cheatengine.org ; binaries subforum
  6.  
  7. include 'include\win32a.inc'
  8. format pe gui
  9. entry point
  10.  
  11. section '.text' code readable executable
  12.  
  13. point:
  14.  
  15. push 0x03E8
  16. call [Sleep]
  17. push 0
  18. call [AllocConsole]
  19. test eax,eax
  20. jz exit
  21. push cname
  22. call [SetConsoleTitleA]
  23. test eax,eax
  24. jz exit
  25.  
  26. push 0xFFFFFFF5
  27. call [GetStdHandle]
  28. mov [ohandle],eax
  29. push 0
  30. push 0
  31. push 0x2F
  32. push cvalue
  33. push [ohandle]
  34. call [WriteConsoleA]
  35.  
  36. escapeloop:
  37. push 0x1B
  38. call [GetAsyncKeyState]
  39. test eax,eax
  40. jnz exit
  41.  
  42. push 13920
  43. push 0
  44. push 0x001FFFFF
  45. call [OpenProcess]
  46. test eax,eax
  47. jz exit
  48.  
  49. sleeploop:
  50. push 0x64
  51. call [Sleep]
  52. jmp escapeloop
  53.  
  54. exit:
  55. push 0
  56. call [ExitProcess]
  57.  
  58. section '.data' data readable writeable
  59.  
  60. cvalue db "ESC to quit, BACKSPACE to increase the value.",0
  61. loadp db 0
  62. pointed dd 0
  63.  
  64. section '.bss' data readable writeable
  65.  
  66. whandle rd 1
  67. ohandle rd 1
  68. phandle rd 1
  69.  
  70. section '.rdata' data readable
  71.  
  72. cname db "Memory Hacker",0
  73. gname db "Tutorial",0
  74.  
  75. section '.idata' import data readable writeable
  76.  
  77.   library kernel32,'KERNEL32.DLL',\
  78.           user32,'USER32.DLL'
  79.  
  80.   include 'include\api\kernel32.inc'
  81.   include 'include\api\user32.inc'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement