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 


call procedure stored in another memoryrecord in AA?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Wed Apr 04, 2012 9:58 pm    Post subject: call procedure stored in another memoryrecord in AA? Reply with quote

Is it possible to call procedure stored in another memory record in AA?
_________________
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25804
Location: The netherlands

PostPosted: Thu Apr 05, 2012 5:43 am    Post subject: Reply with quote

If that other aa record has been enabled and it allocated the function using globalalloc or used registersymbol for the function it allocated, then yes, you can call it.
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Thu Apr 05, 2012 5:57 am    Post subject: Reply with quote

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)

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

originalcode:
sub [ebx+00000464],eax
call nearly  // also tried call [nearly]

exit:
jmp returnhere

"tutorial-i386.exe"+2276B:
jmp newmem
nop
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"tutorial-i386.exe"+2276B:
sub [ebx+00000464],eax
//Alt: db 29 83 64 04 00 00



Called Script
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
globalalloc(nearly,200)
globalalloc(near,4)
nearly:
mov [near],22
 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(nearly)


Did not worked?
It crashed the game.

_________________


Last edited by Freiza on Thu Apr 05, 2012 6:00 am; edited 3 times in total
Back to top
View user's profile Send private message Send e-mail
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Apr 05, 2012 5:58 am    Post subject: Reply with quote

missing ret command
_________________
Back to top
View user's profile Send private message MSN Messenger
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Thu Apr 05, 2012 6:01 am    Post subject: Reply with quote

mgr.inz.Player wrote:
missing ret command

Yes, I am stupid.

_________________
Back to top
View user's profile Send private message Send e-mail
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