Function at 0x565afb
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address
Get number of processors

Disassembly:
push 0x64
push 0x452f80
call fcn.0040ba92
and dword [ebp - 0x28], 0
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test bl, 3
je 0x565b1c
call sym.ntoskrnl.exe_ExRaiseDatatypeMisalignment
lea ecx, [ebx + 0x14]
cmp ecx, ebx
jb 0x565b2c
mov eax, dword [sym.ntoskrnl.exe_MmUserProbeAddress]
cmp ecx, eax
jbe 0x565b36
call sym.ntoskrnl.exe_ExRaiseAccessViolation
mov eax, dword [sym.ntoskrnl.exe_MmUserProbeAddress]
mov ecx, dword [ebx]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x40], ecx
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x5c], ebx
test ebx, ebx
jne 0x565b61
mov esi, 0xc000000d
jmp 0x565da2
cmp ebx, eax
jb 0x565b6f
mov edi, dword [eax]
mov dword [ebp - 0x6c], edi
mov ebx, dword [eax + 4]
jmp 0x565b77
mov edi, dword [ebx]
mov dword [ebp - 0x6c], edi
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], ebx
test di, di
je 0x565b57
cmp di, 0x200
ja 0x565b57
movzx esi, di
lea ecx, [esi + ebx]
cmp ecx, ebx
jb 0x565b9a
cmp ecx, eax
jbe 0x565b9f
call sym.ntoskrnl.exe_ExRaiseAccessViolation
push 4
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
call sym.ntoskrnl.exe_ProbeForWrite
cmp dword [ebp - 0x20], 0x60
jae 0x565bbc
mov esi, 0xc0000004
jmp 0x565da2
push 0x204d4456
lea eax, [esi + 0x1c]
push eax
push 0
call sym.ntoskrnl.exe_ExAllocatePoolWithQuotaTag
mov ebx, eax
mov dword [ebp - 0x28], ebx
mov word [ebx + 0x10], di
mov word [ebx + 0x12], di
lea edi, [ebx + 0x18]
mov dword [ebx + 0x14], edi
mov ecx, esi
mov esi, dword [ebp - 0x70]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0x38]
push eax
push 1
push dword [sym.ntoskrnl.exe_IoFileObjectType]
push 1
push dword [ebp - 0x3c]
call sym.ntoskrnl.exe_ObReferenceObjectByHandle
test eax, eax
jge 0x565c16
mov esi, eax
jmp 0x565c5c
mov byte [ebx], 1
mov byte [ebx + 2], 4
and dword [ebx + 4], 0
lea eax, [ebx + 8]
mov dword [eax + 4], eax
mov dword [eax], eax
mov edi, dword [ebp - 0x38]
and dword [edi + 0x60], 0
push edi
call sym.ntoskrnl.exe_IoGetRelatedDeviceObject
mov dword [ebp - 0x44], eax
push 1
movsx eax, byte [eax + 0x30]
push eax
call sym.ntoskrnl.exe_IoAllocateIrp
mov esi, eax
mov dword [ebp - 0x34], esi
xor edx, edx
cmp esi, edx
jne 0x565c69
mov ecx, edi
call sym.ntoskrnl.exe_ObfDereferenceObject
mov esi, 0xc000009a
push 0
push ebx
call sym.ntoskrnl.exe_ExFreePoolWithTag
jmp 0x565da6
mov dword [esi + 8], 4
mov byte [esi + 0x20], 1
lea eax, [ebp - 0x64]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edx
mov dword [esi + 0xc], edx
mov dword [ebp - 0x30], edx
mov eax, dword fs:[0x124]
mov dword [esi + 0x50], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x54], edx
mov dword [esi + 4], edx
mov eax, dword [esi + 0x60]
sub eax, 0x24
mov byte [eax], 0xc
mov byte [eax + 1], 1
mov dword [eax + 0x18], edi
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 3
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x10], ecx
lea ecx, [ebx + 0x10]
mov di, word [ecx]
neg di
sbb edi, edi
and edi, ecx
mov dword [eax + 8], edi
mov byte [eax + 2], 4
mov edi, dword [ebp - 0x44]
mov eax, dword [edi + 0x1c]
test al, 4
je 0x565d1d
mov dword [ebp - 4], 1
push 0x204d4456
push dword [ebp - 0x20]
push edx
call sym.ntoskrnl.exe_ExAllocatePoolWithQuotaTag
mov dword [ebp - 0x30], eax
mov dword [esi + 0xc], eax
or dword [ebp - 4], 0xffffffff
jmp 0x565db3
test al, 0x10
je 0x565dad
mov dword [ebp - 4], 2
push esi
push 1
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
call sym.ntoskrnl.exe_IoAllocateMdl
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x565d4c
push 0xc000009a
call sym.ntoskrnl.exe_ExRaiseStatus
push 1
push 1
push dword [ebp - 0x4c]
call sym.ntoskrnl.exe_MmProbeAndLockPages
jmp 0x565cf4
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x565eb8
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x3c], eax
mov cl, 1
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov byte [ebp - 0x19], al
lea ecx, [esi + 0x10]
mov edx, dword [esi + 0x50]
add edx, 0x210
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [eax + 4], ecx
mov dword [edx], ecx
mov cl, byte [ebp - 0x19]
call dword [sym.imp.HAL.dll_KfLowerIrql]
mov edx, esi
mov ecx, edi
call sym.ntoskrnl.exe_IofCallDriver
mov dword [ebp - 0x24], eax
cmp eax, 0x103
jne 0x565e03
push 0
push 0
push 1
push 6
push ebx
call sym.ntoskrnl.exe_KeWaitForMutexObject
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x565e6a
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
test eax, eax
jge 0x565e1a
cmp eax, 0x80000005
jne 0x565e6a
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x565e6a
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x2c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebp - 4], 0xffffffff
jmp 0x565e6a
xor esi, esi
push esi
push ebx
call sym.ntoskrnl.exe_ExFreePoolWithTag
cmp dword [ebp - 0x30], esi
je 0x565e81
push esi
push dword [ebp - 0x30]
call sym.ntoskrnl.exe_ExFreePoolWithTag
mov eax, dword [ebp - 0x24]
jmp 0x565eb8
call fcn.0040bad2
ret 4