1

So i'm trying to reverse an unity game using il2cpp to get the assets of it.

After some reverse stuff i found that the asset's (especially here the png image) byte array get encrypted with a key and i need to use that key and the DecryptByteArray function to get the real data of the image but when i try to look at the DecryptByteArray in dnspy i got this: decrypt function in dnspy Technically this is not the right decrypt function and it also doesn't contain the function or code line where it is used. So i decide to take a look at the assembly code to see what's the real function and what's the key but then i found out the the reference of that method is just the data offset:  the data offset and the runtime function define: runtime funtion And when i go to pseudocode it show up like thisthe pseudocode which i think it's not really matter but i'm not sure am i right or not.

So i want to get some help to find the key of the encryption and if u can please help me with the DecryptByteArray function too cause i'm not good at assembly so it might took me at least 3 weeks if i wanna understand what is that assembly code doing.

Here's the client of the game.

1 Answer 1

0

oh don't worry guy, i found the key and i also understand the decrypt function too. The key is 72 and the decrypt is just use byte ^ 72 as new byte

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.