Function at 0x1010c9b0
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 0x10142827
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x1017b074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x134], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov dword [ebp - 0x138], edi
mov byte [edi], 0
push 0
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x134], 1
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0
push eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xc4], 0xc
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xc0], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1010ce37
push 0
push 1
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1010caa4
push str.SetHandleInformation_failed
jmp 0x1010ce3c
xor eax, eax
mov dword [ebp - 0x118], 0x44
xorps xmm0, xmm0
mov word [ebp - 0xde], ax
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
or ecx, 0x101
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xdc], eax
xor eax, eax
push 0xb
mov dword [ebp - 0xec], ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
push str.cmd.exe__C
movlpd qword [ebp - 0x114], xmm0
movlpd qword [ebp - 0x10c], xmm0
movlpd qword [ebp - 0x104], xmm0
movlpd qword [ebp - 0xfc], xmm0
movlpd qword [ebp - 0xf4], xmm0
movlpd qword [ebp - 0xe6], xmm0
mov word [ebp - 0xe8], ax
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
call fcn.100ee160
mov ecx, esi
mov dword [ebp - 4], 1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1010cb45
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100fb5e0
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.1014067b
mov esi, eax
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0x10
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1010cbb7
push str.CreateProcess_failed
jmp 0x1010ce3c
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x80
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010cdd6
nop dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x128], ecx
test ecx, ecx
je 0x1010cdd6
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x124], eax
sub eax, edx
mov dword [ebp - 0x12c], edx
cmp ecx, eax
ja 0x1010cc55
cmp dword [ebp - 0x124], 0x10
lea eax, [ecx + edx]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x1010cc2c
mov eax, dword [edi]
lea edi, [eax + edx]
push ecx
lea eax, [ebp - 0xb0]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x128]
add esp, 0xc
mov byte [edi + eax], 0
mov edi, dword [ebp - 0x138]
jmp 0x1010cdb0
mov eax, SysReAllocString
sub eax, edx
cmp eax, ecx
jb 0x1010ce32
lea eax, [ecx + edx]
mov edx, eax
mov dword [ebp - 0x130], eax
or edx, 0xf
cmp edx, 0x7fffffff
jbe 0x1010cc81
mov edx, SysReAllocString
jmp 0x1010ccb4
mov ecx, dword [ebp - 0x124]
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x120], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x120]
cmp ecx, eax
jbe 0x1010cca7
mov edx, SysReAllocString
jmp 0x1010ccb4
mov eax, dword [ebp - 0x120]
add eax, ecx
cmp edx, eax
cmovb edx, eax
xor ecx, ecx
mov dword [ebp - 0x11c], edx
add edx, 1
setb cl
neg ecx
or ecx, edx
push ecx
mov ecx, edi
call fcn.100ee0a0
mov ecx, dword [ebp - 0x11c]
mov edx, eax
mov eax, dword [ebp - 0x130]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [edi + 0x10], eax
mov dword [ebp - 0x120], edx
push ecx
lea eax, [edx + ecx]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x11c]
cmp dword [ebp - 0x124], 0x10
mov dword [ebp - 0x130], eax
jb 0x1010cd7d
mov eax, dword [edi]
push eax
push edx
mov dword [ebp - 0x12c], eax
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x128]
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x11c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x130]
add esp, 0x18
mov ecx, dword [ebp - 0x124]
inc ecx
mov byte [eax], 0
mov eax, dword [ebp - 0x12c]
cmp ecx, 0x1000
jb 0x1010cd71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010ce2c
mov eax, edx
push ecx
push eax
call fcn.101402f2
add esp, 8
jmp 0x1010cda8
push edi
push edx
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x128]
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x11c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x130]
add esp, 0x18
mov byte [eax], 0
mov eax, dword [ebp - 0x120]
mov dword [edi], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x80
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010cbf0
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1010ce07
push esi
call fcn.10140684
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.100ed7e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10140300
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.100ee080
push str.CreatePipe_failed
lea ecx, [ebp - 0x144]
call fcn.10108230
push 0x101783c4
lea eax, [ebp - 0x144]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3