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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x818]
sub rsp, 0x8f0
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov rcx, rdx
lea r15d, [r14 + 8]
cmp qword [rdx + 0x18], r15
jb 0x1800aae47
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800aae66
test al, 0x10
jne 0x1800aae66
mov rdx, rdi
mov rcx, rbx
call fcn.18000be28
jmp 0x1800ab268
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0xe
mov eax, dword [rsp + 0x20]
xor ax, 0x25
mov word [rsp + 0x24], ax
mov eax, dword [rsp + 0x20]
mov r13d, 1
add ax, r13w
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]
add ax, 7
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]
mov rdx, r14
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, r13
cmp rdx, 0xc
jb 0x1800aaf5c
mov word [rsp + 0x3c], r14w
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rsp + 0x24]
or rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp word [rax + r8*2], r14w
jne 0x1800aaf9c
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x60]
call fcn.18000c67c
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], r15
cmovae rcx, qword [rsp + 0x60]
mov r8d, 0x400
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12d, 0x1000
mov rdx, qword [rsp + 0x78]
cmp rdx, r15
jb 0x1800ab01b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r12
jb 0x1800ab016
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ab016
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
movdqa xmm0, xmmword [0x180165920]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
xor edx, edx
lea r8d, [rdx + 0x1a]
lea rcx, [rsp + 0x24]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov dword [rsp + 0x40], 0x73
mov ecx, 0x2f
mov word [rsp + 0x44], cx
lea eax, [rcx - 0xf]
mov word [rsp + 0x46], ax
lea r8d, [rcx - 0x25]
mov word [rsp + 0x48], r8w
mov word [rsp + 0x4a], r14w
lea eax, [rcx - 0x28]
mov word [rsp + 0x4c], ax
lea eax, [rcx - 0x19]
mov word [rsp + 0x4e], ax
lea eax, [rcx - 0x11]
mov word [rsp + 0x50], ax
lea eax, [rcx + 0x11]
mov word [rsp + 0x52], ax
lea eax, [rcx + 0x12]
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], cx
xor eax, eax
mov word [rsp + 0x58], ax
movzx eax, word [rsp + 0x44]
mov rdx, r14
movzx eax, word [rsp + rdx*2 + 0x44]
mov ecx, dword [rsp + 0x40]
xor cx, ax
mov word [rsp + rdx*2 + 0x44], cx
add rdx, r13
cmp rdx, r8
jb 0x1800ab0a6
mov word [rsp + 0x58], r14w
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
lea rax, [rsp + 0x44]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r14w
jne 0x1800ab0dc
lea rdx, [rsp + 0x44]
lea rcx, [rbp - 0x78]
call fcn.18000c67c
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x10]
inc rsi
cmp word [rax + rsi*2], r14w
jne 0x1800ab10a
mov r8, rsi
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x60]
call fcn.18000c67c
nop
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x30]
call fcn.1800ab6d4
nop
mov r8, rdi
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.180093f98
nop
lea rcx, [rbp - 0x30]
call fcn.18000bd8c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, r15
jb 0x1800ab194
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, r12
jb 0x1800ab18f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ab18f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
movdqa xmm0, xmmword [0x180165920]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
mov rdx, qword [rbp - 0x60]
cmp rdx, r15
jb 0x1800ab1e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, r12
jb 0x1800ab1e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ab1e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
movdqa xmm0, xmmword [0x180165920]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
xor edx, edx
lea r8d, [rdx + 0x16]
lea rcx, [rsp + 0x44]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], r15
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800ab248
test al, 0x10
jne 0x1800ab248
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov r8d, 0x20
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
jmp 0x1800ab268
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov eax, 7
mov qword [rbx + 0x18], rax
mov word [rbx], r14w
lea rcx, [rbp - 0x58]
call fcn.18000bd8c
mov rax, rbx
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret