Function at 0x100508c0
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102c58fd
mov eax, dword fs:[0]
push eax
mov eax, 0x10a8
call fcn.102c2890
mov eax, dword [0x1066bbc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10a0], edx
mov edi, ecx
mov dword [ebp - 0x10a8], edi
mov dword [ebp - 0x10b4], edi
xorps xmm0, xmm0
mov dword [ebp - 0x10b0], 1
push 0
movups xmmword [edi], xmm0
push 0x10344992
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.10053700
push 0
lea eax, [ebp - 0x1058]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x10b0], 1
push eax
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1040], 0
push eax
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1058], 0xc
mov dword [ebp - 0x1050], 1
mov dword [ebp - 0x1054], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10050da1
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x1044]
call esi
test eax, eax
je 0x10050da1
push 0
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10050da1
push 0
push 1
push dword [ebp - 0x1040]
call esi
test eax, eax
je 0x10050da1
mov eax, dword [ebp - 0x1048]
xorps xmm0, xmm0
mov dword [ebp - 0x105c], eax
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x1060], eax
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x109c]
movlpd qword [ebp - 0x1070], xmm0
or dword [ebp - 0x1070], 0x100
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push dword [ebp - 0x10a0]
movups xmmword [ebp - 0x1038], xmm0
push 0
movlpd qword [ebp - 0x1098], xmm0
movlpd qword [ebp - 0x1090], xmm0
movlpd qword [ebp - 0x1088], xmm0
movlpd qword [ebp - 0x1080], xmm0
movlpd qword [ebp - 0x1078], xmm0
movlpd qword [ebp - 0x1068], xmm0
mov dword [ebp - 0x109c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x1048]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x104c]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x103c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1040]
call esi
test eax, eax
je 0x10050c27
nop dword [eax + eax]
mov eax, dword [ebp - 0x103c]
test eax, eax
je 0x10050c27
push eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1018], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1014], 0
push eax
lea ecx, [ebp - 0x1028]
movups xmmword [ebp - 0x1028], xmm0
call fcn.10053700
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1028]
cmp dword [ebp - 0x1014], 0xf
mov esi, dword [ebp - 0x1028]
mov edx, dword [edi + 0x10]
cmova eax, esi
mov ecx, dword [ebp - 0x1018]
mov dword [ebp - 0x10a0], eax
mov eax, dword [edi + 0x14]
sub eax, edx
mov dword [ebp - 0x10ac], edx
cmp ecx, eax
ja 0x10050ba0
cmp dword [edi + 0x14], 0xf
lea eax, [ecx + edx]
mov dword [edi + 0x10], eax
mov eax, edi
mov dword [ebp - 0x10a4], edi
jbe 0x10050b76
mov eax, dword [edi]
mov dword [ebp - 0x10a4], eax
push ecx
push dword [ebp - 0x10a0]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1018]
add esp, 0xc
add eax, dword [ebp - 0x10a4]
mov ecx, dword [ebp - 0x10ac]
mov byte [eax + ecx], 0
jmp 0x10050bc2
push ecx
push dword [ebp - 0x10a0]
mov byte [ebp - 0x10a8], 0
push dword [ebp - 0x10a8]
push ecx
mov ecx, edi
call fcn.10053580
mov esi, dword [ebp - 0x1028]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1014]
cmp eax, 0xf
jbe 0x10050bfc
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10050bf2
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050dbe
push ecx
push esi
call fcn.102c1b57
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x103c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1040]
call esi
test eax, eax
jne 0x10050ae0
push 0
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x103c], 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1044]
call esi
test eax, eax
je 0x10050da1
nop word [eax + eax]
mov eax, dword [ebp - 0x103c]
test eax, eax
je 0x10050da1
push eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1018], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1014], 0
push eax
lea ecx, [ebp - 0x1028]
movups xmmword [ebp - 0x1028], xmm0
call fcn.10053700
mov dword [ebp - 4], 2
lea eax, [ebp - 0x1028]
cmp dword [ebp - 0x1014], 0xf
mov esi, dword [ebp - 0x1028]
mov edx, dword [edi + 0x10]
cmova eax, esi
mov ecx, dword [ebp - 0x1018]
mov dword [ebp - 0x10a4], eax
mov eax, dword [edi + 0x14]
sub eax, edx
mov dword [ebp - 0x10a8], edx
cmp ecx, eax
ja 0x10050d20
cmp dword [edi + 0x14], 0xf
lea eax, [ecx + edx]
mov dword [edi + 0x10], eax
mov eax, edi
mov dword [ebp - 0x10a0], edi
jbe 0x10050cf6
mov eax, dword [edi]
mov dword [ebp - 0x10a0], eax
push ecx
push dword [ebp - 0x10a4]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1018]
add esp, 0xc
add eax, dword [ebp - 0x10a0]
mov ecx, dword [ebp - 0x10a8]
mov byte [eax + ecx], 0
jmp 0x10050d42
push ecx
push dword [ebp - 0x10a4]
mov byte [ebp - 0x10ac], 0
push dword [ebp - 0x10ac]
push ecx
mov ecx, edi
call fcn.10053580
mov esi, dword [ebp - 0x1028]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1014]
cmp eax, 0xf
jbe 0x10050d78
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10050d6e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050dbe
push ecx
push esi
call fcn.102c1b57
add esp, 8
push 0
lea eax, [ebp - 0x103c]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1044]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10050c60
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.102c15f2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3