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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x3c]
add dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x40
push 0x1000
mov edx, dword [ebp - 8]
push dword [edx + 0x50]
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
push dword [ebp + 8]
push esi
call fcn.004a6836
add esp, 0xc
mov edx, dword [ebp - 8]
movzx ecx, word [edx + 0x14]
add ecx, 0x18
add dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4a6699
mov ebx, dword [ebp - 0xc]
shl ebx, 3
lea ebx, [ebx + ebx*4]
add ebx, dword [ebp - 4]
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov edx, dword [ebx + 0xc]
add edx, esi
mov dword [ebp - 0x28], edx
push edi
push dword [ebp - 0x28]
call fcn.004a6870
add esp, 8
cmp edi, dword [ebp - 0x24]
jl 0x4a6683
mov edi, dword [ebp - 0x24]
push edi
mov eax, dword [ebx + 0x14]
add eax, dword [ebp + 8]
push eax
push dword [ebp - 0x28]
call fcn.004a6836
add esp, 0xc
inc dword [ebp - 0xc]
mov edx, dword [ebp - 8]
movzx ecx, word [edx + 6]
cmp ecx, dword [ebp - 0xc]
jg 0x4a6652
mov eax, dword [ebp - 8]
mov edx, esi
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xa4]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xa0]
add ecx, esi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x4a6716
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x1c]
add eax, 8
xor edx, edx
cmp edx, dword [ebp - 0x2c]
jge 0x4a6713
test byte [eax + 1], 0xf0
je 0x4a670a
movzx ecx, word [eax]
and ecx, 0xfff
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
lea ebx, [esi + ebx]
mov edi, dword [ebp - 0x10]
add dword [ebx + ecx], edi
add eax, 2
inc edx
cmp edx, dword [ebp - 0x2c]
jl 0x4a66ed
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jl 0x4a66d2
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x4a678c
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
add eax, esi
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 4], 0
jne 0x4a6755
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ecx + 0x10]
add ebx, esi
jmp 0x4a6783
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
add ebx, esi
jmp 0x4a6783
test byte [ebx + 3], 0x80
je 0x4a676e
mov edi, dword [ebx]
and edi, 0xffff
jmp 0x4a6775
mov edi, dword [ebx]
add edi, esi
add edi, 2
push edi
push dword [ebp - 0x30]
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx], eax
add ebx, 4
cmp dword [ebx], 0
jne 0x4a675e
add dword [ebp - 0x20], 0x14
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc], 0
jne 0x4a6731
mov edx, dword [ebp - 8]
push dword [edx + 0x50]
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x28], 0
je 0x4a67ca
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x28]
add ebx, esi
test ebx, ebx
je 0x4a67ca
push 0
push 1
push esi
call ebx
push 0
push 2
push esi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret