Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Calculating a Offset

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
malengwen
How do I cheat?
Reputation: 0

Joined: 12 Jun 2015
Posts: 1

PostPosted: Fri Jun 12, 2015 6:20 am    Post subject: Calculating a Offset Reply with quote

Hi Everyone,

Just after some help really.... I need to know how to work out an offset when its more complicated than just a value. like ESI+16.

The offset I am looking to calculate is

Quote:
mov edx,[ebx+esi*8+00000740]


esi=00000000

I would like to know HOW I can calculate this rather than just the answer. Thanks for any help.
Back to top
View user's profile Send private message
Rissorr
Master Cheater
Reputation: 3

Joined: 17 Sep 2013
Posts: 273
Location: Israel!

PostPosted: Fri Jun 12, 2015 6:31 am    Post subject: Reply with quote

Lets look at your code:
you have 2 registers involved, and you see the 8 number, and the 740 offset

in your case:
EBX is the base register
ESI is the structure index
8 is the structure "step"
and 740 is the actual offset of the address

so if ESI==0 then the address will be:

EBX + 0*8 + 740 ==> EBX + 740

Note-
Veterans please correct me if i am wrong.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Fri Jun 12, 2015 7:12 am    Post subject: Reply with quote

Just do simple maths and you should get to the address.

Know the value of ebx, esi then multiply/add in the order that is in the brackets and you should come to the answer. The index will change upon each execution and iterates through the items in the structure.

You have to understand that an instruction like this deals with a lot of addresses and in most cases, you don't even want to bother finding a pointer because once you know the index value(esi value) for a specific item, that is all you need for a working cheat.

esi*8+00000740 is your offset anyhow or 0*8+00000740 = 740 as you mentioned esi = 0.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites