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

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
exloserr
Expert Cheater
Expert Cheater
Posts: 51
Joined: Fri Aug 25, 2017 1:05 pm
Reputation: 11

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

Post by exloserr »

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: 336
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 206

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 

exloserr
Expert Cheater
Expert Cheater
Posts: 51
Joined: Fri Aug 25, 2017 1:05 pm
Reputation: 11

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

Post by exloserr »

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

Bloodybone
Table Makers
Table Makers
Posts: 336
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 206

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

exloserr
Expert Cheater
Expert Cheater
Posts: 51
Joined: Fri Aug 25, 2017 1:05 pm
Reputation: 11

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

Post by exloserr »

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

exloserr
Expert Cheater
Expert Cheater
Posts: 51
Joined: Fri Aug 25, 2017 1:05 pm
Reputation: 11

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

Post by exloserr »

everything is red except edx

Bloodybone
Table Makers
Table Makers
Posts: 336
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 206

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: 4454
Joined: Thu Mar 02, 2017 7:48 pm
Reputation: 3594

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: dumbbunny145