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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5055d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1084
call fcn.00472c70
push edi
mov dword [ebp - 0x1088], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.004dc873
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x464883
push 0x54832c
mov ecx, dword [ebp + 8]
call fcn.004dcb6c
mov ecx, dword [ebp - 0x1088]
or ecx, 1
mov dword [ebp - 0x1088], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004dcafe
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004dcafe
mov eax, dword [ebp + 8]
jmp 0x464acf
mov dword [ebp - 0x78], 0x44
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0x101
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00401820
push eax
lea ecx, [ebp - 0x30]
call fcn.004dcf2e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x46499a
lea ecx, [ebp - 0x30]
push ecx
push str.cmd__k
lea edx, [ebp - 0x1084]
push edx
call fcn.004dce07
mov dword [ebp - 0x108c], eax
mov eax, dword [ebp - 0x108c]
mov dword [ebp - 0x1090], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1090]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004dcc37
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1084]
call fcn.004dcafe
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00401820
push eax
lea ecx, [ebp - 0x30]
call fcn.004dcf2e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x46499a
push 0x548340
mov ecx, dword [ebp + 8]
call fcn.004dcb6c
mov ecx, dword [ebp - 0x1088]
or ecx, 1
mov dword [ebp - 0x1088], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004dcafe
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004dcafe
mov eax, dword [ebp + 8]
jmp 0x464acf
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
and eax, 0xff
test eax, eax
je 0x464a98
mov byte [ebp - 0x1080], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x107f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x554214
lea ecx, [ebp - 0x80]
call fcn.004dcb6c
mov byte [ebp - 4], 4
mov ecx, 1
test ecx, ecx
je 0x464a32
push 0x1000
push 0
lea edx, [ebp - 0x1080]
push edx
call fcn.00472380
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
push 0x1000
lea ecx, [ebp - 0x1080]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x464a2e
lea eax, [ebp - 0x1080]
push eax
lea ecx, [ebp - 0x80]
call fcn.004dceda
jmp 0x464a30
jmp 0x464a32
jmp 0x4649de
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x80]
call fcn.00402840
test eax, eax
je 0x464a55
push 0x54834c
lea ecx, [ebp - 0x80]
call fcn.004dcc87
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.004dc873
mov eax, dword [ebp - 0x1088]
or al, 1
mov dword [ebp - 0x1088], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.004dcafe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004dcafe
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004dcafe
mov eax, dword [ebp + 8]
jmp 0x464acf
push 0x548358
mov ecx, dword [ebp + 8]
call fcn.004dcb6c
mov ecx, dword [ebp - 0x1088]
or ecx, 1
mov dword [ebp - 0x1088], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004dcafe
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004dcafe
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret