x64dbg / x64dbg

An open-source user mode debugger for Windows. Optimized for reverse engineering and malware analysis.
http://x64dbg.com
Other
44.34k stars 2.4k forks source link

When using DbgAssembleAt, the remaining bytes will not be filled with NOP #2684

Open DNLINYJ opened 3 years ago

DNLINYJ commented 3 years ago

Version : snapshot_2021-04-17_18-28 System : Windows 10 64-bit 2004 I am writing a plugin for X64dbg, but when I use DbgAssembleAt to replace assembly instructions, it will not fill the remaining bytes with NOP. Is there any solution for this? (If reading is a little difficult, I'm sorry, English is not my native language)

mrexodia commented 2 years ago

You can first write fill with nops using DbgMemWrite and then call DbgAssembleAt.