Function at 0x14008a310
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11c8]
mov eax, 0x12c8
call fcn.140247340
sub rsp, rax
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov r13, rcx
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov qword [rbp + 0x1228], r12
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
xor edx, edx
lea r8d, [r12 + 0x68]
lea rcx, [rbp + 0x40]
call fcn.140249b10
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp + 0x1220], r12
mov qword [rsp + 0x60], r12
lea rax, vtable.CSABString.0
mov qword [rbp - 0x60], rax
mov edi, r12d
mov dword [rbp - 0x50], r12d
lea ecx, [r12 + 0x10]
call fcn.140247068
mov rsi, rax
mov qword [rbp - 0x58], rax
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov dword [rbp - 0x4c], 1
movups xmm0, xmmword [str.sas_enum_cookies.exe]
movaps xmmword [rbp + 0xb0], xmm0
mov ecx, dword [0x140299a40]
mov dword [rbp + 0xc0], ecx
movzx ecx, byte [0x140299a44]
mov byte [rbp + 0xc4], cl
xor edx, edx
mov r8d, 0xef
lea rcx, [rbp + 0xc5]
call fcn.140249b10
movsd xmm0, qword [str.S_1_16_4098]
movsd qword [rbp - 0x30], xmm0
mov eax, dword [0x140299a50]
mov dword [rbp - 0x28], eax
xor eax, eax
mov qword [rbp - 0x24], rax
mov qword [rsp + 0x68], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
mov edx, 0x8b
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14008a85c
lea rax, [rbp + 0x1228]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9d, [r12 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14008a85c
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x30]
call sub.ADVAPI32.dll_ConvertStringSidToSidA
test eax, eax
je 0x14008a85c
mov dword [rbp - 0x80], 0x20
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x78], rcx
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea r9d, [rax + 0x10]
lea r8, [rsp + 0x78]
lea edx, [r12 + 0x19]
mov rcx, qword [rbp + 0x1228]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x14008a85c
mov dword [rbp - 0x78], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], r12
mov r9d, 0x1388
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1220]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14008a85c
xor r8d, r8d
lea edx, [r12 + 1]
mov rcx, qword [rbp + 0x1220]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14008a85c
xor edx, edx
lea r8d, [r12 + 0x54]
lea rcx, [rbp + 0x44]
call fcn.140249b10
mov dword [rbp + 0x40], 0x68
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0x98], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x90], rax
or dword [rbp + 0x7c], 0x100
lea rax, [rbp - 0x48]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0xb0]
xor edx, edx
mov rcx, qword [rbp + 0x1228]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x14008a758
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x1218], r12d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1c0]
call fcn.140249b10
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x1218]
mov r8d, 0xfff
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rbp + 0x1220]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008a749
lea r13, vtable.CSABString.0
nop word [rax + rax]
cmp dword [rbp + 0x1218], 0
jbe 0x14008a742
mov qword [rbp - 0x18], r13
lea rax, [rbp + 0x1c0]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14008a630
mov dword [rbp - 8], ebx
lea eax, [rbx + 1]
mov r15d, eax
mov ecx, eax
call fcn.140247068
mov r14, rax
mov qword [rbp - 0x10], rax
test rax, rax
je 0x14008a667
mov r8d, r15d
lea rdx, [rbp + 0x1c0]
mov rcx, rax
call fcn.1402496a0
mov dword [rbp - 4], 1
test rsi, rsi
je 0x14008a6b0
lea ecx, [rbx + 1]
add ecx, edi
call fcn.140247068
mov rbx, rax
mov rdx, rsi
mov r8, rax
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rdx]
mov byte [r8 + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14008a690
mov rcx, rsi
call fcn.140247060
mov rsi, rbx
mov qword [rbp - 0x58], rbx
jmp 0x14008a6c1
lea ecx, [rdi + 1]
add ecx, ebx
call fcn.140247068
mov rsi, rax
mov qword [rbp - 0x58], rax
test rsi, rsi
je 0x14008a6ec
mov ecx, edi
add rcx, rsi
mov r8, r15
mov rdx, r14
call fcn.1402496a0
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x14008a6e0
mov dword [rbp - 0x50], edi
test r14, r14
je 0x14008a6f9
mov rcx, r14
call fcn.140247060
mov dword [rbp + 0x1218], r12d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1c0]
call fcn.140249b10
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x1218]
mov r8d, 0xfff
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rbp + 0x1220]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14008a610
mov r13, qword [rbp + 0x1210]
mov edx, 0x2bf20
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x1220]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14008a85c
mov r14, rsi
lea rdx, [0x140299a54]
mov rcx, rsi
call fcn.140248db4
test rax, rax
je 0x14008a85c
lea r12, vtable.CEnumLowIntegrityCookies::CCookie.0
nop
mov byte [rax], 0
lea rbx, [rax + 1]
lea rdx, [0x140299a58]
mov rcx, rbx
call fcn.140248db4
test rax, rax
je 0x14008a85c
mov byte [rax], 0
lea rdi, [rax + 1]
mov qword [rbp], r12
mov rdx, r14
lea rcx, [rbp + 8]
call fcn.140006f70
nop
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.140006f70
nop
mov r14, qword [r13 + 8]
mov r15, qword [r14 + 8]
lea r9, [rbp]
mov r8, r15
mov rdx, r14
lea rcx, [r13 + 8]
call fcn.14007a550
mov rdx, qword [r13 + 0x10]
movabs rcx, 0x38e38e38e38e38d
sub rcx, rdx
cmp rcx, 1
jb 0x14008a8d3
lea rcx, [rdx + 1]
mov qword [r13 + 0x10], rcx
mov qword [r14 + 8], rax
mov qword [r15], rax
cmp dword [rbp + 0x34], 1
jne 0x14008a82d
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14008a82d
call fcn.140247060
cmp dword [rbp + 0x1c], 1
jne 0x14008a841
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14008a841
call fcn.140247060
mov r14, rdi
lea rdx, [0x140299a54]
mov rcx, rdi
call fcn.140248db4
test rax, rax
jne 0x14008a790
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14008a86b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14008a87a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008a88a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x1228]
test rcx, rcx
je 0x14008a89c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14008a8ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rsi, rsi
je 0x14008a8ba
mov rcx, rsi
call fcn.140247060
mov eax, 1
add rsp, 0x12c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.1402453d0
int3