Function at 0x10043d2
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
push edi
je 0x1004410
mov ax, word [ebx + 0xa]
and ax, 0x11
mov ecx, 0x111
cmp ax, cx
je 0x1004410
push 0x10014ec
mov eax, 0xffffffff
jmp 0x1004625
push 0x40
push 0x1000
push dword [esi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x1004451
push 0x10014fc
or eax, 0xffffffff
mov esi, 0x1006030
call fcn.01005047
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.01004feb
jmp 0x1004552
push dword [esi + 0x54]
push ebx
push edi
call dword [0x1006010]
movzx ecx, word [esi + 6]
movzx eax, word [esi + 0x14]
add esp, 0xc
lea eax, [eax + esi + 0x18]
test ecx, ecx
jbe 0x10044a9
lea ebx, [eax + 0xc]
lea edi, [eax + 0x14]
lea esi, [eax + 0x10]
mov dword [ebp - 0xc], ecx
mov eax, dword [edi]
test eax, eax
je 0x1004498
push dword [esi]
mov ecx, dword [ebp + 8]
add eax, ecx
push eax
mov eax, dword [ebx]
add eax, dword [ebp - 8]
push eax
call dword [0x1006010]
add esp, 0xc
add esi, 0x28
add edi, 0x28
add ebx, 0x28
dec dword [ebp - 0xc]
jne 0x100447b
mov edi, dword [ebp - 8]
mov esi, dword [edi + 0x3c]
add esi, edi
call fcn.01004312
sub eax, dword [0x100602c]
cmp eax, 0x7fff
jbe 0x10044c7
xor eax, eax
jmp 0x1004555
mov ecx, dword [esi + 0xa4]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x1004538
mov eax, dword [esi + 0xa0]
mov ebx, edi
sub ebx, dword [esi + 0x34]
add eax, edi
test ecx, ecx
jbe 0x1004538
mov edx, dword [eax + 4]
sub edx, 8
mov dword [ebp - 0xc], edx
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
lea edx, [eax + 8]
mov dword [ebp + 8], edx
je 0x100452d
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
shr edx, 0xc
test edx, edx
je 0x100451c
cmp edx, 3
jne 0x100455a
and ecx, 0xfff
add ecx, dword [ebp - 0x18]
add ecx, edi
add dword [ecx], ebx
sub dword [ebp - 0xc], 2
add dword [ebp + 8], 2
cmp dword [ebp - 0xc], 0
ja 0x10044fb
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jne 0x10044e5
cmp dword [esi + 0x84], 0
je 0x100454f
mov ebx, dword [esi + 0x80]
add ebx, edi
jne 0x1004606
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
push 0x1001510
jmp 0x1004622
lea esi, [eax + edi]
call fcn.01004312
sub eax, dword [0x100602c]
cmp eax, 0x7fff
ja 0x10044c0
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1004616
mov esi, dword [ebx]
add esi, edi
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 8]
jmp 0x10045fa
and dword [ebp - 0x10], 0
and dword [ebp - 0x18], 0
mov ecx, 0x80000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x10045d2
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 2]
push eax
mov dword [ebp - 0x1c], eax
call dword [0x1006014]
pop ecx
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
jmp 0x10045d8
movzx ecx, word [esi]
mov eax, dword [ebp - 0x10]
and dword [ebp + 8], 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [ebp - 0xc]
call dword [section..data]
mov eax, dword [ebp + 8]
test eax, eax
je 0x100461d
mov dword [edi], eax
add esi, 4
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x100459b
mov edi, dword [ebp - 8]
add ebx, 0x14
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x1004564
jmp 0x100454f
push 0x1001520
jmp 0x1004622
push 0x1001530
or eax, 0xffffffff
mov esi, 0x1006030
call fcn.01005047
jmp 0x1004552