Function at 0x1402020a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movzx r13d, byte [rcx]
mov r15, qword [rcx + 0x28]
mov r14, qword [rcx + 0x30]
mov rbx, rcx
mov rbp, rdx
mov rsi, r8
mov rdi, r9
test r13b, 0x40
jne 0x1402020e0
lea r11, [rcx + 0x10]
mov r8, r14
mov rdx, r11
call r15
add qword [rbx + 0x20], 1
mov eax, r13d
mov ecx, r13d
mov r12d, 0xf
and eax, 7
and ecx, 7
sub r12d, eax
mov byte [rsp + 0x3f], cl
mov byte [rbx], cl
cmp r12d, 0xf
je 0x140202350
mov edx, r12d
sub eax, 1
lea r8, [rbx + rdx + 1]
lea rcx, [rbx + rdx]
add r8, rax
xor eax, eax
nop dword [rax]
movzx edx, byte [rcx]
mov byte [rcx], 0
add rcx, 1
or rax, rdx
shl rax, 8
cmp r8, rcx
jne 0x140202120
movzx edx, byte [rbx + 0xf]
mov byte [rbx + 0xf], 1
or rax, rdx
cmp rax, rdi
jne 0x14020237a
movabs rdx, 0x2000000000000000
lea rax, [rdi + 0xf]
shr rax, 3
or rax, 1
add rax, qword [rbx + 0x20]
mov qword [rbx + 0x20], rax
cmp rdx, rax
jb 0x140202384
cmp rdi, 0xf
jbe 0x140202240
mov r8, rdi
lea r11, [rbx + 0x10]
mov rdx, rsi
mov rcx, rbp
shr r8, 4
mov qword [rsp + 0x28], r11
mov r9, r14
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x20], rbx
call qword [rsp + 0xd0]
mov rax, rdi
mov r8, qword [rsp + 0x40]
mov r11, qword [rsp + 0x48]
and rax, 0xfffffffffffffff0
add rbp, rax
add rsi, rax
sub rdi, rax
jne 0x140202308
lea r11, [rsp + 0x50]
movzx esi, byte [rsp + 0x3f]
mov r12d, r12d
xor r8d, r8d
add r12, rbx
add esi, 1
movzx esi, sil
cmp esi, 8
jae 0x1402022c0
test sil, 4
jne 0x140202364
test esi, esi
je 0x14020220a
mov byte [r12], 0
test sil, 2
jne 0x140202357
mov r8, r14
mov rdx, r11
mov rcx, rbx
call r15
movdqu xmm0, xmmword [rbx + 0x10]
mov byte [rbx], r13b
xor eax, eax
pxor xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r11, [rsp + 0x50]
test rdi, rdi
je 0x1402021cf
lea r11, [rbx + 0x10]
xor eax, eax
movzx edx, byte [rbp + rax]
mov r9, rax
xor byte [rbx + rax + 0x10], dl
lea rax, [rax + 1]
cmp rdi, rax
jne 0x140202250
mov qword [rsp + 0x48], r9
mov rdx, r11
mov rcx, r11
mov r8, r14
call r15
lea r11, [rsp + 0x50]
mov r8, r14
mov rcx, rbx
mov qword [rsp + 0x40], r11
mov rdx, r11
call r15
mov r9, qword [rsp + 0x48]
mov r11, qword [rsp + 0x40]
xor eax, eax
nop dword [rax + rax]
movzx edx, byte [r11 + rax]
xor dl, byte [rbp + rax]
mov byte [rsi + rax], dl
mov rdx, rax
add rax, 1
cmp rdx, r9
jne 0x1402022a0
jmp 0x1402021cf
lea rdx, [r12 + 8]
mov qword [r12], 0
mov qword [rsi + r12 - 8], 0
and rdx, 0xfffffffffffffff8
sub r12, rdx
add esi, r12d
and esi, 0xfffffff8
cmp esi, 8
jb 0x14020220a
and esi, 0xfffffff8
xor eax, eax
mov ecx, eax
add eax, 8
mov qword [rdx + rcx], r8
cmp eax, esi
jb 0x1402022f1
jmp 0x14020220a
lea rcx, [rbx + 0xf]
lea r10, [rbx + 8]
xor eax, eax
jmp 0x140202328
mov rdx, rax
sub rcx, 1
or rdx, r8
je 0x14020224e
movzx edx, byte [rcx]
movzx r9d, r8b
shr r8, 8
add rdx, r9
add rax, rdx
mov byte [rcx], al
shr rax, 8
cmp r10, rcx
jne 0x140202318
jmp 0x14020224e
xor eax, eax
jmp 0x140202136
xor eax, eax
mov word [rsi + r12 - 2], ax
jmp 0x14020220a
mov dword [r12], 0
mov dword [rsi + r12 - 4], 0
jmp 0x14020220a
mov eax, 0xffffffff
jmp 0x14020222a
mov eax, 0xfffffffe
jmp 0x14020222a