Service process crash with system permissions.
X86 process running on win11 [10.0.22621.2361]
100% probability of crashing during startup
RtlInitUnicodeString(&us, buffer);
InitializeObjectAttributes(&oa, &us, 0, nullptr, nullptr);
li.QuadPart = 0x1000;
ServiceMessageBox("MmpAllocateGlobalData", "MmpAllocateGlobalData 2222222222222222222", MB_ICONERROR, TRUE);
status = NtCreateSection( //fail
&hSection,
SECTION_ALL_ACCESS,
&oa,
&li,
PAGE_READWRITE,
SEC_COMMIT,
nullptr
);
Causing the following code to crash.....
// Allocate memory for image headers
if (MmpGlobalDataPtr== 0) //null pointer
ServiceMessageBox("MemoryLoadLibrary", "MemoryLoadLibrary fffffffffffffffffffffffffffff MmpGlobalDataPtr == 0)", MB_ICONERROR, TRUE);
size_t alignedHeadersSize = (DWORD)AlignValueUp(old_header->OptionalHeader.SizeOfHeaders + sizeof(MEMORYMODULE), MmpGlobalDataPtr->SystemInfo.dwPageSize); //Crash
if (alignedHeadersSize == 0)
Service process crash with system permissions.
X86 process running on win11 [10.0.22621.2361]
100% probability of crashing during startup
Causing the following code to crash.....