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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428b77
mov eax, dword fs:[0]
push eax
mov eax, 0x125c
call fcn.004265c0
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1114]
push str.Executed_file:
push str..bat
mov dword [ebp - 0x111c], eax
mov dword [ebp - 0x1124], 0
call fcn.00405dc0
push str.Executed_file:
push str._jar
lea ecx, [ebp - 0x10e4]
mov dword [ebp - 4], 0
call fcn.00405dc0
lea edi, [ebp - 0x1114]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10b4]
mov dword [ebp - 0x113c], 0
sub ecx, edi
mov dword [ebp - 0x1138], 0
mov eax, 0x2aaaaaab
mov dword [ebp - 0x1134], 0
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x41cdfe
cmp eax, 0x5555555
ja 0x41d793
lea esi, [eax + eax*2]
shl esi, 4
mov dword [ebp - 0x112c], esi
cmp esi, 0x1000
jb 0x41cd65
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x41d798
push eax
call fcn.0042601c
add esp, 4
test eax, eax
je 0x41ce9a
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x41cd78
test esi, esi
je 0x41cd76
push esi
call fcn.0042601c
add esp, 4
mov esi, eax
jmp 0x41cd78
xor esi, esi
mov eax, dword [ebp - 0x112c]
add eax, esi
mov dword [ebp - 0x113c], esi
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x113c]
mov dword [ebp - 0x1138], esi
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1060], esi
mov dword [ebp - 0x105c], esi
mov dword [ebp - 0x1058], eax
lea eax, [ebp - 0x10b4]
mov byte [ebp - 4], 3
cmp edi, eax
je 0x41cdf8
nop
push edi
mov ecx, esi
mov dword [ebp - 0x1148], esi
call fcn.00404d40
lea eax, [edi + 0x18]
mov byte [ebp - 4], 4
lea ecx, [esi + 0x18]
push eax
call fcn.00404d40
add esi, 0x30
mov byte [ebp - 4], 3
add edi, 0x30
mov dword [ebp - 0x105c], esi
lea eax, [ebp - 0x10b4]
cmp edi, eax
jne 0x41cdc0
mov dword [ebp - 0x1138], esi
push 0x405fd0
push 2
push 0x30
lea eax, [ebp - 0x1114]
mov byte [ebp - 4], 6
push eax
call fcn.0042649f
push dword [ebp - 0x111c]
lea eax, [ebp - 0x12]
push eax
call fcn.00405f50
add esp, 8
lea ecx, [ebp - 0x112d]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x10b4]
call fcn.00405e80
mov edi, 6
lea eax, [ebp - 0x10b4]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x109c]
push str.memory.exe__p
push eax
call fcn.0041c700
add esp, 0xc
mov ecx, dword [ebp - 0x10a0]
mov byte [ebp - 4], 9
cmp ecx, 7
jbe 0x41ceaa
mov edx, dword [ebp - 0x10b4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41cea0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41cea0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042604c
add esp, 8
xor eax, eax
mov dword [ebp - 0x10a4], 0
push eax
mov word [ebp - 0x10b4], ax
mov dword [ebp - 0x1168], eax
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x1140]
mov dword [ebp - 0x10a0], 7
push eax
lea eax, [ebp - 0x1128]
mov dword [ebp - 0x116c], 0xc
push eax
mov dword [ebp - 0x1164], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
push 1
push dword [ebp - 0x1128]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x40
lea eax, [ebp - 0x1264]
mov dword [ebp - 0x1268], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x1140]
lea ecx, [ebp - 0x117c]
or dword [ebp - 0x123c], 0x101
add esp, 0xc
mov dword [ebp - 0x122c], eax
xor eax, eax
cmp dword [ebp - 0x1088], 7
mov word [ebp - 0x1238], ax
lea eax, [ebp - 0x109c]
cmova eax, dword [ebp - 0x109c]
push ecx
lea ecx, [ebp - 0x1268]
push ecx
push 0
push 0
push 0x10
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41d706
push dword [ebp - 0x1140]
call esi
push 0x1000
lea eax, [ebp - 0x103c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x112c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x103c]
push eax
push dword [ebp - 0x1128]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d6e8
nop word [eax + eax]
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x41d6e2
push eax
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.00407c80
lea ecx, [ebp - 0x11c4]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1224], 0x42fa90
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x1214]
mov byte [ebp - 4], 0xb
or edi, 1
lea ecx, [ebp - 0x1224]
push eax
mov dword [ebp - 0x114c], edi
mov dword [ebp - 0x1124], edi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x1224]
mov dword [ebp - 4], 0xc
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1224]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x1228], eax
lea eax, [ebp - 0x1214]
mov ecx, eax
mov dword [ebp - 0x1144], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
cmova eax, ecx
mov dword [ebp - 0x1120], eax
mov eax, 2
mov byte [ebp - 4], 0xd
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x1148], ecx
cmp edi, 0x7fffffff
ja 0x41d7a2
test edi, edi
je 0x41d122
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x111c], edi
push eax
lea eax, [ebp - 0x11d4]
push eax
call fcn.0041c810
push edi
push dword [ebp - 0x1120]
mov esi, eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x14
lea ecx, [edi + esi]
mov dword [ebp - 0x11dc], ecx
push ecx
push esi
push esi
lea ecx, [ebp - 0x1214]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, 3
jmp 0x41d12c
mov dword [ebp - 0x11dc], 0
mov dword [ebp - 0x11d8], eax
xorps xmm0, xmm0
mov dword [ebp - 0x105c], 0
movups xmmword [ebp - 0x106c], xmm0
mov dword [ebp - 0x1058], 0xf
mov byte [ebp - 0x106c], 0
mov eax, dword [ebp - 0x1224]
lea ecx, [ebp - 0x1224]
push 0xa
mov byte [ebp - 4], 0xf
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
push eax
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x1224]
push eax
call fcn.0041c860
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x41d5d2
mov edi, dword [ebp - 0x113c]
mov eax, dword [ebp - 0x1138]
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1144], eax
cmp edi, eax
je 0x41d58c
cmp dword [edi + 0x14], 7
lea eax, [edi + 0x18]
mov dword [ebp - 0x1160], eax
mov eax, dword [edi + 0x10]
jbe 0x41d1dc
mov ecx, dword [edi]
mov edx, ecx
lea eax, [ecx + eax*2]
jmp 0x41d1e1
lea eax, [edi + eax*2]
mov edx, edi
mov dword [ebp - 0x1074], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1070], 0
movups xmmword [ebp - 0x1084], xmm0
cmp edx, eax
jne 0x41d222
xor eax, eax
mov dword [ebp - 0x1074], 0
mov dword [ebp - 0x1070], 7
mov word [ebp - 0x1084], ax
jmp 0x41d233
sub eax, edx
lea ecx, [ebp - 0x1084]
sar eax, 1
push eax
push edx
call fcn.00402080
cmp dword [ebp - 0x1058], 0xf
lea eax, [ebp - 0x106c]
push 0
cmova eax, dword [ebp - 0x106c]
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov byte [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x1084]
mov esi, eax
mov dword [ebp - 0x1120], edx
test esi, esi
jle 0x41d539
mov dword [ebp - 0x1044], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1040], 0
movups xmmword [ebp - 0x1054], xmm0
cmp esi, 0x7ffffffe
ja 0x41d79d
mov dword [ebp - 0x1040], 7
cmp esi, 7
ja 0x41d2d3
xor eax, eax
mov dword [ebp - 0x1044], esi
mov ecx, esi
lea edi, [ebp - 0x1054]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + esi*2 - 0x1054], ax
jmp 0x41d341
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x41d2eb
mov dword [ebp - 0x1118], SysStringLen
jmp 0x41d2fc
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x1118], eax
lea eax, [ebp - 0x1118]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.00402010
mov edx, eax
mov ecx, esi
mov eax, dword [ebp - 0x1118]
mov edi, edx
mov dword [ebp - 0x1040], eax
add esp, 8
mov dword [ebp - 0x1044], ecx
xor eax, eax
shr ecx, 1
mov dword [ebp - 0x1054], edi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + esi*2], ax
cmp dword [ebp - 0x1040], 7
lea ecx, [ebp - 0x1054]
push esi
cmova ecx, dword [ebp - 0x1054]
lea eax, [ebp - 0x106c]
cmp dword [ebp - 0x1058], 0xf
push ecx
cmova eax, dword [ebp - 0x106c]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov byte [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x1070], 7
lea ecx, [ebp - 0x1084]
mov esi, dword [ebp - 0x1054]
lea edi, [ebp - 0x1054]
cmova ecx, dword [ebp - 0x1120]
cmp dword [ebp - 0x1040], 7
mov eax, dword [ebp - 0x1044]
mov edx, dword [ebp - 0x1074]
cmova edi, esi
mov dword [ebp - 0x1118], ecx
mov dword [ebp - 0x111c], esi
mov dword [ebp - 0x115c], edi
cmp edx, eax
ja 0x41d4ef
sub eax, edx
test edx, edx
je 0x41d484
inc eax
lea edx, [edi + eax*2]
mov eax, edi
movzx edi, word [ecx]
mov dword [ebp - 0x1158], edx
mov dword [ebp - 0x1154], edi
nop
sub edx, eax
mov esi, 0
sar edx, 1
je 0x41d41d
movzx ecx, word [eax]
cmp cx, di
je 0x41d415
cmp edx, 1
je 0x41d417
movzx ecx, word [eax + 2]
add eax, 2
dec edx
cmp cx, di
jne 0x41d403
mov esi, eax
mov ecx, dword [ebp - 0x1118]
mov eax, esi
test eax, eax
je 0x41d4e9
mov edi, dword [ebp - 0x1074]
mov esi, ecx
test edi, edi
je 0x41d477
mov ecx, eax
sub ecx, dword [ebp - 0x1118]
mov dword [ebp - 0x1150], ecx
movzx edx, word [esi + ecx]
movzx ecx, word [esi]
cmp dx, cx
jne 0x41d45d
add esi, 2
sub edi, 1
je 0x41d477
mov ecx, dword [ebp - 0x1150]
jmp 0x41d441
mov edi, dword [ebp - 0x1154]
add eax, 2
mov ecx, dword [ebp - 0x1118]
mov edx, dword [ebp - 0x1158]
jmp 0x41d3f0
sub eax, dword [ebp - 0x115c]
sar eax, 1
cmp eax, 0xffffffff
je 0x41d4e9
push 0x42fb7c
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00401d40
mov edx, dword [ebp - 0x1160]
add esp, 8
cmp dword [edx + 0x14], 7
mov ecx, dword [edx + 0x10]
jbe 0x41d4a8
mov edx, dword [edx]
push ecx
push edx
push eax
call fcn.00402230
cmp dword [ebp - 0x1040], 7
lea ecx, [ebp - 0x1054]
push dword [ebp - 0x1044]
cmova ecx, dword [ebp - 0x1054]
push ecx
push eax
call fcn.00402230
add esp, 0x18
mov ecx, eax
push 0x4026c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov esi, dword [ebp - 0x1054]
jmp 0x41d4ef
mov esi, dword [ebp - 0x111c]
mov eax, dword [ebp - 0x1040]
mov byte [ebp - 4], 0x10
cmp eax, 7
jbe 0x41d52d
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x41d523
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ce9a
push ecx
push esi
call fcn.0042604c
add esp, 8
mov edx, dword [ebp - 0x1120]
mov edi, dword [ebp - 0x1124]
mov eax, dword [ebp - 0x1070]
mov byte [ebp - 4], 0xf
cmp eax, 7
jbe 0x41d577
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d56d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ce9a
push ecx
push edx
call fcn.0042604c
add esp, 8
add edi, 0x30
mov dword [ebp - 0x1124], edi
cmp edi, dword [ebp - 0x1144]
jne 0x41d1c1
mov eax, dword [ebp - 0x1224]
lea ecx, [ebp - 0x1224]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
push eax
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x1224]
push eax
call fcn.0041c860
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
jne 0x41d1a1
mov ecx, dword [ebp - 0x1058]
mov byte [ebp - 4], 0xe
cmp ecx, 0xf
jbe 0x41d610
mov edx, dword [ebp - 0x106c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41d606
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ce9a
push ecx
push edx
call fcn.0042604c
add esp, 8
mov eax, dword [ebp - 0x1224]
mov dword [ebp - 0x105c], 0
mov dword [ebp - 0x1058], 0xf
mov byte [ebp - 0x106c], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1224]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x1228], eax
lea ecx, [ebp - 0x1214]
call fcn.0041ca20
lea ecx, [ebp - 0x120c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x11c4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 9
cmp eax, 0xf
jbe 0x41d6b2
mov edx, dword [ebp - 0x1148]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d6a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ce9a
push ecx
push edx
call fcn.0042604c
add esp, 8
push 0
lea eax, [ebp - 0x112c]
push eax
push 0x1000
lea eax, [ebp - 0x103c]
push eax
push dword [ebp - 0x1128]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d6e2
mov edi, dword [ebp - 0x114c]
jmp 0x41cfe0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x117c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x117c]
call esi
push dword [ebp - 0x1178]
call esi
push dword [ebp - 0x1128]
call esi
mov ecx, dword [ebp - 0x1088]
cmp ecx, 7
jbe 0x41d750
mov edx, dword [ebp - 0x109c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d746
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41d746
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042604c
add esp, 8
xor eax, eax
mov dword [ebp - 0x108c], 0
lea ecx, [ebp - 0x113c]
mov dword [ebp - 0x1088], 7
mov word [ebp - 0x109c], ax
call fcn.00406b30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
call fcn.004054c0
call fcn.00403d70
call fcn.00403e20
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_
int3