Function at 0x140006818
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 r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov r14d, dword [rbp + 0x200]
mov rdi, r8
mov r13, rcx
cmp r14d, 0x18
ja 0x140006aa5
xor ebx, ebx
lea rsi, [rcx + 0x4b4]
lea r15, [rsi + 0x102]
cmp dword [r15 + 0x32], r14d
jne 0x140006899
mov rdx, rdi
mov rcx, rsi
call fcn.14000f438
test al, al
je 0x140006899
mov rdx, qword [rbp + 0x1f0]
mov r8d, 0x10
mov rcx, r15
call fcn.140024570
test eax, eax
je 0x140006ac1
inc ebx
add rsi, 0x178
cmp ebx, 4
jb 0x140006860
mov rcx, qword [rbp + 0x1e8]
lea rdx, [rbp - 0x60]
mov esi, 0x200
mov r8d, esi
call fcn.1400120c0
mov ecx, r14d
mov ebx, 1
shl ebx, cl
lea rcx, [rbp - 0x60]
call fcn.140025cc0
mov r8, qword [rbp + 0x1f0]
lea rcx, [rbp - 0x60]
mov rdx, rax
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x40]
mov ebx, 0x10
mov qword [rsp + 0x30], rax
mov r9d, ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140006cb8
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.14000f73c
mov ecx, dword [r13 + 0xa94]
lea rsi, [r13 + 0x4b4]
mov eax, ecx
lea edx, [rbx + 0x70]
and eax, 3
imul rax, rax, 0x178
add rsi, rax
lea eax, [rcx + 1]
mov dword [r13 + 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 0x140006950
movzx eax, word [rdi]
mov r8, rbx
mov rdx, qword [rbp + 0x1f0]
mov word [rcx], ax
lea rcx, [rsi + 0x102]
call fcn.140024650
lea rbx, [rsi + 0x112]
mov edi, 0x20
mov r8d, edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140024650
lea rcx, [rsi + 0x138]
mov r8d, edi
lea rdx, [rsp + 0x40]
call fcn.140024650
lea rcx, [rsi + 0x158]
mov r8d, edi
lea rdx, [rbp - 0x80]
call fcn.140024650
xor r9d, r9d
mov r8b, 1
mov edx, edi
mov rcx, rbx
call fcn.14000f580
mov rcx, qword [rbp + 0x208]
test rcx, rcx
je 0x140006a21
mov r8, rdi
lea rdx, [rbp - 0x80]
call fcn.140024650
mov rbx, qword [rbp + 0x210]
test rbx, rbx
je 0x140006a6a
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.1400228f0
xor edx, edx
lea r8, [rsp + 0x40]
mov r9, rdi
mov al, byte [r8]
mov rcx, rdx
and ecx, 7
inc rdx
inc r8
xor byte [rcx + rbx], al
sub r9, 1
jne 0x140006a45
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000f73c
mov rax, qword [rbp + 0x1f8]
test rax, rax
je 0x140006a98
mov dl, byte [rbp + 0x1d8]
lea rcx, [r13 + 0xa9c]
mov r9d, 0x100
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
call fcn.14000eb18
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000f73c
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
xor r9d, r9d
lea rbx, [rsi + 0x112]
xor r8d, r8d
mov rcx, rbx
lea edi, [r9 + 0x20]
mov edx, edi
call fcn.14000f580
mov r8d, edi
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.140024650
xor r9d, r9d
mov r8b, 1
mov edx, edi
mov rcx, rbx
call fcn.14000f580
lea rdx, [rsi + 0x138]
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.140024650
lea rdx, [rsi + 0x158]
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.140024650
jmp 0x140006a09