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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x18], eax
call fcn.0045fda4
test al, al
jne 0x45fe1f
push 0x4600b8
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x45fe14
mov eax, 0x4600d0
call fcn.00430abc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
jmp 0x4600b0
cmp dword [ebp - 4], 0
je 0x4600b0
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x4600b0
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4600b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00403040
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov edx, dword [ebp - 0x10]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jb 0x45fef3
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x28], 0
mov edx, 0x460128
mov eax, dword [ebp - 0x14]
call fcn.00409060
test eax, eax
jne 0x45feb9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x5c]
call fcn.00403040
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x28]
dec dword [ebp - 0x60]
jne 0x45fea2
cmp dword [ebp - 0x18], 0
je 0x460087
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x45ff7c
mov dword [ebp - 0x2c], 8
jmp 0x45ff5b
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x45ff57
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
movsx eax, word [eax]
mov edx, dword [ebp - 0x24]
add eax, dword [edx]
sub eax, 0x3000
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
sub eax, dword [edx + 0x34]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x24]
add eax, 4
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
ja 0x45ff19
mov eax, dword [ebp - 0x24]
add eax, 4
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp - 0x28]
ja 0x45ff10
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x80], 0
je 0x460087
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
jmp 0x46007b
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x45ffeb
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4600b0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
jmp 0x46006a
mov byte [ebp - 0x55], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
and eax, 0x7fffffff
cmp eax, dword [ebp - 0x28]
je 0x46001c
mov byte [ebp - 0x55], 1
and dword [ebp - 0x28], 0x7fffffff
cmp byte [ebp - 0x55], 0
jne 0x460040
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 2
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x54], eax
jmp 0x460050
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
mov dword [eax], edx
mov eax, dword [ebp - 0x50]
add eax, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x45fff8
mov eax, dword [ebp - 0x30]
add eax, 0x14
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x45ffab
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
push 0
push 1
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x3c]
test al, al
je 0x4600b0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret