Function at 0x180068f30
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Encode data using xor
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x358
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
mov r12, rcx
xor r13d, r13d
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x50], 0xa5afa9cf
mov dword [rsp + 0x54], 0xafa9a6e3
mov dword [rsp + 0x58], 0xe4bda0a0
mov dword [rsp + 0x5c], 0x100afa8
mov ecx, r13d
nop word [rax + rax]
lea eax, [rcx - 0x41]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0xe
jb 0x180068f90
mov byte [rsp + 0x5f], r13b
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
lea rax, [rsp + 0x50]
mov r14, 0xffffffffffffffff
mov r8, r14
inc r8
cmp byte [rax + r8], r13b
jne 0x180068fc3
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.1800024b0
nop
mov dword [rbp + 0x30], 0x18
mov qword [rbp + 0x38], r13
mov dword [rbp + 0x40], 1
xor r9d, r9d
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18006985f
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movaps xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
mov dword [rbp + 0x50], 0x68
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xa8], rax
psrldq xmm0, 0xc
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0x8c], eax
mov word [rbp + 0x90], r13w
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rax
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
lea rax, [rbp - 8]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
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]
test eax, eax
je 0x1800698a0
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x2b0]
mov r8d, 0x7f
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800691d9
movzx ebx, byte [rbp + 0x2a8]
nop dword [rax + rax]
mov eax, dword [rbp + 0x2b0]
mov byte [rbp + rax + 0x1b0], 0
lea rax, [rbp + 0x1b0]
mov rsi, r14
nop dword [rax + rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x180069140
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x18006918e
lea rax, [rsi + rcx]
mov qword [rbp - 0x80], rax
lea rdi, [rsp + 0x70]
cmp rdx, 0xf
cmova rdi, qword [rsp + 0x70]
add rdi, rcx
mov r8, rsi
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rsi], 0
jmp 0x1800691ab
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x1b0]
movzx r8d, bl
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.1800025c0
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x2b0]
mov r8d, 0x7f
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180069120
mov rcx, qword [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [0x1801037e0]
mov qword [rbp + 0xc0], rax
lea rcx, [rbp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov ebx, 2
mov dword [rsp + 0x68], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_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 + 0xc0]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0xc0], r15
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0xbc], edx
lea rax, [rbp + 0xd0]
mov qword [rbp + 0x2a8], rax
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0xd0], rax
mov rdi, qword [rbp - 0x80]
lea rsi, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rsi, qword [rsp + 0x70]
cmp rdi, 0x7fffffff
ja 0x1800698fb
test rdi, rdi
je 0x18006932f
cmp rdi, 0x1000
jb 0x1800692f1
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x180069901
call fcn.180082c18
test rax, rax
je 0x1800692ea
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1800692fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180082c18
mov rbx, rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rbx + rdi]
mov qword [rbp + 0x138], r9
mov r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov ebx, 3
jmp 0x180069336
mov qword [rbp + 0x138], r13
mov dword [rbp + 0x140], ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], r13
mov qword [r12 + 0x18], 0xf
mov byte [r12], 0
mov dword [rsp + 0x68], 3
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xc0]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xc0]
call fcn.180002ea0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x180069704
nop dword [rax]
mov dword [rbp + 0x2a8], 0xa7aca9cb
mov word [rbp + 0x2ac], 0xfe
mov byte [rbp + 0x2ae], 1
mov rax, r13
nop dword [rax]
lea ecx, [rax - 0x41]
xor byte [rbp + rax + 0x2a8], cl
inc rax
cmp rax, 5
jb 0x1800693e0
mov byte [rbp + 0x2ae], 0
lea rcx, [rbp + 0x2a8]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x180069404
lea rcx, [rbp - 0x70]
mov rdi, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x58]
cmp rsi, 0xf
cmova rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x2a8]
xor r8d, r8d
mov rbx, qword [rbp - 0x60]
mov rdx, rbx
call fcn.18005d9b0
cmp rax, 0xffffffffffffffff
jne 0x180069490
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xc0]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xc0]
call fcn.180002ea0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x1800693c0
jmp 0x180069704
mov dword [rbp + 0x2a8], 0xa7aca9cb
mov word [rbp + 0x2ac], 0xfe
mov byte [rbp + 0x2ae], 1
mov rcx, r13
nop dword [rax]
lea eax, [rcx - 0x41]
xor byte [rbp + rcx + 0x2a8], al
inc rcx
cmp rcx, 5
jb 0x1800694b0
mov byte [rbp + 0x2ae], 0
lea rcx, [rbp + 0x2a8]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x1800694d4
lea rcx, [rbp - 0x70]
cmp rsi, 0xf
cmova rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x2a8]
xor r8d, r8d
mov rdx, rbx
call fcn.18005d9b0
lea r15, [rax + 5]
mov dword [rbp + 0x2a8], 0x100b3d2
mov rcx, r13
lea eax, [rcx - 0x41]
xor byte [rbp + rcx + 0x2a8], al
inc rcx
cmp rcx, 2
jb 0x180069511
mov byte [rbp + 0x2ab], 0
lea rcx, [rbp + 0x2a8]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x180069535
lea rcx, [rbp - 0x70]
cmp rsi, 0xf
cmova rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x2a8]
mov r8, r15
mov rdx, rbx
call fcn.18005d9b0
mov r8, rax
mov dword [rbp + 0x2a8], 0x100b3d2
mov rdx, r13
lea ecx, [rdx - 0x41]
xor byte [rbp + rdx + 0x2a8], cl
inc rdx
cmp rdx, 2
jb 0x180069571
mov byte [rbp + 0x2ab], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
cmp rbx, r15
jb 0x180069859
sub r8, r15
sub rbx, r15
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp - 0x70]
cmp rsi, 0xf
cmova rdx, rdi
add rdx, r15
lea rcx, [rbp - 0x48]
call fcn.1800024b0
mov dword [rsp + 0x68], 7
lea rax, [rbp + 0x2a8]
nop word [rax + rax]
inc r14
cmp byte [rax + r14], 0
jne 0x1800695e0
mov r8, r14
lea rdx, [rbp + 0x2a8]
lea rcx, [rbp - 0x48]
call fcn.18006eb40
movups xmm6, xmmword [rax]
movups xmmword [rbp + 0x10], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp + 0x20], xmm7
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [rbp + 0x10]
cmp r12, rax
je 0x180069680
mov rdx, qword [r12 + 0x18]
cmp rdx, 0xf
jbe 0x18006965c
mov rcx, qword [r12]
inc rdx
cmp rdx, 0x1000
jb 0x180069657
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800696b2
mov rcx, r8
call fcn.180082be4
mov qword [r12 + 0x18], 0xf
mov byte [r12], 0
movups xmmword [r12], xmm6
movups xmmword [r12 + 0x10], xmm7
mov edx, 0xf
mov byte [rbp + 0x10], 0
jmp 0x180069684
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x1800696bf
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800696b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800696b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180082be4
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x1800696fd
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800696f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800696f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180082be4
lea r15, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x180069742
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006973d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006973d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180082be4
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xc0], r15
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0xbc], edx
lea rcx, [rbp + 0xd0]
call fcn.180003080
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x150]
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 [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1800697e3
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800697de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800697de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180082be4
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x180069832
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006982d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006982d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180082be4
mov rax, r12
movaps xmm6, xmmword [rsp + 0x340]
movaps xmm7, xmmword [rsp + 0x330]
add rsp, 0x358
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18006ea60
nop
movdqa xmm0, xmmword [0x1801052f0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x60], 0xab
mov byte [rsp + 0x62], 1
lea rcx, [rsp + 0x50]
call fcn.18006ef30
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.180064250
lea rdx, [0x180112640]
lea rcx, [rbp - 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, qword [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x1801053a0]
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0xb6b4bca6
mov word [rsp + 0x64], 0x100
lea rcx, [rsp + 0x50]
call fcn.18006ef60
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.180064250
lea rdx, [0x180112640]
lea rcx, [rbp - 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_
int3
call fcn.1800020d0
int3