Function at 0x40ba20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f348
push 0x40dc2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x40baa6
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x140], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x140]
jmp 0x40bdd1
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x120]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
cmp dword [eax], 0x4550
je 0x40bae7
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x144]
jmp 0x40bdd1
mov edx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov eax, dword [edx + 8]
shl eax, 3
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [0x414394], eax
cmp dword [0x414394], 0
jne 0x40bb28
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x148]
jmp 0x40bdd1
mov edx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov eax, dword [edx + 8]
shl eax, 3
push eax
push 0
mov ecx, dword [0x414394]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov esi, dword [ebp - 0x11c]
add esi, 0x18
mov ecx, 0x38
lea edi, [ebp - 0x100]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x120]
add edx, dword [ebp - 0xa0]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x120]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x120]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x120]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x108], 0
jmp 0x40bbd7
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [eax + 0x14]
jae 0x40bd81
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x120]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x118]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x114]
lea eax, [ecx + edx - 1]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x120]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
movzx edx, word [ecx + 1]
mov dword [ebp - 0x104], edx
cmp dword [ebp - 0x104], 0x1ed
je 0x40bc67
cmp dword [ebp - 0x104], 0x22f
jne 0x40bc68
int3
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [eax + 8]
jb 0x40bc7d
jmp 0x40bbc8
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
cmp eax, 0x4e
jne 0x40bc94
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx + 1]
cmp edx, 0x74
je 0x40bc99
jmp 0x40bbc8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x14c]
mov al, byte [edx]
mov byte [ebp - 0x151], al
add dword [ebp - 0x14c], 1
cmp byte [ebp - 0x151], 0
jne 0x40bcb1
mov ecx, dword [ebp - 0x14c]
sub ecx, dword [ebp - 0x150]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
add eax, 1
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ecx, dword [ebp - 0x104]
mov edx, dword [0x414394]
mov dword [edx + ecx*8 + 4], eax
mov eax, dword [ebp - 0x104]
mov ecx, dword [0x414394]
mov edx, dword [ebp - 0x130]
mov dword [ecx + eax*8], edx
mov eax, dword [ebp - 0x130]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x104]
mov edx, dword [0x414394]
mov eax, dword [edx + ecx*8 + 4]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x104]
mov ecx, dword [0x414394]
mov edx, dword [ecx + eax*8 + 4]
push edx
call sub.ntoskrnl.exe_strncpy
add esp, 0xc
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
jmp 0x40bbc8
mov dword [ebp - 4], 0xffffffff
jmp 0x40bdbb
mov edx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov eax, dword [ebp - 0x128]
xor ecx, ecx
cmp eax, dword [edx + 8]
sete cl
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4