Function at 0x65eda0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
movaps xmmword [rsp + 0x130], xmm6
mov rax, r8
mov qword [rsp + 0x190], rcx
shl rax, 7
mov qword [rsp + 0x1a0], r8
lea rax, [rdx + rax - 0x40]
movdqu xmm4, xmmword [rax]
movaps xmmword [rsp + 0xb0], xmm4
movdqu xmm4, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xc0], xmm4
movdqu xmm4, xmmword [rax + 0x20]
movaps xmmword [rsp + 0xd0], xmm4
movdqu xmm4, xmmword [rax + 0x30]
mov rax, r8
add rax, rax
movaps xmmword [rsp + 0xe0], xmm4
mov qword [rsp + 0xa0], rax
je 0x65f46c
lea rax, [rsp + 0xf0]
mov r12, rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x98], rax
nop word [rax + rax]
mov eax, dword [r12]
xor eax, dword [rsp + 0xb0]
add r12, 0x40
mov dword [rsp + 0x58], eax
mov eax, dword [r12 - 0x3c]
xor eax, dword [rsp + 0xb4]
mov dword [rsp + 0x5c], eax
mov eax, dword [r12 - 0x38]
xor eax, dword [rsp + 0xb8]
mov dword [rsp + 0x60], eax
mov eax, dword [r12 - 0x34]
xor eax, dword [rsp + 0xbc]
mov dword [rsp + 0x64], eax
mov eax, dword [r12 - 0x30]
xor eax, dword [rsp + 0xc0]
mov dword [rsp + 0x68], eax
mov eax, dword [r12 - 0x2c]
xor eax, dword [rsp + 0xc4]
mov dword [rsp + 0x6c], eax
mov eax, dword [r12 - 0x28]
xor eax, dword [rsp + 0xc8]
mov dword [rsp + 0x70], eax
mov eax, dword [r12 - 0x24]
xor eax, dword [rsp + 0xcc]
mov dword [rsp + 0x74], eax
mov eax, dword [r12 - 0x20]
xor eax, dword [rsp + 0xd0]
mov dword [rsp + 0x78], eax
mov eax, dword [r12 - 0x1c]
xor eax, dword [rsp + 0xd4]
mov dword [rsp + 0x7c], eax
mov eax, dword [r12 - 0x18]
xor eax, dword [rsp + 0xd8]
mov dword [rsp + 0x80], eax
mov eax, dword [r12 - 0x14]
xor eax, dword [rsp + 0xdc]
movdqu xmm4, xmmword [r12 - 0x40]
mov dword [rsp + 0x84], eax
mov eax, dword [r12 - 0x10]
xor eax, dword [rsp + 0xe0]
movdqu xmm5, xmmword [r12 - 0x10]
pxor xmm4, xmmword [rsp + 0xb0]
mov dword [rsp + 0x88], eax
pxor xmm5, xmmword [rsp + 0xe0]
mov eax, dword [r12 - 0xc]
xor eax, dword [rsp + 0xe4]
movaps xmmword [rsp + 0xf0], xmm4
movdqu xmm4, xmmword [r12 - 0x30]
mov dword [rsp + 0x8c], eax
mov eax, dword [r12 - 8]
movd r8d, xmm5
xor eax, dword [rsp + 0xe8]
movaps xmmword [rsp + 0x120], xmm5
pxor xmm4, xmmword [rsp + 0xc0]
mov dword [rsp + 0x90], eax
mov eax, dword [r12 - 4]
xor eax, dword [rsp + 0xec]
movaps xmmword [rsp + 0x100], xmm4
movdqu xmm4, xmmword [r12 - 0x20]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0xf8]
pxor xmm4, xmmword [rsp + 0xd0]
mov ebp, dword [rsp + 0xf4]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xfc]
movaps xmmword [rsp + 0x110], xmm4
mov dword [rsp + 0x3c], eax
mov edi, dword [rsp + 0xf0]
mov eax, dword [rsp + 0x10c]
mov dword [rsp + 0x4c], 4
mov qword [rsp + 0x198], r12
mov r13d, dword [rsp + 0x108]
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x100]
mov ebx, dword [rsp + 0x104]
mov r15d, dword [rsp + 0x11c]
mov r11d, dword [rsp + 0x110]
mov edx, dword [rsp + 0x114]
mov r10d, dword [rsp + 0x118]
mov r9d, dword [rsp + 0x124]
mov eax, dword [rsp + 0x128]
mov esi, dword [rsp + 0x12c]
lea r12d, [rdi + r8]
rol r12d, 7
xor ecx, r12d
lea r12d, [rsi + r15]
lea r14d, [rcx + rdi]
rol r12d, 7
xor r12d, dword [rsp + 0x3c]
rol r14d, 9
xor r14d, r11d
lea r11d, [rcx + r14]
rol r11d, 0xd
xor r11d, r8d
lea r8d, [r14 + r11]
mov dword [rsp + 0x44], r11d
ror r8d, 0xe
xor edi, r8d
lea r8d, [rbx + rbp]
rol r8d, 7
xor edx, r8d
lea r8d, [rdx + rbx]
rol r8d, 9
xor r8d, r9d
lea r11d, [rdx + r8]
mov dword [rsp + 0x48], r8d
rol r11d, 0xd
xor r11d, ebp
lea r8d, [r8 + r11]
ror r8d, 0xe
xor ebx, r8d
lea r8d, [r10 + r13]
rol r8d, 7
xor eax, r8d
lea r9d, [rax + r10]
rol r9d, 9
xor r9d, dword [rsp + 0x20]
lea r8d, [rax + r9]
rol r8d, 0xd
xor r13d, r8d
lea r8d, [r9 + r13]
ror r8d, 0xe
xor r10d, r8d
lea r8d, [r12 + rsi]
rol r8d, 9
xor r8d, dword [rsp + 0x40]
lea ebp, [r12 + r8]
rol ebp, 0xd
xor r15d, ebp
lea ebp, [r8 + r15]
ror ebp, 0xe
xor esi, ebp
lea ebp, [rdi + r12]
rol ebp, 7
xor ebp, r11d
lea r11d, [rdi + rbp]
rol r11d, 9
xor r11d, r9d
lea r9d, [rbp + r11]
mov dword [rsp + 0x20], r11d
rol r9d, 0xd
xor r9d, r12d
add r11d, r9d
mov dword [rsp + 0x3c], r9d
mov r9d, r11d
ror r9d, 0xe
xor edi, r9d
lea r9d, [rcx + rbx]
rol r9d, 7
xor r13d, r9d
lea r9d, [rbx + r13]
rol r9d, 9
mov r11d, r9d
xor r11d, r8d
lea r8d, [r13 + r11]
mov dword [rsp + 0x40], r11d
rol r8d, 0xd
xor ecx, r8d
lea r8d, [r11 + rcx]
ror r8d, 0xe
xor ebx, r8d
lea r8d, [rdx + r10]
rol r8d, 7
xor r15d, r8d
lea r11d, [r10 + r15]
rol r11d, 9
xor r11d, r14d
lea r8d, [r15 + r11]
rol r8d, 0xd
xor edx, r8d
lea r8d, [r11 + rdx]
ror r8d, 0xe
xor r10d, r8d
lea r8d, [rax + rsi]
rol r8d, 7
xor r8d, dword [rsp + 0x44]
lea r9d, [rsi + r8]
rol r9d, 9
xor r9d, dword [rsp + 0x48]
lea r12d, [r8 + r9]
rol r12d, 0xd
xor eax, r12d
lea r12d, [r9 + rax]
ror r12d, 0xe
xor esi, r12d
sub dword [rsp + 0x4c], 1
jne 0x65f054
mov dword [rsp + 0x44], eax
movd xmm1, dword [rsp + 0x44]
mov dword [rsp + 0x44], esi
movd xmm4, dword [rsp + 0x44]
mov dword [rsp + 0x44], r8d
movd xmm0, dword [rsp + 0x44]
punpckldq xmm1, xmm4
mov dword [rsp + 0x44], r9d
movd xmm4, dword [rsp + 0x44]
mov dword [rsp + 0x44], r10d
movd xmm2, dword [rsp + 0x44]
punpckldq xmm0, xmm4
mov dword [rsp + 0x44], r15d
movd xmm5, dword [rsp + 0x44]
movdqa xmm4, xmm0
mov dword [rsp + 0x44], r11d
movd xmm3, dword [rsp + 0x40]
punpcklqdq xmm4, xmm1
punpckldq xmm2, xmm5
movd xmm1, dword [rsp + 0x44]
mov dword [rsp + 0x44], edx
movd xmm5, dword [rsp + 0x44]
mov dword [rsp + 0x40], ecx
mov edx, 0x40
mov dword [rsp + 0x44], r13d
mov r12, qword [rsp + 0x198]
punpckldq xmm1, xmm5
movdqa xmm0, xmm1
movd xmm1, dword [rsp + 0x44]
punpcklqdq xmm0, xmm2
movd xmm2, dword [rsp + 0x40]
mov dword [rsp + 0x40], ebx
movd xmm5, dword [rsp + 0x40]
punpckldq xmm1, xmm3
movd xmm3, dword [rsp + 0x3c]
punpckldq xmm2, xmm5
movdqa xmm5, xmm2
movd xmm2, dword [rsp + 0x20]
mov dword [rsp + 0x20], edi
punpcklqdq xmm5, xmm1
movdqa xmm1, xmm5
punpckldq xmm2, xmm3
movd xmm3, dword [rsp + 0x20]
mov dword [rsp + 0x20], ebp
movd xmm5, dword [rsp + 0x20]
movaps xmmword [rsp + 0x100], xmm1
punpckldq xmm3, xmm5
movdqa xmm5, xmm3
punpcklqdq xmm5, xmm2
movdqa xmm2, xmm5
movaps xmmword [rsp + 0xf0], xmm5
movaps xmmword [rsp + 0x110], xmm0
movd xmm3, dword [rsp + 0x64]
movd xmm5, dword [rsp + 0x60]
movd xmm6, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0xa8]
movaps xmmword [rsp + 0x120], xmm4
punpckldq xmm5, xmm3
movd xmm3, dword [rsp + 0x58]
punpckldq xmm3, xmm6
movd xmm6, dword [rsp + 0x74]
punpcklqdq xmm3, xmm5
paddd xmm3, xmm2
movd xmm2, dword [rsp + 0x68]
movaps xmmword [rsp + 0xb0], xmm3
movd xmm3, dword [rsp + 0x70]
punpckldq xmm3, xmm6
movd xmm6, dword [rsp + 0x6c]
punpckldq xmm2, xmm6
movd xmm6, dword [rsp + 0x84]
punpcklqdq xmm2, xmm3
paddd xmm2, xmm1
movd xmm1, dword [rsp + 0x78]
movaps xmmword [rsp + 0xc0], xmm2
movd xmm2, dword [rsp + 0x80]
punpckldq xmm2, xmm6
movd xmm6, dword [rsp + 0x7c]
punpckldq xmm1, xmm6
movd xmm6, dword [rsp + 0x94]
punpcklqdq xmm1, xmm2
paddd xmm1, xmm0
movd xmm0, dword [rsp + 0x88]
movaps xmmword [rsp + 0xd0], xmm1
movd xmm1, dword [rsp + 0x90]
punpckldq xmm1, xmm6
movd xmm6, dword [rsp + 0x8c]
punpckldq xmm0, xmm6
punpcklqdq xmm0, xmm1
paddd xmm0, xmm4
movaps xmmword [rsp + 0xe0], xmm0
call fcn.005c46c0
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x98]
mov rax, rsi
mov rdx, rsi
movdqa xmm6, xmmword [rdi]
movdqa xmm4, xmmword [rdi + 0x20]
and eax, 1
shr rdx, 1
add rsi, 1
imul rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x50], rsi
add rax, rdx
shl rax, 6
add rax, qword [rsp + 0x190]
movups xmmword [rax], xmm6
movdqa xmm6, xmmword [rdi + 0x10]
movups xmmword [rax + 0x20], xmm4
movdqa xmm4, xmmword [rdi + 0x30]
movups xmmword [rax + 0x10], xmm6
movaps xmmword [rsp + 0x20], xmm4
movups xmmword [rax + 0x30], xmm4
cmp rsi, qword [rsp + 0xa0]
jne 0x65ee50
mov rcx, rdi
mov edx, 0x40
call fcn.005c46c0
nop
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x98], rax
mov rcx, rax
jmp 0x65f445