Function at 0x46ecf4
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
xor ecx, ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46f2eb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov dl, 1
mov eax, dword [0x46493c]
call fcn.00474cb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
xor eax, eax
push ebp
push 0x46f2c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x419c3c]
call fcn.00403d58
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0041e5fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.00407da8
mov eax, dword [ebp - 0x14]
add eax, 4
add eax, 0x14
mov edx, dword [ebp - 0x18]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 6]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jb 0x46ee55
inc eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
shl eax, 3
lea eax, [eax + eax*4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
call fcn.00407dbc
push ebp
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0046ecc8
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x14]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
call fcn.00407da8
inc dword [ebp - 0x24]
dec dword [ebp - 0xa0]
jne 0x46edf2
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xa0]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
jmp 0x46ef0d
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
add eax, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
dec eax
test eax, eax
jb 0x46ef07
inc eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x4c]
mov ax, word [eax]
mov word [ebp - 0x4e], ax
movzx eax, word [ebp - 0x4e]
shr eax, 0xc
cmp eax, 0xa
je 0x46eed6
movzx eax, word [ebp - 0x4e]
shr eax, 0xc
cmp eax, 3
jne 0x46eef3
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x4c]
mov dx, word [edx]
and dx, 0xfff
movzx edx, dx
add eax, edx
mov edx, dword [ebp - 0x38]
add dword [eax], edx
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
inc dword [ebp - 0x54]
dec dword [ebp - 0xa0]
jne 0x46eeb4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x3c]
jb 0x46ee87
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov dl, 1
mov eax, dword [0x419344]
call fcn.00403d58
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
jmp 0x46f04d
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x46ef74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x64]
call fcn.0041b844
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 4], 0
jne 0x46ef8e
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x68], eax
jmp 0x46f038
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x68], eax
jmp 0x46f038
mov eax, dword [ebp - 0x68]
test byte [eax + 3], 0x80
je 0x46efb6
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
and eax, 0xffff
mov dword [ebp - 0x6c], eax
jmp 0x46effd
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x6c]
call fcn.00404f60
mov eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0x60]
call fcn.00404f60
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
pop ecx
call fcn.00474d60
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x46f01d
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
mov dword [eax], edx
jmp 0x46f02f
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0x68]
mov dword [edx], eax
mov eax, dword [ebp - 0x68]
add eax, 4
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
cmp dword [eax], 0
jne 0x46ef9e
mov eax, dword [ebp - 0x5c]
add eax, 0x14
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0xc], 0
jne 0x46ef48
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xc0]
mov dword [ebp - 0x7c], edx
mov edx, dword [eax + 0xc4]
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x78], 0
jbe 0x46f27f
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x80]
sub eax, dword [edx]
mov edx, dword [ebp - 0x80]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x84], eax
call fcn.004658bc
mov dword [ebp - 0x88], eax
push 4
mov eax, dword [ebp - 0x88]
mov edx, dword [eax + 0x2c]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0046f2f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x84]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, 4
call fcn.00407da8
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x84]
call fcn.00407da8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x88]
sub eax, dword [edx + 0x2c]
shr eax, 2
mov edx, dword [ebp - 0x80]
mov edx, dword [edx + 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x8c], eax
push 0x40
mov ecx, 0x10000
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0046f2f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov byte [eax], 0xb8
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
inc eax
mov ecx, 4
call fcn.00407da8
mov eax, dword [ebp - 0x90]
add eax, 5
mov byte [eax], 0xc3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x90], eax
jmp 0x46f26a
xor eax, eax
mov dword [ebp - 0x94], eax
jmp 0x46f1ec
mov eax, dword [ebp - 0x90]
mov al, byte [eax]
mov edx, dword [ebp - 0x94]
cmp al, byte [edx + 0x49c918]
je 0x46f1e0
cmp dword [ebp - 0x94], 0
jne 0x46f1d6
inc dword [ebp - 0x90]
jmp 0x46f1ec
xor eax, eax
mov dword [ebp - 0x94], eax
jmp 0x46f1ec
inc dword [ebp - 0x94]
inc dword [ebp - 0x90]
cmp dword [ebp - 0x94], 6
jge 0x46f206
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x90]
ja 0x46f1af
cmp dword [ebp - 0x94], 6
jne 0x46f26a
mov eax, dword [ebp - 0x90]
sub eax, 6
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x98]
add edx, 5
sub eax, edx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x98]
mov byte [eax], 0xe8
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
inc eax
mov ecx, 4
call fcn.00407da8
mov eax, dword [ebp - 0x98]
add eax, 5
mov cl, 0x90
mov edx, 1
call fcn.00407db0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x90]
ja 0x46f1a5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x46f2a7
push 0
push 1
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x74]
push 0
push 2
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x74]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f2cd
mov eax, dword [ebp - 0xc]
call fcn.00403d88
ret