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 


Create single line assembler

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

Joined: 26 Apr 2022
Posts: 9

PostPosted: Tue Apr 26, 2022 5:04 pm    Post subject: Create single line assembler Reply with quote

I'm trying to create a single line assembler, I was wondering if anyone could point me in the right direction as I want to achieve pretty much the same effect that the auto assembler does, simple asm in -> shellcode out.

Any help is MUCH appreciated! Smile
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Tue Apr 26, 2022 5:37 pm    Post subject: Reply with quote

Intel and AMD publish documentation for you to make one yourself. Depending on what programming language you're using, there may already be a good library you can use.

Disassembly as well as reading and writing another process's memory like the AutoAssembler does are separate issues.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
BigCrock5
How do I cheat?
Reputation: 0

Joined: 26 Apr 2022
Posts: 9

PostPosted: Wed Apr 27, 2022 12:10 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Intel and AMD publish documentation for you to make one yourself. Depending on what programming language you're using, there may already be a good library you can use.

Disassembly as well as reading and writing another process's memory like the AutoAssembler does are separate issues.


I'm using Java, I couldn't find any libraries to do this, so was wondering if there was a simple dll or something I could import.

I only need to assemble very few commands. (mov, movd, call)
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Wed Apr 27, 2022 2:01 pm    Post subject: Reply with quote

Try using a search engine to find libraries. e.g.:
https://stackoverflow.com/questions/17001094/c-library-x86-x64-assembler

The libraries don't have to be written in Java for you to use them. See JNI


You could write it yourself if you're willing to learn how instructions are encoded.

See "Intel Architectures Software Developer's Manuals Volume 2" for all the information you need. Particularly opcodes, operands (modR/M and SIB bytes), RIP-relative addressing (64-bit), and the REX prefix (64-bit).

If you want to look at CE's source for inspiration:
https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/Assemblerunit.pas

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 Source 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