Function at 0x47ded8
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, 0xffffffbc
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.0047deb4
test al, al
jne 0x47df0c
push 0x47e1c8
call sub.kernel32.dll_LoadLibraryA
mov dword [esp + 4], eax
jmp 0x47e1bc
test ebx, ebx
je 0x47e1bc
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 0x47e1bc
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 0x47e1bc
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [esp + 0x14]
mov eax, ebx
call fcn.00402c70
mov eax, dword [esp + 8]
add eax, 0x18
add eax, dword [esp + 0x14]
sub eax, ebx
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 0x47dff6
inc esi
mov edx, 0x47e1d8
mov eax, dword [esp + 0xc]
call fcn.00408ef0
test eax, eax
jne 0x47dfad
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 + 0x40], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
call fcn.00402c70
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [eax + 8], edx
mov eax, dword [esp + 0xc]
add eax, 0x28
mov dword [esp + 0xc], eax
dec esi
jne 0x47df93
cmp dword [esp + 0x10], 0
je 0x47e197
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x47e08e
mov eax, 8
jmp 0x47e06c
add esi, eax
mov dx, word [esi]
movzx ecx, dx
shr ecx, 0xc
and cx, 0xf
mov edi, edx
and di, 0xfff
sub cx, 3
jne 0x47e069
movzx edx, di
mov ecx, dword [esp + 0x18]
add edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
add edx, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x30]
mov edx, dword [edx]
mov ecx, dword [esp + 8]
sub edx, dword [ecx + 0x34]
add edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword [ecx], edx
add eax, 2
mov esi, dword [esp + 0x18]
mov edx, esi
add edx, 4
cmp eax, dword [edx]
jb 0x47e01d
mov edx, dword [esp + 0x18]
add edx, 4
mov edx, dword [edx]
add edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
cmp eax, dword [esp + 0x1c]
ja 0x47e016
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x47e197
add eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x47e18a
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov ebp, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
add eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov edi, eax
test edi, edi
jne 0x47e100
mov eax, dword [esp + 0x34]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
je 0x47e1bc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
add eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x47e176
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov eax, esi
and eax, 0x7fffffff
cmp esi, eax
je 0x47e12b
mov bl, 1
and esi, 0x7fffffff
test bl, bl
jne 0x47e14b
add esi, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
add eax, 2
push eax
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x3c], eax
jmp 0x47e156
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
jne 0x47e110
mov eax, dword [esp + 0x20]
add eax, 0x14
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x47e0be
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 0x47e1bc
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, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret