How To Create Hook For Shit Like [esi+ebx*04-18]

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
exassasinx
Cheater
Cheater
Posts: 49
Joined: Fri Aug 25, 2017 1:05 pm
Reputation: 10

How To Create Hook For Shit Like [esi+ebx*04-18]

Post by exassasinx »

in case of mov [ebx+10],esi it's simple to create a hook by doing
mov [testhook],ebx but....
mov [testhook],[esi+ebx*04] doesn't work.

Bloodybone
Table Makers
Table Makers
Posts: 288
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 133

Re: How To Create Hook For Shit Like [esi+ebx*04-18]

Post by Bloodybone »

exassasinx wrote:
Fri Oct 19, 2018 6:23 pm
in case of mov [ebx+10],esi it's simple to create a hook by doing
mov [testhook],ebx but....
mov [testhook],[esi+ebx*04] doesn't work.
What should work would be :

Code: Select all

push eax
lea eax,[esi+ebx*04]
mov [testhook],eax
pop eax 

exassasinx
Cheater
Cheater
Posts: 49
Joined: Fri Aug 25, 2017 1:05 pm
Reputation: 10

Re: How To Create Hook For Shit Like [esi+ebx*04-18]

Post by exassasinx »

well eax is used
original code is
mov [esi+ebx*04-18],eax

Bloodybone
Table Makers
Table Makers
Posts: 288
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 133

Re: How To Create Hook For Shit Like [esi+ebx*04-18]

Post by Bloodybone »

exassasinx wrote:
Fri Oct 19, 2018 6:29 pm
well eax is used
original code is
mov [esi+ebx*04-18],eax
then use for example edx

or any other register that isn't used in the script and isn't eip,ebp or esp

exassasinx
Cheater
Cheater
Posts: 49
Joined: Fri Aug 25, 2017 1:05 pm
Reputation: 10

Re: How To Create Hook For Shit Like [esi+ebx*04-18]

Post by exassasinx »

how to know which stack/register isn't used...is it in black on toggled breakpoint?

exassasinx
Cheater
Cheater
Posts: 49
Joined: Fri Aug 25, 2017 1:05 pm
Reputation: 10

Re: How To Create Hook For Shit Like [esi+ebx*04-18]

Post by exassasinx »

everything is red except edx

Bloodybone
Table Makers
Table Makers
Posts: 288
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 133

Re: How To Create Hook For Shit Like [esi+ebx*04-18]

Post by Bloodybone »

exassasinx wrote:
Fri Oct 19, 2018 6:31 pm
how to know which stack/register isn't used...is it in black on toggled breakpoint?
As long as it isn't used in the script you're ok. As long as you push and pop it

User avatar
STN
Founder
Founder
Posts: 4437
Joined: Thu Mar 02, 2017 7:48 pm
Reputation: 3440

Re: How To Create Hook For Shit Like [esi+ebx*04-18]

Post by STN »

Learn assembly language then you will know what to use and not.


Post Reply

Who is online

Users browsing this forum: No registered users