Function at 0x59eaf0
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
movdqu xmm2, xmmword [r12 + 0x30]
mov r9, qword [r12 + 0x28]
mov qword [rsp + 0x68], rdx
mov rdx, qword [r12 + 0x18]
mov r8d, eax
mov qword [rsp + 0x60], rax
mov rax, qword [r12 + 0x10]
movups xmmword [rsp + 0x90], xmm2
mov ebx, dword [rsp + 0x90]
mov qword [rsp + 0x88], r9
mov r15d, dword [rsp + 0x9c]
mov qword [rsp + 0x78], rdx
mov rdx, qword [r12 + 0x20]
mov qword [rsp + 0x70], rax
mov ecx, eax
mov r14d, dword [rsp + 0x64]
mov dword [rsp + 0x30], r8d
mov r13d, dword [rsp + 0x6c]
mov ebp, dword [rsp + 0x74]
mov qword [rsp + 0x80], rdx
mov eax, edx
mov edx, dword [rsp + 0x68]
mov r11d, dword [rsp + 0x7c]
mov r10d, dword [rsp + 0x84]
mov r9d, dword [rsp + 0x8c]
mov dword [rsp + 0x2c], edx
mov edx, dword [rsp + 0x78]
mov dword [rsp + 0x54], edx
mov edx, dword [rsp + 0x88]
mov dword [rsp + 0x50], ebx
mov ebx, dword [rsp + 0x98]
mov qword [rsp + 0x58], r12
mov r8d, dword [rsp + 0x94]
mov r12d, dword [rsp + 0x54]
mov dword [rsp + 0x34], ebx
mov rbx, qword [rsp + 0xf0]
add rbx, rdi
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0xf0]
lea rdi, [rsp + 0x60]
nop word [rax + rax]
movd xmm0, r12d
movd xmm2, ecx
movd xmm1, eax
movdqu xmm5, xmmword [rbx + 0x10]
pinsrd xmm0, r11d, 1
pinsrd xmm2, ebp, 1
punpcklqdq xmm2, xmm0
movd xmm0, edx
movd xmm3, dword [rsp + 0x34]
pxor xmm2, xmm5
mov rdx, rsi
mov rcx, rdi
pinsrd xmm0, r9d, 1
movdqu xmm5, xmmword [rbx + 0x20]
movups xmmword [rsp + 0x70], xmm2
pinsrd xmm1, r10d, 1
punpcklqdq xmm1, xmm0
movd xmm0, dword [rsp + 0x50]
pinsrd xmm3, r15d, 1
add rbx, 0x40
movd xmm4, dword [rsp + 0x2c]
pxor xmm1, xmm5
movups xmmword [rsp + 0x80], xmm1
pinsrd xmm0, r8d, 1
punpcklqdq xmm0, xmm3
movdqu xmm5, xmmword [rbx - 0x10]
movd xmm3, dword [rsp + 0x30]
pinsrd xmm4, r13d, 1
pxor xmm0, xmm5
movups xmmword [rsp + 0x90], xmm0
pinsrd xmm3, r14d, 1
punpcklqdq xmm3, xmm4
movdqu xmm4, xmmword [rbx - 0x40]
pxor xmm3, xmm4
movups xmmword [rsp + 0x60], xmm3
call fcn.0059e770
mov eax, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x90]
movdqu xmm5, xmmword [rsp + 0x60]
movdqu xmm4, xmmword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], r15d
mov r15d, dword [rsp + 0x98]
movups xmmword [rbx - 0x40], xmm5
mov r14d, dword [rsp + 0x64]
movdqu xmm5, xmmword [rsp + 0x80]
movups xmmword [rbx - 0x30], xmm4
movdqu xmm1, xmmword [rsp + 0x90]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x34], r15d
mov r13d, dword [rsp + 0x6c]
movups xmmword [rbx - 0x20], xmm5
mov ecx, dword [rsp + 0x70]
movups xmmword [rbx - 0x10], xmm1
mov ebp, dword [rsp + 0x74]
mov r12d, dword [rsp + 0x78]
mov r11d, dword [rsp + 0x7c]
mov eax, dword [rsp + 0x80]
mov r10d, dword [rsp + 0x84]
mov edx, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x8c]
mov r8d, dword [rsp + 0x94]
mov r15d, dword [rsp + 0x9c]
cmp rbx, qword [rsp + 0x38]
jne 0x59ec20
mov r12, qword [rsp + 0x58]
mov edx, dword [rsi + 4]
mov rcx, r12
call fcn.0059e3d0
mov rax, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x40]
add rdi, qword [rsp + 0xf0]
add rax, rax
cmp qword [rsp + 0x48], rax
jae 0x59ee33
nop dword [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.0059e3d0
cmp rdi, rbx
jne 0x59edc0
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret