Function at 0x5a8110
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
push 0xffffffffffffffff
push 0x621319
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x6be5a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x46c], ebx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x42c]
push str.Cmd.exe__C
push ecx
mov dword [ebp - 4], ebx
call fcn.005a79d0
add esp, 0xc
push ebx
lea edx, [ebp - 0x48c]
push edx
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x468]
push ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x48c], 0xc
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x484], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x5a8201
push 1
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x6892d8
mov ecx, esi
mov byte [esi + 4], bl
call fcn.005a5230
mov edi, 0x10
cmp dword [ebp - 0x414], edi
jb 0x5a81d9
mov edx, dword [ebp - 0x428]
push edx
call fcn.00612a47
add esp, 4
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
cmp dword [ebp + 0x24], edi
jb 0x5a856c
mov eax, dword [ebp + 0x10]
push eax
jmp 0x5a8564
push 0x40
lea ecx, [ebp - 0x4cc]
push ebx
push ecx
mov dword [ebp - 0x4d0], 0x44
call fcn.005f6220
add esp, 0xc
lea edx, [ebp - 0x4d0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, 0x1f4
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4ac], eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], ebx
mov dword [ebp - 0x4c4], ebx
mov dword [ebp - 0x4c0], ebx
mov dword [ebp - 0x4bc], ebx
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b4], ebx
mov dword [ebp - 0x4a4], 0x101
mov word [ebp - 0x4a0], ax
mov word [ebp - 0x49e], cx
mov dword [ebp - 0x49c], ebx
call fcn.005f3977
mov dword [ebp - 0x498], eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x474], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x428]
mov edi, 0x10
cmp dword [ebp - 0x414], edi
jae 0x5a82db
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x480]
push edx
lea ecx, [ebp - 0x4d0]
push ecx
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x5a83df
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], ebx
mov byte [ebp - 0x444], bl
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x448]
push edx
call fcn.005a7d90
add esp, 8
cmp dword [ebp - 0x430], edi
mov edi, dword [ebp - 0x444]
jae 0x5a8348
lea edi, [ebp - 0x444]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push ebx
push 0x6893b4
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xc
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push 0x6893a4
mov ecx, esi
mov byte [esi + 4], bl
call fcn.005a5230
cmp dword [ebp - 0x430], 0x10
jb 0x5a8390
mov eax, dword [ebp - 0x444]
push eax
call fcn.00612a47
add esp, 4
cmp dword [ebp - 0x414], 0x10
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x434], ebx
mov byte [ebp - 0x444], bl
jb 0x5a83ba
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.00612a47
add esp, 4
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
jb 0x5a856c
mov edx, dword [ebp + 0x10]
push edx
jmp 0x5a8564
mov eax, dword [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44c], 0xf
mov dword [ebp - 0x450], ebx
mov byte [ebp - 0x460], bl
push 0x3ff
lea ecx, [ebp - 0x40f]
push ebx
push ecx
mov byte [ebp - 4], 3
mov byte [ebp - 0x410], bl
call fcn.005f6220
lea eax, [ebp - 0x410]
add esp, 0xc
mov dword [ebp - 0x46c], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5a8430
sub eax, edx
push eax
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x464]
call fcn.005a5230
mov edx, dword [ebp - 0x468]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x46c]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push edx
call edi
test eax, eax
je 0x5a84bd
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5a8480
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x464]
call fcn.005a4fc0
mov eax, dword [ebp - 0x468]
push ebx
lea ecx, [ebp - 0x46c]
push ecx
push 0x400
lea edx, [ebp - 0x410]
push edx
push eax
call edi
test eax, eax
jne 0x5a8473
mov ecx, dword [ebp - 0x468]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0x480]
push edx
call edi
mov eax, dword [ebp - 0x47c]
push eax
call edi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x464]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.005a5140
mov edi, 0x10
cmp dword [ebp - 0x44c], edi
jb 0x5a8518
mov edx, dword [ebp - 0x460]
push edx
call fcn.00612a47
add esp, 4
mov dword [ebp - 0x44c], 0xf
mov dword [ebp - 0x450], ebx
mov byte [ebp - 0x460], bl
cmp dword [ebp - 0x414], edi
jb 0x5a8545
mov eax, dword [ebp - 0x428]
push eax
call fcn.00612a47
add esp, 4
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
cmp dword [ebp + 0x24], edi
jb 0x5a856c
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00612a47
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f60cd
mov esp, ebp
pop ebp
ret