Function at 0x401460
Capabilities:
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1b4
lea eax, [ebp - 0x48]
mov ecx, eax
call fcn.00489e40
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x50], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x54]
mov dword [esp + 8], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._CreatePipe_16
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x4014e8
lea eax, [ebp - 0x30]
mov ecx, eax
call fcn.0045a790
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.CreatePipe_failed_
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x30]
mov ecx, eax
call sym.std::allocator_char_::allocator__
jmp 0x401827
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0xb4]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0xb4], 0x44
mov eax, dword [ebp - 0x88]
or ah, 1
mov dword [ebp - 0x88], eax
mov dword [esp], 0xfffffff6
call sym._GetStdHandle_4
sub esp, 4
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x2f]
mov ecx, eax
call fcn.0045a790
lea eax, [ebp - 0xdc]
lea edx, [ebp - 0x2f]
mov dword [esp + 4], edx
mov dword [esp], str.cmd.exe__c
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x2f]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea eax, [ebp - 0xdc]
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
sub esp, 4
lea eax, [ebp - 0xdc]
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc4]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xb4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
sete al
test al, al
je 0x40171d
call sym._GetLastError_0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x164], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x164]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x400
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1300
call sym._FormatMessageA_28
sub esp, 0x1c
lea eax, [ebp - 0x2e]
mov ecx, eax
call fcn.0045a790
mov edx, dword [ebp - 0x164]
lea eax, [ebp - 0x17c]
lea ecx, [ebp - 0x2e]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x2e]
mov ecx, eax
call sym.std::allocator_char_::allocator__
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
lea eax, [ebp - 0x2d]
mov ecx, eax
call fcn.0045a790
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x17c]
mov dword [esp + 8], edx
mov dword [esp + 4], str.CreateProcess_failed:
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea eax, [ebp - 0x2c]
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov edx, eax
lea eax, [ebp - 0x2d]
mov dword [esp + 4], eax
mov dword [esp], edx
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x2c]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0x2d]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea eax, [ebp - 0x17c]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x40181a
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0xe0]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x7f
lea edx, [ebp - 0x160]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
test eax, eax
setne al
test al, al
je 0x401797
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x401796
mov eax, dword [ebp - 0xe0]
mov byte [ebp + eax - 0x160], 0
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x160]
mov dword [esp], edx
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_char_const_
sub esp, 4
jmp 0x40172b
nop
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
lea eax, [ebp - 0x48]
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
test eax, eax
setne al
test al, al
je 0x4017ed
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
sub esp, 4
jmp 0x40181a
lea eax, [ebp - 0x11]
mov ecx, eax
call fcn.0045a790
lea eax, [ebp - 0x11]
mov dword [esp + 4], eax
mov dword [esp], str.No_response
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x11]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea eax, [ebp - 0xdc]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0x48]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x4018c2
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
leave
ret