Function at 0x5ab250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cdq
and edx, 3
add eax, edx
mov edx, 4
sar eax, 2
mov dword [ebp - 8], eax
mul edx
push esi
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005caff6
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
mov edx, 4
add eax, dword [ebp + 0xc]
mul edx
mov dword [ebp - 0x34], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005caff6
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 0xc], edi
sar ecx, 1
mov dword [ebp - 0x18], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x10], xmm0
cvtps2pd xmm0, xmm0
call fcn.005cd370
movsd qword [ebp - 0x30], xmm0
movsd xmm0, qword [0x6b8c98]
call fcn.005cd370
movsd xmm1, qword [ebp - 0x30]
divsd xmm1, xmm0
addsd xmm1, qword [0x6b8c80]
movsd qword [ebp - 0x30], xmm1
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.005cd250
add esp, 8
call fcn.005c4270
mov ecx, dword [ebp + 8]
movss xmm1, dword [0x6b8ca4]
mov dword [ebp - 0x2c], eax
mov dword [ecx + 0xc], esi
xor esi, esi
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 8], edi
cmp dword [ebp - 8], esi
jle 0x5ab3fb
add eax, eax
mov ecx, dword [ebp - 0x18]
movaps xmm2, xmm1
mov dword [ebp - 4], 1
divss xmm2, dword [ebp - 0x10]
lea edi, [edi + ecx*4]
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x14], eax
movss dword [ebp - 0x28], xmm2
divss xmm1, xmm0
movss dword [ebp - 0x20], xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
call fcn.005c9990
mov ecx, dword [ebp - 0xc]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [ebp - 0x1c]
movss dword [ecx + esi*8], xmm1
call fcn.005cac30
xorps xmm0, xmmword [0x6b8d60]
mov eax, dword [ebp - 0xc]
cvtsd2ss xmm0, xmm0
movss dword [eax + esi*8 + 4], xmm0
movd xmm0, dword [ebp - 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x20]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
call fcn.005c9990
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [ebp - 0x1c]
movss dword [edi], xmm1
call fcn.005cac30
mov eax, dword [ebp - 0x14]
lea edi, [edi + 8]
add dword [ebp - 4], 2
inc esi
movss xmm2, dword [ebp - 0x28]
add eax, 4
cvtsd2ss xmm0, xmm0
mov dword [ebp - 0x14], eax
movss dword [edi - 4], xmm0
cmp esi, dword [ebp - 8]
jl 0x5ab354
movss xmm1, dword [0x6b8ca4]
mov eax, dword [ebp + 0xc]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x5ab48a
divss xmm1, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov edi, 2
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
lea esi, [ecx + edx*4]
movss dword [ebp - 0x28], xmm1
nop word [eax + eax]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x24], xmm0
call fcn.005c9990
mulsd xmm0, qword [0x6b8c80]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [ebp - 0x24]
movss dword [esi], xmm1
call fcn.005cac30
mulsd xmm0, qword [0x6bd408]
lea esi, [esi + 8]
add edi, 4
sub dword [ebp + 0xc], 1
movss xmm1, dword [ebp - 0x28]
cvtsd2ss xmm0, xmm0
movss dword [esi - 4], xmm0
jne 0x5ab430
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov edx, 1
mov edi, 1
lea ecx, [esi - 1]
shl edx, cl
lea ecx, [esi - 2]
dec edx
shl edi, cl
xor esi, esi
mov dword [ebp + 0xc], edx
test eax, eax
jle 0x5ab4e8
nop dword [eax + eax]
xor edx, edx
xor ecx, ecx
test edi, edi
je 0x5ab4d0
mov eax, edi
nop word [eax + eax]
test esi, eax
je 0x5ab4c7
bts edx, ecx
inc ecx
mov eax, edi
sar eax, cl
test eax, eax
jne 0x5ab4c0
mov ecx, dword [ebp - 0x34]
mov eax, edx
not eax
and eax, dword [ebp + 0xc]
dec eax
mov dword [ecx + esi*8], eax
mov dword [ecx + esi*8 + 4], edx
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x5ab4b0
movss xmm0, dword [0x736688]
divss xmm0, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
pop esi
movss dword [eax + 0x10], xmm0
mov esp, ebp
pop ebp
ret