Open skvl opened 4 years ago
Theoretically it is possible to disable turbo thunks.
E.g. one could catch SysWOW64\ntdll.dll!NtWow64CallFunction64
and zero bits with turbo thunk index.
Or it is possible to inject something like this:
#define WOW64_TURBO_THUNK_DISABLE 0
#define WOW64_TURBO_THUNK_ENABLE 1 // STATUS_NOT_SUPPORTED :(
ThunkInput = WOW64_TURBO_THUNK_DISABLE;
Status = NtWow64CallFunction64(Wow64FunctionTurboThunkControl,
0,
sizeof(ThunkInput),
&ThunkInput,
0,
NULL,
NULL);
tbh I was completely not aware of that, I will try to investigate within next few days
@icedevml thank you very much!
With dll-hooks-list.txt like this:
, I get the trace like this:
In the article WoW64 Internals one could read:
Late in examples:
So apimon fails to catch such functions.
@tklengyel @icedevml what you think?