godot_reverse_engineering
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| godot_reverse_engineering [2025/05/17 21:46] – created winwinner | godot_reverse_engineering [2026/03/25 13:49] (current) – winwinner | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | decomp using https:// | + | {{keywords> |
| + | ====== De-compiling encrypted Godot games ====== | ||
| - | ====== Anomalous coffee machine | + | de-compile using https:// |
| + | |||
| + | ===== Instructions ===== | ||
| + | |||
| + | * load the binary you want to decompile in ghidra | ||
| + | * click search-> | ||
| + | * click enter bytes manually | ||
| + | * input the following hex after changing it to hex mode | ||
| + | |||
| + | < | ||
| + | 48 85 c0 | ||
| + | 0f 84 00 00 00 00 | ||
| + | 48 83 78 00 20 | ||
| + | 0f 85 00 00 00 00 | ||
| + | </ | ||
| + | |||
| + | * click apply | ||
| + | * click the O(mask all operands) | ||
| + | * uncheck the 0x20 in the CMP | ||
| + | {{: | ||
| + | * click find all | ||
| + | * click the only result (if this changes in the future just know that if you decompile the function it should have " | ||
| + | * take note of which register is being tested | ||
| + | * load the game in a debugger and set a break point for the test address | ||
| + | * read 32 bits from the pointer at the address being tested | ||
| + | |||
| + | linux debug steps for windows game: | ||
| + | < | ||
| + | winedbg your_game.exe | ||
| + | |||
| + | Wine-dbg> | ||
| + | Breakpoint 1 at 0x00000140cf1d67 rec+0xcf1d67 | ||
| + | Wine-dbg> | ||
| + | Stopped on breakpoint 1 at 0x00000140cf1d67 rec+0xcf1d67 | ||
| + | Wine-dbg> | ||
| + | 0x00000140cf1d67 rec+0xcf1d67: | ||
| + | ...(rest of the disassemble) | ||
| + | Wine-dbg> | ||
| + | 0x007f9bde7c7ab0: | ||
| + | 0x007f9bde7c7ac0: | ||
| + | </ | ||
| + | |||
| + | windows: | ||
| + | < | ||
| + | todo | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | ==== Anomalous coffee machine ==== | ||
| url: https:// | url: https:// | ||
| Line 11: | Line 63: | ||
| script_encryption_key(linux): | script_encryption_key(linux): | ||
| + | < | ||
| 957aba86a4f9009237ccc763f22c8bfda51c9794f0db7749360591987c0dea49 | 957aba86a4f9009237ccc763f22c8bfda51c9794f0db7749360591987c0dea49 | ||
| + | </ | ||
| + | |||
| + | ==== REC ==== | ||
| + | |||
| + | url: https:// | ||
| + | |||
| + | godot version: 4.4.1 | ||
| + | |||
| + | key extracted from version: 0.5.0.2 | ||
| + | |||
| + | encryption key(windows): | ||
| + | < | ||
| + | 5e0e4de3a9019f0b92a8f935cfc44e7a4b5f3a14201b477df8965dba67189739 | ||
| + | </ | ||
| + | |||
godot_reverse_engineering.1747514762.txt.gz · Last modified: by winwinner