Function at 0x1400242f0
Capabilities:
Create pipe
Write file on windows
Write pipe

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x980
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x140229498]
xor rax, rsp
mov qword [rsp + 0x970], rax
mov rsi, rcx
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x78], 0x18
mov qword [r11 - 0x908], r12
mov dword [rsp + 0x88], 1
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400243dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0xd0], r12b
or r9d, 0xffffffff
lea r8, [0x140194078]
mov edx, 0x100
lea rcx, [rsp + 0xd0]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0xd0]
call fcn.14007f910
lea rcx, [rsp + 0x3d8]
lea rdx, [rsp + 0xd0]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x3d8]
call fcn.14011f050
mov rdi, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x50]
mov r8, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140024486
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0xd0], 0
or r9d, 0xffffffff
lea r8, [0x140194068]
mov edx, 0x100
lea rcx, [rsp + 0xd0]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0xd0]
call fcn.14007f910
lea rcx, [rsp + 0x5e0]
lea rdx, [rsp + 0xd0]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x5e0]
call fcn.14011f050
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140024496
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x48]
lea rdx, str.inPipe_p
lea rcx, [0x14023b188]
call fcn.140002fd0
mov qword [rsp + 0x58], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1400ad180
nop
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], r12d
mov r8, qword [0x14023b138]
mov edx, dword [0x14023b134]
lea rcx, [rsp + 0x40]
call fcn.1400b0e70
or r8d, 0xffffffff
mov rdx, qword [rax]
lea rcx, [rsp + 0x68]
call fcn.14007a6f0
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
or r8d, 0xffffffff
lea rdx, str.__sockpipe
lea rcx, [rsp + 0x68]
call fcn.14007a6f0
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x90]
call fcn.1400b0fd0
nop
mov byte [rsp + 0xac], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.1400b1ad0
lea rdx, str.duplicating_socket
lea rcx, [0x14023b188]
call fcn.140002fd0
movsxd rcx, dword [rsi + 0x44]
lea r8, [rsp + 0x6f0]
mov edx, dword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_WSADuplicateSocketW]
cmp eax, 0xffffffff
jne 0x1400245ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov byte [rsp + 0xd0], 0
or r9d, 0xffffffff
lea r8, str.DuplicateSocket
mov edx, 0x100
lea rcx, [rsp + 0xd0]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0xd0]
call fcn.14007f910
lea rcx, [rsp + 0x2d4]
lea rdx, [rsp + 0xd0]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x2d4]
call fcn.14011f050
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov edx, 0x400
mov ecx, dword [rsp + 0xa4]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
mov r8d, 0x274
lea rdx, [rsp + 0x6f0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14002469b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0xd0], 0
or r9d, 0xffffffff
lea r8, [0x140194010]
mov edx, 0x100
lea rcx, [rsp + 0xd0]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0xd0]
call fcn.14007f910
lea rcx, [rsp + 0x4dc]
lea rdx, [rsp + 0xd0]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x4dc]
call fcn.14011f050
cmp dword [rsp + 0x60], 0x274
je 0x1400246f9
mov byte [rsp + 0xd0], 0
or r9d, 0xffffffff
lea r8, str.short_write
mov edx, 0x100
lea rcx, [rsp + 0xd0]
call fcn.14007b3b0
lea rcx, [rsp + 0x1d4]
lea rdx, [rsp + 0xd0]
mov r8d, 0x100
call fcn.14011e9b0
lea rdx, [0x14020b7d0]
lea rcx, [rsp + 0x1d4]
call fcn.14011f050
lea rdx, str.detaching_viewer
lea rcx, [0x14023b188]
call fcn.140002fd0
lea rcx, [rsp + 0x90]
call fcn.1400b0e30
nop
lea rcx, [rsp + 0x90]
call fcn.1400b11c0
nop
mov rcx, qword [rsp + 0x68]
call fcn.14011e0c0
nop
mov rcx, qword [rsp + 0x58]
call fcn.14011e0c0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002474e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], r12
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140024763
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140024769
mov rcx, qword [rsp + 0x970]
xor rcx, rsp
call fcn.14011f1c0
lea r11, [rsp + 0x980]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret