Function at 0x140174e1c
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 - 0x828]
sub rsp, 0x910
mov qword [rbp - 0x80], 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 0x140174e62
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140174e81
test al, 0x10
jne 0x140174e81
mov rdx, rsi
mov rcx, rdi
call fcn.1400ac788
jmp 0x140175148
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x34
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
lea ecx, [rbx + 0x6e]
xor ax, cx
mov word [rsp + 0x34], ax
mov eax, dword [rsp + 0x20]
add ax, 9
xor ax, cx
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 0x140174f7d
mov word [rsp + 0x3c], r14w
lea rdx, [rsp + 0x24]
lea rcx, [rbp - 0x58]
call fcn.1400ac71c
cmp qword [rax + 0x18], r15
jb 0x140174fb7
mov rax, qword [rax]
mov r8d, 0x400
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp - 0x58]
call fcn.1400ac668
nop
xor edx, edx
lea r8d, [rdx + 0x1a]
lea rcx, [rsp + 0x24]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov dword [rsp + 0x40], 0x3c
mov ecx, 0x60
mov word [rsp + 0x44], cx
lea eax, [rcx + 0xf]
mov word [rsp + 0x46], ax
lea eax, [rcx - 0x1b]
mov word [rsp + 0x48], ax
lea eax, [rcx - 0x11]
mov word [rsp + 0x4a], ax
lea eax, [rcx - 0x18]
mov word [rsp + 0x4c], ax
lea eax, [rcx - 7]
mov word [rsp + 0x4e], ax
lea eax, [rcx - 0xf]
mov word [rsp + 0x50], ax
lea eax, [rcx - 0x51]
mov word [rsp + 0x52], ax
lea eax, [rcx - 0x52]
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, rbx
cmp rdx, 0xa
jb 0x14017504b
mov word [rsp + 0x58], r14w
lea rdx, [rsp + 0x44]
lea rcx, [rbp - 0x18]
call fcn.1400ac71c
mov rbx, rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x38]
call fcn.1400ac71c
nop
mov r9, rbx
mov r8, rax
lea rcx, [rbp - 0x78]
call fcn.140175ac8
nop
mov r8, rsi
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.14015d1ec
nop
lea rcx, [rbp - 0x78]
call fcn.1400ac668
nop
lea rcx, [rbp - 0x38]
call fcn.1400ac668
nop
lea rcx, [rbp - 0x18]
call fcn.1400ac668
nop
xor edx, edx
lea r8d, [rdx + 0x16]
lea rcx, [rsp + 0x44]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], r15
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14017512f
test al, 0x10
jne 0x14017512f
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov r8d, 0x20
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
movdqa xmm0, xmmword [0x140291e00]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
jmp 0x14017513e
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r13
mov word [rdi], r14w
lea rcx, [rsp + 0x60]
call fcn.1400ac668
mov rax, rdi
lea r11, [rsp + 0x910]
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