Function at 0x1400242f0
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.1400348b0
sub rsp, rax
mov rax, qword [0x14004c040]
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._jar
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 + 0x14]
lea rdx, str.____Executed_file:
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..bat
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 + 0x14]
lea rdx, str.____Executed_file:
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.14000fe40
nop
lea r9, [fcn.1400043d0]
lea edx, [r12 + 0x40]
lea r8d, [r12 + 2]
lea rcx, [rbp + 0xf0]
call fcn.1400342a0
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 0x140024440
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 0x140024524
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002451f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002451f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033ec0
movdqa xmm0, xmmword [0x1400412f0]
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 0x140024c39
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 0x140024c16
lea rsi, [0x14003da58]
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 0x140024c16
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.140009650
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.140025510
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.140025650
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 0x140024b05
nop dword [rax]
mov rdi, qword [rbp - 0x70]
mov r13, qword [rbp - 0x68]
mov qword [rsp + 0x58], r13
cmp rdi, r13
je 0x140024aa3
nop word [rax + rax]
lea r14, [rdi + 0x20]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x14002480b
mov rcx, qword [rdi]
mov rdx, rcx
lea r8, [rcx + rax*2]
jmp 0x140024812
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 0x140024850
mov rsi, r12
mov qword [rbp + 0xa0], r12
mov r15d, 7
mov qword [rbp + 0xa8], r15
mov word [rbp + 0x90], r12w
jmp 0x140024870
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 0x140024a54
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.1400093c0
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 0x140024a10
sub rax, rsi
test rsi, rsi
je 0x1400249c5
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 0x14002497d
cmp word [rax], r10w
je 0x14002497a
cmp rcx, 1
je 0x14002497d
dec rcx
add rax, 2
cmp word [rax], r10w
jne 0x140024967
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140024a10
mov r8, rsi
mov rdx, r11
test rsi, rsi
je 0x1400249b8
mov r9, rax
sub r9, r11
nop word [rax + rax]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x140024c89
add rdx, 2
sub r8, 1
jne 0x1400249a0
sub rax, qword [rbp - 0x80]
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140024a10
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 7
jbe 0x1400249d3
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 0x140024a4f
lea rdx, [rax*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140024a47
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024c92
mov rcx, rbx
call fcn.140033ec0
mov r13, qword [rsp + 0x58]
cmp r15, 7
jbe 0x140024a90
lea rdx, [r15*2 + 2]
mov rax, r12
cmp rdx, 0x1000
jb 0x140024a88
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024c99
mov rcx, r12
call fcn.140033ec0
add rdi, 0x40
cmp rdi, r13
mov r12d, 0
jne 0x1400247f0
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.140025650
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 0x1400247d0
mov ebx, dword [rsp + 0x68]
lea rdi, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rsi, [0x14003da58]
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 0x140024b43
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024b3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024ca0
call fcn.140033ec0
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.140025340
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 0x140024bec
inc rdx
mov rcx, qword [rbp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024be7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024ca7
call fcn.140033ec0
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 0x140024671
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 0x140024cb3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024cae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024cae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
add rax, 2
jmp 0x140024950
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.140033ec0
movdqa xmm0, xmmword [0x1400412f0]
movdqu xmmword [rbp + 0xc0], xmm0
mov word [rbp + 0xb0], r12w
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140024d30
mov rdi, qword [rbp - 0x68]
cmp rbx, rdi
je 0x140024cf5
nop dword [rax]
mov rcx, rbx
call fcn.1400043d0
add rbx, 0x40
cmp rbx, rdi
jne 0x140024ce0
mov rbx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x60]
sub rdx, rbx
and rdx, 0xffffffffffffffc0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140024d28
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024d28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140033ec0
mov rcx, qword [rbp + 0x1210]
xor rcx, rsp
call fcn.140033ea0
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