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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x1a8]
sub rsp, 0x2a8
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x50], edi
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xa
jb 0x14006640e
cmp qword [rdx + 0x18], 0xf
jbe 0x140066036
mov rdx, qword [rdx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0xa
lea r9, str.ping__n_1
lea rcx, [rsp + 0x58]
call fcn.140053150
nop
mov dword [rbp - 0x40], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
mov dword [rbp - 4], 1
mov word [rbp], di
mov dword [rsp + 0x78], Ordinal_27
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x78], 1
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x1e8]
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov rax, qword [rbp + 0x1e8]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
or dword [rbp - 4], 0x100
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp + 0x1e8]
test eax, eax
jne 0x1400661c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], recvfrom
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Ping_failed]
movsd qword [rbx], xmm0
movzx eax, word [0x1400fe868]
mov word [rbx + 8], ax
movzx eax, byte [0x1400fe86a]
mov byte [rbx + 0xa], al
mov byte [rbx + 0xb], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400661b2
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400661ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066407
call fcn.1400da420
mov rax, rbx
add rsp, 0x2a8
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [0x1400ff338]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x30], rsi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x38], rax
mov qword [rbp + 0xa0], rdi
mov dword [rbp + 0xa8], 4
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x1d8]
mov r8d, 0x7f
lea rdx, [rbp + 0x120]
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400662cf
mov eax, dword [rbp + 0x1d8]
test eax, eax
je 0x1400662cf
mov byte [rbp + rax + 0x120], 0
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x30]
call fcn.140071fd0
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x1d8]
mov r8d, 0x7f
lea rdx, [rbp + 0x120]
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140066283
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x50], reloc.WLDAP32.dll_Ordinal_22
movups xmmword [rbp - 0x58], xmm0
mov ecx, dword [rbp + 0xa8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140066347
mov rax, qword [rbp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140066347
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xa0]
cmovb r8, qword [rbp + 0xa0]
sub r8, rdx
jmp 0x140066379
test cl, 4
jne 0x140066371
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x140066371
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x88]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140066379
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x140066387
mov rcx, rbx
call fcn.1400717f0
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rsi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call fcn.14006f000
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400661b2
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400661ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400661ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039180
int3