Function at 0x1401a7f6c
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x818]
sub rsp, 0x900
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
mov r15d, 8
cmp qword [rdx + 0x18], r15
jb 0x1401a7fb3
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a7fd2
test al, 0x10
jne 0x1401a7fd2
mov rdx, rsi
mov rcx, rdi
call fcn.1400ac788
jmp 0x1401a8286
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x2b
mov eax, dword [rsp + 0x20]
xor ax, 0x25
mov word [rsp + 0x24], ax
mov eax, dword [rsp + 0x20]
mov ebx, 1
add ax, bx
xor ax, 0x53
mov word [rsp + 0x26], ax
mov eax, dword [rsp + 0x20]
add ax, 2
xor ax, 0x79
mov word [rsp + 0x28], ax
mov eax, dword [rsp + 0x20]
add ax, 3
xor ax, 0x73
mov word [rsp + 0x2a], ax
mov eax, dword [rsp + 0x20]
add ax, 4
xor ax, 0x74
mov word [rsp + 0x2c], ax
mov eax, dword [rsp + 0x20]
add ax, 5
xor ax, 0x65
mov word [rsp + 0x2e], ax
mov eax, dword [rsp + 0x20]
add ax, 6
xor ax, 0x6d
mov word [rsp + 0x30], ax
mov eax, dword [rsp + 0x20]
lea r13d, [rbx + 6]
add ax, r13w
xor ax, 0x52
mov word [rsp + 0x32], ax
mov eax, dword [rsp + 0x20]
add ax, r15w
xor ax, 0x6f
mov word [rsp + 0x34], ax
mov eax, dword [rsp + 0x20]
add ax, 9
xor ax, 0x6f
mov word [rsp + 0x36], ax
mov eax, dword [rsp + 0x20]
add ax, 0xa
xor ax, 0x74
mov word [rsp + 0x38], ax
mov eax, dword [rsp + 0x20]
add ax, 0xb
xor ax, 0x25
mov word [rsp + 0x3a], ax
xor eax, eax
mov word [rsp + 0x3c], ax
movzx eax, word [rsp + 0x24]
xor r14d, r14d
mov edx, r14d
movzx eax, word [rsp + rdx*2 + 0x24]
mov ecx, dword [rsp + 0x20]
add cx, dx
xor cx, ax
mov word [rsp + rdx*2 + 0x24], cx
add rdx, rbx
cmp rdx, 0xc
jb 0x1401a80cd
mov word [rsp + 0x3c], r14w
lea rdx, [rsp + 0x24]
lea rcx, [rbp - 0x60]
call fcn.1400ac71c
cmp qword [rax + 0x18], r15
jb 0x1401a8107
mov rax, qword [rax]
mov r8d, 0x400
lea rdx, [rbp]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp - 0x60]
call fcn.1400ac668
nop
xor edx, edx
lea r8d, [rdx + 0x1a]
lea rcx, [rsp + 0x24]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov ecx, 0x60
mov word [rsp + 0x40], cx
lea eax, [rcx - 9]
mov word [rsp + 0x42], ax
lea eax, [rcx + 0x1d]
mov word [rsp + 0x44], ax
lea eax, [rcx + 0x17]
mov word [rsp + 0x46], ax
lea eax, [rcx + 0x18]
mov word [rsp + 0x48], ax
lea eax, [rcx + 9]
mov word [rsp + 0x4a], ax
lea eax, [rcx + 0x11]
mov word [rsp + 0x4c], ax
lea eax, [rcx - 0x29]
mov word [rsp + 0x4e], ax
lea eax, [rcx - 0x2a]
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], cx
mov word [rsp + 0x54], r14w
movzx eax, word [rsp + 0x40]
mov rcx, r14
movzx eax, word [rsp + rcx*2 + 0x40]
sub ax, 4
mov word [rsp + rcx*2 + 0x40], ax
add rcx, rbx
cmp rcx, 0xa
jb 0x1401a8192
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.1400ac71c
mov rbx, rax
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
call fcn.1400ac71c
nop
mov r9, rbx
mov r8, rax
lea rcx, [rbp - 0x80]
call fcn.140175ac8
nop
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14015d1ec
nop
lea rcx, [rbp - 0x80]
call fcn.1400ac668
nop
lea rcx, [rbp - 0x40]
call fcn.1400ac668
nop
lea rcx, [rbp - 0x20]
call fcn.1400ac668
nop
xor edx, edx
lea r8d, [rdx + 0x16]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], r15
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a826d
test al, 0x10
jne 0x1401a826d
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov r8d, 0x20
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
movdqa xmm0, xmmword [0x140291e00]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r14w
jmp 0x1401a827c
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r13
mov word [rdi], r14w
lea rcx, [rsp + 0x58]
call fcn.1400ac668
mov rax, rdi
lea r11, [rsp + 0x900]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret