Function at 0x10004670
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
sub esp, 0x628
push ebx
push ebp
push esi
mov esi, 0x63
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [esp + 0xaa]
mov word [esp + 0xa8], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x239]
mov byte [esp + 0x238], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push ebx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], 0xc
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10004715
mov eax, dword [esp + 0x644]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [eax], 0x23000003
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1000486f
jmp 0x1000486c
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xa8]
push ecx
push ebx
push ebx
push 0x24
push ebx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], eax
mov word [esp + 0x98], bx
mov dword [esp + 0x94], 0x101
call dword [0x1000ee0c]
mov eax, 0x73
mov edx, 0x5c
mov word [esp + 0x1e], ax
mov word [esp + 0x22], ax
mov eax, 0x65
mov word [esp + 0x1c], dx
mov word [esp + 0x26], ax
mov word [esp + 0x38], ax
mov word [esp + 0x3c], ax
mov eax, 0x20
mov word [esp + 0x2e], dx
mov word [esp + 0x3e], ax
mov word [esp + 0x44], ax
lea edx, [esp + 0x1c]
lea eax, [esp + 0xa8]
mov ecx, 0x6d
push edx
push eax
mov word [esp + 0x28], 0x79
mov word [esp + 0x2c], 0x74
mov word [esp + 0x30], cx
mov word [esp + 0x32], 0x33
mov word [esp + 0x34], 0x32
mov word [esp + 0x38], si
mov word [esp + 0x3a], cx
mov word [esp + 0x3c], 0x64
mov word [esp + 0x3e], 0x2e
mov word [esp + 0x42], 0x78
mov word [esp + 0x48], 0x2f
mov word [esp + 0x4a], si
mov word [esp + 0x4e], bx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [esp + 0x644]
mov edx, dword [esp + 0x63c]
lea eax, [esp + 0xa8]
mov ecx, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0xc
lea ecx, [esp + 0x98]
lea edx, [esp + 0x54]
lea eax, [esp + 0xa8]
push ecx
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10004889
mov eax, dword [esp + 0x14]
mov dword [esi], 0x23000003
mov dword [esi + 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x1000486f
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10004925
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x628
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x238]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x240]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100048fe
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x640]
mov eax, ecx
lea esi, [esp + 0x238]
lea edi, [edx + ebp]
push 0xa
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebp, dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x644]
jmp 0x10004894
mov eax, dword [esp + 0x14]
lea ecx, [ebp + ebp]
cmp eax, ebx
mov dword [esi], ebx
mov dword [esi + 4], ecx
je 0x10004916
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10004925
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x628
ret