Function at 0x1800ce6f4
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 - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov rcx, rdx
lea r15d, [r14 + 8]
cmp qword [rdx + 0x18], r15
jb 0x1800ce73b
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800ce75a
test al, 0x10
jne 0x1800ce75a
mov rdx, rsi
mov rcx, rbx
call fcn.18000be28
jmp 0x1800ceb33
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x31
mov word [rsp + 0x3c], dx
lea eax, [rdx + 0x2e]
mov word [rsp + 0x3e], ax
lea eax, [rdx + 0x54]
mov word [rsp + 0x40], ax
lea eax, [rdx + 0x4e]
mov word [rsp + 0x42], ax
lea ecx, [rdx + 0x4f]
mov word [rsp + 0x44], cx
lea eax, [rdx + 0x40]
mov word [rsp + 0x46], ax
lea eax, [rdx + 0x48]
mov word [rsp + 0x48], ax
lea eax, [rdx + 0x2d]
mov word [rsp + 0x4a], ax
lea eax, [rdx + 0x4a]
mov word [rsp + 0x4c], ax
mov word [rsp + 0x4e], ax
mov word [rsp + 0x50], cx
mov word [rsp + 0x52], dx
mov word [rsp + 0x54], r14w
movzx eax, word [rsp + 0x3c]
mov rcx, r14
mov edx, 0xc
lea r13d, [rdx - 0xb]
movzx eax, word [rsp + rcx*2 + 0x3c]
sub ax, dx
mov word [rsp + rcx*2 + 0x3c], ax
add rcx, r13
cmp rcx, rdx
jb 0x1800ce7db
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rsp + 0x3c]
or rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rax + r8*2], r14w
jne 0x1800ce80d
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x58]
call fcn.18000c67c
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], r15
cmovae rcx, qword [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12d, 0x1000
mov rdx, qword [rsp + 0x70]
cmp rdx, r15
jb 0x1800ce88c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, r12
jb 0x1800ce887
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ce887
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 + 0x68], xmm0
mov word [rsp + 0x58], r14w
xor edx, edx
lea r8d, [rdx + 0x1a]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov dword [rsp + 0x20], 0x37
mov eax, dword [rsp + 0x20]
xor ax, 0x5c
mov word [rsp + 0x24], ax
mov eax, dword [rsp + 0x20]
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, 0x33
mov word [rsp + 0x32], ax
mov eax, dword [rsp + 0x20]
add ax, r15w
xor ax, 0x32
mov word [rsp + 0x34], ax
mov eax, dword [rsp + 0x20]
add ax, 9
xor ax, 0x5c
mov word [rsp + 0x36], ax
xor eax, eax
mov word [rsp + 0x38], 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, 0xa
jb 0x1800ce96e
mov word [rsp + 0x38], r14w
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rsp + 0x24]
mov r8, rdi
inc r8
cmp word [rax + r8*2], r14w
jne 0x1800ce9a8
lea rdx, [rsp + 0x24]
lea rcx, [rbp - 0x80]
call fcn.18000c67c
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rbp - 0x10]
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x1800ce9d6
mov r8, rdi
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x58]
call fcn.18000c67c
nop
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x58]
lea rcx, [rbp - 0x38]
call fcn.1800ab6d4
nop
mov r8, rsi
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x60]
call fcn.180093f98
nop
lea rcx, [rbp - 0x38]
call fcn.18000bd8c
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, r15
jb 0x1800cea60
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, r12
jb 0x1800cea5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800cea5b
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 + 0x68], xmm0
mov word [rsp + 0x58], r14w
mov rdx, qword [rbp - 0x68]
cmp rdx, r15
jb 0x1800ceab2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r12
jb 0x1800ceaad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ceaad
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 - 0x70], xmm0
mov word [rbp - 0x80], r14w
xor edx, edx
lea r8d, [rdx + 0x16]
lea rcx, [rsp + 0x24]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], r15
cmovae rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800ceb14
test al, 0x10
jne 0x1800ceb14
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov r8d, 0x20
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
jmp 0x1800ceb33
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea rcx, [rbp - 0x60]
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