Win32 Instruction Tracer

A while back, I built an execution tracing / instruction tracing tool for 32-bit windows. It’s a pretty simple tool – it creates whatever process you tell it to create, and attaches to it as a debugger. Then, it reads through the executable to figure out some information about the process, and then fiddles with memory protection and single step to capture each instruction executed by the target process:


By default, it traces only the instructions of the “main executable” that you pass it, but you can configure it to trace everything from the executable’s starting point, with “-a”:


(highlighted part is not from test.exe, works for any module not just windows stuff)

This little tool has mostly been sitting in my projects folder, gathering dust – but I’ve released it incase someone finds it useful. You can find it at:

About Norman

Sometimes, I write code. Occasionally, it even works.
This entry was posted in Computers, Jesting. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.