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 


Pointers in assembly?

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

Joined: 04 Aug 2009
Posts: 1

PostPosted: Mon Aug 10, 2009 10:53 pm    Post subject: Pointers in assembly? Reply with quote

Refer to the following code for the next question:

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

1A37C796:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov ecx,[esi+30]
nop

originalcode:
mov [edx+eax*4],ecx
mov ecx,[esi+30]

exit:
jmp returnhere
       
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
1A37C796:
mov [edx+eax*4],ecx
mov ecx,[esi+30]


For the address locations, they will change each time I restart program (right?). So how will I compensate for that, since I can't use 1A37C796 every time for the right position in memory, I need to get the offset from the base value...


EDIT: I figured it out.

In the Memory Viewer, go to View->Show Module Addresses (CTRL+M)

Then use the addresses from there.

So the Lines above that read:
Code:
1A37C796:


Now Read:
Code:
GameServer.dll+C796:


Man, I'm really starting to enjoy this.
Back to top
View user's profile Send private message AIM Address
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 395
Location: DEAD

PostPosted: Tue Aug 11, 2009 5:23 am    Post subject: Reply with quote

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

fullaccess(04000019,4)

1A37C796:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [04000019],esi

//add this address to CE 04000019 and offset + 30

originalcode:
mov [edx+eax*4],ecx
mov ecx,[esi+30]

exit:
jmp returnhere

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
1A37C796:
mov [edx+eax*4],ecx
mov ecx,[esi+30]

_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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