Skip to content

Unable to correctly decrypt. gdc files in Android apks developed using Godot4.6 #402

Description

@rqelove510

System information

Windows11

Issue description

I found its key using IDA static decompilation project. After game decryption, the file structure, including *. tscn files and some resources, can be seen normally, but. gdc cannot be decrypted. At first, I suspected that the key had been re encrypted by the developer. I repeatedly verified the logic in IDA and confirmed that there was no additional obfuscation logic in the try_open_mack and open_ond_marse methods. I downloaded another game from the developer, which is also an APK. This game was made using Godot 3.5 and surprisingly used the same key. I decrypted it normally using the key I found before, and even unpacked the. gdc file normally.From the output logs, I suspect that it is due to the extensive use of Chinese UTF-8 in the script files. But I cannot be sure

Steps to reproduce

No response

Recovery log

Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (a1)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (81)
Unicode parsing error: Byte 6b is not a correct continuation byte after d0
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (a5)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (a0)
Unicode parsing error: Byte d5 is not a correct continuation byte after f6 b1
Unicode parsing error: Byte 65 is not a correct continuation byte after d5
Unicode parsing error: Byte 57 is not a correct continuation byte after f3
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (b7)
Unicode parsing error: Byte 33 is not a correct continuation byte after ca
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (af)
Unicode parsing error: Byte 4c is not a correct continuation byte after c8
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (bc)
Unicode parsing error: Byte b is not a correct continuation byte after d0
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (88)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (86)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (99)
Unicode parsing error: Byte 71 is not a correct continuation byte after c8
Unicode parsing error: Byte 74 is not a correct continuation byte after f0
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (fa)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (8c)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (98)
Unicode parsing error: Byte ec is not a correct continuation byte after f2
Unicode parsing error: Byte 34 is not a correct continuation byte after ec
Unicode parsing error: Byte 47 is not a correct continuation byte after c1
Unicode parsing error: Byte 49 is not a correct continuation byte after e1 ab
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (91)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (ba)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (fc)
Unicode parsing error: Byte e7 is not a correct continuation byte after db
Unicode parsing error: Byte dc is not a correct continuation byte after e7 b7
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (8e)
Unicode parsing error: Byte 55 is not a correct continuation byte after f6
Unicode parsing error: Byte fb is not a correct continuation byte after c6
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (fb)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (ae)
Unicode parsing error: Byte 5e is not a correct continuation byte after f4
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (8a)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (80)
Unicode parsing error: Byte 56 is not a correct continuation byte after f4
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (93)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (9d)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (aa)
Unicode parsing error: Byte d1 is not a correct continuation byte after cc
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (bd)
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (96)
Unicode parsing error: Byte f2 is not a correct continuation byte after c8
Unicode parsing error, some characters were replaced with � (U+FFFD): Missing f2 a3 UTF-8 continuation byte
Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 leading byte (a3)

Link to game download

ad "games.zip" -->

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions