Function at 0x61d818
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 0x61da95
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x58]
mov ecx, 0x40
mov edx, ebx
call fcn.00409128
cmp word [ebp - 0x58], 0x5a4d
je 0x61d877
mov eax, 0x646740
mov edx, 0x61dac8
call fcn.00405874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61dab4
mov eax, dword [ebp - 0x1c]
cdq
push edx
push eax
mov eax, ebx
call fcn.0061d04c
mov edx, eax
lea eax, [ebp - 0x150]
mov ecx, 0xf8
call fcn.00409128
cmp dword [ebp - 0x150], 0x4550
je 0x61d8be
mov eax, 0x646740
mov edx, 0x61db00
call fcn.00405874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61dab4
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 0x61d8f9
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 0x61d91b
mov eax, 0x646740
mov edx, 0x61db3c
call fcn.00405874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61dab4
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.00409128
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.0061d164
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 0x61d9e9
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0061d270
mov eax, dword [ebp - 0xc]
push eax
call fcn.0061d368
test al, al
jne 0x61da0a
mov eax, 0x646740
mov edx, 0x61db6c
call fcn.00405b04
call fcn.00410bbc
mov al, byte [ebp - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0061d6e0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x61da8b
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 0x61da55
mov eax, 0x646740
mov edx, 0x61dba4
call fcn.00405874
call fcn.00410bbc
cmp byte [ebp - 2], 0
je 0x61da84
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 0x61da84
mov eax, 0x646740
mov edx, 0x61dbd8
call fcn.00405874
call fcn.00410bbc
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 0x61daae
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