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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015ab40
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x101ac034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x88], 0xc
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 1
push 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100ffa5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.fail_CreatePipe_0x_x
push 1
push 0x337
push 0x1017dd44
push 0x1017dd90
call fcn.10145f00
add esp, 0x18
mov al, byte [ebp - 0x41]
mov byte [ebp - 0x43], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003e00
mov al, byte [ebp - 0x43]
jmp 0x100ffcc0
mov dword [ebp - 0xcc], 0
push 0x40
push 0
lea ecx, [ebp - 0xc8]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xcc], 0x44
mov dword [ebp - 0xa0], 0x101
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x90], eax
xor ecx, ecx
mov word [ebp - 0x9c], cx
lea ecx, [ebp + 8]
call fcn.10002bf0
push eax
push str.cmd__c__s
lea edx, [ebp - 0x28]
push edx
call fcn.1007cf90
add esp, 0xc
mov byte [ebp - 4], 1
sub esp, 0x18
mov eax, esp
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x14], edx
push str.cmd____s_
push 1
push 0x343
push 0x1017dde0
push 0x1017ddcc
call fcn.10146290
add esp, 0x2c
mov dword [ebp - 0x68], 0
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0xcc]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.10002bf0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100ffb74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.fail_CreateProcess_0x_x
push 1
push 0x348
push 0x1017de78
push 0x1017de38
call fcn.10146290
add esp, 0x18
jmp 0x100ffc6c
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100ffb9a
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100ffc6c
mov byte [ebp - 0x41], 1
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x100ffbc1
jmp 0x100ffc6c
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.1014578c
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x54]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x74], 0
push 0
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x50]
push edx
push str.Out_String___s
push 1
push 0x35d
push 0x1017deb8
push str.OSExecute
call fcn.10145f00
add esp, 0x18
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.100ff8e0
add esp, 8
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
push edx
mov ecx, dword [ebp + 0x20]
call fcn.10003480
lea ecx, [ebp - 0x40]
call fcn.10003e00
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp - 0x4c], 0xffffffff
je 0x100ffc7c
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x48], 0xffffffff
je 0x100ffc8c
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x68], 0
je 0x100ffc9c
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [ebp - 0x41]
mov byte [ebp - 0x42], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10003e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003e00
mov al, byte [ebp - 0x42]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101506bb
mov esp, ebp
pop ebp
ret