Function at 0x599940
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rax, r8
mov rsi, rdx
mov qword [rsp + 0xe0], rcx
lea rbp, [rsp + 0x50]
shl rax, 7
mov qword [rsp + 0xf0], r8
lea r12, [rcx + rax - 0x40]
mov qword [rsp + 0x30], rax
mov rdi, rax
mov rdx, qword [r12 + 8]
mov rcx, qword [r12 + 0x18]
shr rdi, 6
mov rax, qword [r12]
mov r9, qword [r12 + 0x28]
mov qword [rsp + 0x38], rdi
shl rdi, 6
mov qword [rsp + 0x58], rdx
mov ebx, dword [rsp + 0x58]
mov rdx, qword [r12 + 0x10]
mov qword [rsp + 0x68], rcx
mov r8d, eax
mov rcx, qword [r12 + 0x20]
mov dword [rsp + 0x28], ebx
mov ebx, dword [rsp + 0x5c]
mov qword [rsp + 0x50], rax
mov eax, edx
mov qword [rsp + 0x60], rdx
movdqu xmm1, xmmword [r12 + 0x30]
mov edx, ecx
mov r14d, dword [rsp + 0x64]
mov r13d, dword [rsp + 0x6c]
mov qword [rsp + 0x70], rcx
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x24], ebx
mov ebx, dword [rsp + 0x68]
mov r11d, dword [rsp + 0x74]
mov qword [rsp + 0x78], r9
mov dword [rsp + 0x44], ecx
mov r10d, dword [rsp + 0x7c]
movups xmmword [rsp + 0x80], xmm1
mov ecx, dword [rsp + 0x78]
mov r15d, dword [rsp + 0x8c]
mov dword [rsp + 0x20], ebx
mov ebx, dword [rsp + 0x80]
mov qword [rsp + 0x48], r12
mov r9d, dword [rsp + 0x84]
mov dword [rsp + 0x40], ebx
mov ebx, dword [rsp + 0x88]
mov r12d, dword [rsp + 0x44]
add rdi, qword [rsp + 0xe0]
mov dword [rsp + 0x2c], ebx
mov rbx, qword [rsp + 0xe0]
nop dword [rax]
movd xmm0, dword [rsp + 0x20]
movd xmm5, r13d
movd xmm2, eax
movd xmm4, r10d
movd xmm1, edx
movd xmm3, dword [rsp + 0x2c]
mov rdx, rsi
add rbx, 0x40
punpckldq xmm0, xmm5
movd xmm5, r14d
punpckldq xmm2, xmm5
movdqu xmm5, xmmword [rbx - 0x30]
punpcklqdq xmm2, xmm0
movd xmm0, ecx
mov rcx, rbp
pxor xmm2, xmm5
movd xmm5, r11d
punpckldq xmm0, xmm4
movdqu xmm4, xmmword [rbx - 0x20]
punpckldq xmm1, xmm5
movd xmm5, r15d
movups xmmword [rsp + 0x60], xmm2
punpcklqdq xmm1, xmm0
movd xmm0, dword [rsp + 0x40]
punpckldq xmm3, xmm5
movdqu xmm5, xmmword [rbx - 0x10]
pxor xmm1, xmm4
movd xmm4, r9d
punpckldq xmm0, xmm4
movd xmm4, dword [rsp + 0x28]
movups xmmword [rsp + 0x70], xmm1
punpcklqdq xmm0, xmm3
movd xmm3, r8d
pxor xmm0, xmm5
movd xmm5, dword [rsp + 0x24]
movups xmmword [rsp + 0x80], xmm0
punpckldq xmm4, xmm5
movd xmm5, r12d
punpckldq xmm3, xmm5
punpcklqdq xmm3, xmm4
movdqu xmm4, xmmword [rbx - 0x40]
pxor xmm3, xmm4
movups xmmword [rsp + 0x50], xmm3
call fcn.005995c0
movdqu xmm1, xmmword [rsp + 0x50]
movdqu xmm2, xmmword [rsp + 0x60]
mov eax, dword [rsp + 0x58]
mov r15d, dword [rsp + 0x80]
movups xmmword [rbx - 0x40], xmm1
movdqu xmm1, xmmword [rsp + 0x70]
mov ecx, dword [rsp + 0x68]
movups xmmword [rbx - 0x30], xmm2
mov r8d, dword [rsp + 0x50]
mov r12d, dword [rsp + 0x54]
movdqu xmm2, xmmword [rsp + 0x80]
movups xmmword [rbx - 0x20], xmm1
mov r14d, dword [rsp + 0x64]
mov r13d, dword [rsp + 0x6c]
mov edx, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x5c]
movups xmmword [rbx - 0x10], xmm2
mov r11d, dword [rsp + 0x74]
mov dword [rsp + 0x40], r15d
mov r15d, dword [rsp + 0x88]
mov dword [rsp + 0x24], eax
mov r10d, dword [rsp + 0x7c]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x2c], r15d
mov ecx, dword [rsp + 0x78]
mov r9d, dword [rsp + 0x84]
mov r15d, dword [rsp + 0x8c]
cmp rbx, rdi
jne 0x599a58
mov r12, qword [rsp + 0x48]
mov edx, dword [rsi + 4]
mov rcx, r12
call fcn.00599220
mov rax, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0x30]
add rdi, qword [rsp + 0xe0]
add rax, rax
cmp qword [rsp + 0x38], rax
jae 0x599c6b
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.00599220
cmp rdi, rbx
jne 0x599bf8
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret