https://www.securitynewspaper.com/2016/06/25/writing-exploits-win32-systems-scratch/
Writing Exploits for Win32 Systems from Scratch