Function at 0x408d34
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x408d3d
mov eax, dword [ebp - 4]
add esp, 0xffffff3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20c8], ebx
mov dword [ebp - 0x20ac], ebx
mov dword [ebp - 0x20a8], ebx
mov dword [ebp - 0x20a4], ebx
mov dword [ebp - 0x40], ebx
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x2040]
push ecx
mov ecx, 0x800
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4092a3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20a0]
xor ecx, ecx
mov edx, 0xc
call fcn.0040288c
mov dword [ebp - 0x20a0], 0xc
xor eax, eax
mov dword [ebp - 0x209c], eax
mov dword [ebp - 0x2098], 0xffffffff
push 0
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0x2084]
xor ecx, ecx
mov edx, 0x44
call fcn.0040288c
mov dword [ebp - 0x2084], 0x44
mov dword [ebp - 0x2058], 0x101
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x204c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2048], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2044], eax
mov word [ebp - 0x2054], 0
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.004037d0
jne 0x408e76
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.00403598
jmp 0x408e8c
push dword [ebp - 4]
push 0x4092c0
push ebx
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00403744
cmp dword [ebp + 0x1c], 0
je 0x408eaa
push dword [ebp - 0x40]
push 0x4092c0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00403744
lea edx, [ebp - 0x20a4]
mov eax, dword [ebp - 0x40]
call fcn.00404b50
mov edx, dword [ebp - 0x20a4]
lea eax, [ebp - 0x40]
call fcn.00403598
lea eax, [ebp - 0x2094]
push eax
lea eax, [ebp - 0x2084]
push eax
mov eax, dword [ebp - 8]
call fcn.00403884
push eax
mov eax, dword [ebp + 0x18]
call fcn.00403884
push eax
push 4
push 0xffffffffffffffff
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x20a0]
push eax
mov eax, dword [ebp - 0x40]
call fcn.00403884
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x408f6b
push 0
mov eax, dword [ebp - 0x2094]
push eax
call sub.user32.dll_WaitForInputIdle
cmp eax, 0x102
jne 0x408f88
push ebp
lea eax, [ebp - 0x20a8]
call fcn.00408ca4
pop ecx
mov edx, dword [ebp - 0x20a8]
mov eax, edi
call fcn.00403554
push 0
mov eax, dword [ebp - 0x2094]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x2090]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x2094]
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x408f88
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x20ac]
call fcn.004053a4
mov edx, dword [ebp - 0x20ac]
mov eax, edi
call fcn.00403554
test bl, bl
jne 0x408fd7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20c4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20c0], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20bc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20b8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20b4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20b0], eax
lea eax, [ebp - 0x20c4]
mov edx, 5
call fcn.004050b0
jmp 0x409272
cmp dword [ebp + 0x14], 0
jne 0x408fe4
xor eax, eax
mov dword [ebp - 0x38], eax
jmp 0x409016
mov cl, 1
mov dl, 1
mov eax, dword [0x406e00]
call fcn.00405994
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 0x18
mov edx, dword [ebp + 0x14]
call fcn.00403554
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x14], edx
xor edx, edx
mov eax, dword [ebp - 0x38]
call fcn.00405a48
mov cl, 1
mov dl, 1
mov eax, dword [0x406e78]
call fcn.00405994
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
xor edx, edx
mov eax, dword [ebp - 0x3c]
call fcn.00405a48
mov dl, 1
mov eax, dword [0x4072ac]
call fcn.00408a00
mov dword [ebp - 0x2c], eax
mov dl, 1
mov eax, dword [0x407320]
call fcn.00402b2c
mov dword [ebp - 0x30], eax
mov cl, 1
mov dl, 1
mov eax, dword [0x406d9c]
call fcn.00405994
mov dword [ebp - 0x34], eax
mov dl, 2
mov eax, dword [ebp - 0x34]
call fcn.00405a30
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x20], edx
lea eax, [ebp - 0x2040]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x18], edx
xor edx, edx
mov eax, dword [ebp - 0x34]
call fcn.00405a48
mov dl, 1
mov eax, esi
call fcn.00405a30
mov eax, dword [ebp - 0x2090]
push eax
call sub.kernel32.dll_ResumeThread
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2094]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x2090]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x38], 0
jne 0x4090ed
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x409114
push 0xffffffffffffffff
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x38]
call fcn.00405a88
lea eax, [ebp - 0x38]
call fcn.00405888
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle
push 0xffffffffffffffff
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x3c]
call fcn.00405a88
mov eax, edi
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x18]
call fcn.00403554
lea eax, [ebp - 0x3c]
call fcn.00405888
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
push 0xffffffffffffffff
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x34]
call fcn.00405a88
mov dl, 3
mov eax, esi
call fcn.00405a30
jmp 0x4091cf
push 0
lea eax, [ebp - 0x10]
push eax
push 0x2000
lea eax, [ebp - 0x2040]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4091d8
cmp dword [ebp - 0x10], 0
je 0x4091d8
lea eax, [ebp - 0x2040]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.00408aa8
xor al, 1
mov edx, dword [ebp - 0x34]
mov byte [edx + 0x14], al
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 0
jle 0x4091cf
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x1c], 0
jne 0x4091d8
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x14], 0
je 0x40917b
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x2094]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x14], 0
jne 0x4091ff
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x1c], 0
jne 0x409207
lea eax, [ebp - 0x2c]
call fcn.00405888
lea eax, [ebp - 0x34]
call fcn.00405888
cmp dword [ebp - 0x2c], 0
jne 0x40921f
lea eax, [ebp - 0x30]
call fcn.00405888
jmp 0x409272
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 0
jne 0x409259
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
call fcn.00403684
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x14], ebx
lea edx, [ebp - 0x20c8]
mov eax, ebx
call fcn.00404a70
mov edx, dword [ebp - 0x20c8]
mov eax, dword [ebp - 0x30]
add eax, 0x14
call fcn.00403554
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
call fcn.00408388
lea eax, [ebp - 0x2c]
call fcn.00405888
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092aa
lea eax, [ebp - 0x20c8]
call fcn.00403500
lea eax, [ebp - 0x20ac]
mov edx, 3
call fcn.00403524
lea eax, [ebp - 0x40]
call fcn.00403500
ret