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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor r14d, r14d
lea rcx, str.C:WindowsSystem32kernel32.dll
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [r14 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], r14d
mov rdx, rax
mov qword [rsp + 0x20], r14
mov r8d, ebx
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r15, dword [rbp + 0x3c]
lea r9d, [r14 + 0x40]
add r15, rbp
mov r8d, 0x3000
mov qword [rsp + 0x50], r15
mov edx, dword [r15 + 0x50]
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1400010f5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400012c0
mov rcx, rax
lea rdx, [0x140001480]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8d, dword [r15 + 0x54]
mov r12, rsi
sub r12, qword [r15 + 0x30]
mov rdx, rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r15 + 0x14]
mov rdi, r14
add rbx, 0x2c
cmp r14w, word [r15 + 6]
jae 0x140001146
add rbx, r15
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, rbp
mov r8d, dword [rbx - 4]
add rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [r15 + 6]
lea rbx, [rbx + 0x28]
inc rdi
cmp rdi, rax
jb 0x140001121
mov rax, qword [r15 + 0xb0]
mov r13d, eax
add r13, rsi
mov qword [rsp + 0x48], rax
shr rax, 0x20
mov qword [rsp + 0x40], r13
test eax, eax
je 0x140001204
mov ecx, 0x1000
nop
mov r15d, r14d
add r14d, 8
add r15, r13
mov edi, r14d
add rdi, r13
mov eax, dword [r15 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x1400011f4
mov ebp, eax
lea r14d, [r14 + rax*2]
xor r13d, r13d
movzx eax, word [rdi]
cmp ax, cx
jb 0x1400011e5
and eax, 0xfff
mov qword [rsp + 0x60], r13
add eax, dword [r15]
mov ebx, eax
add rbx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], r13
mov rcx, rax
lea r8, [rsp + 0x60]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x60]
lea rcx, [rax + r12]
mov qword [rbx], rcx
mov ecx, 0x1000
add rdi, 2
sub rbp, 1
jne 0x140001198
mov r13, qword [rsp + 0x40]
cmp r14d, dword [rsp + 0x4c]
jb 0x140001170
mov r15, qword [rsp + 0x50]
mov r14d, dword [r15 + 0x90]
add r14, 0xc
add r14, rsi
mov eax, dword [r14]
test eax, eax
je 0x140001274
nop dword [rax]
mov ecx, eax
add rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140001268
mov ebx, dword [r14 + 4]
add rbx, rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001268
jns 0x140001249
movzx edx, cx
jmp 0x140001250
lea rdx, [rsi + 2]
add rdx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
add rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140001242
mov eax, dword [r14 + 0x14]
add r14, 0x14
test eax, eax
jne 0x140001220
mov eax, dword [r15 + 0x28]
xor r8d, r8d
add rax, rsi
mov rcx, rsi
lea edx, [r8 + 1]
call rax
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001550
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret