Function at 0x1400019d0
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 + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
cmp ecx, 2
je 0x140001a4b
mov edx, 0x5c
mov rcx, qword [rbx]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rcx, qword [rbx]
test rax, rax
je 0x140001a2e
mov edx, 0x5c
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
lea rcx, [rax + 1]
mov rdx, rcx
lea rcx, str.Usage:__s__Exe_Path_
call fcn.140001970
mov rcx, qword [rbx + 8]
call fcn.140001970
jmp 0x140001d77
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r14 + 3]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.14000233c
mov r13, rax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.1400016e0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140001230
nop
lea rbp, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rbp, qword [rsp + 0x48]
movsxd rax, dword [rbp + 0x3c]
mov ebx, dword [rax + rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
movsxd rdi, dword [rbp + 0x3c]
movzx ebx, word [rdi + rbp + 6]
mov r8d, dword [rdi + rbp + 0x54]
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
test ebx, ebx
je 0x140001b5e
lea rbx, [rbp + 0x118]
add rbx, rdi
mov edi, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, rbp
mov ecx, dword [rbx - 4]
add rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rbx, [rbx + 0x28]
sub rdi, 1
jne 0x140001b40
movsxd r11, dword [rsi + 0x3c]
mov eax, dword [r11 + rsi + 0xb0]
cmp rax, qword [r11 + rsi + 0x30]
je 0x140001bf6
lea r9, [rax + rsi]
mov edx, dword [r9 + 4]
mov ecx, dword [r9]
add ecx, edx
je 0x140001bf6
mov ebx, 0xf000
mov edi, 0xa000
nop
lea r8, [r9 + 8]
lea rax, [rdx - 8]
shr rax, 1
movzx ecx, ax
test ecx, ecx
je 0x140001be4
mov r10d, ecx
nop word [rax + rax]
movzx edx, word [r8]
movzx eax, dx
and ax, bx
cmp ax, di
jne 0x140001bda
and edx, 0xfff
mov ecx, dword [r9]
lea rax, [rsi + rdx]
add rcx, rax
mov rax, rsi
sub rax, qword [r11 + rsi + 0x30]
add qword [rcx], rax
add r8, 2
sub r10, 1
jne 0x140001bb0
mov eax, dword [r9 + 4]
add r9, rax
mov edx, dword [r9 + 4]
mov ecx, dword [r9]
add ecx, edx
jne 0x140001b90
movsxd rax, dword [rsi + 0x3c]
mov r15d, dword [rax + rsi + 0x90]
add r15, rsi
cmp dword [r15 + 0x10], 0
je 0x140001cc2
movabs rdi, 0x8000000080000000
nop word [rax + rax]
mov ebp, dword [r15 + 0xc]
add rbp, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
jne 0x140001c49
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x140001cac
mov r14d, dword [r15]
add r14, rsi
mov ebx, dword [r15 + 0x10]
add rbx, rsi
cmp qword [rbx], 0
je 0x140001cac
nop dword [rax]
mov rax, qword [r14]
test rdi, rax
jne 0x140001c7a
lea rdx, [rsi + 2]
add rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140001c9b
movzx edi, ax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movabs rdi, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
add r14, 8
cmp qword [rbx], 0
jne 0x140001c60
mov eax, 0x14
add r15, rax
cmp dword [r15 + 0x10], 0
jne 0x140001c20
xor r14d, r14d
movsxd rax, dword [rsi + 0x3c]
mov qword [rax + rsi + 0x30], rsi
mov rcx, r13
call fcn.140002308
movsxd rax, dword [rsi + 0x3c]
mov ecx, dword [rax + rsi + 0x28]
add rcx, rsi
call rcx
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140001d21
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002308
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x140001d77
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002308
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140001dc0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret