Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alloc(newmem,2048)
- label(returnhere)
- label(originalcode)
- label(exit)
- newmem: //this is allocated memory, you have read,write,execute access
- //place your code here
- pushad
- mov ecx,[ebp+11*4+1C0]
- cmp ecx,0
- jne go
- mov ecx,[ebp+12*4+1C0]
- cmp ecx,0
- je exas
- go:
- mov ecx,[ecx+30]
- cmp word ptr[ecx+24],0197
- jne exas
- popad
- push eax
- push ebx
- mov eax, edx // тут тип скок кд
- mov ebx, 0A //тут число типа сколько надо %
- mul ebx // умножение
- mov bl, 64 //типа 100
- div ebx // деление
- pop ebx
- movzx edx,word ptr [ebx+4A]
- sub edx,eax
- pop eax
- jmp originalcode
- exas:
- popad
- originalcode:
- imul edx,edx,000003E8
- exit:
- jmp returnhere
- "ps_game.exe"+5DEAA:
- jmp newmem
- nop
- returnhere:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement