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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc4
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x10], eax
call fcn.004b5d78
test al, al
jne 0x4b5de0
push 0x4b606c
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x4b5dd7
mov eax, 0x4b6084
call fcn.00430ee0
mov dword [esp + 4], ebx
jmp 0x4b605d
test ebx, ebx
je 0x4b605d
mov eax, ebx
mov edx, eax
add edx, 0x3c
mov edx, dword [edx]
add edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
cmp dword [eax], 0x4550
jne 0x4b605d
push 0x40
push 0x3000
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x4b605d
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [esp + 0x14]
mov eax, ebx
call fcn.00402e28
mov eax, dword [esp + 8]
add eax, 0x18
mov edx, dword [esp + 8]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
movzx esi, word [eax + 6]
dec esi
test esi, esi
jb 0x4b5eb9
inc esi
mov edx, 0x4b60dc
mov eax, dword [esp + 0xc]
call fcn.0040ad54
test eax, eax
jne 0x4b5e7b
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
add eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
call fcn.00402e28
mov eax, dword [esp + 0xc]
add eax, 0x28
mov dword [esp + 0xc], eax
dec esi
jne 0x4b5e61
cmp dword [esp + 0x10], 0
je 0x4b6038
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [esp + 0x18], eax
xor esi, esi
jmp 0x4b5f37
mov eax, 8
jmp 0x4b5f17
add edx, eax
mov bx, word [edx]
test bx, bx
je 0x4b5f14
movsx ecx, bx
mov edx, dword [esp + 0x18]
add ecx, dword [edx]
sub ecx, 0x3000
add ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov ecx, dword [esp + 8]
sub edx, dword [ecx + 0x34]
add edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [ecx], edx
add eax, 2
mov edx, dword [esp + 0x18]
mov ecx, edx
add ecx, 4
cmp eax, dword [ecx]
jb 0x4b5edc
mov edx, dword [esp + 0x18]
add edx, 4
mov edx, dword [edx]
add edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
add esi, eax
mov eax, dword [esp + 0x10]
cmp esi, dword [eax + 0x10]
jb 0x4b5ed5
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x4b6038
add eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x4b602b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov ebp, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
add eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov edi, eax
test edi, edi
jne 0x4b5fa1
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
je 0x4b605d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4b6017
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov eax, esi
and eax, 0x7fffffff
cmp esi, eax
je 0x4b5fcc
mov bl, 1
and esi, 0x7fffffff
test bl, bl
jne 0x4b5fec
add esi, dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x24]
add eax, 2
push eax
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x34], eax
jmp 0x4b5ff7
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [eax], edx
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x4b5fb1
mov eax, dword [esp + 0x1c]
add eax, 0x14
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
jne 0x4b5f5f
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x28]
mov esi, dword [esp + 0x14]
add ebx, esi
push 0
push 1
push esi
call ebx
test al, al
je 0x4b605d
mov eax, dword [esp]
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret