Call Gates
Any of you ever attempted to "emulate" (Please note the quotes before you get your "nerd on". Oh look, another quote.) the WoW64 callgates?
In particular I'm talking about wow64cpu!x86SwitchTo64Bit.
I'm just wondering if it's worth wasting my time to emulate it on a 32 bit process.
Some points to state before you assume things:
- Yes, I know I'm doing it from userland and what restrictions I'll have.
- Yes, I know someone can simply intercept KiFastSystemCall() in ring0 via SSDT or what have you..
- Yes, one of the reasons I'm doing it is to make my own version of sysenter etc. but I need to pass through WoW64 gate first.
- No, this is only because I'm bored and a bit more curious about ring3 based communication with the kernel.
So, anyone of you ever tried or had the same idea?