This code lead to crash of the application during uninstallation of the hook in the _beginthreadex thread.
Analyzing disassembly code and NktHookLib.cpp revealed next.
but jump 000007FEBA6A002A is not correct in case of unloading. The correct address I suppose is 000007FEBA6A0033 thus offset 0x06 should be replaced with 0x0F. Doing this fixed the problem on my side.
So, if you have a chance to review this place that would be great.
Hello guys,
I encountered a problem with unhooking in the next scenario. There is a simple native x64 application:
This code lead to crash of the application during uninstallation of the hook in the _beginthreadex thread. Analyzing disassembly code and NktHookLib.cpp revealed next.
Which as I understood lead to this code:
but jump 000007FEBA6A002A is not correct in case of unloading. The correct address I suppose is 000007FEBA6A0033 thus offset 0x06 should be replaced with 0x0F. Doing this fixed the problem on my side. So, if you have a chance to review this place that would be great.
Thanks, Mikalaj