Function at 0x140002680
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14001d010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14001dc28]
test rax, rax
je 0x1400026c9
cmp qword [0x14001dc20], 0
jne 0x1400028ca
mov eax, 0x1d
mov dword [rbp - 0x49], eax
movdqa xmm0, xmmword [0x140017900]
movdqu xmmword [rbp - 0x45], xmm0
movdqa xmm1, xmmword [0x1400176f0]
movdqu xmmword [rbp - 0x35], xmm1
xor r15d, r15d
mov edx, r15d
test eax, eax
je 0x140002717
nop word [rax + rax]
mov eax, edx
lea rcx, [rbp - 0x45]
add rcx, rax
lea eax, [rdx + 0x48]
xor byte [rcx], al
inc edx
mov eax, dword [rbp - 0x49]
cmp edx, eax
jb 0x140002700
mov byte [rbp + rax - 0x45], r15b
mov qword [rbp - 1], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 0xf
mov byte [rbp - 1], 0
lea rax, [rbp - 0x45]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140002740
lea rdx, [rbp - 0x45]
lea rcx, [rbp - 1]
call fcn.140002e50
nop
mov eax, 0xe
mov dword [rbp - 0x49], eax
movdqa xmm0, xmmword [str.___x_.4__V]
movdqu xmmword [rbp - 0x45], xmm0
mov edx, r15d
test eax, eax
je 0x140002797
nop dword [rax]
nop dword [rax + rax]
mov eax, edx
lea rcx, [rbp - 0x45]
add rcx, rax
lea eax, [rdx + 0x48]
xor byte [rcx], al
inc edx
mov eax, dword [rbp - 0x49]
cmp edx, eax
jb 0x140002780
mov byte [rbp + rax - 0x45], 0
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
lea rax, [rbp - 0x45]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400027b4
mov r8, rbx
lea rdx, [rbp - 0x45]
lea rcx, [rbp - 0x21]
call fcn.140002e50
nop
lea rcx, [rbp - 0x21]
call fcn.14000b1e0
mov rdx, rax
lea r8, [rbp - 1]
mov rcx, rdi
call fcn.140002390
mov rbx, rax
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140002827
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002822
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002822
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc74
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140002875
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002870
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002870
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc74
test rbx, rbx
je 0x1400028db
mov dword [rbp + 0x1f], r15d
lea r8, [rbx + 7]
mov r9d, 4
lea rdx, [rbp + 0x1f]
mov rcx, rdi
call fcn.140001ad0
test al, al
je 0x1400028db
movsxd r8, dword [rbp + 0x1f]
add r8, 0xb
add r8, rbx
mov qword [0x14001dc28], r8
mov r9d, 8
lea rdx, [0x14001dc20]
mov rcx, rdi
call fcn.140001ad0
test al, al
je 0x1400028db
mov rax, qword [0x14001dc28]
mov qword [rsi], rax
mov rax, qword [0x14001dc20]
mov qword [r14], rax
mov al, 1
jmp 0x1400028dd
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000c8d0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret