| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| NanoByte Expert Cheater
 
 ![]() Reputation: 1 
 Joined: 13 Sep 2013
 Posts: 222
 
 
 | 
			
				|  Posted: Sat May 24, 2014 4:46 pm    Post subject: Need of assistance :D Offset a quick one |   |  
				| 
 |  
				| mov eax,[rcx+rax*4+0000009C] RCX = 1B9AF898
 RAX = 05F5CB7C
 
 what would the offset of this be? its not 9c i can tell you that
 
 which one is base addresse rcx or rax
 
 or is there another way to point to the address of [rcx+rax*4+0000009C]
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Geri Moderator
 
 ![]() Reputation: 111 
 Joined: 05 Feb 2010
 Posts: 5636
 
 
 | 
			
				|  Posted: Sat May 24, 2014 5:14 pm    Post subject: |   |  
				| 
 |  
				| For this code, the offset is "dynamic". It's rax*4+0000009C. The exact offset is depending on rax. _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| NanoByte Expert Cheater
 
 ![]() Reputation: 1 
 Joined: 13 Sep 2013
 Posts: 222
 
 
 | 
			
				|  Posted: Sat May 24, 2014 5:19 pm    Post subject: |   |  
				| 
 |  
				| Thx Geri   |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Geri Moderator
 
 ![]() Reputation: 111 
 Joined: 05 Feb 2010
 Posts: 5636
 
 
 | 
			
				|  Posted: Sat May 24, 2014 5:25 pm    Post subject: |   |  
				| 
 |  
				| This code is probably accessing to a bunch of addresses. In some games, if items or ammo for weapons are stored in a single structure, you can find codes like this to access to all items or all ammo values with one code. Such dynamic offsets can be used to access to an array of bytes and pick an item from a list instead of using 9 code with 9 different offsets to access to 9 items. _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| NanoByte Expert Cheater
 
 ![]() Reputation: 1 
 Joined: 13 Sep 2013
 Posts: 222
 
 
 | 
			
				|  Posted: Sat May 24, 2014 6:06 pm    Post subject: |   |  
				| 
 |  
				| Yeah i gave up on this and went in another direction. its always a good thing to learn new stuff though, thanks mate   |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |