Posted: Fri Jul 03, 2020 4:12 am Post subject: deal with Encrypted Value which opcodes are Shared
I want to deal with 4 bytes encrypted value and find the real value behind some animations i want to do. Problem is all codes writing to the address are shared between enemies and character.
You need to find a way to distinguish friendlies from baddies and perform a check before you execute your own code - we call this a player check.
e.g.
Code:
cmp byte ptr [rax+10],0
jne short baddie // It is not the player?
mov dword ptr [rax+50],(float)100 // Set health to max
jmp short ret
baddie:
mov dword ptr [rax+50],(float)0 // Set health to 0
ret:
jmp back
If you are familiar with using dissect data structure, you can oftentimes find a value within that structure that is being accessed by an instruction that is exclusive to that address, allowing you to insert your injection in a less-obvious location. In such a case, you would just apply the appropriate offset in order to alter the important data.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum