Function at 0x1400e3e90
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.1401c0850
sub rsp, rax
mov rax, qword [0x140351248]
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], 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.1400b88d0
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 [0x14026d1a8]
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x14026d1b0]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], r15b
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.140162100
mov dword [rsp + 0x60], SafeArrayPutElement
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], r15
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x1403543b0]
lea rcx, [0x1403543a8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400e4793
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x1403543a8]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400e47a3
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x1403543a0]
lea rcx, [0x140354398]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400e47b3
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x1403543a0]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400e47c3
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 [0x14026d280]
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 [0x14026d290]
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 [0x14026d2a0]
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 [0x14026d2b0]
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 [0x14026d2c0]
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 [0x14026d2d0]
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 [0x14026d2e0]
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 [0x14026d2f0]
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 [0x14026d300]
mov dword [rbp + 0x1c8], eax
movzx eax, word [0x14026d304]
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 [0x14026d310]
mov dword [rbp + 0x3d8], eax
movzx eax, word [0x14026d314]
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 0x1400e4265
lea r8, [rbp + 0x5e0]
jmp 0x1400e42ef
cmp ebx, 2
jne 0x1400e4273
lea r8, [rbp + 0x7f0]
jmp 0x1400e42ef
cmp ebx, 3
jne 0x1400e4281
lea r8, [rbp + 0xa00]
jmp 0x1400e42ef
cmp ebx, 4
jne 0x1400e428f
lea r8, [rbp + 0xc10]
jmp 0x1400e42ef
cmp ebx, 5
jne 0x1400e429d
lea r8, [rbp + 0xe20]
jmp 0x1400e42ef
cmp ebx, 6
jne 0x1400e42ab
lea r8, [rbp + 0x1030]
jmp 0x1400e42ef
cmp ebx, 7
jne 0x1400e42b9
lea r8, [rbp + 0x1240]
jmp 0x1400e42ef
cmp ebx, 8
jne 0x1400e42c7
lea r8, [rbp + 0x1450]
jmp 0x1400e42ef
cmp ebx, 9
jne 0x1400e42d5
lea r8, [rbp + 0x1c0]
jmp 0x1400e42ef
cmp ebx, 0xa
jne 0x1400e42e3
lea r8, [rbp + 0x3d0]
jmp 0x1400e42ef
cmp ebx, 0xb
jne 0x1400e4300
lea r8, [rbp + 0x1870]
lea rdx, [0x14026d328]
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 0x1400e45a3
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x38]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x1400e4338
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 0x1400e43f1
cmp ebx, 8
je 0x1400e43f1
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 0x1400e438c
mov rcx, qword [rsp + 0x48]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x1400e45a3
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 0x1400e45a3
lea r8, [rbp - 0x5c]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400e4598
mov dword [rbp - 0x60], 1
mov dword [rbp - 0x54], 2
lea r8, [rbp - 0x60]
jmp 0x1400e44bc
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 0x1400e442b
mov rcx, qword [rbp - 0x60]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x1400e45a3
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 0x1400e45a3
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 0x1400e459d
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 0x1400e4598
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 0x1400e4598
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 0x1400e4598
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x1660]
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1400e3d60
test eax, eax
jne 0x1400e457c
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayLock
lea ecx, [rax + 0x20]
call fcn.1400b88d0
mov qword [rbp - 0x70], 0x1c
mov qword [rbp - 0x68], 0x1f
movups xmm0, xmmword [str._CreateChildProcess_:_failed]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14026d340]
mov rcx, rax
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x14026d348]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], 0
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.140162100
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400e45a3
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x1400e45a3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140354398]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1403543b0]
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 + 0x1a80]
mov rcx, qword [0x1403543a8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
cmp rcx, 0x1001
mov edx, ecx
jae 0x1400e478d
mov byte [rbp + rcx + 0x1a80], 0
test eax, eax
jne 0x1400e4626
test ecx, ecx
je 0x1400e4650
lea rax, [rbp + 0x1a80]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400e4634
lea rdx, [rbp + 0x1a80]
lea rcx, [rbp - 0x80]
call fcn.1400cf260
jmp 0x1400e45df
lea rax, [rbp - 0x80]
cmp rdi, rax
je 0x1400e46b8
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400e4693
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400e468e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400e47d3
mov rcx, r8
call fcn.1401bfb10
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 0x1400e46bc
mov rdx, qword [rbp - 0x68]
mov dword [rsp + 0x40], 1
cmp rdx, 0x10
jb 0x1400e46fb
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e46f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e4787
call fcn.1401bfb10
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayLock
mov ecx, 0x20
call fcn.1400b88d0
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 [0x14026d360]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x14026d368]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
call fcn.140162100
mov rax, rdi
mov rcx, qword [rbp + 0x2a90]
xor rcx, rsp
call fcn.1401c0070
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.1401c0424
nop
lea rdx, str.StdoutRd_CreatePipe
mov rcx, r14
call fcn.1400e47e0
int3
lea rdx, str.Stdout_SetHandleInformation
mov rcx, r14
call fcn.1400e47e0
int3
lea rdx, str.Stdin_CreatePipe
mov rcx, r14
call fcn.1400e47e0
int3
lea rdx, str.Stdin_SetHandleInformation
mov rcx, r14
call fcn.1400e47e0
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3