Function at 0x1400e4f10
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 - 0x2aa0]
mov eax, 0x2ba0
call fcn.1401c8030
sub rsp, rax
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rbp + 0x2a90], 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], SafeArrayGetLBound
mov byte [rdx], r15b
mov dword [rsp + 0x40], 1
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayGetLBound
lea ecx, [r15 + 0x20]
call fcn.1400b9950
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 [0x140276338]
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x140276340]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], r15b
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.1401630b0
mov dword [rsp + 0x60], SafeArrayPutElement
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], r15
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x14035fe70]
lea rcx, [0x14035fe68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400e5813
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x14035fe68]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400e5823
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x14035fe60]
lea rcx, [0x14035fe58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400e5833
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x14035fe60]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400e5843
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1660]
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 + 0x5e0], xmm0
movzx eax, word [0x140276410]
mov word [rbp + 0x5e8], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x5ea]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movsd xmm0, qword [str.__s2]
movsd qword [rbp + 0x7f0], xmm0
movzx eax, word [0x140276420]
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.__s3]
movsd qword [rbp + 0xa00], xmm0
movzx eax, word [0x140276430]
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.__s4]
movsd qword [rbp + 0xc10], xmm0
movzx eax, word [0x140276440]
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.__s5]
movsd qword [rbp + 0xe20], xmm0
movzx eax, word [0x140276450]
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.__s6]
movsd qword [rbp + 0x1030], xmm0
movzx eax, word [0x140276460]
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.__s7]
movsd qword [rbp + 0x1240], xmm0
movzx eax, word [0x140276470]
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.__s8]
movsd qword [rbp + 0x1450], xmm0
movzx eax, word [0x140276480]
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.__lang]
movsd qword [rbp + 0x1c0], xmm0
mov eax, dword [0x140276490]
mov dword [rbp + 0x1c8], eax
movzx eax, word [0x140276494]
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 [0x1402764a0]
mov dword [rbp + 0x3d8], eax
movzx eax, word [0x1402764a4]
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 + 0x1870], xmm0
xor edx, edx
mov r8d, 0x1f8
lea rcx, [rbp + 0x1880]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x1660]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp ebx, 1
jne 0x1400e52e5
lea r8, [rbp + 0x5e0]
jmp 0x1400e536f
cmp ebx, 2
jne 0x1400e52f3
lea r8, [rbp + 0x7f0]
jmp 0x1400e536f
cmp ebx, 3
jne 0x1400e5301
lea r8, [rbp + 0xa00]
jmp 0x1400e536f
cmp ebx, 4
jne 0x1400e530f
lea r8, [rbp + 0xc10]
jmp 0x1400e536f
cmp ebx, 5
jne 0x1400e531d
lea r8, [rbp + 0xe20]
jmp 0x1400e536f
cmp ebx, 6
jne 0x1400e532b
lea r8, [rbp + 0x1030]
jmp 0x1400e536f
cmp ebx, 7
jne 0x1400e5339
lea r8, [rbp + 0x1240]
jmp 0x1400e536f
cmp ebx, 8
jne 0x1400e5347
lea r8, [rbp + 0x1450]
jmp 0x1400e536f
cmp ebx, 9
jne 0x1400e5355
lea r8, [rbp + 0x1c0]
jmp 0x1400e536f
cmp ebx, 0xa
jne 0x1400e5363
lea r8, [rbp + 0x3d0]
jmp 0x1400e536f
cmp ebx, 0xb
jne 0x1400e5380
lea r8, [rbp + 0x1870]
lea rdx, [0x1402764b8]
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 0x1400e5623
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x38]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x1400e53b8
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call sub.USERENV.dll_CreateEnvironmentBlock
lea eax, [rbx - 4]
test eax, 0xfffffff8
jne 0x1400e5471
cmp ebx, 8
je 0x1400e5471
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, SafeArrayGetLBound
mov edx, esi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1400e540c
mov rcx, qword [rsp + 0x48]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x1400e5623
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 0x1400e5623
lea r8, [rbp - 0x5c]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400e5618
mov dword [rbp - 0x60], 1
mov dword [rbp - 0x54], 2
lea r8, [rbp - 0x60]
jmp 0x1400e553c
mov qword [rbp - 0x60], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
mov r8d, SafeArrayGetLBound
mov edx, esi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1400e54ab
mov rcx, qword [rbp - 0x60]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x1400e5623
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 0x1400e5623
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 0x1400e561d
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 0x1400e5618
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 0x1400e5618
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 0x1400e5618
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x1660]
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1400e4de0
test eax, eax
jne 0x1400e55fc
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayGetLBound
lea ecx, [rax + 0x20]
call fcn.1400b9950
mov qword [rbp - 0x70], 0x1c
mov qword [rbp - 0x68], 0x1f
movups xmm0, xmmword [str._CreateChildProcess_:_failed]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402764d0]
mov rcx, rax
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x1402764d8]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], 0
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.1401630b0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400e5623
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x1400e5623
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14035fe58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14035fe70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rsp + 0x30], r15d
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x68], SafeArrayGetLBound
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 + 0x1a80]
mov rcx, qword [0x14035fe68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
cmp rcx, 0x1001
mov edx, ecx
jae 0x1400e580d
mov byte [rbp + rcx + 0x1a80], 0
test eax, eax
jne 0x1400e56a6
test ecx, ecx
je 0x1400e56d0
lea rax, [rbp + 0x1a80]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400e56b4
lea rdx, [rbp + 0x1a80]
lea rcx, [rbp - 0x80]
call fcn.1400d02e0
jmp 0x1400e565f
lea rax, [rbp - 0x80]
cmp rdi, rax
je 0x1400e5738
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400e5713
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400e570e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400e5853
mov rcx, r8
call fcn.1401c72f8
mov qword [rdi + 0x18], SafeArrayGetLBound
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 0x1400e573c
mov rdx, qword [rbp - 0x68]
mov dword [rsp + 0x40], 1
cmp rdx, 0x10
jb 0x1400e577b
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5776
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5807
call fcn.1401c72f8
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayGetLBound
mov ecx, 0x20
call fcn.1400b9950
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 [0x1402764f0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1402764f8]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
call fcn.1401630b0
mov rax, rdi
mov rcx, qword [rbp + 0x2a90]
xor rcx, rsp
call fcn.1401c7850
lea r11, [rsp + 0x2ba0]
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.1401c7c04
nop
lea rdx, str.StdoutRd_CreatePipe
mov rcx, r14
call fcn.1400e5860
int3
lea rdx, str.Stdout_SetHandleInformation
mov rcx, r14
call fcn.1400e5860
int3
lea rdx, str.Stdin_CreatePipe
mov rcx, r14
call fcn.1400e5860
int3
lea rdx, str.Stdin_SetHandleInformation
mov rcx, r14
call fcn.1400e5860
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3