Function at 0x9884c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x988757
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x61]
mov ecx, 0x40
mov edx, dword [ebp - 4]
call fcn.004076a8
cmp word [ebp - 0x61], 0x5a4d
je 0x988521
mov eax, 0xae87ac
mov edx, 0x98878c
call fcn.00404a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x988776
mov eax, dword [ebp - 0x25]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.00987c7c
mov edx, eax
lea eax, [ebp - 0x159]
mov ecx, 0xf8
call fcn.004076a8
cmp dword [ebp - 0x159], 0x4550
je 0x988569
mov eax, 0xae87ac
mov edx, 0x98879c
call fcn.00404a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x988776
push 0x40
push 0x2000
mov eax, dword [ebp - 0x109]
push eax
mov eax, dword [ebp - 0x125]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x9885a4
push 0x40
push 0x2000
mov eax, dword [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x9885c6
mov eax, 0xae87ac
mov edx, 0x9887ac
call fcn.00404a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x988776
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 0
push 0x40
push 0x1000
mov eax, dword [ebp - 0x109]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_VirtualAlloc_1
push 0x40
push 0x1000
mov eax, dword [ebp - 0x105]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x25]
add ecx, dword [ebp - 0x105]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.004076a8
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x25]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x159]
mov eax, dword [ebp - 4]
call fcn.00987e04
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x125]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x9886a1
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00987f2c
mov eax, dword [ebp - 0x10]
push eax
call fcn.00988030
test al, al
jne 0x9886c2
mov eax, 0xae87ac
mov edx, 0x9887bc
call fcn.00404d0c
call fcn.00985170
mov al, byte [ebp - 5]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00988384
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x98874d
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x988712
mov eax, 0xae87ac
mov edx, 0x9887cc
call fcn.00404a98
call fcn.00985170
cmp byte [ebp - 6], 0
je 0x988746
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x20]
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
jne 0x988746
mov eax, 0xae87ac
mov edx, 0x9887dc
call fcn.00404a98
call fcn.00985170
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x988770
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8