Skip to content

Instantly share code, notes, and snippets.

View hLunaaa's full-sized avatar
💤
Sleeping

hLunaaa

💤
Sleeping
View GitHub Profile
void InstrumentationCallback(CONTEXT *context)
{
TEB *teb = NtCurrentTeb();
context->Rip = teb->InstrumentationCallbackPreviousPc;
context->Rsp = teb->InstrumentationCallbackPreviousSp;
context->Rcx = context->R10;
// Prevent recursion
if (!teb->InstrumentationCallbackDisabled) {