Function at 0x18000f2cc
Capabilities:
Connect pipe
Create pipe
Create thread
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x130
mov rax, qword [0x180034040]
xor rax, rsp
mov qword [rsp + 0x128], rax
lea rcx, str.OpenGlass.Host
call qword [sym.imp.SHELL32.dll_SetCurrentProcessExplicitAppUserModelID]
mov ebx, eax
xor r14d, r14d
test eax, eax
jns 0x18000f326
mov rcx, qword [rsp + 0x138]
mov edx, ebx
call fcn.18000211c
mov eax, ebx
jmp 0x18000f700
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, str.OpenGlass_Server_Thread
call qword [sym.imp.KERNEL32.dll_SetThreadDescription]
mov ebx, eax
test eax, eax
js 0x18000f310
mov dword [rsp + 0xc8], r14d
mov word [rsp + 0xcc], 0x100
mov ebx, 1
mov qword [rsp + 0xd0], r14
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov dl, bl
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x18000f3d1
mov rcx, qword [rsp + 0x138]
call fcn.18000748c
mov ebx, eax
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x18000f31f
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x18000f31f
mov dword [rsp + 0x80], 0x10000000
mov qword [rsp + 0x84], 2
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
mov dword [rsp + 0xa0], 5
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x78], r14
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov ecx, ebx
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x18000f448
mov rcx, qword [rsp + 0x138]
mov edx, eax
call fcn.180010850
jmp 0x18000f3b3
lea rsi, [rsp + 0x78]
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x70], bl
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
mov qword [rsp + 0x120], rax
mov edx, ebx
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x18000f4b4
mov rcx, qword [rsp + 0x138]
call fcn.18000748c
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18000f3b5
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x78], r14
jmp 0x18000f3b5
xor r9d, r9d
mov r8, qword [rsp + 0x78]
mov edx, ebx
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x18000f487
mov dword [rsp + 0xb0], 0x18
lea rax, [rsp + 0x100]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc0], r14d
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r14d
mov eax, 0x400
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov edx, 3
mov r9d, 0xff
lea r8d, [rdx + 3]
mov rcx, qword [str..pipeOpenGlassLegacyHostPipe]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x18000ed7c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
mov qword [rsp + 0xf8], rax
mov r15b, r14b
mov byte [rsp + 0x60], r14b
test r15b, r15b
jne 0x18000f6b2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000f593
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x18000f6a5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xd8], xmm0
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8d, [rax + 0x18]
lea rdx, [rsp + 0xd8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x138]
test eax, eax
je 0x18000f72e
cmp dword [rsp + 0xd8], 0xffffffff
sete r15b
mov byte [rsp + 0x60], r15b
je 0x18000f607
lea rcx, [rsp + 0xd8]
call fcn.18000e69c
mov rcx, qword [rsp + 0x138]
test eax, eax
js 0x18000f734
jmp 0x18000f626
xor r8d, r8d
mov rdx, rdi
lea rcx, [0x18000f748]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8d, [r9 + 0x18]
lea rdx, [rsp + 0xd8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x138]
test eax, eax
je 0x18000f73b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x138]
test eax, eax
je 0x18000f740
jmp 0x18000f68b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
jne 0x18000f6a5
mov rcx, qword [rsp + 0x138]
call fcn.180010db0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000f56a
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000f6c6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000f6da
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsi], r14
je 0x18000f6eb
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsi], r14
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x18000f6fe
call qword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.180022510
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
call fcn.180010ce8
nop
mov edx, eax
call fcn.18000a404
call fcn.180010ce8
call fcn.180010ce8
int3