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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.004e5c70
test al, al
jne 0x4e5cc7
push 0x4e5fa4
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
jmp 0x4e5f98
mov eax, dword [0x520088]
call fcn.00433f3c
xor ecx, ecx
push ebp
push 0x4e5f91
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [0x520094], 0
jle 0x4e5d1d
cmp dword [0x520090], 0
je 0x4e5d1d
cmp dword [0x52008c], 0
je 0x4e5d1d
inc dword [0x520094]
mov eax, dword [0x520090]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [0x52008c]
mov dword [eax], edx
call fcn.00404b68
jmp 0x4e5f98
test edi, edi
je 0x4e5f79
mov eax, edi
mov edx, eax
add edx, 0x3c
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x4e5f79
push 0x40
push 0x3000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e5f79
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.0040319c
mov eax, dword [ebp - 0xc]
lea esi, [eax + 0x18]
add esi, dword [ebp - 0x14]
sub esi, edi
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
add esi, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jb 0x4e5dcb
inc eax
mov dword [ebp - 0x3c], eax
mov edx, 0x4e5fb8
mov eax, esi
call fcn.0040add8
test eax, eax
jne 0x4e5dab
mov dword [ebp - 0x10], esi
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
add eax, edi
mov ecx, dword [esi + 0x10]
push ebx
pop edx
call fcn.0040319c
mov dword [esi + 8], ebx
add esi, 0x28
dec dword [ebp - 0x3c]
jne 0x4e5d98
cmp dword [ebp - 0x10], 0
je 0x4e5f34
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x14]
add ebx, edi
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x4e5e4a
mov eax, 8
jmp 0x4e5e33
mov edx, ebx
add edx, eax
movzx edx, word [edx]
movzx esi, dx
shr esi, 0xc
and si, 0xf
and dx, 0xfff
mov word [ebp - 0x38], dx
sub si, 3
jne 0x4e5e30
movzx edx, word [ebp - 0x38]
add edx, dword [ebx]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x28]
mov edx, dword [edx]
mov ecx, dword [ebp - 0xc]
sub edx, dword [ecx + 0x34]
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], edx
add eax, 2
mov edx, ebx
add edx, 4
cmp eax, dword [edx]
jb 0x4e5deb
mov edx, ebx
add edx, 4
mov edx, dword [edx]
add edx, ebx
mov ebx, edx
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp - 0x18]
ja 0x4e5de4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x80], 0
je 0x4e5f34
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x4e5f28
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 0x10]
add edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4e5ebc
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4e5ebc
call fcn.00404b68
jmp 0x4e5f98
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
add esi, dword [ebp - 0x14]
jmp 0x4e5f1a
mov byte [ebp - 0x35], 0
mov ebx, dword [esi]
mov eax, ebx
and eax, 0x7fffffff
cmp ebx, eax
je 0x4e5ee1
mov byte [ebp - 0x35], 1
and ebx, 0x7fffffff
cmp byte [ebp - 0x35], 0
jne 0x4e5f02
add ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x20]
add eax, 2
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x34], eax
jmp 0x4e5f0f
push ebx
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
add edi, 4
add esi, 4
cmp dword [esi], 0
jne 0x4e5ec6
mov eax, dword [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jne 0x4e5e79
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, dword [ebp - 0x14]
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
call ebx
test al, al
jne 0x4e5f52
call fcn.00404b68
jmp 0x4e5f98
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [0x520094], 1
mov eax, dword [ebp - 8]
mov dword [0x520090], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x52008c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5f98
mov eax, dword [0x520088]
call fcn.00433f44
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret