Function at 0x1400021f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
movaps xmmword [rsp + 0x520], xmm6
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r15, r8
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov r14, qword [0x14000a950]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
mov ecx, 0x30
call fcn.140004c90
mov qword [rbp - 0x18], rax
movdqa xmm0, xmmword [0x140006ab0]
movdqu xmmword [rbp - 8], xmm0
movups xmm0, xmmword [str.Writing_the_command_to_powershell]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140006810]
movups xmmword [rax + 0x10], xmm1
movzx ecx, byte [0x140006820]
mov byte [rax + 0x20], cl
mov byte [rax + 0x21], sil
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov ecx, 0x20
call fcn.140004c90
mov rdx, rax
mov qword [rbp - 0x60], rax
movdqa xmm0, xmmword [0x140006aa0]
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [str.Got_the_std_out_from_powershell]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140006838]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x140006840]
mov dword [rax + 0x18], ecx
movzx eax, word [0x140006844]
mov word [rdx + 0x1c], ax
movzx eax, byte [0x140006846]
mov byte [rdx + 0x1e], al
mov byte [rdx + 0x1f], sil
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov ecx, 0x30
call fcn.140004c90
mov rdx, rax
mov qword [rbp - 0x40], rax
movdqa xmm0, xmmword [0x140006ac0]
movdqu xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [str.Read_powershell_output_successfully]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140006858]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x140006868]
mov word [rax + 0x20], cx
movzx eax, byte [0x14000686a]
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], sil
lea rcx, [rbp - 0x18]
call fcn.140002c70
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000235a
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x68]
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002523
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.failed_to_wite_to_powershells_stdin._Error
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004170
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004350]
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]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.failed_to_wite_to_powershells_stdin.Ex_rror
add rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140003d60
nop
lea rcx, [rsp + 0x58]
call fcn.140002c70
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140002416
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002411
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002411
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqa xmm6, xmmword [0x140006a50]
movdqu xmmword [rsp + 0x68], xmm6
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140002467
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002462
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002462
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqu xmmword [rbp - 0x30], xmm6
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x1400024ae
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqu xmmword [rbp - 0x50], xmm6
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x1400024f5
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400049d0
mov rbx, qword [rsp + 0x578]
movaps xmm6, xmmword [rsp + 0x520]
add rsp, 0x530
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp - 0x60]
call fcn.140002c70
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x68]
mov r8d, 1
lea rdx, [0x1400068cc]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
mov r8d, 0x3ff
lea rdx, [rbp + 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
movdqa xmm6, xmmword [0x140006a50]
test eax, eax
jne 0x1400027aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000261f
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov ecx, 0x20
call fcn.140004c90
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [0x140006a70]
movdqu xmmword [rsp + 0x68], xmm0
movups xmm0, xmmword [str.Error_Broken_Pipe]
movups xmmword [rax], xmm0
movzx ecx, byte [0x1400068e0]
mov byte [rax + 0x10], cl
mov byte [rax + 0x11], 0
lea rcx, [rsp + 0x58]
call fcn.140002c70
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140002b73
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdi, str.Failed_to_read_from_powershell_stdout._Error
mov rdx, rdi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004170
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004350]
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]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
add r14, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140002680
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x140002c5e
cmp rbx, 0xf
ja 0x1400026c9
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], 0xf
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x78], 0
jmp 0x140002759
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x140002702
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140004c90
test rax, rax
je 0x1400027a3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000273a
mov rdi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
test rcx, rcx
je 0x14000273a
cmp rcx, 0x1000
jb 0x140002732
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002c4c
jmp 0x1400026e3
call fcn.140004c90
mov rsi, rax
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rdi
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rcx, [rsp + 0x78]
call fcn.140002c70
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140002b73
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rbp - 0x40]
call fcn.140002c70
mov r8d, dword [rsp + 0x50]
test r8d, r8d
jne 0x140002857
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x140006a60]
movdqu xmmword [rbp - 0x78], xmm1
movsd xmm0, qword [str.No_comming_conn]
movsd qword [rsp + 0x78], xmm0
mov eax, dword [0x140006920]
mov dword [rbp - 0x80], eax
movzx eax, word [0x140006924]
mov word [rbp - 0x7c], ax
movzx eax, byte [0x140006926]
mov byte [rbp - 0x7a], al
mov byte [rbp - 0x79], r8b
lea rcx, [rsp + 0x78]
call fcn.140002c70
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140002b73
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp r8, 0x400
jae 0x140002c58
mov byte [rbp + r8 + 0x10], 0
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400028f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.Failed_to_write_to_named_pipe._Error:
add rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140003d60
nop
lea rcx, [rsp + 0x58]
call fcn.140002c70
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140002b73
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0x10]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002910
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x140002c46
cmp rbx, 0xf
ja 0x14000295b
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xf
mov r8, rbx
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x30], 0
jmp 0x1400029f7
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x140002990
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140004c90
test rax, rax
je 0x1400029c5
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x1400029d4
mov rdi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x1400029ad
mov r14, rsi
jmp 0x1400029d4
cmp rcx, 0x1000
jb 0x1400029cc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002c52
jmp 0x140002975
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004c90
mov r14, rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov r8, rbx
lea rdx, [rbp + 0x10]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], 0
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r8
mov r14d, 0x12
cmp rax, r14
jb 0x140002a99
lea rax, [r8 + 0x12]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x30]
lea rax, [0x140006962]
lea r15, str.Written_to_file__
cmp rax, rbx
jbe 0x140002a5c
lea rax, [rbx + r8]
cmp r15, rax
ja 0x140002a5c
cmp rbx, r15
ja 0x140002a54
mov rdi, rsi
jmp 0x140002a5f
mov rdi, rbx
sub rdi, r15
jmp 0x140002a5f
mov rdi, r14
lea rcx, [rbx + 0x12]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [r15 + 0x12]
add rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x30]
jmp 0x140002aab
mov qword [rsp + 0x28], r14
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1400047f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140002b1c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqu xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
call fcn.140002c70
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140002b73
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140002bb1
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqu xmmword [rbp - 0x30], xmm6
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140002bf8
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bf3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bf3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqu xmmword [rbp - 0x50], xmm6
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x1400024f5
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400011b0
int3
call fcn.140001110
int3
call fcn.140001110
int3
call fcn.140004af8
int3
call fcn.1400011b0
int3