Function at 0x1001eeea
Capabilities:
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c57e9
mov eax, dword fs:[0]
push eax
mov eax, 0x1108
call fcn.10187310
mov eax, dword [0x1022c068]
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 dword [ebp - 0x1088], edx
mov ebx, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1098], eax
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, edi
mov dword [ebp - 0x1094], esi
mov esi, edi
mov dword [ebp - 0x1090], ecx
mov dword [ebp - 0x10ac], 0xc
mov dword [ebp - 0x10a4], 1
mov dword [ebp - 0x10a8], edi
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x105c], eax
mov dword [ebp - 0x1048], esi
cmp dword [edx + 0x10], edi
je 0x1001efeb
push edi
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x1048]
push eax
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1001f4d1
push edi
push 1
push dword [ebp - 0x1048]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1001efd9
push dword [ebp - 0x105c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1048]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SetHandleInformation_failed
jmp 0x1001f4d6
mov eax, dword [ebp - 0x105c]
mov esi, dword [ebp - 0x1048]
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1084], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x108c], esi
push edi
lea eax, [ebp - 0x10ac]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1068]
mov dword [ebp - 0x1060], edi
push eax
lea eax, [ebp - 0x1060]
mov dword [ebp - 0x1068], edi
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1001f4d1
mov eax, dword [ebp - 0x1060]
mov dword [ebp - 0x10a0], eax
mov dword [ebp - 0x10cc], eax
mov ecx, dword [ebp - 0x1068]
mov dword [ebp - 0x1074], ecx
mov dword [ebp - 0x1078], ecx
push edi
push 1
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1001efcf
push edi
lea eax, [ebp - 0x10ac]
mov dword [ebp - 0x1064], edi
push eax
lea eax, [ebp - 0x106c]
mov dword [ebp - 0x106c], edi
push eax
lea eax, [ebp - 0x1064]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1001f4d1
mov eax, dword [ebp - 0x1064]
mov dword [ebp - 0x109c], eax
mov dword [ebp - 0x10d0], eax
mov ecx, dword [ebp - 0x106c]
mov dword [ebp - 0x107c], ecx
mov dword [ebp - 0x1080], ecx
push edi
push 1
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1001efcf
push 0x44
pop edi
push edi
lea eax, [ebp - 0x1114]
push 0
push eax
call fcn.10188460
mov eax, dword [ebp - 0x1068]
lea ecx, [ebp - 0x1042]
mov dword [ebp - 0x10d8], eax
add esp, 8
mov eax, dword [ebp - 0x106c]
mov dword [ebp - 0x10d4], eax
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 0x10dc], eax
xor eax, eax
mov dword [ebp - 0x1114], edi
lea edi, [ebp - 0x10bc]
mov word [ebp - 0x10e4], ax
stosd dword es:[edi], eax
push ecx
lea ecx, [ebp - 0x10c8]
mov dword [ebp - 0x10e8], 0x101
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x1042], ax
mov eax, dword [ebx + 0x10]
inc eax
push eax
call fcn.1001f4f3
mov byte [ebp - 4], 6
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x1001f15c
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
lea eax, [ecx + eax*2]
jb 0x1001f166
mov ebx, dword [ebx]
sub eax, ebx
push eax
push ebx
push dword [ebp - 0x10c8]
call fcn.10187ee0
mov edx, dword [ebp - 0x10c8]
lea eax, [ebp - 0x10bc]
add esp, 0xc
push eax
push ecx
lea eax, [ebp - 0x1114]
push eax
push ecx
push ecx
push 0x8000000
push 1
push ecx
push ecx
xor ecx, ecx
call fcn.10042510
add esp, 0x24
test eax, eax
jne 0x1001f1e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x1028]
call fcn.1001f9d6
push eax
mov edx, str.nvCreateProcessW_failed_with
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1040]
call fcn.10006160
pop ecx
push eax
lea ecx, [ebp - 0x1058]
mov byte [ebp - 4], 8
call fcn.10001430
jmp 0x1001f4e1
push dword [ebp - 0x10b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10bc]
mov dword [ebp - 0x1070], edi
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1074]
test eax, eax
je 0x1001f216
cmp eax, 0xffffffff
je 0x1001f216
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x107c]
xor ebx, ebx
mov dword [ebp - 0x1078], ebx
test eax, eax
je 0x1001f234
cmp eax, 0xffffffff
je 0x1001f234
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x1080], ebx
test eax, eax
je 0x1001f250
cmp eax, 0xffffffff
je 0x1001f250
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1088]
mov dword [ebp - 0x1084], ebx
cmp dword [edx + 0x10], ebx
je 0x1001f2f8
push ebx
lea ecx, [ebp - 0x1028]
call fcn.10009dc0
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x104c]
cmp dword [ebp - 0x1014], 0x10
lea eax, [ebp - 0x1028]
push ebx
cmovae eax, dword [ebp - 0x1028]
push ecx
push dword [ebp - 0x1018]
mov dword [ebp - 0x104c], ebx
push eax
push dword [ebp - 0x1048]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001f2b9
push str.WriteFile_failed
jmp 0x1001f4d6
mov eax, dword [ebp - 0x104c]
cmp eax, dword [ebp - 0x1018]
je 0x1001f2d1
push str.WriteFile_didnt_write_everything
jmp 0x1001f4d6
test esi, esi
je 0x1001f2e1
cmp esi, 0xffffffff
je 0x1001f2e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x108c], esi
call fcn.10004080
push ebx
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1044], ebx
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001f378
mov ebx, dword [ebp - 0x1090]
push dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1044]
lea ecx, [ebp - 0x1010]
add eax, ecx
push eax
mov eax, ecx
mov ecx, ebx
push eax
push dword [ebx + 4]
call fcn.1001f687
and dword [ebp - 0x1044], 0
lea eax, [ebp - 0x1044]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001f328
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1001f4c7
push ebx
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1044], ebx
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1064]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001f405
mov ebx, dword [ebp - 0x1094]
push dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1044]
lea ecx, [ebp - 0x1010]
add eax, ecx
push eax
mov eax, ecx
mov ecx, ebx
push eax
push dword [ebx + 4]
call fcn.1001f687
and dword [ebp - 0x1044], 0
lea eax, [ebp - 0x1044]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1064]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001f3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1001f4c7
or ebx, 0xffffffff
push ebx
push dword [ebp - 0x10bc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1098]
push dword [ebp - 0x10bc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1001f45a
push str.GetExitCodeProcess_failed
lea ecx, [ebp - 0x101c]
call fcn.10001480
push 0x10229d38
lea eax, [ebp - 0x101c]
jmp 0x1001f4ec
test edi, edi
je 0x1001f469
cmp edi, ebx
je 0x1001f469
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10c8]
call fcn.1001caec
mov eax, dword [ebp - 0x109c]
test eax, eax
je 0x1001f489
cmp eax, ebx
je 0x1001f489
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10a0]
test eax, eax
je 0x1001f49e
cmp eax, ebx
je 0x1001f49e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1001f4ad
cmp esi, ebx
je 0x1001f4ad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.10186332
leave
ret
push str.ReadFile_failed
jmp 0x1001f43f
push str.CreatePipe_failed
lea ecx, [ebp - 0x1058]
call fcn.10001480
push 0x10229d38
lea eax, [ebp - 0x1058]
push eax
call fcn.101878e5
int3