Function at 0x14026ea08
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 0x14026ea36
mov eax, esi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, rcx
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x14026ea23
mov r14, rdx
mov r12, qword [rbx + 0x10]
mov rax, qword [fcn.140070a20]
mov r15, rdx
shl r15, 5
mov rcx, r15
call qword [case.0x140211850.0]
mov qword [rbx + 8], rax
test rax, rax
je 0x14026ebda
xor esi, esi
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140173760
mov qword [rbx + 0x10], r14
test r12, r12
je 0x14026ed0e
xor esi, esi
xor r15d, r15d
mov r13, r15
shl r13, 5
cmp dword [rdi + r13 + 0x14], 0
je 0x14026eba6
cmp r12, 0x80
jne 0x14026eb0f
mov rcx, qword [rbx + 0x10]
cmp rcx, 0x80
je 0x14026ebbb
mov eax, dword [rdi + r13 + 0x10]
xor ebp, ebp
test eax, eax
jle 0x14026eb18
mov rdx, qword [rdi + r13 + 8]
test rdx, rdx
je 0x14026eb18
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 0x14026ead7
lea eax, [r9 + r9*8]
mov edx, eax
shr edx, 0xb
xor edx, eax
mov ebp, edx
shl ebp, 0xf
add ebp, edx
jmp 0x14026eb18
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 0x14026eb79
mov rax, qword [fcn.140070a20]
mov ecx, 0x20
call qword [case.0x140211850.0]
test rax, rax
je 0x14026ebb4
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
jmp 0x14026eba6
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
inc r15
cmp r15, r12
jne 0x14026ea8e
jmp 0x14026ebe3
mov esi, 0xffffffff
jmp 0x14026eba6
mov r8d, dword [rbx + 0x30]
mov edx, dword [rdi + r13 + 0x10]
mov rcx, qword [rdi + r13 + 8]
call fcn.1400928fc
mov ebp, eax
mov ecx, 0x80
jmp 0x14026eb18
mov qword [rbx + 8], rdi
jmp 0x14026ea23
xor r15d, r15d
mov rax, r15
shl rax, 5
mov r14, qword [rdi + rax]
test r14, r14
jne 0x14026ec53
jmp 0x14026ed02
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.14004f440
jmp 0x14026ecf6
mov r8d, dword [rbx + 0x30]
mov edx, dword [r14 + 0x10]
mov rcx, qword [r14 + 8]
call fcn.1400928fc
mov ecx, eax
mov r8d, 0x80
jmp 0x14026ecc5
mov r13, qword [r14]
cmp r12, 0x80
jne 0x14026ecbd
mov r8, qword [rbx + 0x10]
cmp r8, 0x80
je 0x14026ec38
mov eax, dword [r14 + 0x10]
xor ecx, ecx
test eax, eax
jle 0x14026ecc5
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x14026ecc5
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 0x14026ec85
lea eax, [r9 + r9*8]
mov edx, eax
shr edx, 0xb
xor edx, eax
mov ecx, edx
shl ecx, 0xf
add ecx, edx
jmp 0x14026ecc5
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 0x14026ebfb
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
jne 0x14026ec53
inc r15
cmp r15, r12
jne 0x14026ebe6
mov rcx, rdi
call fcn.14004f440
jmp 0x14026ea23