Function at 0x1400fcb60
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 - 0x2cb0]
mov eax, 0x2db0
call fcn.1401e44c0
sub rsp, rax
mov rax, qword [0x14039a678]
xor rax, rsp
mov qword [rbp + 0x2ca0], 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.1400d1570
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 [0x14029b628]
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x14029b630]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], r15b
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.14017eab0
mov dword [rsp + 0x60], SafeArrayPutElement
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], r15
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x14039d970]
lea rcx, [0x14039d968]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400fd4b4
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x14039d968]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400fd4c4
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x14039d960]
lea rcx, [0x14039d958]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400fd4d4
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [0x14039d960]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400fd4e4
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1870]
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 [0x14029b700]
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 [0x14029b710]
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 [0x14029b720]
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 [0x14029b730]
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 [0x14029b740]
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 [0x14029b750]
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 [0x14029b760]
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 [0x14029b770]
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 [0x14029b780]
mov dword [rbp + 0x1c8], eax
movzx eax, word [0x14029b784]
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 [0x14029b790]
mov dword [rbp + 0x3d8], eax
movzx eax, word [0x14029b794]
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 + 0x1a80], xmm0
xor edx, edx
mov r8d, 0x1f8
lea rcx, [rbp + 0x1a90]
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 [0x14029b7b8]
mov dword [rbp + 0x5f0], eax
movzx eax, word [0x14029b7bc]
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
mov r8d, 0x104
lea rdx, [rbp + 0x1870]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp ebx, 1
jne 0x1400fcf71
lea r8, [rbp + 0x7f0]
jmp 0x1400fd00c
cmp ebx, 2
jne 0x1400fcf82
lea r8, [rbp + 0xa00]
jmp 0x1400fd00c
cmp ebx, 3
jne 0x1400fcf90
lea r8, [rbp + 0xc10]
jmp 0x1400fd00c
cmp ebx, 4
jne 0x1400fcf9e
lea r8, [rbp + 0xe20]
jmp 0x1400fd00c
cmp ebx, 5
jne 0x1400fcfac
lea r8, [rbp + 0x1030]
jmp 0x1400fd00c
cmp ebx, 6
jne 0x1400fcfba
lea r8, [rbp + 0x1240]
jmp 0x1400fd00c
cmp ebx, 7
jne 0x1400fcfc8
lea r8, [rbp + 0x1450]
jmp 0x1400fd00c
cmp ebx, 8
jne 0x1400fcfd6
lea r8, [rbp + 0x1660]
jmp 0x1400fd00c
cmp ebx, 9
jne 0x1400fcfe4
lea r8, [rbp + 0x1c0]
jmp 0x1400fd00c
cmp ebx, 0xa
jne 0x1400fcff2
lea r8, [rbp + 0x3d0]
jmp 0x1400fd00c
cmp ebx, 0xb
jne 0x1400fd000
lea r8, [rbp + 0x1a80]
jmp 0x1400fd00c
cmp ebx, 0xc
jne 0x1400fd01d
lea r8, [rbp + 0x5e0]
lea rdx, [0x14029b7c0]
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 0x1400fd2c4
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x38]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x1400fd055
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call sub.USERENV.dll_CreateEnvironmentBlock
cmp ebx, 8
je 0x1400fd112
cmp ebx, 3
jbe 0x1400fd112
cmp ebx, 0xd
jae 0x1400fd112
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 0x1400fd0ad
mov rcx, qword [rsp + 0x48]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x1400fd2c4
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 0x1400fd2c4
lea r8, [rbp - 0x5c]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400fd2b9
mov dword [rbp - 0x60], 1
mov dword [rbp - 0x54], 2
lea r8, [rbp - 0x60]
jmp 0x1400fd1dd
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 0x1400fd14c
mov rcx, qword [rbp - 0x60]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x1400fd2c4
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 0x1400fd2c4
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 0x1400fd2be
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 0x1400fd2b9
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 0x1400fd2b9
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 0x1400fd2b9
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x1870]
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1400fca30
test eax, eax
jne 0x1400fd29d
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayGetLBound
lea ecx, [rax + 0x20]
call fcn.1400d1570
mov qword [rbp - 0x70], 0x1c
mov qword [rbp - 0x68], 0x1f
movups xmm0, xmmword [str._CreateChildProcess_:_failed]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14029b7d8]
mov rcx, rax
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x14029b7e0]
mov dword [rcx + 0x18], eax
mov byte [rcx + 0x1c], 0
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x80]
call fcn.14017eab0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400fd2c4
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x1400fd2c4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14039d958]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14039d970]
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 + 0x1c90]
mov rcx, qword [0x14039d968]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
cmp rcx, 0x1001
mov edx, ecx
jae 0x1400fd4ae
mov byte [rbp + rcx + 0x1c90], 0
test eax, eax
jne 0x1400fd347
test ecx, ecx
je 0x1400fd371
lea rax, [rbp + 0x1c90]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400fd355
lea rdx, [rbp + 0x1c90]
lea rcx, [rbp - 0x80]
call fcn.1400e7f00
jmp 0x1400fd300
lea rax, [rbp - 0x80]
cmp rdi, rax
je 0x1400fd3d9
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400fd3b4
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400fd3af
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400fd4f4
mov rcx, r8
call fcn.1401e3784
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 0x1400fd3dd
mov rdx, qword [rbp - 0x68]
mov dword [rsp + 0x40], 1
cmp rdx, 0x10
jb 0x1400fd41c
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fd417
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400fd4a8
call fcn.1401e3784
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], SafeArrayGetLBound
mov ecx, 0x20
call fcn.1400d1570
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 [0x14029b7f8]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x14029b800]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
call fcn.14017eab0
mov rax, rdi
mov rcx, qword [rbp + 0x2ca0]
xor rcx, rsp
call fcn.1401e3ce0
lea r11, [rsp + 0x2db0]
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.1401e4094
nop
lea rdx, str.StdoutRd_CreatePipe
mov rcx, r14
call fcn.1400fd500
int3
lea rdx, str.Stdout_SetHandleInformation
mov rcx, r14
call fcn.1400fd500
int3
lea rdx, str.Stdin_CreatePipe
mov rcx, r14
call fcn.1400fd500
int3
lea rdx, str.Stdin_SetHandleInformation
mov rcx, r14
call fcn.1400fd500
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3