A forum for reverse engineering, OS internals and malware analysis 

 #5196  by EP_X0FF
 Mon Feb 28, 2011 11:15 am
It dump all sensitive regions.

You need to get ImageBase address and SizeofImage for process you want to dump.
You can do this with help of PSAPI GetModuleInformation.

After this ReadProcessMemory, write buffer to file.