Function at 0x417da0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x417dc1
xor eax, eax
jmp 0x417f9c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x417ddf
xor eax, eax
jmp 0x417f9c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00417d80
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x417e39
xor eax, eax
jmp 0x417f9c
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
add ecx, 0x18
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x417e73
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x20]
jae 0x417ec5
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x10]
push edx
call fcn.00417d80
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 8]
push eax
call fcn.00417d80
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx + 8], eax
jmp 0x417e6a
mov eax, dword [ebp - 0x20]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
sub ecx, 1
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0xc]
add eax, dword [edx + ecx + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x417f0d
mov eax, dword [ebp - 0x20]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + eax + 0xc]
mov eax, dword [ebp - 0x20]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax + 0x10], edx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x417f33
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jae 0x417f87
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x38]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
jmp 0x417f2a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc