Function at 0x4085c8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x408784
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x18]
call fcn.004083f4
test al, al
jne 0x408608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40878e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x40862b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40878e
mov eax, dword [ebp - 0x1c]
add eax, 0xf8
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x50]
test ebx, ebx
jne 0x40864c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40878e
push 0x40
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408671
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40878e
mov eax, dword [ebp - 0x1c]
movzx ebx, word [eax + 6]
mov ecx, dword [edi]
sub ecx, dword [ebp - 0x18]
mov eax, ebx
shl eax, 3
lea eax, [eax + eax*4]
add ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00404b9c
dec ebx
test ebx, ebx
jl 0x4086bb
inc ebx
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
add edx, esi
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0xc]
call fcn.00404b9c
mov eax, dword [edi]
add eax, 0x28
mov dword [edi], eax
dec ebx
jne 0x408698
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x4086e5
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0xc]
call fcn.00408434
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004084cc
test al, al
jne 0x40870c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40878e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0xbc610f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], esi
push 0x40
push 0x1000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x44]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.00404b9c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x28]
mov edx, eax
mov ebx, dword [ebp - 0xc]
add edx, ebx
mov dword [ebp - 0x20], edx
test eax, eax
je 0x40877a
push 0
push 1
push ebx
call dword [ebp - 0x20]
test eax, eax
je 0x40877a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40878e
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret