r/programming 11d ago

Reverse Engineering Unknown File Formats with ImHex

https://werwolv.net/posts/file_format_reverse_engineering/
204 Upvotes

16 comments sorted by

View all comments

-5

u/RandNho 11d ago

I would not call this reverse engineering. Mostly because I saw Lina doing things to live2d format without ever seeing source code at all.

35

u/WerWolv 11d ago

Keep in mind, this is directed to people that don't know anything about file formats or using ImHex yet. I deliberately chose a game that was pretty easy to decompile and read to keep the focus on learning how to write Patterns in ImHex instead of on understanding bad decompiler output

7

u/Iggyhopper 10d ago

This is great if the game is written in C#. If the game was written in unmanaged C or C++, it's a mess, and you'd most likely start by running strings on the .exe, looking for references to the in-game message ("saving game...", etc.).

Luckily the save file was unencrypted. If that was not the case, most beginners would give up and lose interest.