Posted: Fri Apr 08, 2016 3:24 am Post subject: need help in modify pop esi
plz help ..this is my code of health in a game i want to modyfy it so my health dnt go down it stay still and plz advise me some video tutorial which explain pop,dx etc. and how to modify them in games (sry for my poor english skills)
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [esi+ecx],dx
pop esi
In this case, the mov instruction moves the word in the dx register into the memory address located at esi+ecx. I don't think pop esi does anything important with your health in this case; CE used that to get enough bytes for the jump to your code. So, if you don't want to lose health, then just comment that line of asm out, or delete it completely. _________________
I don't know where I'm going, but I'll figure it out when I get there.
Posted: Fri Apr 08, 2016 8:49 am Post subject: thanks
thanks for replying. iam already delete the pop esi but it didnt work and also done some random stuff like add ,int etc the stuff which usually works for me in other games but not here
I don't mean delete the pop esi. That probably has nothing to do with your health; deleting it won't do anything and will probably make the game crash. I meant deleting the instruction mov [esi+ecx],dx.
Just make sure that instruction doesn't access multiple addresses. Right click on that mov in the disassembler and select "Find out what addresses this instruction accesses" to find out. If anything besides the address you're concerned with pops up, try to find some other instruction. Read this for more information. _________________
I don't know where I'm going, but I'll figure it out when I get there.
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