Merge branch 'main' into main

This commit is contained in:
jlallas384 2024-09-06 05:31:26 +04:00 committed by GitHub
commit 89130ad2af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 118 additions and 139 deletions

View File

@ -1,28 +1,65 @@
LIBRARY kernelx
EXPORTS
AcquireSRWLockExclusive = AcquireSRWLockExclusive_X @1
AcquireSRWLockShared = AcquireSRWLockShared_X @2
AcquireSRWLockExclusive = NTDLL.RtlAcquireSRWLockExclusive @1
AcquireSRWLockShared = NTDLL.RtlAcquireSRWLockShared @2
AddVectoredContinueHandler = NTDLL.RtlAddVectoredContinueHandler @3
AddVectoredExceptionHandler = NTDLL.RtlAddVectoredExceptionHandler @4
CancelThreadpoolIo = NTDLL.TpCancelAsyncIoOperation @12
CloseHandle = CloseHandle_X @14
CloseThreadpool = NTDLL.TpReleasePool @15
CloseThreadpoolCleanupGroup = NTDLL.TpReleaseCleanupGroup @16
CloseThreadpoolCleanupGroupMembers = NTDLL.TpReleaseCleanupGroupMembers @17
CloseThreadpoolIo = NTDLL.TpReleaseIoCompletion @18
CloseThreadpoolTimer = NTDLL.TpReleaseTimer @19
CloseThreadpoolWait = NTDLL.TpReleaseWait @20
CloseThreadpoolWork = NTDLL.TpReleaseWork @21
CopyMemoryNonTemporal = NTDLL.RtlCopyMemoryNonTemporal @32
CreateDirectoryW = CreateDirectoryW_X @34
CreateEventExW = CreateEventExW_X @37
CreateEventW = CreateEventW_X @38
CreateFileW = CreateFileW_X @44
CreateThread = CreateThread_X @60
DebugBreak = DebugBreak_X @71
DecodePointer = NTDLL.RtlDecodePointer @72
DecodeSystemPointer = NTDLL.RtlDecodeSystemPointer @73
DeleteCriticalSection = NTDLL.RtlDeleteCriticalSection @74
DeleteFileW = DeleteFileW_X @77
DeleteSynchronizationBarrier = DeleteSynchronizationBarrier_X @79
DeviceIoControl = DeviceIoControl_X @80
DisableThreadLibraryCalls = DisableThreadLibraryCalls_X @81
EnterCriticalSection = EnterCriticalSection_X @87
ExitProcess = ExitProcess_X @102
DisassociateCurrentThreadFromCallback = NTDLL.TpDisassociateCallback @82
EncodePointer = NTDLL.RtlEncodePointer @85
EncodeSystemPointer = NTDLL.RtlEncodeSystemPointer @86
EnterCriticalSection = NTDLL.RtlEnterCriticalSection @87
EventActivityIdControl = NTDLL.EtwEventActivityIdControl @92
EventEnabled = NTDLL.EtwEventEnabled @93
EventProviderEnabled = NTDLL.EtwEventProviderEnabled @94
EventRegister = NTDLL.EtwEventRegister @95
EventSetInformation = NTDLL.EtwEventSetInformation @96
EventUnregister = NTDLL.EtwEventUnregister @97
EventWrite = NTDLL.EtwEventWrite @98
EventWriteEx = NTDLL.EtwEventWriteEx @99
EventWriteString = NTDLL.EtwEventWriteString @100
EventWriteTransfer = NTDLL.EtwEventWriteTransfer @101
ExitProcess = NTDLL.RtlExitUserProcess @102
ExitThread = NTDLL.RtlExitUserThread @103
FileTimeToSystemTime = FileTimeToSystemTime_X @107
FillMemoryNonTemporal = NTDLL.RtlFillMemoryNonTemporal @108
FindClose = FindClose_X @109
FindFirstFileW = FindFirstFileW_X @113
FindNextFileW = FindNextFileW_X @117
FlushProcessWriteBuffers = NTDLL.NtFlushProcessWriteBuffers @125
FreeLibrary = FreeLibrary_X @129
FreeLibraryWhenCallbackReturns = NTDLL.TpCallbackUnloadDllOnCompletion @131
GetConsoleType = GetConsoleType_X @140
GetCurrentProcess = GetCurrentProcess_X @144
GetCurrentProcessId = GetCurrentProcessId_X @145
GetCurrentProcessorNumber = NTDLL.RtlGetCurrentProcessorNumber @146
GetCurrentProcessorNumberEx = NTDLL.RtlGetCurrentProcessorNumberEx @147
GetCurrentThread = GetCurrentThread_X @148
GetCurrentThreadId = GetCurrentThreadId_X @149
GetDiskFreeSpaceExW = GetDiskFreeSpaceExW_X @154
GetDriveTypeW = GetDriveTypeW_X @157
GetExitCodeThread = GetExitCodeThread_X @163
GetFileAttributesExW = GetFileAttributesExW_X @166
GetFileAttributesW = GetFileAttributesW_X @167
@ -31,26 +68,52 @@ EXPORTS
GetLocalTime = GetLocalTime_X @179
GetModuleHandleA = GetModuleHandleA_X @186
GetModuleHandleW = GetModuleHandleW_X @189
GetProcAddress = GetProcAddress_X @196
GetProcessHeap = GetProcessHeap_X @199
GetProcessHeaps = NTDLL.RtlGetProcessHeaps @200
GetProcessId = GetProcessId_X @201
GetStartupInfoW = GetStartupInfoW_X @208
GetSystemTime = GetSystemTime_X @216
GetSystemTimeAsFileTime = GetSystemTimeAsFileTime_X @218
GetTickCount = GetTickCount_X @231
GetTraceEnableFlags = NTDLL.EtwGetTraceEnableFlags @238
GetTraceEnableLevel = NTDLL.EtwGetTraceEnableLevel @239
GetTraceLoggerHandle = NTDLL.EtwGetTraceLoggerHandle @240
GetUserDefaultLocaleName = GetUserDefaultLocaleName_X @242
GetUserGeoID = GetUserGeoID_X @243
HeapFree = HeapFree_X @256
HeapAlloc = NTDLL.RtlAllocateHeap @252
HeapCompact = NTDLL.RtlCompactHeap @253
HeapFree = NTDLL.RtlFreeHeap @256
HeapLock = NTDLL.RtlLockHeap @257
HeapReAlloc = NTDLL.RtlReAllocateHeap @259
HeapSize = NTDLL.RtlSizeHeap @261
HeapUnlock = NTDLL.RtlUnlockHeap @262
HeapValidate = NTDLL.RtlValidateHeap @263
InitOnceInitialize = NTDLL.RtlRunOnceInitialize @268
InitializeConditionVariable = NTDLL.RtlInitializeConditionVariable @269
InitializeCriticalSection = NTDLL.RtlInitializeCriticalSection @271
InitializeCriticalSectionAndSpinCount = InitializeCriticalSectionAndSpinCount_X @272
InitializeCriticalSectionEx = InitializeCriticalSectionEx_X @273
InitializeSListHead = NTDLL.RtlInitializeSListHead @275
InitializeSRWLock = NTDLL.RtlInitializeSRWLock @276
InterlockedFlushSList = NTDLL.RtlInterlockedFlushSList @278
InterlockedPopEntrySList = NTDLL.RtlInterlockedPopEntrySList @279
InterlockedPushEntrySList = NTDLL.RtlInterlockedPushEntrySList @280
InterlockedPushListSList = NTDLL.RtlInterlockedPushListSList @281
InterlockedPushListSListEx = NTDLL.RtlInterlockedPushListSListEx @282
IsDebuggerPresent = IsDebuggerPresent_X @283
IsProcessorFeaturePresent = IsProcessorFeaturePresent_X @284
IsThreadpoolTimerSet = NTDLL.TpIsTimerSet @286
LeaveCriticalSection = NTDLL.RtlLeaveCriticalSection @293
LeaveCriticalSectionWhenCallbackReturns = NTDLL.TpCallbackLeaveCriticalSectionOnCompletion @294
LoadLibraryExW = LoadLibraryExW_X @296
MultiByteToWideChar = MultiByteToWideChar_X @313
OutputDebugStringA = OutputDebugStringA_X @327
OutputDebugStringW = OutputDebugStringW_X @328
PeekNamedPipe = PeekNamedPipe_X @330
QueryPerformanceCounter = QueryPerformanceCounter_X @333
QueryPerformanceFrequency = QueryPerformanceFrequency_X @334
QueryDepthSList = NTDLL.RtlQueryDepthSList @332
QueryPerformanceCounter = NTDLL.RtlQueryPerformanceCounter @333
QueryPerformanceFrequency = NTDLL.RtlQueryPerformanceFrequency @334
RaiseException = RaiseException_X @339
ReadFile = ReadFile_X @344
RegCloseKey = RegCloseKey_X @348
@ -67,142 +130,68 @@ EXPORTS
RegQueryInfoKeyW = RegQueryInfoKeyW_X @359
RegQueryValueExW = RegQueryValueExW_X @360
RegSetValueExW = RegSetValueExW_X @361
RegisterTraceGuidsW = NTDLL.EtwRegisterTraceGuidsW @362
ReleaseMutexWhenCallbackReturns = NTDLL.TpCallbackReleaseMutexOnCompletion @365
ReleaseSRWLockExclusive = NTDLL.RtlReleaseSRWLockExclusive @366
ReleaseSRWLockShared = NTDLL.RtlReleaseSRWLockShared @367
ReleaseSemaphoreWhenCallbackReturns = NTDLL.TpCallbackReleaseSemaphoreOnCompletion @369
RemoveVectoredContinueHandler = NTDLL.RtlRemoveVectoredContinueHandler @372
RemoveVectoredExceptionHandler = NTDLL.RtlRemoveVectoredExceptionHandler @373
ResetEvent = ResetEvent_X @374
RestoreLastError = NTDLL.RtlRestoreLastWin32Error @376
ResumeThread = ResumeThread_X @377
RtlCaptureContext = RtlCaptureContext_X @378
RtlLookupFunctionEntry = RtlLookupFunctionEntry @380
RtlUnwindEx = RtlUnwindEx_X @385
RtlCaptureContext = NTDLL.RtlCaptureContext @378
RtlCaptureStackBackTrace = NTDLL.RtlCaptureStackBackTrace @379
RtlLookupFunctionEntry = NTDLL.RtlLookupFunctionEntry @380
RtlPcToFileHeader = NTDLL.RtlPcToFileHeader @381
RtlRaiseException = NTDLL.RtlRaiseException @382
RtlRestoreContext = NTDLL.RtlRestoreContext @383
RtlUnwind = NTDLL.RtlUnwind @384
RtlUnwindEx = NTDLL.RtlUnwindEx @385
RtlVirtualUnwind = NTDLL.RtlVirtualUnwind @386
SetCriticalSectionSpinCount = NTDLL.RtlSetCriticalSectionSpinCount @390
SetEvent = SetEvent_X @399
SetEventWhenCallbackReturns = NTDLL.TpCallbackSetEventOnCompletion @400
SetFilePointer = SetFilePointer_X @404
SetLastError = NTDLL.RtlSetLastWin32Error @409
SetThreadAffinityMask = SetThreadAffinityMask_X @418
SetThreadPriority = SetThreadPriority_X @424
SetThreadpoolThreadMaximum = NTDLL.TpSetPoolMaxThreads @429
SetThreadpoolTimer = NTDLL.TpSetTimer @431
SetThreadpoolWait = NTDLL.TpSetWait @432
SetUnhandledExceptionFilter = SetUnhandledExceptionFilter_X @433
Sleep = Sleep_X @440
SleepConditionVariableCS = API-MS-WIN-CORE-SYNCH-L1-2-0.SleepConditionVariableCS @441
StartThreadpoolIo = NTDLL.TpStartAsyncIoOperation @444
SubmitThreadpoolWork = NTDLL.TpPostWork @445
SystemTimeToFileTime = SystemTimeToFileTime_X @449
TerminateProcess = TerminateProcess_X @451
TlsAlloc = TlsAlloc_X @454
TlsGetValue = TlsGetValue_X @456
TlsSetValue = TlsSetValue_X @457
TraceMessage = NTDLL.EtwTraceMessage @460
TraceMessageVa = NTDLL.EtwTraceMessageVa @461
TryAcquireSRWLockExclusive = NTDLL.RtlTryAcquireSRWLockExclusive @462
TryAcquireSRWLockShared = NTDLL.RtlTryAcquireSRWLockShared @463
TryEnterCriticalSection = NTDLL.RtlTryEnterCriticalSection @464
UnhandledExceptionFilter = UnhandledExceptionFilter_X @467
UnregisterTraceGuids = NTDLL.EtwUnregisterTraceGuids @471
VirtualAlloc = VirtualAlloc_X @474
VirtualFree = VirtualFree_X @476
WaitForMultipleObjects = WaitForMultipleObjects_X @482
WaitForSingleObject = WaitForSingleObject_X @484
WaitForSingleObjectEx = WaitForSingleObjectEx_X @485
WaitForThreadpoolIoCallbacks = NTDLL.TpWaitForIoCompletion @486
WaitForThreadpoolTimerCallbacks = NTDLL.TpWaitForTimer @487
WaitForThreadpoolWaitCallbacks = NTDLL.TpWaitForWait @488
WaitForThreadpoolWorkCallbacks = NTDLL.TpWaitForWork @489
WakeAllConditionVariable = NTDLL.RtlWakeAllConditionVariable @492
WakeByAddressAll = NTDLL.RtlWakeAddressAll @493
WakeByAddressSingle = NTDLL.RtlWakeAddressSingle @494
WakeConditionVariable = NTDLL.RtlWakeConditionVariable @495
WriteConsoleW = WriteConsoleW_X @499
WriteFile = WriteFile_X @500
XMemAlloc = XMemAlloc_X @501
XMemAllocDefault = XMemAllocDefault_X @505
XMemFreeDefault = XMemFreeDefault_X @508
XMemFree = XMemFree_X @507
WriteConsoleW = WriteConsoleW_X @499
FreeLibrary = FreeLibrary_X @129
GetProcAddress = GetProcAddress_X @196
GetDiskFreeSpaceExW = GetDiskFreeSpaceExW_X @154
GetDriveTypeW = GetDriveTypeW_X @157
DecodePointer = NTDLL.RtlDecodePointer @72
WakeAllConditionVariable = NTDLL.RtlWakeAllConditionVariable @492
AcquireSRWLockExclusive = NTDLL.RtlAcquireSRWLockExclusive @1
AcquireSRWLockShared = NTDLL.RtlAcquireSRWLockShared @2
AddVectoredContinueHandler = NTDLL.RtlAddVectoredContinueHandler @3
AddVectoredExceptionHandler = NTDLL.RtlAddVectoredExceptionHandler @4
CancelThreadpoolIo = NTDLL.TpCancelAsyncIoOperation
CloseThreadpool = NTDLL.TpReleasePool
CloseThreadpoolCleanupGroup = NTDLL.TpReleaseCleanupGroup
CloseThreadpoolCleanupGroupMembers = NTDLL.TpReleaseCleanupGroupMembers
CloseThreadpoolIo = NTDLL.TpReleaseIoCompletion
CloseThreadpoolTimer = NTDLL.TpReleaseTimer
CloseThreadpoolWait = NTDLL.TpReleaseWait
CloseThreadpoolWork = NTDLL.TpReleaseWork
CopyMemoryNonTemporal = NTDLL.RtlCopyMemoryNonTemporal
DecodeSystemPointer = NTDLL.RtlDecodeSystemPointer
DeleteCriticalSection = NTDLL.RtlDeleteCriticalSection @74
DeleteSynchronizationBarrier = NTDLL.RtlDeleteBarrier
DisassociateCurrentThreadFromCallback = NTDLL.TpDisassociateCallback
EncodePointer = NTDLL.RtlEncodePointer @85
EncodeSystemPointer = NTDLL.RtlEncodeSystemPointer
EnterCriticalSection = NTDLL.RtlEnterCriticalSection
EventActivityIdControl = NTDLL.EtwEventActivityIdControl
EventEnabled = NTDLL.EtwEventEnabled
EventProviderEnabled = NTDLL.EtwEventProviderEnabled
EventRegister = NTDLL.EtwEventRegister @95
EventSetInformation = NTDLL.EtwEventSetInformation @96
EventUnregister = NTDLL.EtwEventUnregister @97
EventWrite = NTDLL.EtwEventWrite @98
EventWriteEx = NTDLL.EtwEventWriteEx
EventWriteString = NTDLL.EtwEventWriteString
EventWriteTransfer = NTDLL.EtwEventWriteTransfer @101
ExitProcess = NTDLL.RtlExitUserProcess
ExitThread = NTDLL.RtlExitUserThread
FillMemoryNonTemporal = NTDLL.RtlFillMemoryNonTemporal
FlushProcessWriteBuffers = NTDLL.NtFlushProcessWriteBuffers
FreeLibraryWhenCallbackReturns = NTDLL.TpCallbackUnloadDllOnCompletion
GetCurrentProcessorNumber = NTDLL.RtlGetCurrentProcessorNumber
GetCurrentProcessorNumberEx = NTDLL.RtlGetCurrentProcessorNumberEx
GetProcessHeaps = NTDLL.RtlGetProcessHeaps
GetTraceEnableFlags = NTDLL.EtwGetTraceEnableFlags
GetTraceEnableLevel = NTDLL.EtwGetTraceEnableLevel
GetTraceLoggerHandle = NTDLL.EtwGetTraceLoggerHandle
HeapAlloc = NTDLL.RtlAllocateHeap @252
HeapCompact = NTDLL.RtlCompactHeap
HeapFree = NTDLL.RtlFreeHeap
HeapLock = NTDLL.RtlLockHeap
HeapReAlloc = NTDLL.RtlReAllocateHeap
HeapSize = NTDLL.RtlSizeHeap
HeapUnlock = NTDLL.RtlUnlockHeap
HeapValidate = NTDLL.RtlValidateHeap
InitOnceInitialize = NTDLL.RtlRunOnceInitialize
InitializeConditionVariable = NTDLL.RtlInitializeConditionVariable @269
InitializeCriticalSection = NTDLL.RtlInitializeCriticalSection @271
InitializeSListHead = NTDLL.RtlInitializeSListHead @275
InitializeSRWLock = NTDLL.RtlInitializeSRWLock @276
InterlockedFlushSList = NTDLL.RtlInterlockedFlushSList
InterlockedPopEntrySList = NTDLL.RtlInterlockedPopEntrySList
InterlockedPushEntrySList = NTDLL.RtlInterlockedPushEntrySList
InterlockedPushListSList = NTDLL.RtlInterlockedPushListSList
InterlockedPushListSListEx = NTDLL.RtlInterlockedPushListSListEx
IsThreadpoolTimerSet = NTDLL.TpIsTimerSet
LeaveCriticalSection = NTDLL.RtlLeaveCriticalSection @293
LeaveCriticalSectionWhenCallbackReturns = NTDLL.TpCallbackLeaveCriticalSectionOnCompletion
QueryDepthSList = NTDLL.RtlQueryDepthSList
QueryPerformanceCounter = NTDLL.RtlQueryPerformanceCounter
QueryPerformanceFrequency = NTDLL.RtlQueryPerformanceFrequency
RegisterTraceGuidsW = NTDLL.EtwRegisterTraceGuidsW
ReleaseMutexWhenCallbackReturns = NTDLL.TpCallbackReleaseMutexOnCompletion
ReleaseSRWLockExclusive = NTDLL.RtlReleaseSRWLockExclusive @366
ReleaseSRWLockShared = NTDLL.RtlReleaseSRWLockShared
ReleaseSemaphoreWhenCallbackReturns = NTDLL.TpCallbackReleaseSemaphoreOnCompletion
RemoveVectoredContinueHandler = NTDLL.RtlRemoveVectoredContinueHandler
RemoveVectoredExceptionHandler = NTDLL.RtlRemoveVectoredExceptionHandler
RestoreLastError = NTDLL.RtlRestoreLastWin32Error
RtlCaptureContext = NTDLL.RtlCaptureContext
RtlCaptureStackBackTrace = NTDLL.RtlCaptureStackBackTrace
RtlLookupFunctionEntry = NTDLL.RtlLookupFunctionEntry
RtlPcToFileHeader = NTDLL.RtlPcToFileHeader
RtlRaiseException = NTDLL.RtlRaiseException
RtlRestoreContext = NTDLL.RtlRestoreContext
RtlUnwind = NTDLL.RtlUnwind
RtlUnwindEx = NTDLL.RtlUnwindEx
RtlVirtualUnwind = NTDLL.RtlVirtualUnwind @386
SetCriticalSectionSpinCount = NTDLL.RtlSetCriticalSectionSpinCount
SetEventWhenCallbackReturns = NTDLL.TpCallbackSetEventOnCompletion
SetLastError = NTDLL.RtlSetLastWin32Error @409
SetThreadpoolThreadMaximum = NTDLL.TpSetPoolMaxThreads
SetThreadpoolTimer = NTDLL.TpSetTimer
SetThreadpoolWait = NTDLL.TpSetWait
StartThreadpoolIo = NTDLL.TpStartAsyncIoOperation
SubmitThreadpoolWork = NTDLL.TpPostWork
LogTraceEvent = NTDLL.EtwLogTraceEvent
TraceMessage = NTDLL.EtwTraceMessage
TraceMessageVa = NTDLL.EtwTraceMessageVa
TryAcquireSRWLockExclusive = NTDLL.RtlTryAcquireSRWLockExclusive
TryAcquireSRWLockShared = NTDLL.RtlTryAcquireSRWLockShared
TryEnterCriticalSection = NTDLL.RtlTryEnterCriticalSection @464
UnregisterTraceGuids = NTDLL.EtwUnregisterTraceGuids
WaitForThreadpoolIoCallbacks = NTDLL.TpWaitForIoCompletion
WaitForThreadpoolTimerCallbacks = NTDLL.TpWaitForTimer
WaitForThreadpoolWaitCallbacks = NTDLL.TpWaitForWait
WaitForThreadpoolWorkCallbacks = NTDLL.TpWaitForWork
WakeByAddressAll = NTDLL.RtlWakeAddressAll @493
WakeByAddressSingle = NTDLL.RtlWakeAddressSingle @494
WakeConditionVariable = NTDLL.RtlWakeConditionVariable @495
XMemFree = XMemFree_X @507

View File

@ -11,17 +11,6 @@
NtAllocateVirtualMemory_t NtAllocateVirtualMemory;
NtFreeVirtualMemory_t NtFreeVirtualMemory;
void AcquireSRWLockExclusive_X(PSRWLOCK SRWLock)
{
AcquireSRWLockExclusive(SRWLock);
}
void AcquireSRWLockShared_X(PSRWLOCK SRWLock)
{
AcquireSRWLockShared(SRWLock);
}
void EnterCriticalSection_X(LPCRITICAL_SECTION lpCriticalSection)
{
EnterCriticalSection(lpCriticalSection);
@ -319,6 +308,11 @@ BOOL DeleteFileW_X(LPCWSTR lpFileName)
return DeleteFileW(lpFileName);
}
BOOL DeleteSynchronizationBarrier_X(LPSYNCHRONIZATION_BARRIER lpBarrier)
{
return DeleteSynchronizationBarrier(lpBarrier);
}
void DebugBreak_X()
{
return DebugBreak();

View File

@ -21,10 +21,6 @@ typedef NTSTATUS(NTAPI* NtFreeVirtualMemory_t)(
// EXE EXPORTS
extern "C"
{
void AcquireSRWLockExclusive_X(PSRWLOCK SRWLock);
void AcquireSRWLockShared_X(PSRWLOCK SRWLock);
void EnterCriticalSection_X(LPCRITICAL_SECTION lpCriticalSection);
HANDLE GetProcessHeap_X();
@ -129,8 +125,6 @@ extern "C"
void GetSystemTime_X(LPSYSTEMTIME lpSystemTime);
void GetStartupInfoW_X(LPSTARTUPINFOW lpStartupInfo);
HMODULE GetModuleHandleW_X(LPCWSTR lpModuleName);
HMODULE GetModuleHandleA_X(LPCSTR lpModuleName);
@ -165,6 +159,8 @@ extern "C"
BOOL DeleteFileW_X(LPCWSTR lpFileName);
BOOL DeleteSynchronizationBarrier_X(LPSYNCHRONIZATION_BARRIER lpBarrier);
void DebugBreak_X();
BOOL SetEvent_X(HANDLE hEvent);