Function at 0x100016c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xorps xmm0, xmm0
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 4
push 0xc
lea ecx, [ebp - 0x44]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 6
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push str.c:windows_system32_ntdll.dll
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 8
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xa
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xc
mov edx, dword [esi + 0x3c]
add edx, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
cmp bx, word [edx + 6]
jae 0x100018bd
movzx eax, bx
lea ecx, [eax + eax*4]
movzx eax, word [edx + 0x14]
add eax, edx
lea ecx, [ecx + 3]
lea edi, [eax + ecx*8]
mov dword [ebp - 0x18], edi
mov ecx, str..text
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001818
test dl, dl
je 0x10001814
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001818
add eax, 2
add ecx, 2
test dl, dl
jne 0x100017f8
xor eax, eax
jmp 0x1000181d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100018a7
add esi, dword [edi + 0xc]
mov edi, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x14]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
test edi, edi
je 0x10001887
test esi, esi
je 0x10001877
push edi
test eax, eax
je 0x1000186c
push eax
push esi
call fcn.10004ff0
add esp, 0xc
jmp 0x10001887
push 0
push esi
call fcn.100035d0
add esp, 0xc
call fcn.10005fd4
mov dword [eax], 0x16
call fcn.10005ec7
mov dword [ebp - 4], 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x20]
inc ebx
mov edx, dword [ebp - 0x24]
jmp 0x100017d2
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret