Function at 0x5a7eb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rsp + 0x60], xmm9
lea eax, [rcx - 1]
test r9, r9
mov ebx, ecx
mov rbp, r8
cdqe
lea rcx, [rax*8 + 0x110]
je 0x5a83f0
test r8, r8
je 0x5a7efa
cmp rcx, qword [r9]
mov eax, 0
cmova rbp, rax
mov qword [r9], rcx
test rbp, rbp
je 0x5a8059
test ebx, ebx
mov dword [rbp], ebx
mov dword [rbp + 4], edx
jle 0x5a83e0
pxor xmm8, xmm8
xor edi, edi
test edx, edx
movsd xmm7, qword [0x0071b4c0]
lea rsi, [rbp + 0x108]
cvtsi2sd xmm8, ebx
divsd xmm7, xmm8
jne 0x5a8080
mulsd xmm7, qword [0x0071b4d0]
pxor xmm6, xmm6
add rsi, 8
cvtsi2sd xmm6, edi
add edi, 1
mulsd xmm6, xmm7
movapd xmm0, xmm6
call fcn.005b0900
pxor xmm3, xmm3
cvtsd2ss xmm3, xmm0
movapd xmm0, xmm6
movss dword [rsi - 8], xmm3
call fcn.005b1350
pxor xmm4, xmm4
cvtsd2ss xmm4, xmm0
movss dword [rsi - 4], xmm4
cmp ebx, edi
jne 0x5a7f44
movsd xmm1, qword [0x0071b4b0]
sqrtsd xmm0, xmm8
lea rcx, [rbp + 8]
movsd xmm2, qword [0x0071b4a8]
andpd xmm1, xmm0
comisd xmm2, xmm1
jbe 0x5a7fd9
cvttsd2si rax, xmm0
pxor xmm1, xmm1
movsd xmm2, qword [0x0071b4c0]
cvtsi2sd xmm1, rax
movapd xmm3, xmm1
cmpnlesd xmm3, xmm0
movapd xmm0, xmm3
andpd xmm0, xmm2
subsd xmm1, xmm0
movapd xmm0, xmm1
movsd xmm1, qword [0x0071b4c8]
mov r8d, 4
comisd xmm1, xmm0
movsd xmm1, qword [0x0071b4a0]
jbe 0x5a81b5
comisd xmm1, xmm0
ja 0x5a80f8
mov r10d, 0x55555556
nop dword [rax]
mov eax, ebx
mov r9, rcx
cdq
idiv r8d
test edx, edx
je 0x5a8041
cmp r8d, 2
je 0x5a8140
cmp r8d, 4
jne 0x5a818b
mov eax, ebx
mov r8d, ebx
mov r9, rcx
cdq
idiv r8d
test edx, edx
jne 0x5a801d
mov eax, ebx
mov dword [r9], r8d
lea rcx, [r9 + 8]
cdq
idiv r8d
cmp eax, 1
mov ebx, eax
mov dword [r9 + 4], eax
jg 0x5a8010
movaps xmm6, xmmword [rsp + 0x30]
mov rax, rbp
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
ret
mulsd xmm7, qword [0x0071b4d0]
movsd xmm9, qword [0x0071b4e0]
pxor xmm6, xmm6
add rsi, 8
cvtsi2sd xmm6, edi
add edi, 1
mulsd xmm6, xmm7
xorpd xmm6, xmm9
movapd xmm0, xmm6
call fcn.005b0900
pxor xmm5, xmm5
cvtsd2ss xmm5, xmm0
movapd xmm0, xmm6
movss dword [rsi - 8], xmm5
call fcn.005b1350
pxor xmm2, xmm2
cvtsd2ss xmm2, xmm0
movss dword [rsi - 4], xmm2
cmp ebx, edi
jne 0x5a8091
jmp 0x5a7f87
mov ebx, eax
mov dword [rcx], r8d
lea rax, [rcx + 8]
cmp ebx, 1
mov dword [rcx + 4], ebx
jle 0x5a8059
mov rcx, rax
mov eax, ebx
cdq
idiv r8d
test edx, edx
je 0x5a80e0
cmp r8d, 2
je 0x5a8133
cmp r8d, 4
je 0x5a8133
pxor xmm1, xmm1
add r8d, 2
mov eax, ebx
cvtsi2sd xmm1, r8d
comisd xmm1, xmm0
cmova r8d, ebx
cdq
idiv r8d
test edx, edx
je 0x5a80e0
cmp r8d, 2
jne 0x5a8108
mov r8d, ebx
jmp 0x5a80f8
mov eax, ebx
imul r10d
mov eax, ebx
sar eax, 0x1f
sub edx, eax
lea eax, [rdx + rdx*2]
cmp ebx, eax
jne 0x5a81a5
cmp edx, 1
mov ebx, edx
mov dword [rcx], 3
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
jle 0x5a8059
mov eax, edx
imul r10d
mov eax, ebx
sar eax, 0x1f
sub edx, eax
lea eax, [rdx + rdx*2]
cmp ebx, eax
je 0x5a83b0
mov rcx, r9
mov r8d, 3
pxor xmm1, xmm1
add r8d, 2
cvtsi2sd xmm1, r8d
comisd xmm1, xmm0
cmova r8d, ebx
jmp 0x5a8010
movsd xmm1, qword [0x0071b498]
mov r8d, 5
jmp 0x5a8198
comisd xmm1, xmm0
ja 0x5a8290
mov r9d, 0x55555556
mov eax, ebx
cdq
idiv r8d
test edx, edx
je 0x5a8221
cmp r8d, 2
je 0x5a82f0
cmp r8d, 4
jne 0x5a8390
mov r8d, ebx
sar r8d, 0x1f
mov edx, r8d
shr edx, 0x1f
lea eax, [rbx + rdx]
and eax, 1
cmp eax, edx
je 0x5a83d0
comisd xmm1, xmm0
ja 0x5a8340
mov eax, ebx
imul r9d
sub edx, r8d
mov r8d, 3
lea eax, [rdx + rdx*2]
cmp ebx, eax
jne 0x5a8390
mov eax, ebx
mov dword [rcx], r8d
cdq
idiv r8d
mov ebx, eax
lea rax, [rcx + 8]
cmp ebx, 1
mov dword [rcx + 4], ebx
jg 0x5a8320
jmp 0x5a8059
mov edx, ebx
shr edx, 0x1f
lea eax, [rbx + rdx]
and eax, 1
cmp eax, edx
jne 0x5a8330
mov eax, edx
mov dword [rcx], 2
lea r9, [rcx + 8]
add eax, ebx
mov ebx, eax
sar ebx, 1
cmp ebx, 1
mov dword [rcx + 4], ebx
jle 0x5a8059
shr eax, 0x1f
lea edx, [rbx + rax]
and edx, 1
cmp edx, eax
je 0x5a83a2
mov r8d, ebx
mov rcx, r9
nop dword [rax]
mov eax, ebx
mov r9, rcx
cdq
idiv r8d
test edx, edx
je 0x5a82cf
cmp r8d, 2
je 0x5a83c0
cmp r8d, 4
je 0x5a8241
pxor xmm2, xmm2
add r8d, 2
cvtsi2sd xmm2, r8d
comisd xmm2, xmm0
mov eax, ebx
mov r9, rcx
cmova r8d, ebx
cdq
idiv r8d
test edx, edx
jne 0x5a829d
mov eax, ebx
mov dword [r9], r8d
lea rcx, [r9 + 8]
cdq
idiv r8d
cmp eax, 1
mov ebx, eax
mov dword [r9 + 4], eax
jg 0x5a8290
jmp 0x5a8059
mov eax, ebx
imul r9d
mov eax, ebx
sar eax, 0x1f
sub edx, eax
lea eax, [rdx + rdx*2]
cmp ebx, eax
je 0x5a8350
movsd xmm2, qword [0x0071b498]
mov r8d, 5
comisd xmm2, xmm0
mov rax, rcx
ja 0x5a8340
nop word [rax + rax]
mov rcx, rax
jmp 0x5a81c5
movapd xmm2, xmm1
mov r8d, 3
jmp 0x5a82ba
mov r8d, ebx
mov rax, rcx
jmp 0x5a8320
cmp edx, 1
mov ebx, edx
mov dword [rcx], 3
lea r8, [rcx + 8]
mov dword [rcx + 4], edx
jle 0x5a8059
mov eax, edx
mov rcx, r8
mov r8d, 3
imul r9d
mov eax, ebx
sar eax, 0x1f
sub edx, eax
lea eax, [rdx + rdx*2]
cmp ebx, eax
je 0x5a8221
nop dword [rax + rax]
pxor xmm2, xmm2
add r8d, 2
cvtsi2sd xmm2, r8d
jmp 0x5a8311
mov r8d, 2
jmp 0x5a82cf
mov r8d, 3
jmp 0x5a8041
mov r8d, ebx
jmp 0x5a8290
mov r8d, 2
jmp 0x5a8221
pxor xmm8, xmm8
cvtsi2sd xmm8, ebx
jmp 0x5a7f87
mov dword [rsp + 0x2c], edx
call fcn.005b9c20
mov edx, dword [rsp + 0x2c]
mov rbp, rax
jmp 0x5a7efd