Re:Hotpatching a C Function on x86
by eb0la on Friday April 01, 2016 @07:10AM
(#11404002)
Intesting. ms_hook_prologue inserts 1 8-byte instruction ( lea rsp,[rsp+0x0]) instead of 8 1-byte nops. It executes much faster than 8 nopts if the function is not patched (no need to decode 8 instructions).
[ Parent
| on HN ]