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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x885183
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x18], eax
test edi, edi
je 0x885175
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov eax, dword [ebp + 0xc]
push eax
push edi
call sub.kernel32.dll_VirtualProtect
mov dword [ebp - 8], edi
push 0x40
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x884fec
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x885000
push 0x4000
mov eax, dword [ebp + 0xc]
push eax
push edi
call sub.kernel32.dll_VirtualFree_1
jmp 0x885175
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, edi
mov dword [ebp - 0xc], eax
push 0xf8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x885028
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x88503c
push 0x4000
mov eax, dword [ebp + 0xc]
push eax
push edi
call sub.kernel32.dll_VirtualFree_1
jmp 0x885175
mov ebx, dword [ebp - 0xc]
add ebx, 0xf8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x885068
push 0x4000
mov eax, dword [ebp + 0xc]
push eax
push edi
call sub.kernel32.dll_VirtualFree_1
jmp 0x885175
cmp byte [ebp + 0x18], 0
je 0x885077
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x18], eax
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
jne 0x8850a9
push 0x4000
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
push eax
push edi
call sub.kernel32.dll_VirtualFree_1
jmp 0x885175
cmp byte [ebp + 0x18], 0
je 0x8850c6
mov eax, esi
add eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
add eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, edi
call fcn.00874fe8
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
mov dword [ebp - 0x10], eax
mov ecx, ebx
sub ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
shl eax, 3
lea eax, [eax + eax*4]
add ecx, eax
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00874fe8
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x885110
inc eax
mov dword [ebp - 0x20], eax
mov edx, edi
add edx, dword [ebx + 0x14]
mov eax, esi
add eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
call fcn.00874fe8
add ebx, 0x28
dec dword [ebp - 0x20]
jne 0x8850f6
cmp dword [ebp + 0x14], 0
jne 0x885119
mov dword [ebp + 0x14], esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x885144
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0xa4]
push edx
mov edx, dword [ebp + 0x14]
push edx
add eax, esi
push eax
push esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
push eax
call fcn.00884e04
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov ebx, esi
add eax, ebx
push eax
push esi
call fcn.00884eb0
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x28]
add edx, ebx
mov eax, edx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], 0
je 0x885175
push 0
push 1
mov edx, dword [ebp - 4]
push edx
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x88518a
ret