MDK-4203/Assembly-Keylogger ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Windows x64 assembly project that demonstrates how a low level keyboard hook works for educational and defensive research only.

I want it to show the basics of calling Windows APIs from assembly, including register use, stack alignment, and preserving non volatile registers. It should capture keystrokes in a simple local log file, along with a little context like the active window title and user or computer name, so I can study how input interception works. Please keep it clearly labeled as a lab demo and make sure it does not try to hide itself or persist across reboots.

Also include a simple build script, clear comments in the assembly code, and a short report or notes explaining what parts relate to DEP, ASLR, CFG, and other protections. If anything is unclear, look up the current Windows API docs online and keep the implementation compatible with modern 64 bit Windows.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab