Function at 0x406292
Capabilities:
Enumerate pe sections

Disassembly:
push 0x98
push 0x40f7a8
call fcn.004011b4
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x30], 0
xor eax, eax
lea edi, [ebp - 0x2f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0x70], ax
push 0x3e
push eax
lea eax, [ebp - 0x6e]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
xor edi, edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x90], edi
mov eax, dword [ebp - 0x80]
cmp dword [eax + 8], ecx
je 0x4062fc
mov edi, 0xc0000001
mov eax, ecx
jmp 0x40668b
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
pop esi
push esi
push 0
lea eax, [ebp - 0x70]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov word [ebp - 0x70], si
mov byte [ebp - 0x6e], al
mov edi, dword [ebp - 0x80]
mov al, byte [edi + 5]
mov byte [ebp - 0x6b], al
mov al, byte [edi + 7]
mov byte [ebp - 0x69], al
mov al, byte [edi + 6]
mov byte [ebp - 0x6a], al
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov word [ebp - 0x66], 0x120a
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
imul eax, edx
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x67], 0x20
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xffffffc0
sub eax, 0xffffff80
or eax, 0x20
mov dword [ebp - 0x64], eax
or dword [ebp - 0x5c], 0xffffffff
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0xc], 0
sete al
lea eax, [eax*2 + 0x28]
mov byte [ebp - 0x40], al
and byte [ebp - 0x3f], 0xf9
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x3e], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x3d], al
shr ecx, 8
mov byte [ebp - 0x3c], cl
mov al, byte [edi + 0xc]
mov byte [ebp - 0x3b], al
xor ecx, ecx
mov byte [ebp - 0x3a], cl
shr edx, 8
mov byte [ebp - 0x39], dl
mov al, byte [edi + 0x10]
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], cl
push ecx
push ecx
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
push 0
mov eax, dword [ebx + 0xc]
movzx eax, byte [eax + 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
mov esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
jne 0x406402
mov edi, 0xc000009a
mov ecx, dword [ebp - 0x7c]
jmp 0x4062f5
push esi
push 0
push 0
mov eax, dword [edi + 0x10]
imul eax, dword [edi + 0x14]
push eax
push dword [ebp - 0x84]
call dword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov ecx, eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], ecx
test ecx, ecx
jne 0x406434
mov edi, 0xc000009a
jmp 0x406688
and dword [ebp - 4], 0
xor eax, eax
cmp dword [ebp + 0xc], eax
sete al
push eax
push 0
push ecx
call dword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x98]
mov dword [esi + 0x28], eax
lea eax, [ebp - 0xa8]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x24], al
lea edi, [esi + 0x38]
mov dword [edi], eax
mov dword [esi + 8], 5
mov byte [esi + 0x20], al
call dword [sym.imp.ntoskrnl.exe_KeGetCurrentThread]
mov dword [esi + 0x50], eax
mov ecx, dword [esi + 0x60]
mov eax, dword [ebx + 0xc]
mov dword [ecx - 0x10], eax
mov byte [ecx - 0x24], 0xf
lea eax, [ebp - 0x70]
mov dword [ecx - 0x20], eax
mov eax, dword [esi + 0x60]
mov dword [eax - 8], 0x4066b0
lea ecx, [ebp - 0x70]
mov dword [eax - 4], ecx
mov byte [eax - 0x21], 0xe0
cmp dword [0x416b5c], 0
jne 0x4064c3
mov eax, 0x406114
xchg dword [edi], eax
mov cl, 2
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov byte [ebp - 0x75], al
mov ecx, 0x417834
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
dec byte [esi + 0x23]
mov ecx, dword [esi + 0x60]
sub ecx, 0x24
mov dword [esi + 0x60], ecx
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 8]
lea edx, [eax + 0x30]
mov ecx, dword [edx]
mov dword [ebp - 0x84], ecx
mov eax, dword [eax + 0x74]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x88], ecx
mov eax, dword [eax + 0x74]
mov dword [ebp - 0x8c], eax
cmp dword [0x417838], 0
je 0x40657e
mov ecx, dword [ebx]
xor eax, eax
inc eax
mov dword [ebp - 0x74], eax
cmp ecx, eax
je 0x406585
cmp ecx, 2
je 0x406585
mov ecx, dword [0x417840]
test ecx, ecx
je 0x406540
xchg dword [edx], ecx
mov ecx, dword [0x417840]
mov edx, dword [0x41783c]
test edx, edx
je 0x40655e
mov eax, dword [ebx + 8]
add eax, 0x74
xchg dword [eax], edx
mov ecx, dword [0x417840]
mov edx, dword [0x41783c]
test ecx, ecx
je 0x406570
mov eax, dword [ebx + 0x10]
add eax, 0x30
xchg dword [eax], ecx
mov edx, dword [0x41783c]
test edx, edx
je 0x4065cd
mov eax, dword [ebx + 0x10]
add eax, 0x74
xchg dword [eax], edx
jmp 0x4065cd
mov dword [ebp - 0x74], 1
mov eax, dword [ebx]
test eax, eax
jle 0x4065cd
cmp eax, 2
jle 0x4065a7
cmp eax, 3
jne 0x4065cd
call fcn.00404cb8
mov eax, dword [ebx + 0x18]
mov byte [eax], 0x8b
call fcn.00404cc4
jmp 0x4065cd
mov eax, dword [ebx + 0x14]
xchg dword [edx], eax
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
add eax, 0x74
xchg dword [eax], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
add eax, 0x30
xchg dword [eax], ecx
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x10]
add eax, 0x74
xchg dword [eax], ecx
mov eax, dword [ebx + 8]
push esi
push dword [ebx + 4]
call dword [eax + 0x74]
mov edi, eax
mov ecx, dword [ebx + 8]
add ecx, 0x30
mov eax, dword [ebp - 0x84]
xchg dword [ecx], eax
mov ecx, dword [ebx + 8]
add ecx, 0x74
mov eax, dword [ebp - 0x80]
xchg dword [ecx], eax
mov eax, dword [ebx + 0x10]
add eax, 0x30
mov ecx, dword [ebp - 0x88]
xchg dword [eax], ecx
mov eax, dword [ebx + 0x10]
add eax, 0x74
mov ecx, dword [ebp - 0x8c]
xchg dword [eax], ecx
mov ecx, 0x417834
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
mov cl, byte [ebp - 0x75]
call dword [sym.imp.HAL.dll_KfLowerIrql]
cmp edi, 0x103
jne 0x40663f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
test edi, edi
js 0x406685
mov al, byte [ebp - 0x6d]
cmp al, 1
je 0x40664e
test al, al
jne 0x406685
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
cmp byte [ebp - 0x6c], 0
jne 0x40668b
xor edi, edi
jmp 0x40668b
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4066a5
test ecx, ecx
je 0x40669a
push ecx
call dword [sym.imp.ntoskrnl.exe_IoFreeMdl]
test esi, esi
je 0x4066a5
push esi
call dword [sym.imp.ntoskrnl.exe_IoFreeIrp]
mov eax, edi
call fcn.004011fc
ret 0x10