Function at 0x10013400
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071be0
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.1004d260
mov eax, dword [0x10093054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1050], ecx
mov dword [ebp - 0x1034], 0
cmp dword [ebp + 0x20], 0
jne 0x1001349b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x103c], eax
mov ecx, dword [ebp - 0x103c]
add ecx, 1
mov dword [ebp - 0x1048], ecx
mov edx, dword [ebp - 0x103c]
mov al, byte [edx]
mov byte [ebp - 0x1035], al
add dword [ebp - 0x103c], 1
cmp byte [ebp - 0x1035], 0
jne 0x1001345d
mov ecx, dword [ebp - 0x103c]
sub ecx, dword [ebp - 0x1048]
mov dword [ebp - 0x104c], ecx
mov edx, dword [ebp - 0x104c]
mov dword [ebp - 0x1040], edx
jmp 0x100134a4
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1040], eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x1040]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1050]
call fcn.10013010
mov dword [ebp - 4], 0
mov dword [ebp - 0x102c], 0
mov ecx, 1
test ecx, ecx
je 0x100135e3
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1030], eax
cmp dword [ebp - 0x1030], 0xffffffff
je 0x10013518
jmp 0x100135e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x1001357b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x102c], eax
mov eax, dword [ebp - 0x102c]
push eax
push str.Could_not_open_pipe._GLE_u_n
call fcn.100141d0
add esp, 8
mov ecx, dword [ebp - 0x1030]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x102c]
mov dword [ebp - 0x1054], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1028]
call fcn.100080b0
mov eax, dword [ebp - 0x1054]
jmp 0x1001380e
push 0x4e20
push 0x10076c88
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x100135de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x102c], eax
push str.Could_not_open_pipe:_20_second_wait_timed_out.
call fcn.10002000
add esp, 4
mov eax, dword [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x102c]
mov dword [ebp - 0x1058], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1028]
call fcn.100080b0
mov eax, dword [ebp - 0x1058]
jmp 0x1001380e
jmp 0x100134de
mov dword [ebp - 0x105c], 2
push 0
push 0
lea edx, [ebp - 0x105c]
push edx
mov eax, dword [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov dword [ebp - 0x1034], eax
cmp dword [ebp - 0x1034], 0
jne 0x1001366a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x102c], eax
mov ecx, dword [ebp - 0x102c]
push ecx
push str.SetNamedPipeHandleState_failed._GLE_u_n
call fcn.100141d0
add esp, 8
mov edx, dword [ebp - 0x1030]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1060], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1028]
call fcn.100080b0
mov eax, dword [ebp - 0x1060]
jmp 0x1001380e
lea ecx, [ebp - 0x1028]
call fcn.1000fa00
add eax, 1
mov dword [ebp - 0x1044], eax
lea ecx, [ebp - 0x1028]
call fcn.10007db0
push eax
mov ecx, dword [ebp - 0x1044]
push ecx
push str.Sending__u_byte_message:___s__n
call fcn.10002000
add esp, 0xc
push 0
lea edx, [ebp - 0x1074]
push edx
mov eax, dword [ebp - 0x1044]
push eax
lea ecx, [ebp - 0x1028]
call fcn.10007db0
push eax
mov ecx, dword [ebp - 0x1030]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1034], eax
cmp dword [ebp - 0x1034], 0
jne 0x1001372c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x102c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_to_pipe_failed._GLE_u_n
call fcn.100141d0
add esp, 8
mov edx, dword [ebp - 0x1030]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1064], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1028]
call fcn.100080b0
mov eax, dword [ebp - 0x1064]
jmp 0x1001380e
push 0
lea ecx, [ebp - 0x1068]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1034], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x1034], 0
jne 0x10013777
cmp dword [ebp - 0x102c], 0xea
je 0x10013777
jmp 0x1001379c
cmp dword [ebp + 0x10], 0
je 0x10013793
mov ecx, dword [ebp - 0x1068]
push ecx
lea edx, [ebp - 0x1010]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.10007fa0
cmp dword [ebp - 0x1034], 0
je 0x1001372c
mov eax, dword [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1034], 0
jne 0x100137ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_from_pipe_failed._GLE_u_n
call fcn.100141d0
add esp, 8
mov ecx, dword [ebp - 0x102c]
mov dword [ebp - 0x106c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1028]
call fcn.100080b0
mov eax, dword [ebp - 0x106c]
jmp 0x1001380e
mov dword [ebp - 0x1070], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1028]
call fcn.100080b0
mov eax, dword [ebp - 0x1070]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ce45
mov esp, ebp
pop ebp
ret 0x1c