Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ENABLE]
- alloc(newmem,4096)
- alloc(eax_,4)
- alloc(ebx_,4)
- alloc(ecx_,4)
- alloc(edx_,4)
- alloc(esi_,4)
- alloc(edi_,4)
- alloc(ebp_,4)
- label(returnhere)
- label(originalcode)
- label(exit)
- label(m1)
- label(m2)
- alloc(weaplv,4)
- alloc(weapdmg,4)
- alloc(enchdmg,4)
- alloc(dmg,4)
- newmem:
- // Save register info
- pushfd
- mov [eax_], eax
- mov [ebx_], ebx
- mov [ecx_], ecx
- mov [edx_], edx
- mov [esi_], esi
- mov [edi_], edi
- mov [ebp_], ebp
- mov [enchdmg], edx
- mov edx, [esi+30]
- xor eax, eax
- mov al, byte ptr [edx+2E]
- mov [weaplv],al
- mov ax, word ptr [edx+52]
- mov [weapdmg], ax
- mov edi,[weaplv] // lvl weap
- mov esi,0000006E
- sub esi,edi
- mov eax,esi
- imul eax,[weapdmg]
- cdq
- sub eax,edx
- mov edx,esi
- shl edx,04
- sub edx,esi
- sar eax,1
- add eax,edx
- mov ecx,[enchdmg] // lvl enchant
- imul eax,ecx
- mov [weaplv],eax
- mov edx,00000028
- sub edx,edi
- fild dword ptr [weaplv]
- mov [weaplv],edx
- fmul qword ptr [m1]
- fild dword ptr [weaplv]
- fmul qword ptr [m2]
- faddp
- call 005250C0
- mov [dmg], eax
- mov [weaplv],0
- mov [weapdmg],0
- mov [enchdmg],0
- mov eax, [eax_]
- mov ebx, [ebx_]
- mov ecx, [ecx_]
- mov edx, [edx_]
- mov esi, [esi_]
- mov edi, [edi_]
- mov ebp, [ebp_]
- popfd
- originalcode:
- mov edx,[dmg]
- mov [esp+44],edx
- inc al
- exit:
- jmp returnhere
- m1:
- dq 3F1A36E2EB1C432D
- m2:
- dq 3FA999999999999A
- "ps_game.exe"+6CD93:
- jmp newmem
- nop
- returnhere:
- [DISABLE]
- //code from here till the end of the code will be used to disable the cheat
- dealloc(newmem)
- "ps_game.exe"+6CDA7:
- mov edx,[esp+18]
- push edx
- //Alt: db 8B 54 24 18 52
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement