Function at 0x4014e0
Capabilities:
Create pipe
Create process on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [esp], 0x1000
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x4017e5
lea eax, [esp + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 1
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
test eax, eax
je 0x401730
mov eax, dword [esp + 0x44]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.KERNEL32.dll_SetHandleInformation
sub esp, 0xc
test eax, eax
je 0x401767
lea edx, [esp + 0x6c]
xor eax, eax
mov ecx, 0x11
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov edi, edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 1
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xd0]
mov dword [esp], 0
mov dword [esp + 0x6c], 0x44
mov dword [esp + 0x98], 0x100
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x4017c2
mov eax, dword [esp + 0x48]
xor edi, edi
mov ebx, 0x1000
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [esp + 0x3c], 0xfff
nop
lea eax, [esp + 0x4c]
lea ebp, [esi + edi]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ebp
sub eax, edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x4016a2
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4016a2
add edi, eax
lea eax, [edi + 1]
cmp ebx, eax
ja 0x401640
add ebx, ebx
mov dword [esp], esi
mov dword [esp + 4], ebx
call sub.msvcrt.dll_realloc
test eax, eax
je 0x4016e0
mov esi, eax
lea eax, [ebx - 1]
mov dword [esp + 0x3c], eax
jmp 0x401640
mov byte [ebp], 0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
sub esp, 4
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x19
mov dword [esp + 4], 1
mov dword [esp], str.Memory_allocation_failed_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
xor eax, eax
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x12
mov dword [esp + 4], 1
mov dword [esp], str.CreatePipe_failed_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x4016d5
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 1
mov dword [esp], str.SetHandleInformation_failed_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [esp], esi
call sub.msvcrt.dll_free
add esp, 0xbc
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.CreateProcess_failed___d__n
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x40178f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x19
mov dword [esp + 4], 1
mov dword [esp], str.Memory_allocation_failed_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
xor eax, eax
jmp 0x4016d5