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 


How to show decrypted values?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
HSergi
Newbie cheater
Reputation: 0

Joined: 17 Dec 2017
Posts: 22

PostPosted: Sat Nov 21, 2020 11:00 am    Post subject: How to show decrypted values? Reply with quote

I have an array of structs with encrypted primitives: integer and floating number types.

I have found encryption and decryption functions, their signatures are as following:
using encryptionFunction = __int32(__fastcall*)(__int32 numberToEncrypt)
using decryptionFunction = __int32(__fastcall*)(__int32 numberToDecrypt)

Got byte code and reversed pseudo-C-like code from IDA.

I was thinking to make a simple console application to encrypt and decrypt values but that's not quite it, all the values in Cheat Engine are still encrypted. Would be awesome if I could make Cheat Engine encrypt and decrypt values.

How to make Cheat Engine show decrypted values in structure dissect window?



cheatengine-x86_64_bcU0MBs4sj.png
 Description:
 Filesize:  126.25 KB
 Viewed:  2099 Time(s)

cheatengine-x86_64_bcU0MBs4sj.png


Back to top
View user's profile Send private message Send e-mail
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3320

PostPosted: Sat Nov 21, 2020 3:01 pm    Post subject: Reply with quote

CE can't do such conversions on the fly.
What you could try is force a null-encryption, so no values would ever be encrypted.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Nov 21, 2020 6:08 pm    Post subject: Reply with quote

create a custom type that does the decryption and set the elements in the structure to that custom type

How that custom type is implemented is up to how you implement the decoder. Can be in pure asm, lua(e.g using executeCodeEx or the executor thread. Tip: Use caching), or using a dll you inject into CE

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