Function at 0x140004889
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x40d8
call fcn.14019e4a0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4050], 0xfffffffffffffffe
mov rcx, qword [rcx]
mov rax, qword [rcx]
mov qword [rcx], 0
test rax, rax
je 0x140004cdd
mov rax, qword [rax]
mov qword [rbp + 0x4028], rax
lea rcx, [0x1401a28d8]
lea r9, [rbp + 0x4038]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140004cb0
mov rsi, qword [rbp + 0x4038]
test rsi, rsi
je 0x140004cf2
xor r13d, r13d
xor ebx, ebx
mov rdi, rbx
inc rbx
add r13, 0xfffffffffffffffe
cmp word [rsi + rdi*2], 0
jne 0x14000490a
xor r14d, r14d
mov rax, rbx
add rax, rbx
setae al
mov r15, rbx
add r15, rbx
jb 0x140004d0c
mov r14b, al
add r14, r14
test r15, r15
je 0x14000494e
mov rcx, r15
mov rdx, r14
call fcn.140040c30
mov rcx, rax
jmp 0x140004951
mov rcx, r14
test rcx, rcx
je 0x140004d13
shr r15, 1
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], r15
mov r12, r13
neg r12
mov rdx, rsi
mov r8, r12
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x30], rbx
mov rax, qword [rbp - 0x38]
cmp rax, rbx
jbe 0x1400049e3
mov r14, qword [rbp - 0x40]
test r13, r13
je 0x1400049b6
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r14
mov r9, r12
call sub.KERNEL32.dll_HeapReAlloc
mov r15, rax
test rax, rax
jne 0x1400049d3
mov edx, 2
mov rcx, r12
jmp 0x140004d19
mov r15d, 2
add rax, rax
je 0x1400049d3
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.14019e1f5
mov qword [rbp - 0x40], r15
mov rax, rbx
btr rax, 0x3f
mov qword [rbp - 0x38], rax
mov r14, qword [rbp - 0x40]
mov qword [rbp + 0x3ff0], r14
mov qword [rbp + 0x3ff8], rbx
test rbx, rbx
je 0x140004d20
lea rcx, [rbp - 0x40]
mov rdx, r14
mov r8, rdi
call fcn.1400c9510
mov rdi, qword [rbp - 0x40]
movups xmm0, xmmword [rbp - 0x38]
movaps xmmword [rbp + 0x3fc0], xmm0
mov word [r14], 0
shl rbx, 1
test rbx, rbx
je 0x140004a3d
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.14019e1f5
mov rcx, rsi
call sub.ole32.dll_CoTaskMemFree
movaps xmm0, xmmword [rbp + 0x3fc0]
movaps xmmword [rbp - 0x40], xmm0
test rdi, rdi
je 0x140004cb0
mov qword [rbp + 0x4038], rdi
movdqa xmm0, xmmword [rbp - 0x40]
movdqu xmmword [rbp + 0x4040], xmm0
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
xor eax, eax
lea rcx, [0x14024c11d]
lea rdx, [0x1401a2918]
mov rbx, qword [rax + rdx]
xor rbx, qword [rax + rcx]
mov qword [rbp + rax - 0x40], rbx
lea rbx, [rax + 8]
cmp rax, 0x10
mov rax, rbx
jb 0x140004a8e
lea rcx, [rbp + 0x4038]
lea rdx, [rbp - 0x40]
mov r8d, 0x18
call fcn.1400ce8f0
mov rdx, qword [rbp + 0x4038]
mov r8, qword [rbp + 0x4048]
lea r9, [rbp + 0x3fc0]
mov dword [r9 + 0x20], 0
mov word [r9 + 0x24], 0
mov qword [r9 + 0x18], 7
mov qword [r9], 0
movdqa xmm0, xmmword [0x1401a0650]
movdqu xmmword [r9 + 8], xmm0
lea rdi, [rbp - 0x40]
mov rcx, rdi
call fcn.1400ce490
mov rsi, qword [rbp - 0x38]
cmp qword [rbp - 0x40], 1
jne 0x140004b69
cmp sil, 2
jb 0x140004c2b
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
mov qword [rbp + 0x4030], rax
mov rax, qword [rax + 8]
call qword [rax]
mov rsi, qword [rbp + 0x4030]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x140004b52
mov rcx, qword [rsi]
mov rdx, qword [rax + 0x10]
call fcn.140040ca0
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14019e1f5
jmp 0x140004c2b
pxor xmm0, xmm0
lea rdx, [rbp + 0x3ff0]
movdqa xmmword [rdx + 0x20], xmm0
movdqa xmmword [rdx + 0x10], xmm0
movdqa xmmword [rdx], xmm0
mov dword [rdx + 0x30], 0
mov rcx, rsi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x140004c1e
test byte [rbp + 0x3ff1], 4
je 0x140004bf6
mov r8d, 0x4000
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x4024]
mov dword [rax], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x4000
mov rcx, rsi
mov edx, 0x900a8
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
jne 0x140004bf6
call sub.KERNEL32.dll_GetLastError
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movdqu xmm0, xmmword [rbp + 0x4038]
movq rax, xmm0
pshufd xmm0, xmm0, 0x4e
movq rcx, xmm0
mov rdx, qword [rbp + 0x4048]
jmp 0x140004c39
call sub.KERNEL32.dll_GetLastError
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
lea rcx, [rbp + 0x4038]
call fcn.14000759a
xor eax, eax
movq xmm1, rcx
movq xmm0, rdx
punpcklqdq xmm1, xmm0
movq xmm0, rax
movdqa xmm2, xmmword [0x1401a0660]
punpcklqdq xmm2, xmm0
mov rax, qword [rbp + 0x4028]
movdqu xmm0, xmmword [rax]
movups xmm3, xmmword [rax + 0x10]
movdqu xmmword [rax], xmm2
movdqu xmmword [rax + 0x10], xmm1
movaps xmmword [rbp - 0x30], xmm3
movdqa xmmword [rbp - 0x40], xmm0
movq rax, xmm0
test rax, rax
je 0x140004c9b
pshufd xmm0, xmm0, 0x4e
movq rax, xmm0
test rax, rax
je 0x140004c9b
lea rcx, [rbp - 0x38]
call fcn.14000759a
nop
add rsp, 0x40d8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x1401a2900]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401a28e8]
lea r9, fcn.140006c3f
lea r8, [rbp + 0x3ff0]
mov edx, 6
call fcn.140034460
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.C:UsersThalya.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_synconce.rs
mov edx, 0x2b
jmp 0x140004d05
lea rcx, str.assertion_failed:__p.is_null__C:UsersThalya.cargo_registry_srcgithub.com_1ecc6299db9ec823widestring_0.4.3_srcucstring.rs
lea r8, [0x1401a0ad0]
mov edx, 0x1e
call fcn.140031820
ud2
call fcn.14002ff10
ud2
mov rcx, r15
mov rdx, r14
call fcn.14002fe70
ud2
lea r8, str._b__
mov rcx, rdi
xor edx, edx
call fcn.140031fc0
ud2