Function at 0x140006b60
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
mov byte [rax + 0x10], dl
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov r14d, dword [rbp + 0x200]
mov rdi, r8
mov r15, rcx
cmp r14d, 0x18
ja 0x140006dee
xor esi, esi
lea rbx, [rcx + 0x4b4]
lea r12, [rbx + 0x102]
cmp dword [r12 + 0x32], r14d
jne 0x140006be2
mov rdx, rdi
mov rcx, rbx
call fcn.140010a94
test al, al
je 0x140006be2
mov rdx, qword [rbp + 0x1f0]
mov r8d, 0x10
mov rcx, r12
call fcn.140025780
test eax, eax
je 0x140006e0a
inc esi
add rbx, 0x178
cmp esi, 4
jb 0x140006ba8
mov rcx, qword [rbp + 0x1e8]
lea rdx, [rbp - 0x60]
mov esi, 0x200
mov r8d, esi
call fcn.140013c0c
mov ecx, r14d
mov ebx, 1
shl ebx, cl
lea rcx, [rbp - 0x60]
call fcn.140028340
mov r8, qword [rbp + 0x1f0]
lea rcx, [rbp - 0x60]
mov rdx, rax
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x60]
mov ebx, 0x10
mov qword [rsp + 0x30], rax
mov r9d, ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140007148
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.140010d70
mov ecx, dword [r15 + 0xa94]
lea rsi, [r15 + 0x4b4]
mov eax, ecx
lea edx, [rbx + 0x70]
and eax, 3
imul rax, rax, 0x178
add rsi, rax
lea eax, [rcx + 1]
mov dword [r15 + 0xa94], eax
mov rcx, rsi
lea eax, [rbx - 0xe]
mov dword [rsi + 0x134], r14d
movups xmm0, xmmword [rdi]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, rdx
movups xmm1, xmmword [rdi + 0x70]
add rdi, rdx
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140006c99
movzx eax, word [rdi]
mov r8, rbx
mov rdx, qword [rbp + 0x1f0]
mov word [rcx], ax
lea rcx, [rsi + 0x102]
call fcn.140024920
lea rbx, [rsi + 0x112]
mov edi, 0x20
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140024920
lea rcx, [rsi + 0x138]
mov r8d, edi
lea rdx, [rsp + 0x60]
call fcn.140024920
lea rcx, [rsi + 0x158]
mov r8d, edi
lea rdx, [rbp - 0x80]
call fcn.140024920
xor r9d, r9d
mov r8b, 1
mov edx, edi
mov rcx, rbx
call fcn.140010bbc
mov rcx, qword [rbp + 0x208]
test rcx, rcx
je 0x140006d6a
mov r8, rdi
lea rdx, [rbp - 0x80]
call fcn.140024920
mov rbx, qword [rbp + 0x210]
test rbx, rbx
je 0x140006db3
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.1400245f0
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov r9, rdi
mov al, byte [rdx]
mov rcx, r8
and ecx, 7
inc r8
inc rdx
xor byte [rcx + rbx], al
sub r9, 1
jne 0x140006d8f
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140010d70
mov rax, qword [rbp + 0x1f8]
test rax, rax
je 0x140006de1
mov dl, byte [rbp + 0x1d8]
lea rcx, [r15 + 0xa9c]
mov r9d, 0x100
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
call fcn.1400100e4
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140010d70
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov edi, 0x20
lea rdx, [rbx + 0x112]
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.140024920
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov edx, edi
call fcn.140010bbc
lea rdx, [rbx + 0x138]
mov r8d, edi
lea rcx, [rsp + 0x60]
call fcn.140024920
lea rdx, [rbx + 0x158]
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.140024920
jmp 0x140006d52