Function at 0x140001000
Capabilities:
Accept command line arguments
Create pipe
Create process on windows
Read file on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x10d0]
mov eax, 0x11d0
call fcn.140002030
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x10c0], rax
xorps xmm0, xmm0
mov qword [rbp + 0x70], 8
movups xmmword [rbp + 0x60], xmm0
movabs rax, 0x6578652e32524452
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x60], rax
xor eax, eax
mov dword [rbp - 0xc], eax
mov qword [rsp + 0x70], rax
mov byte [rbp + 0x68], 0
movups xmmword [rbp - 0x6c], xmm0
mov dword [rbp - 0x70], 0x68
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov r9, rax
movzx eax, byte [rax]
cmp al, 0x22
jne 0x1400010b4
movzx eax, byte [r9 + 1]
inc r9
test al, al
je 0x1400010cc
inc r9
cmp al, 0x22
je 0x1400010cc
movzx eax, byte [r9]
test al, al
jne 0x1400010a3
jmp 0x1400010cc
test al, al
je 0x1400010cc
cmp al, 0x20
je 0x1400010cc
cmp al, 9
je 0x1400010cc
movzx eax, byte [r9 + 1]
inc r9
test al, al
jne 0x1400010b8
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r9 + rdi], 0
jne 0x1400010d3
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
mov rax, rdx
sub rax, rcx
mov qword [rsp + 0x11f0], rbx
cmp rdi, rax
ja 0x140001128
cmp rdx, 0xf
lea rax, [rcx + rdi]
lea rbx, [rbp + 0x60]
mov qword [rbp + 0x70], rax
cmova rbx, qword [rbp + 0x60]
mov r8, rdi
add rbx, rcx
mov rdx, r9
mov rcx, rbx
call fcn.1400157e0
lea rax, [rbp + 0x60]
mov byte [rdi + rbx], 0
jmp 0x14000113c
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.1400017e0
cmp qword [rax + 0x18], 0xf
jbe 0x140001146
mov rax, qword [rax]
xor r15d, r15d
mov qword [rsp + 0x11f8], rsi
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rbp - 0x70]
mov rdx, rax
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov qword [rsp + 0x38], r15
lea edx, [r15 + 3]
mov dword [rsp + 0x30], r15d
lea r8d, [r15 + 7]
mov dword [rsp + 0x28], 0x1000
lea rcx, str..pipeRDR2Launcher_Pipe
mov r9d, 0xff
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rcx, qword [rsp + 0x60]
lea edx, [r15 + 0x64]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140001629
movzx ebx, byte [rsp + 0x50]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x54], r15d
mov r8d, 0x1000
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0xc0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000160e
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x14000160e
mov esi, r15d
lea rdi, [rbp + 0xc0]
nop dword [rax]
nop word [rax + rax]
movsx edx, byte [rdi]
lea rcx, str._02hhX
call fcn.140001d60
inc esi
lea rdi, [rdi + 1]
cmp esi, dword [rsp + 0x54]
jb 0x140001230
lea rcx, [0x140017368]
call fcn.140001d60
mov r8d, dword [rbp + 0xc0]
lea rdx, [rbp + 0xc4]
xorps xmm0, xmm0
mov qword [rbp + 0x50], r15
lea rcx, [rbp + 0x40]
mov qword [rbp + 0x58], r15
movups xmmword [rbp + 0x40], xmm0
call fcn.1400016d0
mov r8d, 5
mov qword [rbp + 0xb0], r15
cmp qword [rbp + 0x50], r8
lea rdx, [rbp + 0x40]
xorps xmm0, xmm0
mov qword [rbp + 0xb8], r15
cmovb r8, qword [rbp + 0x50]
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0x58], 0xf
movups xmmword [rbp + 0xa0], xmm0
cmova rdx, qword [rbp + 0x40]
call fcn.1400016d0
mov rdx, qword [rbp + 0xb8]
lea rax, [rbp + 0xa0]
mov rcx, qword [rbp + 0xa0]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rbp + 0xb0], 5
jne 0x1400012f8
cmp dword [rax], 0x54494e49
jne 0x1400012f8
cmp byte [rax + 4], 0x3a
jne 0x1400012f8
mov dil, 1
jmp 0x1400012fb
xor dil, dil
cmp rdx, 0xf
jbe 0x14000132e
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001329
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016aa
call fcn.140001f98
test dil, dil
je 0x1400015d3
mov rax, qword [rbp + 0x50]
xorps xmm0, xmm0
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], r15
movups xmmword [rbp + 0x80], xmm0
cmp rax, 5
jb 0x1400016c2
add rax, 0xfffffffffffffffb
lea rdx, [rbp + 0x40]
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x80]
cmp rax, r8
cmovb r8, rax
cmp qword [rbp + 0x58], 0xf
cmova rdx, qword [rbp + 0x40]
add rdx, 5
call fcn.1400016d0
mov eax, dword [0x140017380]
lea r9, [rbp + 0x80]
movsd xmm0, qword [str.TINI:launcher:]
lea r8, [rbp]
mov dword [rbp + 8], eax
lea rcx, [rbp + 0x20]
movzx eax, word [0x140017384]
movzx edx, bl
mov word [rbp + 0xc], ax
mov word [rbp + 0xe], r15w
mov qword [rbp + 0x10], 0xe
mov qword [rbp + 0x18], 0xf
movsd qword [rbp], xmm0
call fcn.140001970
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x140001415
mov rcx, qword [rbp]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001410
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016bc
call fcn.140001f98
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x140001456
mov rcx, qword [rbp + 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001451
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016bc
call fcn.140001f98
cmp qword [rbp + 0x38], 0xf
lea r9, [rbp + 0x20]
mov rdi, qword [rbp + 0x30]
xorps xmm0, xmm0
cmova r9, qword [rbp + 0x20]
mov qword [rbp + 0x10], 4
mov qword [rbp + 0x18], 0xf
movups xmmword [rbp], xmm0
mov dword [rbp], edi
mov byte [rbp + 4], r15b
cmp rdi, 0xb
ja 0x1400014ae
lea rax, [rdi + 4]
mov r8, rdi
mov rdx, r9
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 4]
call fcn.1400157e0
lea rax, [rbp]
mov byte [rbp + rdi + 4], r15b
jmp 0x1400014c2
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp]
call fcn.1400017e0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], r15b
mov rdx, qword [rbp + 0x38]
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp + 0x80], xmm1
cmp rdx, 0xf
jbe 0x14000152b
mov rcx, qword [rbp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000151a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016b6
call fcn.140001f98
movups xmm0, xmmword [rsp + 0x78]
movups xmm1, xmmword [rbp + 0x80]
mov rdx, qword [rbp + 0x18]
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm1
cmp rdx, 0xf
jbe 0x14000156e
mov rcx, qword [rbp]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001569
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016b6
call fcn.140001f98
cmp qword [rbp + 0x38], 0xf
lea rdx, [rbp + 0x20]
mov r8d, dword [rbp + 0x30]
lea r9, [rsp + 0x58]
cmova rdx, qword [rbp + 0x20]
mov rcx, r14
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x1400015d3
mov rcx, qword [rbp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015ce
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016bc
call fcn.140001f98
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x14000160e
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001609
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016aa
call fcn.140001f98
mov rcx, qword [rsp + 0x60]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400011e0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140001676
mov rcx, qword [rbp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001671
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016b0
call fcn.140001f98
mov rsi, qword [rsp + 0x11f8]
mov rbx, qword [rsp + 0x11f0]
mov rcx, qword [rbp + 0x10c0]
xor rcx, rsp
call fcn.140002090
mov rdi, qword [rsp + 0x1200]
add rsp, 0x11d0
pop r15
pop r14
pop rbp
ret
call fcn.1400068cc
int3
call fcn.1400068cc
int3
call fcn.1400068cc
int3
call fcn.1400068cc
int3
call fcn.140001d10
int3