Function at 0x140066a84
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x140191630]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x248]
mov rdi, r8
mov r15d, dword [rbp + 0x250]
mov r13, qword [rbp + 0x240]
mov r12, qword [rbp + 0x258]
mov r14, qword [rbp + 0x260]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r9
mov byte [rsp + 0x40], dl
mov qword [rsp + 0x48], rcx
cmp r15d, 0x18
ja 0x140066d26
xor esi, esi
lea rbx, [rcx + 0x4b4]
cmp dword [rbx + 0x134], r15d
jne 0x140066b33
mov rdx, rdi
mov rcx, rbx
call fcn.140093fb0
test al, al
je 0x140066b33
mov rax, qword [rbx + 0x102]
cmp rax, qword [r13]
jne 0x140066b33
mov rax, qword [rbx + 0x10a]
cmp rax, qword [r13 + 8]
je 0x140066d49
inc esi
add rbx, 0x178
cmp esi, 4
jb 0x140066afd
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x40]
mov ebx, 0x200
mov r8d, ebx
call fcn.140099c8c
mov ecx, r15d
mov eax, 1
shl eax, cl
lea rcx, [rbp - 0x40]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140066b69
mov dword [rsp + 0x38], eax
lea rcx, [rbp - 0x40]
lea rax, [rbp - 0x60]
mov r9d, 0x10
mov qword [rsp + 0x30], rax
mov r8, r13
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.1400672c8
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140094368
mov rbx, qword [rsp + 0x48]
mov ecx, dword [rbx + 0xa94]
lea rdx, [rbx + 0x4b4]
mov eax, ecx
and eax, 3
imul rax, rax, 0x178
add rdx, rax
lea eax, [rcx + 1]
mov dword [rbx + 0xa94], eax
mov rcx, rdx
mov eax, 2
mov dword [rdx + 0x134], r15d
lea r8d, [rax + 0x7e]
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, r8
movups xmm1, xmmword [rdi + 0x70]
add rdi, r8
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140066bed
movzx eax, word [rdi]
xor r9d, r9d
mov word [rcx], ax
mov r8b, 1
movups xmm0, xmmword [r13]
lea rcx, [rdx + 0x112]
lea edi, [r9 + 0x20]
movdqu xmmword [rdx + 0x102], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rdx + 0x138], xmm0
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rdx + 0x148], xmm1
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rdx + 0x158], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rdx + 0x168], xmm1
mov edx, edi
call fcn.1400941a0
movups xmm3, xmmword [rbp - 0x70]
movups xmm2, xmmword [rbp - 0x80]
test r12, r12
je 0x140066cb7
movups xmmword [r12], xmm2
movups xmmword [r12 + 0x10], xmm3
test r14, r14
je 0x140066cef
xor eax, eax
lea rdx, [rbp - 0x60]
mov qword [r14], rax
xor r8d, r8d
mov r9, rdi
mov al, byte [rdx]
mov rcx, r8
and ecx, 7
inc r8
inc rdx
xor byte [rcx + r14], al
sub r9, 1
jne 0x140066ccb
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140094368
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140066d19
mov dl, byte [rsp + 0x40]
lea rcx, [rbx + 0xa9c]
mov r9d, 0x100
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
call fcn.1400910a4
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140094368
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140100ed0
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movups xmm0, xmmword [rbx + 0x112]
xor r9d, r9d
xor r8d, r8d
movups xmm1, xmmword [rbx + 0x122]
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
lea edi, [r9 + 0x20]
mov edx, edi
movups xmmword [rsp + 0x70], xmm1
call fcn.1400941a0
movups xmm0, xmmword [rbx + 0x138]
movups xmm1, xmmword [rbx + 0x148]
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [rbx + 0x158]
movups xmmword [rbp - 0x50], xmm1
movups xmm1, xmmword [rbx + 0x168]
mov rbx, qword [rsp + 0x48]
movups xmm2, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmm3, xmm1
movups xmmword [rbp - 0x70], xmm1
jmp 0x140066ca7