Function at 0x424440
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 0x429255
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x120]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
mov dword [ebp - 0x120], 0
call dword [sym.imp.MSVCP120.dll_enum_std::tr2::sys::file_type___cdecl_std::tr2::sys::_Stat_wchar_t_const___int__]
add esp, 8
test eax, eax
je 0x424963
cmp eax, 1
je 0x424963
push 0
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x11c], 0
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x13c], 0xc
push eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x424963
cmp dword [ebp - 0x11c], 0
je 0x424963
cmp dword [ebp - 0x124], 0
je 0x424963
lea eax, [ebp - 0x190]
mov dword [ebp - 0x190], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], eax
xor eax, eax
mov word [ebp - 0x160], ax
mov dword [ebp - 0x164], 0x101
call fcn.00412b60
push str.7za.exe
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00413be0
add esp, 4
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 5
call fcn.00403670
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp + 8]
call fcn.004097f0
mov edi, eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x20]
call fcn.004097f0
mov esi, eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x58]
call fcn.004097f0
push str._e__bsp2__y__
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.0040a2c0
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb8]
call fcn.0040f0e0
add esp, 4
push str.___o_
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa0]
call fcn.0040a2c0
add esp, 4
push edi
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x70]
call fcn.0040f0e0
add esp, 4
push 0x42cbf0
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.0040a2c0
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.00403670
lea ecx, [ebp - 0xa0]
call fcn.00403670
lea ecx, [ebp - 0xb8]
call fcn.00403670
lea ecx, [ebp - 0xe8]
call fcn.00403670
lea ecx, [ebp - 0x118]
call fcn.00403670
lea ecx, [ebp - 0xd0]
call fcn.00403670
lea ecx, [ebp - 0x88]
call fcn.00403670
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x190]
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x124]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
mov byte [ebp - 4], 0x15
test ebx, ebx
je 0x424937
mov ebx, dword [sym.imp.MSVCR120.dll_sscanf_s]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x128], ecx
cmp ecx, 0x400
jb 0x42470a
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0x400
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 0x400], 0
jmp 0x42479e
or eax, 0xffffffff
mov esi, 0x400
sub esi, ecx
sub eax, ecx
cmp eax, esi
jbe 0x42490f
test esi, esi
je 0x4247a1
lea edi, [ecx + esi]
cmp edi, 0xfffffffe
ja 0x42490f
cmp dword [ebp - 0x14], edi
jae 0x42473f
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403f60
jmp 0x424754
test edi, edi
jne 0x424759
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
test edi, edi
setne al
test al, al
je 0x4247a1
lea eax, [ebp - 0x28]
cmp esi, 1
jne 0x424776
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x42478c
cmp dword [ebp - 0x14], 0x10
push esi
cmovae eax, dword [ebp - 0x28]
add eax, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + edi], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x128]
push 0
push edx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424920
mov esi, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x18]
cmp esi, ecx
ja 0x4247ef
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x424879
or eax, 0xffffffff
sub esi, ecx
sub eax, ecx
cmp eax, esi
jbe 0x42490f
test esi, esi
je 0x42487c
lea edi, [ecx + esi]
cmp edi, 0xfffffffe
ja 0x42490f
cmp dword [ebp - 0x14], edi
jae 0x42483a
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403f60
mov ecx, dword [ebp - 0x18]
test edi, edi
je 0x42487c
lea eax, [ebp - 0x28]
cmp esi, 1
jne 0x424851
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
mov byte [ecx + eax], 0
jmp 0x424867
test edi, edi
jne 0x424824
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
jmp 0x424879
cmp dword [ebp - 0x14], 0x10
push esi
cmovae eax, dword [ebp - 0x28]
add eax, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmovae eax, dword [ebp - 0x28]
mov byte [edi + eax], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ebp + 0x48], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x12c], 0
je 0x4246e4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push str._d___n
push eax
call ebx
add esp, 0x10
test eax, eax
jle 0x4248d0
cmp dword [ebp - 0x12c], 0
jg 0x4248d8
jmp 0x4248d0
mov ecx, dword [ebp - 0x18]
jmp 0x4246e4
movd xmm0, dword [ebp - 0x120]
cvtdq2pd xmm0, xmm0
mov ecx, dword [ebp + 0x48]
divsd xmm0, qword [0x436e30]
movsd qword [ebp - 0x148], xmm0
test ecx, ecx
je 0x42491a
mov eax, dword [ecx]
lea edx, [ebp - 0x148]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
jmp 0x4246e4
push str.string_too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_function_call_void_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x130]
cmp eax, 0x6d
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
lea ecx, [ebp - 0x28]
sete bl
call fcn.00403540
lea ecx, [ebp - 0x40]
call fcn.00403670
lea ecx, [ebp - 0x58]
call fcn.00403670
jmp 0x424965
xor bl, bl
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x424979
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x42499b
push dword [ebp + 0x20]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x48]
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
test ecx, ecx
je 0x4249ce
mov esi, dword [ecx]
lea eax, [ebp + 0x38]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ad0
mov esp, ebp
pop ebp
ret