Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor eax, eax
lea rdx, str.__c:_temppw.log
xor r14d, r14d
mov dword [rbp + 0x27], eax
xorps xmm0, xmm0
mov word [rbp + 0x2b], ax
lea rcx, [rbp - 9]
mov byte [rbp + 0x2d], al
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp - 0x11], r14d
mov dword [rbp - 0xd], r14d
mov qword [rbp - 0x49], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xorps xmm0, xmm0
mov dword [rbp - 0x41], 0x30
lea rax, [rbp - 9]
mov qword [rbp - 0x39], r14
lea r9, [rbp - 0x11]
mov qword [rbp - 0x31], rax
lea edx, [r14 + 0x17]
mov dword [rbp - 0x29], 0x40
lea r8d, [r14 + 0x40]
lea rcx, [rbp + 0x17]
movups xmmword [rbp + 7], xmm0
movdqu xmmword [rbp - 0x21], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
mov dword [rsp + 0x28], 0x80
lea rcx, str.c:windows_system32_ntdll.dll
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0xd]
mov qword [rsp + 0x20], r14
mov rdx, rax
mov r8d, edi
mov rcx, rsi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rdx, dword [r12 + 0x3c]
mov r9d, r14d
add rdx, r12
movzx ecx, word [rdx + 0x14]
lea r8, [rdx + 0x18]
movzx r10d, word [rdx + 6]
add r8, rcx
mov qword [rbp - 0x51], r8
mov r13, r8
test r10d, r10d
je 0x14000115f
lea r11, [0x1400032d8]
nop dword [rax]
mov rax, r14
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r11 + rax - 1]
jne 0x140001294
cmp rax, 7
jne 0x140001143
mov r13, r8
mov edi, dword [r13 + 0xc]
mov ebx, dword [r13 + 0x14]
mov r15d, dword [rdx + 0x88]
sub r15, rdi
add r15, rbx
add r15, r12
mov ecx, dword [r15 + 0x20]
mov eax, dword [r15 + 0x1c]
sub rcx, rdi
add rcx, rbx
sub rax, rdi
add rax, rbx
lea rsi, [rcx + r12]
cmp dword [r15 + 0x18], r14d
jbe 0x14000121e
sub rax, rcx
add rax, 4
mov qword [rbp - 0x59], rax
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [rsi]
mov eax, edi
sub rdx, rax
mov ecx, ebx
lea rax, [r12 + rdx]
add rcx, rax
lea rdx, str.NtCreateFile
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000120e
mov rax, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x51]
mov edx, dword [rax + rsi]
mov eax, dword [rcx + 0xc]
mov ecx, dword [rcx + 0x14]
sub rdx, rax
add rdx, r12
add rdx, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rbp + 0x17], xmm0
mov eax, dword [rdx + 0x10]
mov dword [rbp + 0x27], eax
movzx eax, word [rdx + 0x14]
mov word [rbp + 0x2b], ax
movzx eax, byte [rdx + 0x16]
mov byte [rbp + 0x2d], al
mov edi, dword [r13 + 0xc]
mov ebx, dword [r13 + 0x14]
mov eax, dword [r15 + 0x18]
inc r14
add rsi, 4
cmp r14, rax
jb 0x1400011b0
xor ecx, ecx
lea rax, [rbp + 0x17]
mov dword [rsp + 0x50], ecx
lea r9, [rbp + 7]
mov qword [rsp + 0x48], rcx
lea r8, [rbp - 0x41]
mov dword [rsp + 0x40], 0x20
mov edx, 0x120116
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x49]
call rax
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400012d0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
add r8, 0x28
inc r9d
cmp r9d, r10d
jl 0x140001140
jmp 0x14000115f