Function at 0x499bb8
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.00499df6
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 0x499c59
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.00499e30
add esp, 8
cmp edi, dword [ebp - 0x24]
jl 0x499c43
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.00499df6
add esp, 0xc
inc dword [ebp - 0xc]
mov edx, dword [ebp - 8]
movzx ecx, word [edx + 6]
cmp ecx, dword [ebp - 0xc]
jg 0x499c12
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 0x499cd6
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 0x499cd3
test byte [eax + 1], 0xf0
je 0x499cca
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 0x499cad
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jl 0x499c92
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x499d4c
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 0x499d15
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ecx + 0x10]
add ebx, esi
jmp 0x499d43
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
add ebx, esi
jmp 0x499d43
test byte [ebx + 3], 0x80
je 0x499d2e
mov edi, dword [ebx]
and edi, 0xffff
jmp 0x499d35
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 0x499d1e
add dword [ebp - 0x20], 0x14
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc], 0
jne 0x499cf1
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 0x499d8a
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x28]
add ebx, esi
test ebx, ebx
je 0x499d8a
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