Re:Analysis of large binaries and games in Ghidra-SRE
by iforgotpassword on Wednesday July 28, 2021 @07:47AM
(#27982706)
I wanted to do the same a few years ago. I didn't even reach that point, as I was interested in doing 90s games. Pretty much every game I tried was compiled with watcom, which ghidra doesn't know, so cannot apply any tricks when analyzing. Watcom even has its own calling convention which ghidra doesn't understand, so the pseudo C code for most functions was almost useless. Already gave up at that point.
Re:Analysis of large binaries and games in Ghidra-SRE
by unnouinceput on Wednesday July 28, 2021 @07:26AM
(#27982548)
The best way to do this is to code yourself some game, view it's assembler in your preferred IDE while doing step-by-step/trace into to familiarize how its instructions are executed at CPU level. Then do the same in Ghidra. After a while, all of this during the process of coding the game to completion, you'll be able to pickup fairly easily different patterns in assembler which will make you more productive at reverse engineering.
I did this with a Tetris clone, then a Minesweeper clone and then I did a multi-threaded "Shoot the ducks" clone, each duck being a thread. Probably will take you several months but at the end you'll really be able to do a lot of RE.
Re:Analysis of large binaries and games in Ghidra-SRE
by 0x4a42 on Wednesday July 28, 2021 @06:22AM
(#27982191)
There are ton of docs on the subject of rce. What about tuts4you or Woodmann board?
Re:Analysis of large binaries and games in Ghidra-SRE
by aritmo on Wednesday July 28, 2021 @12:46PM
(#27985905)
It depends on the game you are trying to work on.
If the game has protections, then it does not make sense to make that your first game to analyze.
Re:Analysis of large binaries and games in Ghidra-SRE
by c7DJTLrn on Wednesday July 28, 2021 @01:19PM
(#27986326)
It doesn't, just a little obfuscation in certain functions. Some parts of that I already know how they work from other people/prior work. I don't think there is a better candidate actually, besides a tiny DOS-like game written in C, but the game I'm looking at is something I'm actually interested in.
In software development, we share massive amounts of information, and there's always a premade tool out there that does what you need and will work the first time. This isn't my experience in the reverse engineering world. Information is sparse, seems to be kept private, and there's not always a tool that does what you want. Even if there is, good luck getting it to work.