Function at 0x14010cf20
Capabilities:
Create pipe
Create two anonymous pipes
Get session information
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x2ec0]
mov eax, 0x2fc0
call fcn.14020cbc0
sub rsp, rax
mov rax, qword [0x1403debe8]
xor rax, rsp
mov qword [rbp + 0x2eb0], rax
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rdx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov qword [rdx], r15
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], SafeArrayLock
mov byte [rdx], r15b
mov dword [rsp + 0x40], 1
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayLock
lea ecx, [r15 + 0x20]
call fcn.1400e1b00
mov rcx, rax
mov qword [rbp - 0x70], 0x1c
mov qword [rbp - 0x68], 0x1f
movups xmm0, xmmword [str.__Start_of_parent_execution.]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402cebc8]
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x1402cebd0]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], r15b
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.140195010
mov dword [rsp + 0x60], SafeArrayPutElement
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], r15
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x1403e1fe8]
lea rcx, [0x1403e1fe0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14010d8bf
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x1403e1fe0]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14010d8cf
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x1403e1fd8]
lea rcx, [0x1403e1fd0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14010d8df
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x1403e1fd8]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14010d8ef
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a80]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s1]
movsd qword [rbp + 0x7f0], xmm0
movzx eax, word [0x1402ceca0]
mov word [rbp + 0x7f8], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x7fa]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s2]
movsd qword [rbp + 0xa00], xmm0
movzx eax, word [0x1402cecb0]
mov word [rbp + 0xa08], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xa0a]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s3]
movsd qword [rbp + 0xc10], xmm0
movzx eax, word [0x1402cecc0]
mov word [rbp + 0xc18], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xc1a]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s4]
movsd qword [rbp + 0xe20], xmm0
movzx eax, word [0x1402cecd0]
mov word [rbp + 0xe28], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xe2a]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s5]
movsd qword [rbp + 0x1030], xmm0
movzx eax, word [0x1402cece0]
mov word [rbp + 0x1038], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x103a]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s6]
movsd qword [rbp + 0x1240], xmm0
movzx eax, word [0x1402cecf0]
mov word [rbp + 0x1248], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x124a]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s7]
movsd qword [rbp + 0x1450], xmm0
movzx eax, word [0x1402ced00]
mov word [rbp + 0x1458], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x145a]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s8]
movsd qword [rbp + 0x1660], xmm0
movzx eax, word [0x1402ced10]
mov word [rbp + 0x1668], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x166a]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__lang]
movsd qword [rbp + 0x1c0], xmm0
mov eax, dword [0x1402ced20]
mov dword [rbp + 0x1c8], eax
movzx eax, word [0x1402ced24]
mov word [rbp + 0x1cc], ax
xor edx, edx
mov r8d, 0x1fa
lea rcx, [rbp + 0x1ce]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__lcid]
movsd qword [rbp + 0x3d0], xmm0
mov eax, dword [0x1402ced30]
mov dword [rbp + 0x3d8], eax
movzx eax, word [0x1402ced34]
mov word [rbp + 0x3dc], ax
xor edx, edx
mov r8d, 0x1fa
lea rcx, [rbp + 0x3de]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movups xmm0, xmmword [str.__geoid]
movaps xmmword [rbp + 0x1c90], xmm0
xor edx, edx
mov r8d, 0x1f8
lea rcx, [rbp + 0x1ca0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movups xmm0, xmmword [str.__redirurl]
movaps xmmword [rbp + 0x5e0], xmm0
mov eax, dword [0x1402ced58]
mov dword [rbp + 0x5f0], eax
movzx eax, word [0x1402ced5c]
mov word [rbp + 0x5f4], ax
xor edx, edx
mov r8d, 0x1f2
lea rcx, [rbp + 0x5f6]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movups xmm0, xmmword [str.__getcamera]
movaps xmmword [rbp + 0x1870], xmm0
movsd xmm1, qword [0x1402ced70]
movsd qword [rbp + 0x1880], xmm1
xor edx, edx
mov r8d, 0x1f0
lea rcx, [rbp + 0x1888]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x1a80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp ebx, 1
jne 0x14010d363
lea r8, [rbp + 0x7f0]
jmp 0x14010d40f
cmp ebx, 2
jne 0x14010d374
lea r8, [rbp + 0xa00]
jmp 0x14010d40f
cmp ebx, 3
jne 0x14010d385
lea r8, [rbp + 0xc10]
jmp 0x14010d40f
cmp ebx, 4
jne 0x14010d393
lea r8, [rbp + 0xe20]
jmp 0x14010d40f
cmp ebx, 5
jne 0x14010d3a1
lea r8, [rbp + 0x1030]
jmp 0x14010d40f
cmp ebx, 6
jne 0x14010d3af
lea r8, [rbp + 0x1240]
jmp 0x14010d40f
cmp ebx, 7
jne 0x14010d3bd
lea r8, [rbp + 0x1450]
jmp 0x14010d40f
cmp ebx, 8
jne 0x14010d3cb
lea r8, [rbp + 0x1660]
jmp 0x14010d40f
cmp ebx, 9
jne 0x14010d3d9
lea r8, [rbp + 0x1c0]
jmp 0x14010d40f
cmp ebx, 0xa
jne 0x14010d3e7
lea r8, [rbp + 0x3d0]
jmp 0x14010d40f
cmp ebx, 0xb
jne 0x14010d3f5
lea r8, [rbp + 0x1c90]
jmp 0x14010d40f
cmp ebx, 0xc
jne 0x14010d403
lea r8, [rbp + 0x5e0]
jmp 0x14010d40f
cmp ebx, 0xd
jne 0x14010d420
lea r8, [rbp + 0x1870]
lea rdx, [0x1402ced78]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
cmp eax, 0xffffffff
je 0x14010d6c7
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x38]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x14010d458
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call sub.USERENV.dll_CreateEnvironmentBlock
cmp ebx, 8
je 0x14010d515
cmp ebx, 3
jbe 0x14010d515
cmp ebx, 0xe
jae 0x14010d515
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, SafeArrayLock
mov edx, esi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x14010d4b0
mov rcx, qword [rsp + 0x48]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x14010d6c7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14010d6c7
lea r8, [rbp - 0x5c]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14010d6bc
mov dword [rbp - 0x60], 1
mov dword [rbp - 0x54], 2
lea r8, [rbp - 0x60]
jmp 0x14010d5e0
mov qword [rbp - 0x60], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
mov r8d, SafeArrayLock
mov edx, esi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x14010d54f
mov rcx, qword [rbp - 0x60]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x14010d6c7
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x48]
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14010d6c7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x14010d6c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x7c]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14010d6bc
mov dword [rbp - 0x80], 1
mov dword [rbp - 0x74], 2
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14010d6bc
mov dword [rsp + 0x30], esi
mov r9d, 4
lea r8, [rsp + 0x30]
lea edx, [r9 + 8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x14010d6bc
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x1a80]
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.14010cdf0
test eax, eax
jne 0x14010d6a0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayLock
lea ecx, [rax + 0x20]
call fcn.1400e1b00
mov qword [rbp - 0x70], 0x1c
mov qword [rbp - 0x68], 0x1f
movups xmm0, xmmword [str._CreateChildProcess_:_failed]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402ced90]
mov rcx, rax
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x1402ced98]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], 0
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.140195010
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14010d6c7
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x14010d6c7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1403e1fd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1403e1fe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rsp + 0x30], r15d
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x68], SafeArrayLock
mov qword [rbp - 0x70], r15
mov byte [rbp - 0x80], 0
mov dword [rsp + 0x40], 3
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x1ea0]
mov rcx, qword [0x1403e1fe0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
cmp rcx, 0x1001
mov edx, ecx
jae 0x14010d8b9
mov byte [rbp + rcx + 0x1ea0], 0
test eax, eax
jne 0x14010d74a
test ecx, ecx
je 0x14010d77c
lea rax, [rbp + 0x1ea0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14010d760
lea rdx, [rbp + 0x1ea0]
lea rcx, [rbp - 0x80]
call fcn.1400f8490
jmp 0x14010d703
lea rax, [rbp - 0x80]
cmp rdi, rax
je 0x14010d7e4
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14010d7bf
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14010d7ba
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14010d8ff
mov rcx, r8
call fcn.14020be84
mov qword [rdi + 0x18], SafeArrayLock
mov byte [rdi], 0
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rdi + 0x10], xmm1
mov edx, SafeArrayGetLBound
mov byte [rbp - 0x80], 0
jmp 0x14010d7e8
mov rdx, qword [rbp - 0x68]
mov dword [rsp + 0x40], 1
cmp rdx, 0x10
jb 0x14010d827
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010d822
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010d8b3
call fcn.14020be84
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayLock
mov ecx, 0x20
call fcn.1400e1b00
mov qword [rbp - 0x70], 0x1a
mov qword [rbp - 0x68], 0x1f
movups xmm0, xmmword [str.__End_of_parent_execution.]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402cedb0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1402cedb8]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
call fcn.140195010
mov rax, rdi
mov rcx, qword [rbp + 0x2eb0]
xor rcx, rsp
call fcn.14020c3e0
lea r11, [rsp + 0x2fc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call fcn.14020c794
nop
lea rdx, str.StdoutRd_CreatePipe
mov rcx, r14
call fcn.14010d910
int3
lea rdx, str.Stdout_SetHandleInformation
mov rcx, r14
call fcn.14010d910
int3
lea rdx, str.Stdin_CreatePipe
mov rcx, r14
call fcn.14010d910
int3
lea rdx, str.Stdin_SetHandleInformation
mov rcx, r14
call fcn.14010d910
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3