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 


Need help with some auto assembly cuz im noobie

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Mr.realdoge
Advanced Cheater
Reputation: 1

Joined: 01 Aug 2016
Posts: 56
Location: Lordran

PostPosted: Tue Nov 01, 2016 8:31 am    Post subject: Need help with some auto assembly cuz im noobie Reply with quote

So i tried to get the address of ebp in hero through this script

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

Hero:
mov [Hero],ebp

newmem:
jmp originalcode //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [ebp+000002D4],eax

exit:
jmp returnhere

"DARKSOULS.exe"+A6891D:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(Hero)
"DARKSOULS.exe"+A6891D:
mov [ebp+000002D4],eax

But when I put the "Hero" in as a pointer with the offset 2D4 the value becomes "??" Help!!!!
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Tue Nov 01, 2016 9:22 am    Post subject: Re: Need help with some auto assembly cuz im noobie Reply with quote

Code:
[ENABLE]
alloc(newmem,2048)
globalalloc(Hero,4)
//registersymbol(Hero)
label(returnhere)

newmem:
mov [Hero],ebp
mov [ebp+000002D4],eax
jmp returnhere

"DARKSOULS.exe"+A6891D:
jmp newmem
nop
returnhere:

[DISABLE]
dealloc(newmem)
//unregistersymbol(Hero)
"DARKSOULS.exe"+A6891D:
mov [ebp+000002D4],eax


Last edited by Betcha on Thu Nov 03, 2016 10:13 am; edited 1 time in total
Back to top
View user's profile Send private message
Mr.realdoge
Advanced Cheater
Reputation: 1

Joined: 01 Aug 2016
Posts: 56
Location: Lordran

PostPosted: Thu Nov 03, 2016 9:09 am    Post subject: Reply with quote

Thanks m8 it worked but only without registering "Hero"
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Nov 03, 2016 9:20 am    Post subject: Reply with quote

Don't need to registersymbol() when you use globalalloc().
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Thu Nov 03, 2016 10:12 am    Post subject: Reply with quote

Woops.
Have no idea why i wrote ''registersymbol'' lol.
Back to top
View user's profile Send private message
Mr.realdoge
Advanced Cheater
Reputation: 1

Joined: 01 Aug 2016
Posts: 56
Location: Lordran

PostPosted: Thu Nov 03, 2016 11:05 am    Post subject: Reply with quote

K got it thanks guys Smile
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