Function at 0x10001360
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f5e7
mov eax, dword fs:[0]
push eax
mov eax, 0x11100
call fcn.1000f140
mov eax, dword [0x1001700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x1104c], 0
mov dword [ebp - 0x11048], 0xf
mov byte [ebp - 0x1105c], 0
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100013b1
sub edx, esi
push edx
push ecx
lea ecx, [ebp - 0x1105c]
call fcn.100020c0
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1105c]
mov ecx, esp
push eax
call fcn.10001e90
lea ecx, [ebp - 0x1102c]
call section..text
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1102c]
cmp dword [ebp - 0x11018], 8
push 0x8000
cmovae eax, dword [ebp - 0x1102c]
push eax
lea eax, [ebp - 0x11010]
push 0x8000
push eax
call fcn.10006196
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x110ac]
add esp, 0x28
mov dword [ebp - 0x1109c], 0
mov dword [ebp - 0x110a0], 0
mov dword [ebp - 0x11094], 0
mov dword [ebp - 0x11098], 0
push 0
push eax
lea eax, [ebp - 0x110a0]
mov dword [ebp - 0x110ac], 0xc
push eax
lea eax, [ebp - 0x1109c]
mov dword [ebp - 0x110a8], 0
push eax
mov dword [ebp - 0x110a4], 1
call esi
test eax, eax
jne 0x10001540
mov edx, dword [ebp - 0x11018]
cmp edx, 8
jb 0x100014c9
mov ecx, dword [ebp - 0x1102c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100014bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001cd3
push edx
push ecx
call fcn.10002c2a
add esp, 8
mov edx, dword [ebp - 0x11048]
xor eax, eax
mov dword [ebp - 0x1101c], 0
mov dword [ebp - 0x11018], 7
mov word [ebp - 0x1102c], ax
cmp edx, 0x10
jb 0x10001520
mov ecx, dword [ebp - 0x1105c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001516
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001cd3
push edx
push ecx
call fcn.10002c2a
add esp, 8
mov eax, 0x10014b68
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.100024ef
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x110ac]
push eax
lea eax, [ebp - 0x11098]
push eax
lea eax, [ebp - 0x11094]
push eax
call esi
test eax, eax
je 0x10001489
mov eax, dword [ebp - 0x11098]
xorps xmm0, xmm0
mov dword [ebp - 0x110c0], eax
mov dword [ebp - 0x110c4], eax
mov eax, dword [ebp - 0x1109c]
mov dword [ebp - 0x110c8], eax
lea eax, [ebp - 0x110bc]
push eax
lea eax, [ebp - 0x11100]
movlpd qword [ebp - 0x110fc], xmm0
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x11010]
movlpd qword [ebp - 0x110f4], xmm0
push eax
push 0
movlpd qword [ebp - 0x110ec], xmm0
movlpd qword [ebp - 0x110e4], xmm0
movlpd qword [ebp - 0x110dc], xmm0
movlpd qword [ebp - 0x110d0], xmm0
mov dword [ebp - 0x11100], 0x44
mov dword [ebp - 0x110d4], 0x100
movups xmmword [ebp - 0x110bc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10001c42
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 5
push dword [ebp - 0x110bc]
call esi
cmp eax, 0x102
jne 0x10001660
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
nop
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x11090]
push eax
call edi
test eax, eax
je 0x1000164f
lea eax, [ebp - 0x11090]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x11090]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 5
push dword [ebp - 0x110bc]
call esi
cmp eax, 0x102
je 0x10001620
push dword [ebp - 0x11098]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1109c]
call edi
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.10003c40
add esp, 0xc
mov dword [ebp - 0x11014], 0
lea eax, [ebp - 0x11014]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x11094]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x11064], 0
mov esi, eax
mov dword [ebp - 0x11060], 0xf
mov byte [ebp - 0x11074], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100016e0
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x11074]
call fcn.100020c0
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x11074]
mov ecx, esp
push eax
call fcn.10001e90
lea ecx, [ebp - 0x11044]
call section..text
add esp, 0x18
mov byte [ebp - 4], 3
cmp esi, 1
jne 0x100018c7
nop dword [eax]
mov eax, dword [ebp - 0x11014]
cmp eax, 0x1000
jae 0x10001cd8
cmp dword [ebp - 0x11030], 8
mov byte [ebp + eax - 0x1010], 0
lea eax, [ebp - 0x11044]
cmovae eax, dword [ebp - 0x11044]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x11030], 8
lea eax, [ebp - 0x11044]
cmovae eax, dword [ebp - 0x11044]
push eax
call fcn.10005e66
add esp, 4
lea eax, [ebp - 0x11014]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x11094]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1110c], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100017b3
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x11074]
call fcn.100020c0
sub esp, 0x18
lea eax, [ebp - 0x11074]
mov ecx, esp
push eax
call fcn.10001e90
lea ecx, [ebp - 0x1108c]
call section..text
add esp, 0x18
mov byte [ebp - 4], 4
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x100017fc
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
mov esi, dword [ebp - 0x11034]
mov eax, dword [ebp - 0x11030]
sub eax, esi
mov dword [ebp - 0x11108], esi
cmp ecx, eax
ja 0x10001859
cmp dword [ebp - 0x11030], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [ebp - 0x11034], edi
push eax
mov eax, dword [ebp - 0x11108]
lea esi, [ebp - 0x11044]
cmovae esi, dword [ebp - 0x11044]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.10005160
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x1110c]
jmp 0x10001874
push ecx
push edx
mov byte [ebp - 0x11104], 0
push dword [ebp - 0x11104]
push ecx
lea ecx, [ebp - 0x11044]
call fcn.10002200
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x11078]
cmp edx, 8
jb 0x100018b8
mov ecx, dword [ebp - 0x1108c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100018ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001cdd
push edx
push ecx
call fcn.10002c2a
add esp, 8
cmp edi, 1
je 0x10001730
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x11094]
call edi
push dword [ebp - 0x110a0]
call edi
push dword [ebp - 0x110bc]
call edi
push dword [ebp - 0x110b8]
call edi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10017cf8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100183d0]
cmp eax, dword [ecx + 4]
jle 0x1000194b
push 0x100183d0
call fcn.1000260f
add esp, 4
cmp dword [0x100183d0], 0xffffffff
jne 0x1000194b
push 0x1000f630
mov dword [0x100183e4], 0
mov dword [0x100183e8], 0xf
mov byte [0x100183d4], 0
call fcn.10002c15
push 0x100183d0
call fcn.100025c5
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x11044]
mov esi, esp
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp - 0x11030], 8
mov ecx, dword [ebp - 0x11034]
cmovae eax, dword [ebp - 0x11044]
mov dword [ebp - 0x11108], ecx
mov dword [ebp - 0x11104], eax
cmp ecx, 8
jae 0x10001999
movups xmm0, xmmword [eax]
mov edi, 7
movups xmmword [esi], xmm0
jmp 0x10001a21
mov edi, ecx
mov eax, 0x7ffffffe
or edi, 7
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x100019ba
or ecx, 0xffffffff
jmp 0x100019c2
cmp ecx, 0x1000
jb 0x100019e9
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100028e0
add esp, 4
test eax, eax
je 0x10001cdd
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x100019fc
test ecx, ecx
je 0x100019fa
push ecx
call fcn.100028e0
add esp, 4
mov ecx, eax
jmp 0x100019fc
xor ecx, ecx
mov eax, dword [ebp - 0x11108]
mov dword [esi], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x11104]
push ecx
call fcn.10005820
mov ecx, dword [ebp - 0x11108]
add esp, 0xc
mov dword [esi + 0x10], ecx
lea ecx, [ebp - 0x1108c]
mov dword [esi + 0x14], edi
call fcn.100011a0
mov esi, eax
add esp, 0x18
cmp esi, 0x100183d4
je 0x10001ac0
mov edx, dword [0x100183e8]
cmp edx, 0x10
jb 0x10001a7d
mov ecx, dword [0x100183d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001a73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001cdd
push edx
push ecx
call fcn.10002c2a
add esp, 8
mov dword [0x100183e4], 0
mov dword [0x100183e8], 0xf
mov byte [0x100183d4], 0
movups xmm0, xmmword [esi]
movups xmmword [0x100183d4], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x100183e4], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x11078]
cmp edx, 0x10
jb 0x10001afa
mov ecx, dword [ebp - 0x1108c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001af0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001cdd
push edx
push ecx
call fcn.10002c2a
add esp, 8
cmp dword [0x100183e8], 0x10
mov esi, 0x100183d4
mov edx, dword [ebp - 0x11030]
cmovae esi, dword [0x100183d4]
cmp edx, 8
jb 0x10001b4d
mov ecx, dword [ebp - 0x11044]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001b43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001ce2
push edx
push ecx
call fcn.10002c2a
add esp, 8
mov edx, dword [ebp - 0x11060]
xor eax, eax
mov dword [ebp - 0x11034], 0
mov dword [ebp - 0x11030], 7
mov word [ebp - 0x11044], ax
cmp edx, 0x10
jb 0x10001ba4
mov ecx, dword [ebp - 0x11074]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001b9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001ce2
push edx
push ecx
call fcn.10002c2a
add esp, 8
mov edx, dword [ebp - 0x11018]
cmp edx, 8
jb 0x10001be4
mov ecx, dword [ebp - 0x1102c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001bda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001ce2
push edx
push ecx
call fcn.10002c2a
add esp, 8
mov edx, dword [ebp - 0x11048]
xor eax, eax
mov dword [ebp - 0x1101c], 0
mov dword [ebp - 0x11018], 7
mov word [ebp - 0x1102c], ax
cmp edx, 0x10
jb 0x10001c3b
mov ecx, dword [ebp - 0x1105c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001c31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001ce2
push edx
push ecx
call fcn.10002c2a
add esp, 8
mov eax, esi
jmp 0x10001525
mov edx, dword [ebp - 0x11018]
cmp edx, 8
jb 0x10001c7e
mov ecx, dword [ebp - 0x1102c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001c74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001cd3
push edx
push ecx
call fcn.10002c2a
add esp, 8
mov edx, dword [ebp - 0x11048]
xor eax, eax
mov dword [ebp - 0x1101c], 0
mov dword [ebp - 0x11018], 7
mov word [ebp - 0x1102c], ax
cmp edx, 0x10
jb 0x10001520
mov ecx, dword [ebp - 0x1105c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001516
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001516
call fcn.1000607a
call fcn.10002806
call fcn.1000607a
call fcn.1000607a
int3