Advertisement
ChaosHacks

Untitled

Mar 16th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. [ENABLE]
  2.  
  3. aobscanmodule(infhealth,age3x.exe,89 4F 64 8B 8A C8 00 00 00)
  4. alloc(newmem,$1000)
  5.  
  6. label(code)
  7. label(return)
  8.  
  9. newmem:
  10. cmp [edi+344],00018A2B
  11. jne code
  12.  
  13.  
  14. //mov [edi+64],ecx same as doing nop nop nop
  15. mov ecx,[edx+000000C8]
  16.  
  17. jmp return
  18.  
  19. code:
  20. mov [edi+64],ecx
  21. mov ecx,[edx+000000C8]
  22. jmp return
  23.  
  24. infhealth:
  25. jmp newmem
  26. nop
  27. nop
  28. nop
  29. nop
  30. return:
  31. registersymbol(infhealth)
  32.  
  33. [DISABLE]
  34.  
  35. infhealth:
  36. db 89 4F 64 8B 8A C8 00 00 00
  37.  
  38. unregistersymbol(infhealth)
  39. dealloc(newmem)
  40.  
  41. {
  42. // ORIGINAL CODE - INJECTION POINT: "age3x.exe"+7B24A
  43.  
  44. "age3x.exe"+7B22E: B0 01 - mov al,01
  45. "age3x.exe"+7B230: 5B - pop ebx
  46. "age3x.exe"+7B231: 83 C4 08 - add esp,08
  47. "age3x.exe"+7B234: C2 04 00 - ret 0004
  48. "age3x.exe"+7B237: 83 EC 0C - sub esp,0C
  49. "age3x.exe"+7B23A: 57 - push edi
  50. "age3x.exe"+7B23B: 8B F9 - mov edi,ecx
  51. "age3x.exe"+7B23D: 8B 4C 24 14 - mov ecx,[esp+14]
  52. "age3x.exe"+7B241: 8B 47 64 - mov eax,[edi+64]
  53. "age3x.exe"+7B244: 8B 97 A8 00 00 00 - mov edx,[edi+000000A8]
  54. // ---------- INJECTING HERE ----------
  55. "age3x.exe"+7B24A: 89 4F 64 - mov [edi+64],ecx
  56. "age3x.exe"+7B24D: 8B 8A C8 00 00 00 - mov ecx,[edx+000000C8]
  57. // ---------- DONE INJECTING ----------
  58. "age3x.exe"+7B253: 85 C9 - test ecx,ecx
  59. "age3x.exe"+7B255: 89 44 24 08 - mov [esp+08],eax
  60. "age3x.exe"+7B259: 0F 85 EE 23 01 00 - jne age3x.exe+8D64D
  61. "age3x.exe"+7B25F: 8B 47 5C - mov eax,[edi+5C]
  62. "age3x.exe"+7B262: 85 C0 - test eax,eax
  63. "age3x.exe"+7B264: 0F 84 FF A4 21 00 - je age3x.exe+295769
  64. "age3x.exe"+7B26A: 8B 88 98 00 00 00 - mov ecx,[eax+00000098]
  65. "age3x.exe"+7B270: 89 4C 24 04 - mov [esp+04],ecx
  66. "age3x.exe"+7B274: D9 44 24 14 - fld dword ptr [esp+14]
  67. "age3x.exe"+7B278: D8 1D 18 69 B5 00 - fcomp dword ptr [age3x.exe+756918]
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement