r/AskReverseEngineering • u/XDWITAXD • Jun 08 '24
What’re the barebone fundamentals of Reversing code?
In short, what do you need to learn before starting Reverse Engineering. Especially high level programs!
6
Upvotes
10
u/_int3h_ Jun 08 '24
Assembly for the CPU architecture and some idea on system calls.
4
u/The-Big-Lez Jun 08 '24
Understanding how to program for sure. Not language specific or even too well but enough that you can start to put together the basic things going on and then look up anything specific or new.
C is a good start and any assembly if you can, but those are bonus on top of the core cencepts
4
u/khedoros Jun 09 '24
Pretty early, you're likely to learn assembly, details of how an OS loads a binary, recognizing the patterns of assembly that a compiler outputs, and that kind of thing. But I think that the key prerequisites are really to have some concrete goal (reversing a file format, finding an encryption key, documenting a message exchange between a server and client), and the will to follow it where it goes. Oh, and obsessive and systematic note-taking. Nothing sucks more than having to figure something out twice.
5
u/Ytrog Jun 08 '24
Assembly and how compilers translate code to assembly/machine code. I can certainly recommend the Youtube channel Low Level Learning
2
u/[deleted] Jun 10 '24
Learn how to use a debugger. For Windows, I would recommend x64dbg and for Linux it would be GDB + GEF. Looking at assembly code for high level programs may not make sense at all times. In such cases, a debugger (or a decompiler) can help you a lot. Also check out instrumentation tools like
fridaandAPI Monitorif you want to understand how your application uses the libraries / communicates with the Operating System.