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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x7f8]
sub rsp, 0x8d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov r14, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov esi, 1
xor r15d, r15d
mov eax, dword [rdx + rcx]
cmp dword [0x1402d2edc], eax
jle 0x140103397
lea rcx, [0x1402d2edc]
call fcn.14027b540
or rbx, 0xffffffffffffffff
cmp dword [0x1402d2edc], ebx
jne 0x140103397
lea rax, [rbp - 0x80]
mov qword [rbp + 0x808], rax
mov dword [rsp + 0x30], 0x15
mov eax, dword [rsp + 0x30]
xor al, 0x45
mov byte [rsp + 0x34], al
mov eax, dword [rsp + 0x30]
add al, sil
xor al, 0x78
mov byte [rsp + 0x35], al
mov eax, dword [rsp + 0x30]
add al, 2
xor al, 0x70
mov byte [rsp + 0x36], al
mov eax, dword [rsp + 0x30]
add al, 3
xor al, 0x61
mov byte [rsp + 0x37], al
mov eax, dword [rsp + 0x30]
add al, 4
mov cl, 0x6e
xor al, cl
mov byte [rsp + 0x38], al
mov eax, dword [rsp + 0x30]
add al, 5
xor al, 0x64
mov byte [rsp + 0x39], al
mov eax, dword [rsp + 0x30]
add al, 6
xor al, 0x45
mov byte [rsp + 0x3a], al
mov eax, dword [rsp + 0x30]
add al, 7
xor al, cl
mov byte [rsp + 0x3b], al
mov eax, dword [rsp + 0x30]
add al, 8
xor al, 0x76
mov byte [rsp + 0x3c], al
mov eax, dword [rsp + 0x30]
add al, 9
xor al, 0x69
mov byte [rsp + 0x3d], al
mov eax, dword [rsp + 0x30]
add al, 0xa
xor al, 0x72
mov byte [rsp + 0x3e], al
mov eax, dword [rsp + 0x30]
add al, 0xb
xor al, 0x6f
mov byte [rsp + 0x3f], al
mov eax, dword [rsp + 0x30]
add al, 0xc
xor al, cl
mov byte [rsp + 0x40], al
mov eax, dword [rsp + 0x30]
add al, 0xd
xor al, 0x6d
mov byte [rsp + 0x41], al
mov eax, dword [rsp + 0x30]
add al, 0xe
xor al, 0x65
mov byte [rsp + 0x42], al
mov eax, dword [rsp + 0x30]
lea r12d, [rsi + 0xe]
add al, r12b
xor al, cl
mov byte [rsp + 0x43], al
mov eax, dword [rsp + 0x30]
add al, 0x10
xor al, 0x74
mov byte [rsp + 0x44], al
mov eax, dword [rsp + 0x30]
add al, 0x11
xor al, 0x53
mov byte [rsp + 0x45], al
mov eax, dword [rsp + 0x30]
add al, 0x12
xor al, 0x74
mov byte [rsp + 0x46], al
mov eax, dword [rsp + 0x30]
add al, 0x13
xor al, 0x72
mov byte [rsp + 0x47], al
mov eax, dword [rsp + 0x30]
add al, 0x14
xor al, 0x69
mov byte [rsp + 0x48], al
mov eax, dword [rsp + 0x30]
add al, 0x15
xor al, cl
mov byte [rsp + 0x49], al
mov eax, dword [rsp + 0x30]
add al, 0x16
xor al, 0x67
mov byte [rsp + 0x4a], al
mov eax, dword [rsp + 0x30]
add al, 0x17
xor al, 0x73
mov byte [rsp + 0x4b], al
mov eax, dword [rsp + 0x30]
add al, 0x18
xor al, 0x57
mov byte [rsp + 0x4c], al
xor eax, eax
mov byte [rsp + 0x4d], al
mov al, byte [rsp + 0x34]
mov edx, r15d
mov al, byte [rsp + rdx + 0x34]
mov ecx, dword [rsp + 0x30]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x34], cl
add rdx, rsi
cmp rdx, 0x19
jb 0x1401031db
mov byte [rsp + 0x4d], r15b
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r12
lea rax, [rsp + 0x34]
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], r15b
jne 0x14010320d
lea rcx, [rbp - 0x80]
cmp rdi, r12
ja 0x140103238
mov qword [rbp - 0x70], rdi
mov r8, rdi
lea rdx, [rsp + 0x34]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [rbp + rdi - 0x80], r15b
jmp 0x140103246
lea r9, [rsp + 0x34]
mov rdx, rdi
call fcn.1400ada10
nop
mov byte [rsp + 0x50], 0x76
mov byte [rsp + 0x51], 0x70
mov byte [rsp + 0x52], 0x7d
mov byte [rsp + 0x53], 0x79
mov byte [rsp + 0x54], 0x70
mov byte [rsp + 0x55], 0x77
mov byte [rsp + 0x56], 0x3e
mov byte [rsp + 0x57], 0x3d
mov byte [rsp + 0x58], r15b
mov al, byte [rsp + 0x50]
mov rcx, r15
mov al, byte [rsp + rcx + 0x50]
sub al, 0xb
mov byte [rsp + rcx + 0x50], al
add rcx, rsi
cmp rcx, 8
jb 0x14010327a
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x60], r15b
lea rax, [rsp + 0x50]
inc rbx
cmp byte [rax + rbx], r15b
jne 0x1401032a6
lea rcx, [rsp + 0x60]
cmp rbx, r12
ja 0x1401032d3
mov qword [rsp + 0x70], rbx
mov r8, rbx
lea rdx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [rsp + rbx + 0x60], r15b
jmp 0x1401032e1
lea r9, [rsp + 0x50]
mov rdx, rbx
call fcn.1400ada10
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.1401a82ac
nop
mov qword [rsp + 0x20], r15
mov r9b, sil
lea r8, [rbp - 0x80]
mov rdx, rax
lea rcx, [0x1402d2490]
call fcn.140123428
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14010334c
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140103347
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140103347
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027b384
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x60], r15b
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0x1a]
lea rcx, [rsp + 0x34]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x14028e8f0]
call fcn.14027b36c
nop
lea rcx, [0x1402d2edc]
call fcn.14027b4e0
cmp qword [r14 + 0x18], 8
jb 0x1401033a1
mov r14, qword [r14]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401033c7
test al, 0x10
je 0x1401033ca
mov sil, r15b
mov al, sil
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret