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 


Using Pointer in Auto Assembler

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 13, 2015 10:18 pm    Post subject: Using Pointer in Auto Assembler Reply with quote

How use pointer address in auto assembler?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Sep 13, 2015 10:21 pm    Post subject: Reply with quote

Code:
push eax
mov eax,[game.exe+12345678]
mov eax,[eax+1CC]
mov eax,[eax+B0]
mov [eax+0C],(float)100
pop eax
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 13, 2015 10:39 pm    Post subject: Reply with quote

mov [eax+0C],(float)100 is end offset of pointer address
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sun Sep 13, 2015 10:56 pm    Post subject: Reply with quote

sjl002 wrote:
mov [eax+0C],(float)100 is end offset of pointer address


Yes.

Also make sure to throw a cmp in between to check for dead-ends or your game will crash trying to access a null or invalid pointer. This is very common in some games where the value of the pointer is not yet loaded until you do something in game or in-between level loads. e.g

mov eax,[game.exe+12345678]
cmp eax, 0
je ohshitbacktogame

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 13, 2015 11:01 pm    Post subject: Reply with quote

you write this script:
cmp eax, 0
je backtogame
What do this script?What is to?
Back to top
View user's profile Send private message
Snow1337
Catastrophic Cheatah
Reputation: 1

Joined: 12 Oct 2004
Posts: 183
Location: Your, Computer

PostPosted: Sun Sep 13, 2015 11:52 pm    Post subject: Reply with quote

it would check for a null, if null found it will jump back to game to avoid crash
_________________
Back to top
View user's profile Send private message Visit poster's website
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Mon Sep 14, 2015 12:01 am    Post subject: Reply with quote

I must write backtogame instead of exit
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Mon Sep 14, 2015 12:50 am    Post subject: Reply with quote

sjl002 wrote:
you write this script:
cmp eax, 0
je backtogame
What do this script?What is to?


Also make sure to throw a cmp in between to check for dead-ends or your game will crash trying to access a null or invalid pointer. This is very common in some games where the value of the pointer is not yet loaded until you do something in game or in-between level loads.
sjl002 wrote:

I must write backtogame instead of exit


NO!?!! its just an example. Sigh...if you had read some code injection tutorials i wouldn't have to explain this.

But backtogame is any label that will skip over your pointer address fetching, if you are using CE's autoassemble template, you will write
je originalcode

provided you write your injection in code or newmem section.

Here is another example

newmem:
push eax
mov eax,[game.exe+12345678]
cmp eax, 0
je originalcode
mov eax,[eax+1CC]
cmp eax, 0
je originalcode
mov eax,[eax+B0]
cmp eax, 0
je originalcode
mov [eax+0C],(float)100

originalcode:
pop eax // Notice i placed this here so it will execute either way, if you don't do this way, your will crash. google stack balancing(push instruction/pop instruction) if you don't understand why


If all of this still doesn't make sense. Start fresh, try the cheat engine tutorial, read rydian's guides or just use pointers in the CE cheat list.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Mon Sep 14, 2015 1:14 am    Post subject: Reply with quote

Can be more Pointer using in Auto Assembler
Back to top
View user's profile Send private message
yourib1999
How do I cheat?
Reputation: 0

Joined: 28 Mar 2016
Posts: 4

PostPosted: Fri Jul 01, 2016 7:03 am    Post subject: Reply with quote

and if you wanna do it with a 4 bytes value? Very Happy
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 Tutorials 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