Solved Decrypt Obscured

Status
Not open for further replies.

ItzBlady

Platinian
Original poster
Aug 6, 2022
14
0
1
24
Russia
Anyone, how to decrypt:
[Il2CppDummyDll.FieldOffset(Offset = "0x1C")]
public ObscuredFloat Hp;

im need decrypt ObscuredFloat, but how?(this unity anticheat, toolkit)
 

Hiyall360

Awesome Active Platinian
Jan 14, 2018
132
3,987
193
Mr.Pringlez
You'll need Shmoo's Unity header.


Code:
Get the real value of an ObscuredFloat.
Parameters:
    - location: the location of the ObscuredFloat
*/
float GetObscuredFloatValue(uint64_t location){
    int cryptoKey = *(int *)location;
    int obfuscatedValue = *(int *)(location + 0x4);
    
    /* use this intfloat to set the integer representation of our parameter value, which will also set the float value */
    intfloat IF;
    IF.i = obfuscatedValue ^ cryptoKey;
    
    return IF.f;
}
Credits: Shmoo419

 
Status
Not open for further replies.