Function at 0x1401164d0
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.14021fa30
sub rsp, rax
mov rax, qword [0x1404779b8]
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.1400eb1a0
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 [0x14034bad8]
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x14034bae0]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], r15b
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.1401a7f60
mov dword [rsp + 0x60], SafeArrayPutElement
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], r15
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x14047b888]
lea rcx, [0x14047b880]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140116e6f
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x14047b880]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140116e7f
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x14047b878]
lea rcx, [0x14047b870]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140116e8f
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x14047b878]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140116e9f
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a80]
call fcn.1402539e0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1402539e0
movsd xmm0, qword [str.__s1]
movsd qword [rbp + 0x7f0], xmm0
movzx eax, word [0x14034bbb0]
mov word [rbp + 0x7f8], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x7fa]
call fcn.1402539e0
movsd xmm0, qword [str.__s2]
movsd qword [rbp + 0xa00], xmm0
movzx eax, word [0x14034bbc0]
mov word [rbp + 0xa08], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xa0a]
call fcn.1402539e0
movsd xmm0, qword [str.__s3]
movsd qword [rbp + 0xc10], xmm0
movzx eax, word [0x14034bbd0]
mov word [rbp + 0xc18], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xc1a]
call fcn.1402539e0
movsd xmm0, qword [str.__s4]
movsd qword [rbp + 0xe20], xmm0
movzx eax, word [0x14034bbe0]
mov word [rbp + 0xe28], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xe2a]
call fcn.1402539e0
movsd xmm0, qword [str.__s5]
movsd qword [rbp + 0x1030], xmm0
movzx eax, word [0x14034bbf0]
mov word [rbp + 0x1038], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x103a]
call fcn.1402539e0
movsd xmm0, qword [str.__s6]
movsd qword [rbp + 0x1240], xmm0
movzx eax, word [0x14034bc00]
mov word [rbp + 0x1248], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x124a]
call fcn.1402539e0
movsd xmm0, qword [str.__s7]
movsd qword [rbp + 0x1450], xmm0
movzx eax, word [0x14034bc10]
mov word [rbp + 0x1458], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x145a]
call fcn.1402539e0
movsd xmm0, qword [str.__s8]
movsd qword [rbp + 0x1660], xmm0
movzx eax, word [0x14034bc20]
mov word [rbp + 0x1668], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x166a]
call fcn.1402539e0
movsd xmm0, qword [str.__lang]
movsd qword [rbp + 0x1c0], xmm0
mov eax, dword [0x14034bc30]
mov dword [rbp + 0x1c8], eax
movzx eax, word [0x14034bc34]
mov word [rbp + 0x1cc], ax
xor edx, edx
mov r8d, 0x1fa
lea rcx, [rbp + 0x1ce]
call fcn.1402539e0
movsd xmm0, qword [str.__lcid]
movsd qword [rbp + 0x3d0], xmm0
mov eax, dword [0x14034bc40]
mov dword [rbp + 0x3d8], eax
movzx eax, word [0x14034bc44]
mov word [rbp + 0x3dc], ax
xor edx, edx
mov r8d, 0x1fa
lea rcx, [rbp + 0x3de]
call fcn.1402539e0
movups xmm0, xmmword [str.__geoid]
movaps xmmword [rbp + 0x1c90], xmm0
xor edx, edx
mov r8d, 0x1f8
lea rcx, [rbp + 0x1ca0]
call fcn.1402539e0
movups xmm0, xmmword [str.__redirurl]
movaps xmmword [rbp + 0x5e0], xmm0
mov eax, dword [0x14034bc68]
mov dword [rbp + 0x5f0], eax
movzx eax, word [0x14034bc6c]
mov word [rbp + 0x5f4], ax
xor edx, edx
mov r8d, 0x1f2
lea rcx, [rbp + 0x5f6]
call fcn.1402539e0
movups xmm0, xmmword [str.__getcamera]
movaps xmmword [rbp + 0x1870], xmm0
movsd xmm1, qword [0x14034bc80]
movsd qword [rbp + 0x1880], xmm1
xor edx, edx
mov r8d, 0x1f0
lea rcx, [rbp + 0x1888]
call fcn.1402539e0
mov r8d, 0x104
lea rdx, [rbp + 0x1a80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp ebx, 1
jne 0x140116913
lea r8, [rbp + 0x7f0]
jmp 0x1401169bf
cmp ebx, 2
jne 0x140116924
lea r8, [rbp + 0xa00]
jmp 0x1401169bf
cmp ebx, 3
jne 0x140116935
lea r8, [rbp + 0xc10]
jmp 0x1401169bf
cmp ebx, 4
jne 0x140116943
lea r8, [rbp + 0xe20]
jmp 0x1401169bf
cmp ebx, 5
jne 0x140116951
lea r8, [rbp + 0x1030]
jmp 0x1401169bf
cmp ebx, 6
jne 0x14011695f
lea r8, [rbp + 0x1240]
jmp 0x1401169bf
cmp ebx, 7
jne 0x14011696d
lea r8, [rbp + 0x1450]
jmp 0x1401169bf
cmp ebx, 8
jne 0x14011697b
lea r8, [rbp + 0x1660]
jmp 0x1401169bf
cmp ebx, 9
jne 0x140116989
lea r8, [rbp + 0x1c0]
jmp 0x1401169bf
cmp ebx, 0xa
jne 0x140116997
lea r8, [rbp + 0x3d0]
jmp 0x1401169bf
cmp ebx, 0xb
jne 0x1401169a5
lea r8, [rbp + 0x1c90]
jmp 0x1401169bf
cmp ebx, 0xc
jne 0x1401169b3
lea r8, [rbp + 0x5e0]
jmp 0x1401169bf
cmp ebx, 0xd
jne 0x1401169d0
lea r8, [rbp + 0x1870]
lea rdx, [0x14034bc88]
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 0x140116c77
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x38]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x140116a08
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call sub.USERENV.dll_CreateEnvironmentBlock
cmp ebx, 8
je 0x140116ac5
cmp ebx, 3
jbe 0x140116ac5
cmp ebx, 0xe
jae 0x140116ac5
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 0x140116a60
mov rcx, qword [rsp + 0x48]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x140116c77
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 0x140116c77
lea r8, [rbp - 0x5c]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140116c6c
mov dword [rbp - 0x60], 1
mov dword [rbp - 0x54], 2
lea r8, [rbp - 0x60]
jmp 0x140116b90
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 0x140116aff
mov rcx, qword [rbp - 0x60]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x140116c77
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 0x140116c77
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 0x140116c71
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 0x140116c6c
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 0x140116c6c
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 0x140116c6c
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x1a80]
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1401163a0
test eax, eax
jne 0x140116c50
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayLock
lea ecx, [rax + 0x20]
call fcn.1400eb1a0
mov qword [rbp - 0x70], 0x1c
mov qword [rbp - 0x68], 0x1f
movups xmm0, xmmword [str._CreateChildProcess_:_failed]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14034bca0]
mov rcx, rax
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x14034bca8]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], 0
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.1401a7f60
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140116c77
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x140116c77
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14047b870]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14047b888]
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 [0x14047b880]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
cmp rcx, 0x1001
mov edx, ecx
jae 0x140116e69
mov byte [rbp + rcx + 0x1ea0], 0
test eax, eax
jne 0x140116cfa
test ecx, ecx
je 0x140116d2c
lea rax, [rbp + 0x1ea0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140116d10
lea rdx, [rbp + 0x1ea0]
lea rcx, [rbp - 0x80]
call fcn.140101b30
jmp 0x140116cb3
lea rax, [rbp - 0x80]
cmp rdi, rax
je 0x140116d94
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140116d6f
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140116d6a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140116eaf
mov rcx, r8
call fcn.14021ecec
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 0x140116d98
mov rdx, qword [rbp - 0x68]
mov dword [rsp + 0x40], 1
cmp rdx, 0x10
jb 0x140116dd7
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140116dd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116e63
call fcn.14021ecec
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayLock
mov ecx, 0x20
call fcn.1400eb1a0
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 [0x14034bcc0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x14034bcc8]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
call fcn.1401a7f60
mov rax, rdi
mov rcx, qword [rbp + 0x2eb0]
xor rcx, rsp
call fcn.14021f250
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 fcn.140260f54
nop
call fcn.14021f604
nop
lea rdx, str.StdoutRd_CreatePipe
mov rcx, r14
call fcn.140116ec0
int3
lea rdx, str.Stdout_SetHandleInformation
mov rcx, r14
call fcn.140116ec0
int3
lea rdx, str.Stdin_CreatePipe
mov rcx, r14
call fcn.140116ec0
int3
lea rdx, str.Stdin_SetHandleInformation
mov rcx, r14
call fcn.140116ec0
nop
call fcn.140260f54
int3