Function at 0x645bc0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov eax, 7
shlx rax, r8, rax
mov rsi, rdx
mov qword [rsp + 0x100], r8
mov qword [rsp + 0xf0], rcx
lea r12, [rcx + rax - 0x40]
mov qword [rsp + 0x40], rax
mov rdi, rax
mov rdx, qword [r12 + 8]
shr rdi, 6
mov rax, qword [r12]
vmovups xmm4, xmmword [r12 + 0x30]
mov qword [rsp + 0x48], rdi
shl rdi, 6
mov r9, qword [r12 + 0x28]
mov qword [rsp + 0x68], rdx
mov rdx, qword [r12 + 0x18]
mov ebp, dword [rsp + 0x6c]
mov r8d, eax
mov qword [rsp + 0x60], rax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x88], r9
mov dword [rsp + 0x34], r8d
mov r14d, dword [rsp + 0x88]
mov qword [rsp + 0x78], rdx
mov rdx, qword [r12 + 0x20]
mov r8d, dword [rsp + 0x64]
mov ecx, eax
mov qword [rsp + 0x70], rax
vmovups xmmword [rsp + 0x90], xmm4
mov r11d, dword [rsp + 0x7c]
mov dword [rsp + 0x2c], ecx
mov r15d, dword [rsp + 0x9c]
mov eax, edx
mov qword [rsp + 0x80], rdx
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x74]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x30], edx
mov edx, dword [rsp + 0x78]
mov dword [rsp + 0x54], edx
mov edx, dword [rsp + 0x84]
mov r10d, dword [rsp + 0x8c]
mov qword [rsp + 0x58], r12
mov rbx, qword [rsp + 0xf0]
mov r13d, dword [rsp + 0x90]
mov eax, dword [rsp + 0x94]
mov r9d, dword [rsp + 0x98]
mov r12d, dword [rsp + 0x54]
add rbx, rdi
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0xf0]
nop
vmovd xmm5, r12d
vmovd xmm4, dword [rsp + 0x2c]
vpinsrd xmm0, xmm5, r11d, 1
vpinsrd xmm2, xmm4, ecx, 1
vmovd xmm5, r14d
vmovd xmm4, dword [rsp + 0x50]
vpunpcklqdq xmm2, xmm2, xmm0
vpinsrd xmm1, xmm4, edx, 1
vpinsrd xmm0, xmm5, r10d, 1
vmovd xmm4, r13d
vmovd xmm5, r9d
vpinsrd xmm3, xmm5, r15d, 1
vpunpcklqdq xmm1, xmm1, xmm0
vpinsrd xmm0, xmm4, eax, 1
vmovd xmm5, dword [rsp + 0x30]
vpinsrd xmm4, xmm5, ebp, 1
vpunpcklqdq xmm0, xmm0, xmm3
vmovd xmm3, dword [rsp + 0x34]
vpinsrd xmm3, xmm3, r8d, 1
vxorps xmm2, xmm2, xmmword [rbx + 0x10]
vxorps xmm1, xmm1, xmmword [rbx + 0x20]
vxorps xmm0, xmm0, xmmword [rbx + 0x30]
vpunpcklqdq xmm3, xmm3, xmm4
mov rdx, rsi
vxorps xmm3, xmm3, xmmword [rbx]
mov rcx, rdi
add rbx, 0x40
vmovups xmmword [rsp + 0x70], xmm2
vmovups xmmword [rsp + 0x80], xmm1
vmovups xmmword [rsp + 0x90], xmm0
vmovups xmmword [rsp + 0x60], xmm3
call fcn.00645860
vmovups xmm1, xmmword [rsp + 0x60]
vmovups xmm2, xmmword [rsp + 0x70]
mov eax, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x64]
mov ebp, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x74]
mov r12d, dword [rsp + 0x78]
mov r11d, dword [rsp + 0x7c]
mov edx, dword [rsp + 0x84]
mov r14d, dword [rsp + 0x88]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x68]
mov r10d, dword [rsp + 0x8c]
mov r13d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x98]
mov r15d, dword [rsp + 0x9c]
vmovups xmmword [rbx - 0x40], xmm1
vmovups xmmword [rbx - 0x30], xmm2
vmovups xmm1, xmmword [rsp + 0x80]
vmovups xmm2, xmmword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x80]
vmovups xmmword [rbx - 0x20], xmm1
vmovups xmmword [rbx - 0x10], xmm2
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x94]
cmp rbx, qword [rsp + 0x38]
jne 0x645cf0
mov r12, qword [rsp + 0x58]
mov edx, dword [rsi + 4]
mov rcx, r12
call fcn.00645480
mov rax, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x40]
add rdi, qword [rsp + 0xf0]
add rax, rax
cmp qword [rsp + 0x48], rax
jae 0x645ef3
nop dword [rax + rax]
mov eax, dword [rbx - 0x40]
xor dword [rbx], eax
mov rcx, rbx
mov eax, dword [rbx - 0x3c]
xor dword [rbx + 4], eax
mov eax, dword [rbx - 0x38]
xor dword [rbx + 8], eax
mov eax, dword [rbx - 0x34]
xor dword [rbx + 0xc], eax
mov eax, dword [rbx - 0x30]
xor dword [rbx + 0x10], eax
mov eax, dword [rbx - 0x2c]
xor dword [rbx + 0x14], eax
mov eax, dword [rbx - 0x28]
xor dword [rbx + 0x18], eax
mov eax, dword [rbx - 0x24]
xor dword [rbx + 0x1c], eax
mov eax, dword [rbx - 0x20]
xor dword [rbx + 0x20], eax
mov eax, dword [rbx - 0x1c]
xor dword [rbx + 0x24], eax
mov eax, dword [rbx - 0x18]
xor dword [rbx + 0x28], eax
mov eax, dword [rbx - 0x14]
xor dword [rbx + 0x2c], eax
mov eax, dword [rbx - 0x10]
xor dword [rbx + 0x30], eax
mov eax, dword [rbx - 0xc]
xor dword [rbx + 0x34], eax
mov eax, dword [rbx - 8]
xor dword [rbx + 0x38], eax
mov eax, dword [rbx - 4]
xor dword [rbx + 0x3c], eax
add rbx, 0x40
mov edx, dword [rsi + 4]
call fcn.00645480
cmp rdi, rbx
jne 0x645e80
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret