Function at 0x140023710
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1220]
mov eax, 0x1320
call fcn.140033c70
sub rsp, rax
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rbp + 0x1210], rax
mov ebx, ecx
xor r12d, r12d
mov dword [rsp + 0x58], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x100], xmm1
lea r8d, [r12 + 4]
lea rdx, str..bat
lea rcx, [rbp + 0xf0]
call fcn.140003930
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x120], xmm1
lea r8d, [r12 + 0x44]
lea rdx, str.___Executed_file__false_flags_here_may_happen_and_wont_be_fixed_:
lea rcx, [rbp + 0x110]
call fcn.140003930
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x140], xmm1
lea r8d, [r12 + 4]
lea rdx, str._jar
lea rcx, [rbp + 0x130]
call fcn.140003930
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x150], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x160], xmm1
lea r8d, [r12 + 0x44]
lea rdx, str.___Executed_file__false_flags_here_may_happen_and_wont_be_fixed_:
lea rcx, [rbp + 0x150]
call fcn.140003930
nop
lea rax, [rbp + 0xf0]
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0x170]
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.14000f420
nop
lea r9, [fcn.1400043d0]
lea edx, [r12 + 0x40]
lea r8d, [r12 + 2]
lea rcx, [rbp + 0xf0]
call fcn.140033660
lea r9, [rbp + 0x20a]
nop dword [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub bx, cx
add bx, 0x30
mov word [r9], bx
mov ebx, edx
test edx, edx
jne 0x140023860
lea r8, [rbp + 0x20a]
mov rdx, r9
lea rcx, [rbp + 0xd0]
call fcn.140003160
mov ebx, 0xc
lea r9d, [rbx + 2]
lea r8, str.memory.exe__p
lea rcx, [rbp + 0xd0]
call fcn.140003e60
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xb0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xc0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
or ebx, 2
mov rdx, qword [rbp + 0xe8]
cmp rdx, 7
jbe 0x140023944
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002393f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002393f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033280
movdqa xmm0, xmmword [0x140040b00]
movdqu xmmword [rbp + 0xe0], xmm0
mov word [rbp + 0xd0], r12w
mov qword [rbp - 0x58], 0x18
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x50], r12
xor r9d, r9d
lea r8, [rbp - 0x58]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rbp - 0x20], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x38], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x38], rax
psrldq xmm0, 4
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0x1c], eax
mov word [rbp + 0x20], r12w
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rdx, qword [rbp + 0xb0]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140024059
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x210]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024036
lea rsi, [0x14003d298]
lea rdi, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea r14, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140024036
mov r8d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1e0], xmm0
mov qword [rbp + 0x1f0], r12
mov qword [rbp + 0x1f8], r12
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0x1e0]
call fcn.140009620
nop
mov qword [rbp + 0xf0], rsi
lea rcx, [rbp + 0x180]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or ebx, 1
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x58], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0xf0]
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 + 0xf0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xf0], rdi
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0xec], edx
lea rax, [rbp + 0x100]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov qword [rbp + 0x100], r14
lea rdx, [rbp + 0x1e0]
cmp qword [rbp + 0x1f8], 0xf
cmova rdx, qword [rbp + 0x1e0]
mov r9d, 2
mov r8, qword [rbp + 0x1f0]
lea rcx, [rbp + 0x100]
call fcn.140024930
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], 0xf
mov byte [rbp + 0x70], 0
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xf0]
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 + 0xf0]
call fcn.140024a70
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 0x140023f25
nop dword [rax]
mov rdi, qword [rbp - 0x70]
mov r13, qword [rbp - 0x68]
mov qword [rsp + 0x58], r13
cmp rdi, r13
je 0x140023ec3
nop word [rax + rax]
lea r14, [rdi + 0x20]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x140023c2b
mov rcx, qword [rdi]
mov rdx, rcx
lea r8, [rcx + rax*2]
jmp 0x140023c32
lea r8, [rdi + rax*2]
mov rdx, rdi
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r12
cmp rdx, r8
jne 0x140023c70
mov rsi, r12
mov qword [rbp + 0xa0], r12
mov r15d, 7
mov qword [rbp + 0xa8], r15
mov word [rbp + 0x90], r12w
jmp 0x140023c90
sub r8, rdx
sar r8, 1
lea rcx, [rbp + 0x90]
call fcn.140003930
mov r15, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xa0]
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova r8, qword [rbp + 0x70]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov r12, qword [rbp + 0x90]
test eax, eax
jle 0x140023e74
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xor eax, eax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
mov r8, rbx
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.140009390
nop
lea rax, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rax, qword [rbp + 0x50]
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova r8, qword [rbp + 0x70]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r11, [rbp + 0x90]
cmp r15, 7
cmova r11, r12
lea rcx, [rbp + 0x50]
mov rbx, qword [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, rbx
mov qword [rbp - 0x80], rcx
mov rax, qword [rbp + 0x60]
cmp rsi, rax
ja 0x140023e30
sub rax, rsi
test rsi, rsi
je 0x140023de5
lea r13, [rcx + rax*2]
mov rax, rcx
movzx r10d, word [r11]
nop
lea rcx, [r13 + 2]
sub rcx, rax
sar rcx, 1
mov edx, 0
je 0x140023d9d
cmp word [rax], r10w
je 0x140023d9a
cmp rcx, 1
je 0x140023d9d
dec rcx
add rax, 2
cmp word [rax], r10w
jne 0x140023d87
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140023e30
mov r8, rsi
mov rdx, r11
test rsi, rsi
je 0x140023dd8
mov r9, rax
sub r9, r11
nop word [rax + rax]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x1400240a9
add rdx, 2
sub r8, 1
jne 0x140023dc0
sub rax, qword [rbp - 0x80]
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140023e30
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 7
jbe 0x140023df3
mov r14, qword [r14]
mov rdx, r14
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003f60
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov rcx, rax
call fcn.140003f60
lea rdx, [0x140005ad0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rbx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x68]
cmp rax, 7
jbe 0x140023e6f
lea rdx, [rax*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140023e67
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400240b2
mov rcx, rbx
call fcn.140033280
mov r13, qword [rsp + 0x58]
cmp r15, 7
jbe 0x140023eb0
lea rdx, [r15*2 + 2]
mov rax, r12
cmp rdx, 0x1000
jb 0x140023ea8
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400240b9
mov rcx, r12
call fcn.140033280
add rdi, 0x40
cmp rdi, r13
mov r12d, 0
jne 0x140023c10
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xf0]
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 + 0xf0]
call fcn.140024a70
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 0x140023bf0
mov ebx, dword [rsp + 0x68]
lea rdi, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rsi, [0x14003d298]
lea r14, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140023f63
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023f5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400240c0
call fcn.140033280
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], 0xf
mov byte [rbp + 0x70], 0
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xf0], rdi
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0xec], edx
lea rcx, [rbp + 0x100]
call fcn.140024760
lea rcx, [rbp + 0x108]
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 + 0x180]
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 + 0x1f8]
cmp rdx, 0xf
jbe 0x14002400c
inc rdx
mov rcx, qword [rbp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024007
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400240c7
call fcn.140033280
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x210]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140023a91
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x1400240d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400240ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400240ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
add rax, 2
jmp 0x140023d70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140033280
movdqa xmm0, xmmword [0x140040b00]
movdqu xmmword [rbp + 0xc0], xmm0
mov word [rbp + 0xb0], r12w
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140024150
mov rdi, qword [rbp - 0x68]
cmp rbx, rdi
je 0x140024115
nop dword [rax]
mov rcx, rbx
call fcn.1400043d0
add rbx, 0x40
cmp rbx, rdi
jne 0x140024100
mov rbx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x60]
sub rdx, rbx
and rdx, 0xffffffffffffffc0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140024148
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024148
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140033280
mov rcx, qword [rbp + 0x1210]
xor rcx, rsp
call fcn.140033260
lea r11, [rsp + 0x1320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret