Decompilers
It may be easier if the pseudocode were automatically given to us. Certain tools exist that may be able to help us with that. Let's try and decompile passcode.exe (https://github.com/PacktPublishing/Mastering-Reverse-Engineering/blob/master/ch7/passcode.exe) using the standalone version of Snowman (https://derevenets.com/). Once the file has been opened, click on View->Inspector. This should show a box containing resolved functions from the program. Look for the function definition _main and select it to show the equivalent pseudocode of the assembly language. This highlights the assembly language line in the left-hand pane and the psuedocode in the middle pane:
As of the time of writing this book, the output C source may help, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access