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 deal with encrypted values on game start up?

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

Joined: 06 Jun 2020
Posts: 12

PostPosted: Sat Dec 21, 2024 10:51 pm    Post subject: How to deal with encrypted values on game start up? Reply with quote

Hey there, I have a game I am trying to mess with and it has encrypted values which offset the raw values every single time the game is restarted. The values appear to be encrypted on game start up then fed into the relevant values. If I find what writes to the address there is no xor as the value has long since been encrypted already. So I was wondering if there is an easy way to deal with this or somehow decrypt the value if I know the raw value already, thanks.
Back to top
View user's profile Send private message
Game Hacking Dojo
Master Cheater
Reputation: 1

Joined: 17 Sep 2023
Posts: 250

PostPosted: Sun Dec 22, 2024 5:42 am    Post subject: Reply with quote

One good thing about obfuscated values is that they can't exist from nothing. Deobfuscation requires a full understanding of the assembly language in most cases. If you're interested in learning then you should start with something easier maybe depending on your level.

The concept of variable obfuscation is applying a formula and removing the formula. This means you would have the encryption key and decryption key within the game. Every time the game has to update the displayed value it has to retrieve the original value, update it and give a deobfuscated copy to the display value.

Is there an easy way? No, unless you already know and understand the formula, which is realistically impossible.
Back to top
View user's profile Send private message Visit poster's website
MuckySpud
Newbie cheater
Reputation: 0

Joined: 06 Jun 2020
Posts: 12

PostPosted: Sun Dec 22, 2024 7:36 am    Post subject: Reply with quote

Game Hacking Dojo wrote:
One good thing about obfuscated values is that they can't exist from nothing. Deobfuscation requires a full understanding of the assembly language in most cases. If you're interested in learning then you should start with something easier maybe depending on your level.

The concept of variable obfuscation is applying a formula and removing the formula. This means you would have the encryption key and decryption key within the game. Every time the game has to update the displayed value it has to retrieve the original value, update it and give a deobfuscated copy to the display value.

Is there an easy way? No, unless you already know and understand the formula, which is realistically impossible.


Thank you for the reply! I have actually dealt with a few games with obfuscated values already with backtracing them to the point before they are encrypted and injecting any required code while the raw value is still displayed. This game im working on has a different approach however, maybe I didnt explain it well enough on my original post so let me further break down the issue.

In games I have messed with in the past with encrypted values they happen each time the value is generated which could be when you load a level, when your character dies, or picks up a new weapon etc. This makes it easier to break and trace specific requirements and track down where the raw value is displayed. However, in this game the value is only ever encrypted one single time and seemingly on game start up. This encrypted value is then used throughout the game for the entire session until the game is closed and restarted.

Lets say the raw value I am looking for is 10, when I boot up the game it may make the value 12345678. This value never changes again and will always represent the original raw value in game. The next time I start the game this value may now be 87654321 for example. So I am dealing with a value which is obfuscated one single time and was wondering how to deal with this as my traditional methods wouldnt be effective here, thanks!
Back to top
View user's profile Send private message
Game Hacking Dojo
Master Cheater
Reputation: 1

Joined: 17 Sep 2023
Posts: 250

PostPosted: Sun Dec 22, 2024 12:18 pm    Post subject: Reply with quote

Clearer now.
But how did you get this information about it?
Does the display value change or is the value already a static value during game sessions and never changes, like an ID or something?
If the value changes and it shows you the changes accordingly at the end of the game, then the display value is most likely a sum of multiple values.
I'm still guessing because I don't know if the value changes at all. Because I'm assuming if the value is static and you have this much information about it you should've found it, by now.
And what is this game called? And what value is this?
Let me know.
Back to top
View user's profile Send private message Visit poster's website
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