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 


AA to C++ just not getting it

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Gaz
Cheater
Reputation: 0

Joined: 08 Aug 2012
Posts: 40

PostPosted: Fri Jan 25, 2013 11:58 am    Post subject: AA to C++ just not getting it Reply with quote

Seen a few tuts and im just not getting it
i want to take this asm
Code:
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(steady)
registersymbol(steady)
aobscan(steadyaob,f3 0f 11 46 04 e8 ** ** ** ** d9 46 04)

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

originalcode:
movss [esi+04],xmm0
mov [esi+04],(float)100000

exit:
jmp returnhere

steadyaob:
steady:
jmp newmem
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
steady:
movss [esi+04],xmm0
//Alt: db F3 0F 11 46 04
unregistersymbol(steady)


and use it in c++ if someone can help and give a good explanation of what they done it would be nice , btw its a dll im making , its just that this specific address needs a codecave for me to add new stuff which all my other cheats didnt so thanks!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Jan 26, 2013 5:02 am    Post subject: Reply with quote

The most common method of achieving this is using a naked function.

There are a handful of examples on these forums and on the net for what you're looking for.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
ARM4ND0
Advanced Cheater
Reputation: 2

Joined: 21 Jul 2011
Posts: 73

PostPosted: Sat Jan 26, 2013 4:39 pm    Post subject: Reply with quote

Yes, use naked function like this and write some function to get its size..

Code:
void _declspec(naked) InfiniteCrap()
{
   _asm
   {
      mov dword ptr [esi+0x04],0x461c4000
      ret
   }
}


greetz ARM4ND0

_________________
Hitler
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 programming 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