Function at 0x587540
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 rax, r8
mov rsi, rdx
mov qword [rsp + 0x100], r8
shl rax, 7
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]
mov qword [rsp + 0x48], rdi
shl rdi, 6
mov r9, qword [r12 + 0x28]
vmovdqu xmm2, xmmword [r12 + 0x30]
mov qword [rsp + 0x68], rdx
mov rdx, qword [r12 + 0x18]
mov r8d, eax
mov qword [rsp + 0x60], rax
mov rax, qword [r12 + 0x10]
mov ebx, dword [rsp + 0x68]
mov qword [rsp + 0x88], r9
vmovups xmmword [rsp + 0x90], xmm2
mov ebp, dword [rsp + 0x6c]
mov qword [rsp + 0x78], rdx
mov rdx, qword [r12 + 0x20]
mov ecx, eax
mov qword [rsp + 0x70], rax
mov r15d, dword [rsp + 0x9c]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x50], r8d
mov r11d, dword [rsp + 0x7c]
mov eax, edx
mov dword [rsp + 0x34], ebx
mov r8d, dword [rsp + 0x74]
mov qword [rsp + 0x80], rdx
mov r14d, dword [rsp + 0x88]
mov dword [rsp + 0x2c], ecx
mov edx, dword [rsp + 0x64]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x84]
mov r10d, dword [rsp + 0x8c]
mov qword [rsp + 0x58], r12
mov rbx, qword [rsp + 0xf0]
mov r13d, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
mov r9d, dword [rsp + 0x98]
add rbx, rdi
mov r12d, dword [rsp + 0x54]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0xf0]
lea rdi, [rsp + 0x60]
nop dword [rax + rax]
vmovdqu xmm5, xmmword [rbx + 0x20]
vmovd xmm4, r9d
vinsertf128 ymm1, ymm5, xmmword [rbx + 0x30], 1
vmovd xmm5, r13d
vpinsrd xmm3, xmm4, r15d, 1
vpinsrd xmm2, xmm5, ecx, 1
vmovd xmm4, r14d
vmovd xmm5, r12d
vpunpcklqdq xmm2, xmm2, xmm3
vmovd xmm3, dword [rsp + 0x2c]
vpinsrd xmm4, xmm4, r10d, 1
vpinsrd xmm0, xmm5, eax, 1
vpunpcklqdq xmm0, xmm0, xmm4
vinsertf128 ymm0, ymm0, xmm2, 1
vxorps ymm0, ymm0, ymm1
mov rcx, rdi
vmovd xmm1, dword [rsp + 0x50]
vpinsrd xmm4, xmm3, r11d, 1
vmovups xmmword [rsp + 0x80], xmm0
vextractf128 xmmword [rsp + 0x90], ymm0, 1
vmovd xmm3, dword [rsp + 0x30]
vmovd xmm5, dword [rsp + 0x34]
vpinsrd xmm1, xmm1, edx, 1
mov rdx, rsi
vmovdqu xmm2, xmmword [rbx]
vpinsrd xmm3, xmm3, r8d, 1
vpunpcklqdq xmm3, xmm3, xmm4
vinsertf128 ymm2, ymm2, xmmword [rbx + 0x10], 1
vpinsrd xmm5, xmm5, ebp, 1
vpunpcklqdq xmm1, xmm1, xmm5
vinsertf128 ymm1, ymm1, xmm3, 1
vxorps ymm1, ymm1, ymm2
vmovups xmmword [rsp + 0x60], xmm1
vextractf128 xmmword [rsp + 0x70], ymm1, 1
vzeroupper
add rbx, 0x40
call fcn.005871c0
mov eax, dword [rsp + 0x60]
vmovdqu xmm2, xmmword [rsp + 0x80]
vinsertf128 ymm0, ymm2, xmmword [rsp + 0x90], 1
vmovups xmmword [rbx - 0x20], xmm0
vextractf128 xmmword [rbx - 0x10], ymm0, 1
vmovdqu xmm4, xmmword [rsp + 0x60]
vinsertf128 ymm1, ymm4, xmmword [rsp + 0x70], 1
vmovups xmmword [rbx - 0x40], xmm1
vextractf128 xmmword [rbx - 0x30], ymm1, 1
mov edx, dword [rsp + 0x64]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x68]
mov ebp, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x74]
mov r11d, dword [rsp + 0x7c]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
mov r12d, dword [rsp + 0x80]
mov r14d, dword [rsp + 0x88]
mov r10d, dword [rsp + 0x8c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
mov r13d, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
mov r9d, dword [rsp + 0x98]
mov dword [rsp + 0x2c], eax
mov r15d, dword [rsp + 0x9c]
mov eax, dword [rsp + 0x84]
cmp qword [rsp + 0x38], rbx
jne 0x587670
mov r12, qword [rsp + 0x58]
mov edx, dword [rsi + 4]
mov rcx, r12
vzeroupper
call fcn.00586e10
mov rax, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rdi, qword [rsp + 0xf0]
add rax, rax
cmp qword [rsp + 0x48], rax
jae 0x5878a3
nop word [rax + rax]
mov eax, dword [rbx - 0x40]
mov rcx, rbx
xor dword [rbx], eax
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.00586e10
cmp rdi, rbx
jne 0x587830
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret