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 


[HELP] How to get the ebp value

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

Joined: 07 Nov 2012
Posts: 0

PostPosted: Wed Nov 07, 2012 6:32 am    Post subject: [HELP] How to get the ebp value Reply with quote

Hey there,

I'm working on a trainer and I finally found the address where it access to the value I need.

Code:
MyGame.exe+1279C0C

At that line, it gives me the following assembler code:
Code:
MyGame.exe+1279C0C - F3 0F11 85 A00D0000   - movss [ebp+00000DA0],xmm0


I want to get the "ebp" value in order to edit the whole player structure of my game (Health, speed, etc...). Is there a way to get it and use it as a base pointer?

Thanks.
Back to top
View user's profile Send private message
sir-gunny
Advanced Cheater
Reputation: 0

Joined: 15 Mar 2012
Posts: 81

PostPosted: Thu Nov 08, 2012 1:23 pm    Post subject: Reply with quote

sure... but i think ebp change anytime...

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)
label(ebpsave)

registersymbol(ebpsave)

newmem:
push eax
mov eax,[ebp]
mov [ebpsave],eax
pop eax

originalcode:
movss [ebp+00000DA0],xmm0

exit:
jmp returnhere


ebpsave:
 dd 00

"MyGame.exe"+1279C0C:
jmp newmem
nop
nop
nop
returnhere:


 
 
[DISABLE]

"MyGame.exe"+1279C0C:
 db F3 0F 11 85 A0 0D 00 00

unregistersymbol(ebpsave)

dealloc(newmem)


now use "ebpsave" as pointeradress and add DA0
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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