Resolve IAT after insert LdrDataTableEntry

This commit is contained in:
Boring
2022-07-11 13:33:59 +08:00
parent a74d29ec5d
commit 446bb917d9
5 changed files with 238 additions and 247 deletions
-8
View File
@@ -297,8 +297,6 @@ NTSTATUS NTAPI HookNtCreateThread(
Context.Rdx = ULONG64(_Context);
#endif
EnterCriticalSection(&MmpTlspLock);
status = OriginNtCreateThread(
ThreadHandle,
DesiredAccess,
@@ -313,8 +311,6 @@ NTSTATUS NTAPI HookNtCreateThread(
RtlFreeHeap(RtlProcessHeap(), 0, _Context);
}
LeaveCriticalSection(&MmpTlspLock);
return status;
}
@@ -338,8 +334,6 @@ NTSTATUS NTAPI HookNtCreateThreadEx(
Context->ThreadStartRoutine = PTHREAD_START_ROUTINE(StartRoutine);
Context->ThreadParameter = Argument;
EnterCriticalSection(&MmpTlspLock);
NTSTATUS status = OriginNtCreateThreadEx(
ThreadHandle,
DesiredAccess,
@@ -357,8 +351,6 @@ NTSTATUS NTAPI HookNtCreateThreadEx(
RtlFreeHeap(RtlProcessHeap(), 0, Context);
}
LeaveCriticalSection(&MmpTlspLock);
return status;
}