Why you want to unhook? To use free from hooks API, or what?For fun ;)
This is more for challenging than to use absolutely in my product.
Hook can be installed deeper in function or/and it can be existing instruction patch.Yes, but as I'm able to retrieve the original function from disk, I can go deeper to compare
And if this is hot patch from any program, I can get the module where it lies and compare to a WL. All this design is already done for my SSDT hooks which can also be legit
cmpxchg8b, cmpxchg16bThanks, I guess this is atomic functions?
---
I saw cli / sti could have been good, but not for multiprocessor systems.
I can't stop interrupts on every processor, cause we cannot decide which one we use.