Function at 0x1400a8160
Capabilities:
Check os version
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x488]
sub rsp, 0x580
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
xor edx, edx
mov r8d, SysAllocStringByteLen
lea rcx, [rbp - 0x30]
call fcn.140249b10
lea rsi, vtable.CSABString.0
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x30], 0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov dword [rsp + 0x34], 1
mov dword [rbp - 0x30], SysAllocStringByteLen
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp - 0x20], 2
jne 0x1400a83d3
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140249b10
cmp dword [rbp - 0x2c], 5
jne 0x1400a820e
cmp dword [rbp - 0x28], 2
jb 0x1400a83d3
mov edx, 0x410
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rbp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea rcx, [rbp + 0x70]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400a8235
test eax, eax
je 0x1400a8265
mov eax, eax
cmp byte [rbp + rax + 0x6f], 0x5c
je 0x1400a8265
lea rcx, [rbp + 0x70]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400a8252
movzx eax, word [0x140287e84]
mov word [rcx], ax
lea rcx, [rbp + 0x70]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400a8270
movups xmm0, xmmword [str.System_Volume_Information]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x1402994e0]
movsd qword [rcx + 0x10], xmm1
movzx eax, word [0x1402994e8]
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesA]
test rdi, rdi
je 0x1400a82bb
mov rcx, rdi
call fcn.140247060
mov qword [rsp + 0x28], 0
lea rax, [rbp + 0x70]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400a82c0
mov dword [rsp + 0x30], ebx
lea eax, [rbx + 1]
mov edi, eax
mov ecx, eax
call fcn.140247068
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400a82f5
mov r8d, edi
lea rdx, [rbp + 0x70]
mov rcx, rax
call fcn.1402496a0
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x48], SafeArrayGetDim
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400a8323
movups xmm0, xmmword [str.__E__R_everyone]
movups xmmword [rax], xmm0
mov dword [rsp + 0x4c], 1
lea ecx, [rbx + 0x10]
call fcn.140247068
mov rdi, rax
test r14, r14
je 0x1400a8366
mov rcx, r14
mov rdx, rax
sub rdx, r14
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400a8350
mov rcx, r14
call fcn.140247060
test rdi, rdi
je 0x1400a8374
mov eax, ebx
movups xmm0, xmmword [rsi]
movups xmmword [rax + rdi], xmm0
test rsi, rsi
je 0x1400a8381
mov rcx, rsi
call fcn.140247060
mov dword [rsp + 0x60], WSACleanup
lea rax, str.cacls.exe
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rdi
lea rax, [0x140299514]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x70], 0
mov dword [rsp + 0x64], 0x440
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1400a83d3
mov edx, 0x2710
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
test rdi, rdi
je 0x1400a83e0
mov rcx, rdi
call fcn.140247060
mov eax, 1
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret