Function at 0x463268
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
add esp, 0xfffffe74
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404984
xor eax, eax
push ebp
push 0x463660
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004044e4
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], 0xffffffff
xor eax, eax
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x46362b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f40
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 0x101
mov word [ebp - 0x3c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x7c]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f40
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404994
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x463614
xor eax, eax
push ebp
push 0x46360d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x18]
push eax
push 0xff
lea eax, [ebp - 0x17c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp dword [ebp - 0x18], 0
jbe 0x4635d2
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x17c], 0
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x17c]
mov ecx, pe_nt_image_headers32
call fcn.0040474c
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 8]
call fcn.004047a4
mov eax, dword [ebp - 8]
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x17c]
mov ecx, pe_nt_image_headers32
call fcn.0040474c
mov edx, dword [ebp - 0x1c]
mov eax, 0x463678
call fcn.00404ad8
test eax, eax
jle 0x4634b9
mov edx, dword [ebp - 0x1c]
mov eax, 0x463678
call fcn.00404ad8
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040479c
inc eax
pop edx
sub eax, edx
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x463678
call fcn.00404ad8
mov edx, eax
lea eax, [ebp - 0x1c]
pop ecx
call fcn.00404a34
mov edx, dword [ebp - 0x1c]
mov eax, 0x463684
call fcn.00404ad8
mov ecx, eax
lea eax, [ebp - 0x1c]
mov edx, 1
call fcn.00404a34
mov al, byte [0x463688]
push eax
lea eax, [ebp - 0x184]
push eax
xor ecx, ecx
mov edx, 0x463694
mov eax, dword [ebp - 0x1c]
call fcn.0040b628
mov edx, dword [ebp - 0x184]
lea eax, [ebp - 0x1c]
call fcn.0040457c
cmp dword [ebp - 0x1c], 0
je 0x4634b9
xor eax, eax
push ebp
push 0x4634af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00408a40
mov edx, eax
mov eax, dword [0x46bd04]
mov eax, dword [eax + 0x310]
call fcn.004544f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4634b9
mov edx, dword [ebp - 0x1c]
mov eax, 0x4636a0
call fcn.00404ad8
test eax, eax
jle 0x4635c6
mov edx, dword [ebp - 0x1c]
mov eax, 0x4636bc
call fcn.00404ad8
mov ecx, eax
inc ecx
lea eax, [ebp - 0x1c]
mov edx, 1
call fcn.00404a34
mov edx, dword [ebp - 0x1c]
mov eax, 0x4636c8
call fcn.00404ad8
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040479c
inc eax
pop edx
sub eax, edx
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x4636c8
call fcn.00404ad8
mov edx, eax
lea eax, [ebp - 0x1c]
pop ecx
call fcn.00404a34
mov al, byte [0x463688]
push eax
lea eax, [ebp - 0x188]
push eax
xor ecx, ecx
mov edx, 0x4636c8
mov eax, dword [ebp - 0x1c]
call fcn.0040b628
mov edx, dword [ebp - 0x188]
lea eax, [ebp - 0x1c]
call fcn.0040457c
mov al, byte [0x463688]
push eax
lea eax, [ebp - 0x18c]
push eax
xor ecx, ecx
mov edx, 0x463694
mov eax, dword [ebp - 0x1c]
call fcn.0040b628
mov edx, dword [ebp - 0x18c]
lea eax, [ebp - 0x1c]
call fcn.0040457c
lea eax, [ebp - 0x1c]
mov ecx, 9
mov edx, 3
call fcn.00404a34
cmp dword [ebp - 0x1c], 0
je 0x4635c6
xor eax, eax
push ebp
push 0x4635bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00408a40
mov edx, eax
mov eax, dword [0x46bd04]
mov eax, dword [eax + 0x310]
call fcn.004544f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4635c6
mov eax, dword [0x46ab20]
mov eax, dword [eax]
call fcn.00452098
cmp byte [ebp - 0x11], 0
je 0x4635e2
cmp dword [ebp - 0x18], 0
jne 0x463376
push 0xffffffffffffffff
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463614
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463632
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret