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,[esi+11*4+1C0]
- cmp ecx,0
- jne go
- mov ecx,[esi+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
- push edx
- push ecx
- mov ecx, eax
- mov eax, [eax] // тут тип на скок захилил
- mov ebx, 3 //тут число типа сколько надо %
- mul ebx // умножение
- mov bl, 64 //типа 100
- div ebx /// деление
- add [ecx],eax
- pop ecx
- pop edx
- pop ebx
- pop eax
- jmp originalcode
- exas:
- popad
- originalcode:
- push ecx
- mov ecx,[edi+00001234]
- exit:
- jmp returnhere
- "ps_game.exe"+5C6C0:
- jmp newmem
- nop
- nop
- returnhere:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement