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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x61c485
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x58]
mov ecx, 0x40
mov edx, ebx
call fcn.00409244
cmp word [ebp - 0x58], 0x5a4d
je 0x61c267
mov eax, 0x644738
mov edx, 0x61c4b8
call fcn.004059b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c4a4
mov eax, dword [ebp - 0x1c]
cdq
push edx
push eax
mov eax, ebx
call fcn.0061ba38
mov edx, eax
lea eax, [ebp - 0x150]
mov ecx, 0xf8
call fcn.00409244
cmp dword [ebp - 0x150], 0x4550
je 0x61c2ae
mov eax, 0x644738
mov edx, 0x61c4f0
call fcn.004059b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c4a4
push 0x40
push 0x2000
mov eax, dword [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x11c]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x61c2e9
push 0x40
push 0x2000
mov eax, dword [ebp - 0x100]
push eax
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x61c30b
mov eax, 0x644738
mov edx, 0x61c52c
call fcn.004059b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c4a4
push 0x11
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapAlloc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 0
push 0x40
push 0x1000
mov eax, dword [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
push 0x40
push 0x1000
mov eax, dword [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xfc]
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00409244
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x150]
mov eax, ebx
call fcn.0061bb50
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x11c]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test eax, eax
je 0x61c3d9
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0061bc5c
mov eax, dword [ebp - 0xc]
push eax
call fcn.0061bd58
test al, al
jne 0x61c3fa
mov eax, 0x644738
mov edx, 0x61c55c
call fcn.00405c48
call fcn.004109f4
mov al, byte [ebp - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0061c0d0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x61c47b
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, ecx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x61c445
mov eax, 0x644738
mov edx, 0x61c594
call fcn.004059b8
call fcn.004109f4
cmp byte [ebp - 2], 0
je 0x61c474
push 0
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x18]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x61c474
mov eax, 0x644738
mov edx, 0x61c5c8
call fcn.004059b8
call fcn.004109f4
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c49e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8