Function at 0x140006d2c
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 0x140006fb9
xor esi, esi
lea rbx, [rcx + 0x4b4]
lea r15, [rbx + 0x102]
cmp dword [r15 + 0x32], r14d
jne 0x140006dad
mov rdx, rdi
mov rcx, rbx
call fcn.1400108e0
test al, al
je 0x140006dad
mov rdx, qword [rbp + 0x1f0]
mov r8d, 0x10
mov rcx, r15
call fcn.140025b30
test eax, eax
je 0x140006fd5
inc esi
add rbx, 0x178
cmp esi, 4
jb 0x140006d74
mov rcx, qword [rbp + 0x1e8]
lea rdx, [rbp - 0x60]
mov esi, 0x200
mov r8d, esi
call fcn.140013a4c
mov ecx, r14d
mov ebx, 1
shl ebx, cl
lea rcx, [rbp - 0x60]
call fcn.140027f10
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.140007310
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.140010c00
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 0x140006e64
movzx eax, word [rdi]
mov r8, rbx
mov rdx, qword [rbp + 0x1f0]
mov word [rcx], ax
lea rcx, [rsi + 0x102]
call fcn.140025030
lea rbx, [rsi + 0x112]
mov edi, 0x20
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140025030
lea rcx, [rsi + 0x138]
mov r8d, edi
lea rdx, [rsp + 0x60]
call fcn.140025030
lea rcx, [rsi + 0x158]
mov r8d, edi
lea rdx, [rbp - 0x80]
call fcn.140025030
xor r9d, r9d
mov r8b, 1
mov edx, edi
mov rcx, rbx
call fcn.140010a28
mov rcx, qword [rbp + 0x208]
test rcx, rcx
je 0x140006f35
mov r8, rdi
lea rdx, [rbp - 0x80]
call fcn.140025030
mov rbx, qword [rbp + 0x210]
test rbx, rbx
je 0x140006f7e
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140024e80
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 0x140006f5a
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140010c00
mov rax, qword [rbp + 0x1f8]
test rax, rax
je 0x140006fac
mov dl, byte [rbp + 0x1d8]
lea rcx, [r13 + 0xa9c]
mov r9d, 0x100
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
call fcn.14000ffec
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140010c00
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
mov edi, 0x20
lea rdx, [rbx + 0x112]
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.140025030
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov edx, edi
call fcn.140010a28
lea rdx, [rbx + 0x138]
mov r8d, edi
lea rcx, [rsp + 0x60]
call fcn.140025030
lea rdx, [rbx + 0x158]
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.140025030
jmp 0x140006f1d