Function at 0x14028201a
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, 0xffffffff
cmp rdx, 8
jae 0x140282058
mov eax, esi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14012ca40
jmp 0x140282035
mov qword [rbx + 8], rdi
jmp 0x140282035
mov rbx, rcx
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140282035
mov r14, rdx
mov r12, qword [rbx + 0x10]
mov rax, qword [fcn.14003ee90]
mov r15, rdx
shl r15, 5
mov rcx, r15
call qword [0x14037e008]
mov qword [rbx + 8], rax
test rax, rax
je 0x140282052
xor esi, esi
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140159120
mov qword [rbx + 0x10], r14
test r12, r12
je 0x140282048
xor esi, esi
xor r15d, r15d
jmp 0x14028229d
mov r8d, dword [rbx + 0x30]
mov edx, dword [r14 + 0x10]
mov rcx, qword [r14 + 8]
call fcn.1400e97ca
mov ecx, eax
mov r8d, 0x80
jmp 0x14028210a
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rax, qword [rbx + 8]
mov qword [rax + rdx], 0
mov rax, qword [rbx + 8]
mov dword [rax + rdx + 0x14], 1
mov rax, qword [rbx + 8]
mov dword [rax + rdx + 0x18], ecx
mov rcx, r14
call fcn.14012ca40
jmp 0x140282137
mov ecx, dword [r14 + 0x18]
mov r8, qword [rbx + 0x10]
mov eax, ecx
xor edx, edx
div r8
mov r8, qword [rbx + 8]
shl rdx, 5
lea rax, [r8 + rdx]
cmp dword [r8 + rdx + 0x14], 0
je 0x1402820c8
mov rax, qword [rax]
mov qword [r14], rax
mov dword [r14 + 0x18], ecx
mov rax, qword [rbx + 8]
mov qword [rax + rdx], r14
mov r14, r13
test r13, r13
je 0x1402821b0
mov r13, qword [r14]
cmp r12, 0x80
jne 0x140282102
mov r8, qword [rbx + 0x10]
cmp r8, 0x80
je 0x1402820ad
mov eax, dword [r14 + 0x10]
xor ecx, ecx
test eax, eax
jle 0x14028210a
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x14028210a
mov r9d, dword [rbx + 0x30]
xor ecx, ecx
movzx r10d, byte [rdx + rcx]
add r10d, r9d
mov r11d, r10d
shl r11d, 0xa
add r11d, r10d
mov r9d, r11d
shr r9d, 6
xor r9d, r11d
inc rcx
cmp rax, rcx
jne 0x140282175
lea eax, [r9 + r9*8]
mov edx, eax
shr edx, 0xb
xor edx, eax
mov ecx, edx
shl ecx, 0xf
add ecx, edx
jmp 0x14028210a
inc r15
cmp r15, r12
je 0x140282048
mov rax, r15
shl rax, 5
mov r14, qword [rdi + rax]
test r14, r14
jne 0x14028213f
jmp 0x1402821b0
xor r15d, r15d
jmp 0x1402821bc
mov r8d, dword [rbx + 0x30]
mov edx, dword [rdi + r13 + 0x10]
mov rcx, qword [rdi + r13 + 8]
call fcn.1400e97ca
mov ebp, eax
mov ecx, 0x80
jmp 0x140282232
add r13, rdi
movups xmm0, xmmword [r13]
movups xmm1, xmmword [r13 + 0x10]
movups xmmword [rax + r14 + 0x10], xmm1
movups xmmword [rax + r14], xmm0
mov rax, qword [rbx + 8]
mov qword [rax + r14], 0
mov rax, qword [rbx + 8]
mov dword [rax + r14 + 0x18], ebp
jmp 0x140282291
mov esi, 0xffffffff
jmp 0x140282291
mov ebp, dword [rdi + r13 + 0x18]
mov rcx, qword [rbx + 0x10]
mov eax, ebp
xor edx, edx
div rcx
mov r14, rdx
mov rax, qword [rbx + 8]
shl r14, 5
cmp dword [rax + r14 + 0x14], 0
je 0x1402821f3
mov rax, qword [fcn.14003ee90]
mov ecx, 0x20
call qword [0x14037e008]
test rax, rax
je 0x140282222
mov rcx, qword [rdi + r13 + 8]
mov qword [rax + 8], rcx
mov ecx, dword [rdi + r13 + 0x10]
mov dword [rax + 0x10], ecx
mov dword [rax + 0x18], ebp
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + r14]
mov qword [rax], rcx
mov dword [rax + 0x14], 1
mov rcx, qword [rbx + 8]
mov qword [rcx + r14], rax
inc r15
cmp r15, r12
je 0x1402821d2
mov r13, r15
shl r13, 5
cmp dword [rdi + r13 + 0x14], 0
je 0x140282291
cmp r12, 0x80
jne 0x140282229
mov rcx, qword [rbx + 0x10]
cmp rcx, 0x80
je 0x1402821d7
mov eax, dword [rdi + r13 + 0x10]
xor ebp, ebp
test eax, eax
jle 0x140282232
mov rdx, qword [rdi + r13 + 8]
test rdx, rdx
je 0x140282232
mov r9d, dword [rbx + 0x30]
xor r8d, r8d
movzx r10d, byte [rdx + r8]
add r10d, r9d
mov r11d, r10d
shl r11d, 0xa
add r11d, r10d
mov r9d, r11d
shr r9d, 6
xor r9d, r11d
inc r8
cmp rax, r8
jne 0x1402822ee
lea eax, [r9 + r9*8]
mov edx, eax
shr edx, 0xb
xor edx, eax
mov ebp, edx
shl ebp, 0xf
add ebp, edx
jmp 0x140282232