Function at 0x7ff65ed26770
Capabilities:
Encode data using xor
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x1d0
movaps xmmword [rsp + 0x1c0], xmm6
mov rax, qword [str.e41k2]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
cmp byte [0x7ff65f429f6c], r15b
jne 0x7ff65ed26aad
mov byte [0x7ff65f429f6c], 1
mov edx, 0x1a
mov eax, 0x26
cmp dword [0x7ff65f42c9c4], r15d
cmovne edx, eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movdqa xmm6, xmmword [0x7ff65f153d00]
mov dword [rsp + 0x50], 0x4a001a18
mov word [rsp + 0x54], 0x4242
mov edx, 0x14
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x7ff65f43bde0], eax
jg 0x7ff65ed26ae2
lea r8, [0x7ff65f43bdf0]
cmp byte [0x7ff65f43be06], r15b
je 0x7ff65ed26860
movdqa xmm0, xmmword [0x7ff65f153b30]
pxor xmm0, xmmword [0x7ff65f43bdf0]
movdqa xmmword [0x7ff65f43bdf0], xmm0
mov eax, 0x10
xor byte [rax + r8], 0x2e
inc rax
cmp rax, 0x17
jb 0x7ff65ed26852
lea rcx, [rsp + 0xa0]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], r15b
jne 0x7ff65ed26870
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x7ff65ed26880
test rbx, rbx
jne 0x7ff65ed268cf
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xa0]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], r15b
jne 0x7ff65ed268b4
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x60]
mov r14d, 1
jmp 0x7ff65ed2692d
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], r15
mov ecx, 0x40
call fcn.7ff65efe06d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x30], 2
lea r8, [rsp + 0x80]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.7ff65ec97000
mov rbx, rax
mov rdi, 0xffffffffffffffff
lea r14d, [rdi + 7]
mov rcx, qword [0x7ff65f42f570]
call fcn.7ff65efe070c
mov rcx, qword [rbx]
mov qword [0x7ff65f42f570], rcx
mov rcx, qword [rbx + 8]
mov qword [0x7ff65f42f578], rcx
mov qword [rbx], r15
mov qword [rbx + 8], r15
test r14b, 4
je 0x7ff65ed2696a
and r14d, 0xfffffffb
mov rcx, qword [rsp + 0x40]
call fcn.7ff65efe070c
nop
test r14b, 2
je 0x7ff65ed269e7
and r14d, 0xfffffffd
mov rcx, qword [rsp + 0x80]
mov rsi, qword [rcx + 8]
cmp byte [rsi + 0x19], 0
jne 0x7ff65ed269dc
nop word [rax + rax]
mov r8, qword [rsi + 0x10]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x80]
call fcn.7ff65ec9a610
mov rbx, rsi
mov rsi, qword [rsi]
mov rcx, qword [rbx + 0x30]
call fcn.7ff65efe070c
mov rcx, qword [rbx + 0x20]
call fcn.7ff65efe070c
mov edx, 0x40
mov rcx, rbx
call fcn.7ff65efe070c
cmp byte [rsi + 0x19], 0
je 0x7ff65ed26990
mov rcx, qword [rsp + 0x80]
mov edx, 0x40
call fcn.7ff65efe070c
nop
test r14b, 1
je 0x7ff65ed269f7
mov rcx, qword [rsp + 0x60]
call fcn.7ff65efe070c
mov rcx, qword [0x7ff65f42f580]
call fcn.7ff65efe070c
mov qword [0x7ff65f42f580], r15
mov qword [0x7ff65f42f588], r15
lea rdx, [0x7ff65f42f520]
mov rcx, qword [0x7ff65f42f570]
call fcn.7ff65efb6cc0
test eax, eax
je 0x7ff65ed26a99
lea rcx, [0x7ff65f42f520]
call fcn.7ff65efb6ca0
mov rbx, rax
mov rcx, qword [0x7ff65f42f580]
call fcn.7ff65efe070c
test rbx, rbx
jne 0x7ff65ed26a60
mov qword [0x7ff65f42f588], r15
mov qword [0x7ff65f42f580], r15
xor al, al
jmp 0x7ff65ed26ab4
inc rdi
cmp byte [rbx + rdi], 0
jne 0x7ff65ed26a60
mov qword [0x7ff65f42f588], rdi
lea rcx, [rdi + 1]
call fcn.7ff65efe0c28
mov qword [0x7ff65f42f580], rax
mov r8, qword [0x7ff65f42f588]
inc r8
mov rdx, rbx
mov rcx, rax
call fcn.7ff65efe2f30
xor al, al
jmp 0x7ff65ed26ab4
call fcn.7ff65ed26fd0
nop
mov al, 1
mov byte [0x7ff65f429f6d], al
jmp 0x7ff65ed26ab4
movzx eax, byte [0x7ff65f429f6d]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.7ff65efe06b0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, [0x7ff65f43bde0]
call fcn.7ff65efe08c8
cmp dword [0x7ff65f43bde0], 0xffffffff
jne 0x7ff65ed26825
movaps xmmword [0x7ff65f43bdf0], xmm6
mov eax, dword [rsp + 0x50]
mov dword [0x7ff65f43be00], eax
movzx eax, word [rsp + 0x54]
mov word [0x7ff65f43be04], ax
mov byte [0x7ff65f43be06], 0x2e
lea rcx, [0x7ff65f019b30]
call fcn.7ff65efe0c10
lea rcx, [0x7ff65f43bde0]
call fcn.7ff65efe0868
nop
jmp 0x7ff65ed26825