Function at 0x10005e30
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e12e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x48], ecx
push 0x100e227c
lea ecx, [ebp - 0x78]
call fcn.10001660
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x10005e74
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xa
jge 0x10005e8a
call fcn.100ca096
push eax
lea ecx, [ebp - 0x78]
call fcn.10002d10
jmp 0x10005e6b
push 0x100e2280
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.100011c0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.100024f0
lea ecx, [ebp - 0x60]
call fcn.100024d0
push eax
call fcn.100013b0
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.10002f80
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.100ca08b
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002ed0
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100c3150
add esp, 0xc
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10005f34
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10001b10
mov eax, dword [ebp - 0x30]
jmp 0x100060fd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x10005f75
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10001b10
mov eax, dword [ebp - 0x34]
jmp 0x100060fd
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
je 0x10005fb2
xor edx, edx
jne 0x10005f84
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10001b10
mov eax, dword [ebp - 0x38]
jmp 0x100060fd
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 0x10]
cmp dword [edx + ecx + 0x78], 0
je 0x10005fee
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10001b10
mov eax, dword [ebp - 0x3c]
jmp 0x100060fd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x14]
lea eax, [ecx + edx + 0xf8]
mov dword [ebp - 0x1c], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10006042
xor edx, edx
jne 0x10006025
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10006076
xor edx, edx
jne 0x10006048
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10001b10
mov eax, dword [ebp - 0x40]
jmp 0x100060fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.100c3150
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x1000609f
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x24], eax
jge 0x100060d9
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x18]
push eax
call fcn.100c3150
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 0x28
mov dword [ebp - 0x1c], ecx
jmp 0x10006096
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10001b10
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4