Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [ENABLE]
  2. alloc(newmem,4096)
  3. alloc(eax_,4)
  4. alloc(ebx_,4)
  5. alloc(ecx_,4)
  6. alloc(edx_,4)
  7. alloc(esi_,4)
  8. alloc(edi_,4)
  9. alloc(ebp_,4)
  10. label(returnhere)
  11. label(originalcode)
  12. label(exit)
  13. label(m1)
  14. label(m2)
  15. alloc(weaplv,4)
  16. alloc(weapdmg,4)
  17. alloc(enchdmg,4)
  18. alloc(dmg,4)
  19. newmem:
  20.  
  21. // Save register info
  22. pushfd
  23. mov [eax_], eax
  24. mov [ebx_], ebx
  25. mov [ecx_], ecx
  26. mov [edx_], edx
  27. mov [esi_], esi
  28. mov [edi_], edi
  29. mov [ebp_], ebp
  30.  
  31. mov [enchdmg], edx
  32. mov edx, [esi+30]
  33. xor eax, eax
  34.  
  35. mov al, byte ptr [edx+2E]
  36. mov [weaplv],al
  37. mov ax, word ptr [edx+52]
  38. mov [weapdmg], ax
  39.  
  40. mov edi,[weaplv] // lvl weap
  41. mov esi,0000006E
  42. sub esi,edi
  43. mov eax,esi
  44. imul eax,[weapdmg]
  45. cdq
  46. sub eax,edx
  47. mov edx,esi
  48. shl edx,04
  49. sub edx,esi
  50. sar eax,1
  51. add eax,edx
  52. mov ecx,[enchdmg] // lvl enchant
  53. imul eax,ecx
  54. mov [weaplv],eax
  55. mov edx,00000028
  56. sub edx,edi
  57. fild dword ptr [weaplv]
  58. mov [weaplv],edx
  59. fmul qword ptr [m1]
  60. fild dword ptr [weaplv]
  61. fmul qword ptr [m2]
  62. faddp
  63. call 005250C0
  64.  
  65. mov [dmg], eax
  66.  
  67. mov [weaplv],0
  68. mov [weapdmg],0
  69. mov [enchdmg],0
  70.  
  71. mov eax, [eax_]
  72. mov ebx, [ebx_]
  73. mov ecx, [ecx_]
  74. mov edx, [edx_]
  75. mov esi, [esi_]
  76. mov edi, [edi_]
  77. mov ebp, [ebp_]
  78. popfd
  79.  
  80. originalcode:
  81. mov edx,[dmg]
  82. mov [esp+44],edx
  83. inc al
  84. exit:
  85. jmp returnhere
  86.  
  87. m1:
  88. dq 3F1A36E2EB1C432D
  89.  
  90. m2:
  91. dq 3FA999999999999A
  92.  
  93. "ps_game.exe"+6CD93:
  94. jmp newmem
  95. nop
  96. returnhere:
  97.  
  98. [DISABLE]
  99. //code from here till the end of the code will be used to disable the cheat
  100. dealloc(newmem)
  101. "ps_game.exe"+6CDA7:
  102. mov edx,[esp+18]
  103. push edx
  104. //Alt: db 8B 54 24 18 52
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement