Function at 0x140002090
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rbx, rdx
mov rsi, rcx
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov r14d, 0xf
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x50], r13b
mov dword [rbp - 0x50], 0x18
mov dword [rbp - 0x40], 1
mov qword [rbp - 0x48], r13
xor r9d, r9d
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140002181
mov qword [rsi], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r14
mov byte [rsi], al
lea r8d, [r13 + 0x11]
lea rdx, str.CreatePipe_failed
mov rcx, rsi
call fcn.140003f00
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140002163
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000215e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000252e
call fcn.140006cf0
mov rax, rsi
mov rbx, qword [rsp + 0x208]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
mov dword [rbp + 0x24], eax
mov dword [rbp - 0x30], 0x68
mov rax, qword [rbp - 0x70]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
psrldq xmm0, 8
movd eax, xmm0
bts eax, 8
mov dword [rbp + 0xc], eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
mov r15d, dword [rbx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400021de
mov r8, qword [rbx]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9d, [r15 + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r12, eax
mov eax, 2
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140006d34
mov rdi, rax
cmp qword [rbx + 0x18], 0x10
jb 0x140002221
mov rbx, qword [rbx]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
lea r9d, [r15 + 1]
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x140002260
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140003d60
mov rcx, rdi
call fcn.140006cf0
nop
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rbp - 0x70]
test eax, eax
jne 0x140002363
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r14
mov byte [rsi], 0
mov r8d, 0x14
lea rdx, str.CreateProcess_failed
mov rcx, rsi
call fcn.140003f00
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14000234c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002347
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002528
call fcn.140006cf0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
jmp 0x140002126
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x110]
mov r8d, 0x7f
lea rdx, [rbp + 0x40]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002456
mov rsi, 0xffffffffffffffff
nop dword [rax + rax]
mov eax, dword [rbp + 0x110]
test eax, eax
je 0x14000244f
mov byte [rbp + rax + 0x40], 0
lea rax, [rbp + 0x40]
mov rbx, rsi
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400023c0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x14000240e
lea rax, [rbx + rcx]
mov qword [rsp + 0x60], rax
lea rdi, [rsp + 0x50]
cmp rdx, 0x10
cmovae rdi, qword [rsp + 0x50]
add rdi, rcx
mov r8, rbx
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.140008b80
mov byte [rdi + rbx], 0
jmp 0x140002424
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400044b0
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x110]
mov r8d, 0x7f
lea rdx, [rbp + 0x40]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400023a0
mov rsi, qword [rbp + 0x100]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400024d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002528
call fcn.140006cf0
mov r14, qword [rsp + 0x68]
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
cmp r14, 0x10
jb 0x140002163
lea rdx, [r14 + 1]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000215e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000252e
jmp 0x14000215e
call fcn.14000d2bc
nop
call fcn.14000d2bc
int3