Function at 0x140021390
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 - 0x1210]
mov eax, 0x1310
call fcn.140031ae0
sub rsp, rax
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rbp + 0x1200], rax
mov ebx, ecx
xor r12d, r12d
mov dword [rsp + 0x58], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xf0], xmm1
mov r8d, 4
lea rdx, str..bat
lea rcx, [rbp + 0xe0]
call fcn.140003f50
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x110], xmm1
mov r8d, 0x44
lea rdx, str.___Executed_file__false_flags_here_may_happen_and_wont_be_fixed_:
lea rcx, [rbp + 0x100]
call fcn.140003f50
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x130], xmm1
mov r8d, 4
lea rdx, str._jar
lea rcx, [rbp + 0x120]
call fcn.140003f50
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x140], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x150], xmm1
mov r8d, 0x44
lea rdx, str.___Executed_file__false_flags_here_may_happen_and_wont_be_fixed_:
lea rcx, [rbp + 0x140]
call fcn.140003f50
nop
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x78]
call fcn.14000b210
nop
lea r9, [fcn.140004b40]
mov edx, 0x40
mov r8d, 2
lea rcx, [rbp + 0xe0]
call fcn.1400313b0
lea r9, [rbp + 0x1fa]
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 0x1400214f0
lea r8, [rbp + 0x1fa]
mov rdx, r9
lea rcx, [rbp + 0xc0]
call fcn.14000b450
mov ebx, 0xc
mov r9d, 0xe
lea r8, str.memory.exe__p
lea rcx, [rbp + 0xc0]
call fcn.140004490
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xb0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
or ebx, 2
mov rdx, qword [rbp + 0xd8]
cmp rdx, 7
jbe 0x1400215d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400215d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400215d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140030fd0
movdqa xmm0, xmmword [0x14003d3b0]
movdqu xmmword [rbp + 0xd0], xmm0
mov word [rbp + 0xc0], r12w
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x58], r12
xor r9d, r9d
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rbp - 0x30], 0x68
xorps xmm0, 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
movups xmmword [rbp + 0x28], xmm0
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x28], rax
psrldq xmm0, 4
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0xc], eax
mov word [rbp + 0x10], r12w
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 7
cmova rdx, qword [rbp + 0xa0]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
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 0x140021ce1
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x200]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x200]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021cbe
lea rsi, [0x140039cc8]
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 0x140021cbe
mov r8d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x1e0], r12
mov qword [rbp + 0x1e8], r12
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x1d0]
call fcn.140009840
nop
mov qword [rbp + 0xe0], rsi
lea rcx, [rbp + 0x170]
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 + 0xf0]
lea rcx, [rbp + 0xe0]
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 + 0xe0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xe0], rdi
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0xdc], edx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0xf0]
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 + 0xf0], r14
lea rdx, [rbp + 0x1d0]
cmp qword [rbp + 0x1e8], 0xf
cmova rdx, qword [rbp + 0x1d0]
mov r9d, 2
mov r8, qword [rbp + 0x1e0]
lea rcx, [rbp + 0xf0]
call fcn.140022730
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
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 + 0x60]
lea rcx, [rbp + 0xe0]
call fcn.140022a70
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 0x140021bb6
nop dword [rax]
nop dword [rax + rax]
mov rdi, qword [rbp - 0x78]
mov r13, qword [rbp - 0x70]
mov qword [rsp + 0x58], r13
cmp rdi, r13
je 0x140021b54
nop word [rax + rax]
lea r14, [rdi + 0x20]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x1400218bb
mov rcx, qword [rdi]
mov rdx, rcx
lea r8, [rcx + rax*2]
jmp 0x1400218c2
lea r8, [rdi + rax*2]
mov rdx, rdi
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
cmp rdx, r8
jne 0x140021900
mov rsi, r12
mov qword [rbp + 0x90], r12
mov r15d, 7
mov qword [rbp + 0x98], r15
mov word [rbp + 0x80], r12w
jmp 0x140021920
sub r8, rdx
sar r8, 1
lea rcx, [rbp + 0x80]
call fcn.140003f50
mov r15, qword [rbp + 0x98]
mov rsi, qword [rbp + 0x90]
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova r8, qword [rbp + 0x60]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov r12, qword [rbp + 0x80]
test eax, eax
jle 0x140021b05
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
xor eax, eax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
mov r8, rbx
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.1400095b0
nop
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 7
cmova rax, qword [rbp + 0x40]
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova r8, qword [rbp + 0x60]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r11, [rbp + 0x80]
cmp r15, 7
cmova r11, r12
lea rcx, [rbp + 0x40]
mov rbx, qword [rbp + 0x40]
cmp qword [rbp + 0x58], 7
cmova rcx, rbx
mov qword [rsp + 0x70], rcx
mov rax, qword [rbp + 0x50]
cmp rsi, rax
ja 0x140021ac1
sub rax, rsi
test rsi, rsi
je 0x140021a76
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 0x140021a2d
cmp word [rax], r10w
je 0x140021a2a
cmp rcx, 1
je 0x140021a2d
dec rcx
add rax, 2
cmp word [rax], r10w
jne 0x140021a17
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140021ac1
mov r8, rsi
mov rdx, r11
test rsi, rsi
je 0x140021a68
mov r9, rax
sub r9, r11
nop word [rax + rax]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x140021d31
add rdx, 2
sub r8, 1
jne 0x140021a50
sub rax, qword [rsp + 0x70]
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140021ac1
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 7
jbe 0x140021a84
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.1400046e0
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 7
cmova rdx, qword [rbp + 0x40]
mov r8, qword [rbp + 0x50]
mov rcx, rax
call fcn.1400046e0
lea rdx, [0x140003900]
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 + 0x40]
mov rax, qword [rbp + 0x58]
cmp rax, 7
jbe 0x140021b00
lea rdx, [rax*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140021af8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021d3a
mov rcx, rbx
call fcn.140030fd0
mov r13, qword [rsp + 0x58]
cmp r15, 7
jbe 0x140021b41
lea rdx, [r15*2 + 2]
mov rax, r12
cmp rdx, 0x1000
jb 0x140021b39
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021d41
mov rcx, r12
call fcn.140030fd0
add rdi, 0x40
cmp rdi, r13
mov r12d, 0
jne 0x1400218a0
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
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 + 0x60]
lea rcx, [rbp + 0xe0]
call fcn.140022a70
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 0x140021880
mov ebx, dword [rsp + 0x68]
lea rdi, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rsi, [0x140039cc8]
lea r14, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140021bf1
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021bec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021d48
call fcn.140030fd0
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xe0], rdi
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0xdc], edx
lea rcx, [rbp + 0xf0]
call fcn.140022380
lea rcx, [rbp + 0xf8]
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 + 0x170]
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 + 0x1e8]
cmp rdx, 0xf
jbe 0x140021c94
inc rdx
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021c8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021d4f
call fcn.140030fd0
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x200]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140021721
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 7
jbe 0x140021d5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021d56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021d56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
add rax, 2
jmp 0x140021a00
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.140030fd0
movdqa xmm0, xmmword [0x14003d3b0]
movdqu xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], r12w
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140021dd5
mov rdi, qword [rbp - 0x70]
cmp rbx, rdi
je 0x140021d9a
mov rcx, rbx
call fcn.140004b40
add rbx, 0x40
cmp rbx, rdi
jne 0x140021d85
mov rbx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x68]
sub rdx, rbx
and rdx, 0xffffffffffffffc0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140021dcd
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021dcd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140030fd0
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.140030fb0
lea r11, [rsp + 0x1310]
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