Function at 0x494748
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
sub esp, 0x820
push ebx
push ebp
push esi
push edi
xor eax, eax
mov word [esp + 0x30], ax
push 0x400
xor edi, edi
lea eax, [esp + 0x34]
push eax
mov ebp, edi
mov ebx, edi
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x30]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4947e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov ecx, ebp
mov dword [esp + 0x14], ebp
call fcn.004949d3
mov ebx, eax
push edi
lea eax, [esp + 0x30]
push eax
push ebp
push ebx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4947ce
cmp dword [esp + 0x2c], ebp
je 0x4947e1
mov ecx, ebx
call fcn.004949c3
mov ebx, edi
mov dword [esp + 0x10], ebx
mov ebp, edi
mov dword [esp + 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.004945b6
mov esi, dword [esp + 0x18]
push 0x40
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x50]
mov dword [esp + 0x2c], eax
add eax, 0x14
push 0x3000
add eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x49493f
push 0x40
mov edx, esi
mov ecx, edi
call fcn.0049497d
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x3c]
movzx eax, word [esi + 0x14]
add ecx, edi
push eax
mov edx, esi
mov dword [esp + 0x28], ecx
call fcn.0049497d
movzx ecx, word [esi + 0x14]
mov edx, dword [esp + 0x24]
movzx ebx, word [esi + 6]
lea eax, [esi + 0x18]
add ecx, eax
movzx eax, word [edx + 0x14]
lea esi, [edx + 0x18]
add esi, eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x4948c0
mov ebp, ecx
sub ebp, esi
mov edi, ebx
push 0x28
lea edx, [esi + ebp]
mov ecx, esi
call fcn.0049497d
add esi, 0x28
dec edi
jne 0x49487c
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ebx, ebx
je 0x4948c0
mov ebp, dword [esp + 0x18]
lea esi, [ecx + 0x14]
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, ebp
add ecx, edi
call fcn.0049497d
lea esi, [esi + 0x28]
dec ebx
jne 0x4948a5
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
add ebx, 0x18
push ebx
mov edx, edi
mov ecx, edi
call fcn.004946a9
add edi, dword [esp + 0x28]
push str.KERNEL32
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
lea eax, [edi + 0x14]
sub eax, esi
push ebp
lea ecx, [edi + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
call fcn.0049497d
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 0x60]
push esi
mov ecx, dword [eax + esi + 0x10]
mov eax, dword [eax + esi + 0x1c]
shl ecx, 2
sub eax, ecx
mov eax, dword [eax + esi + 4]
add eax, esi
call eax
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004949c3
mov ecx, ebx
call fcn.004949c3
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x820
ret