Function at 0x1400022d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov r15d, edx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
lea rdx, [0x140015760]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov r14, rax
test rax, rax
jne 0x14000232c
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
mov ecx, edx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
mov r8, r14
mov edx, 0x80
lea rcx, [rbp + 0xf0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
mov rsi, 0xffffffffffffffff
test rax, rax
je 0x1400023cc
nop dword [rax]
lea rcx, [rbp + 0xf0]
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140002370
mov rcx, rsi
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], r12b
jne 0x140002380
inc eax
add ecx, eax
movsxd rbx, ecx
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdi, rax
lea r8, [rbp + 0xf0]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8, r14
mov edx, 0x80
lea rcx, [rbp + 0xf0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140002360
mov rdx, rdi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005120
mov rcx, rax
lea rdx, [0x1400052f0]
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 rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov r14d, eax
test ebx, ebx
je 0x140002722
mov edx, eax
lea rcx, str._nProcess_returned__d_n
call fcn.140001010
mov r9d, r15d
mov r8d, dword [0x14001ca98]
lea rdx, str._commandstatus__d__d_
lea rcx, [rbp + 0x170]
call fcn.140005390
mov rcx, rsi
nop dword [rax + rax]
inc rcx
cmp byte [rdi + rcx], r12b
jne 0x140002440
add rcx, 0x400
cmovb rcx, rsi
mov edx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
mov rdx, rsi
inc rdx
cmp byte [rdi + rdx], r12b
jne 0x140002465
add rdx, 0x400
mov r9d, r14d
lea r8, str._output_:______return_code_:__d
mov rcx, rbx
call fcn.140001070
mov qword [rbp - 0x68], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.1400041b0
nop
mov dword [rsp + 0x40], 1
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0xe0], r12
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400024db
mov rax, qword [rcx]
lea rdx, [rbp + 0xa8]
call qword [rax]
mov qword [rbp + 0xe0], rax
nop dword [rax + rax]
lea rsi, [rsi + 1]
cmp byte [rbx + rsi], 0
jne 0x1400024e0
mov qword [rsp + 0x50], rbx
lea rax, [rsi + rbx]
mov qword [rsp + 0x58], rax
lea r8, [rbp + 0xa8]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140009d00
nop
lea r8, [rbp + 0x98]
mov rcx, rax
call fcn.140006be0
nop
lea rcx, [rbp - 0x18]
call fcn.140006a40
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140002544
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x28], r12
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140002562
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x68], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400048a0
mov byte [rsp + 0x30], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0xa8], xmm0
mov ecx, 0x20
call fcn.140012ce0
mov rbx, rax
lea rax, [rbp + 0x90]
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.140003350
nop
mov qword [rsp + 0x38], rbx
lea rdx, str.output
lea rcx, [rbp + 0x98]
call fcn.140005500
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400048a0
nop
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x98]
call fcn.140002fe0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000262e
mov rax, qword [rax]
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005120
mov rcx, rax
lea rdx, [0x1400052f0]
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]
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x140002692
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000268d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000268d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012d1c
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x98]
call fcn.140002fe0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400026b0
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x1400156e0]
lea rcx, [rbp + 0x170]
call fcn.140001f90
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x14000270c
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002706
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002706
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012d1c
nop
movzx edx, byte [rbp + 0x98]
lea rcx, [rbp + 0xa0]
call fcn.1400048a0
nop
jmp 0x14000272e
lea rcx, str.Error:_Failed_to_read_the_pipe_to_the_end._n
call fcn.140001010
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140012cc0
lea r11, [rsp + 0xa80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret