Function at 0x10019dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
mov edi, edx
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x1c], edi
lea esi, [eax*4]
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], eax
call fcn.100035aa
mov ecx, dword [ebp - 0xc]
mov esi, eax
lea ecx, [ecx + edi]
shl ecx, 2
push ecx
mov dword [ebp - 0x3c], esi
call fcn.100035aa
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x10], eax
movss dword [ebp - 0x14], xmm0
cvtps2pd xmm0, xmm0
mov eax, edi
sar eax, 1
mov dword [ebp - 0x24], eax
call fcn.10025400
movsd qword [ebp - 0x38], xmm0
movsd xmm0, qword [0x100b1d30]
call fcn.10025400
movsd xmm1, qword [ebp - 0x38]
divsd xmm1, xmm0
addsd xmm1, qword [0x100b1cd0]
movsd qword [ebp - 0x38], xmm1
fld qword [ebp - 0x38]
fstp qword [esp]
call fcn.100264d0
add esp, 8
call fcn.10024bb0
cmp dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x20]
movss xmm1, dword [0x100b1d88]
mov dword [ebp - 0x34], eax
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
mov dword [ebp - 4], 0
jle 0x10019f80
lea eax, [edi + edi]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movaps xmm2, xmm1
divss xmm2, dword [ebp - 0x14]
divss xmm1, xmm0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
movss dword [ebp - 0x2c], xmm2
movss dword [ebp - 0x28], xmm1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 1
lea edi, [esi + eax*4]
lea ebx, [ebx]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x24], xmm0
cvtps2pd xmm0, xmm0
call fcn.10024f70
mov eax, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
movss dword [esi + eax*8], xmm0
movss xmm0, dword [ebp - 0x24]
cvtps2pd xmm0, xmm0
call fcn.10026200
xorpd xmm0, xmmword [0x100b1f00]
mov eax, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
movss dword [esi + eax*8 + 4], xmm0
movd xmm0, dword [ebp - 8]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x28]
movss dword [ebp - 0x24], xmm0
cvtps2pd xmm0, xmm0
call fcn.10024f70
cvtsd2ss xmm0, xmm0
movss dword [edi], xmm0
movss xmm0, dword [ebp - 0x24]
cvtps2pd xmm0, xmm0
call fcn.10026200
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add dword [ebp - 8], 2
movss xmm2, dword [ebp - 0x2c]
cvtsd2ss xmm0, xmm0
inc eax
add ecx, 4
movss dword [edi + 4], xmm0
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
lea edi, [edi + 8]
cmp eax, dword [ebp - 0xc]
jl 0x10019ed0
movss xmm1, dword [0x100b1d88]
mov edi, dword [ebp - 0x1c]
jmp 0x10019f82
mov esi, eax
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x1001a009
divss xmm1, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
movss dword [ebp - 0x28], xmm1
mov edi, 2
lea esi, [esi + ecx*4]
mov dword [ebp - 0x1c], eax
lea esp, [esp]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
cvtps2pd xmm0, xmm0
call fcn.10024f70
mulsd xmm0, qword [0x100b1cd0]
cvtsd2ss xmm0, xmm0
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x2c]
cvtps2pd xmm0, xmm0
call fcn.10026200
mulsd xmm0, qword [0x100b1df8]
movss xmm1, dword [ebp - 0x28]
add edi, 4
dec dword [ebp - 0x1c]
cvtsd2ss xmm0, xmm0
lea esi, [esi + 8]
movss dword [esi - 4], xmm0
jne 0x10019fb0
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
mov edx, 1
lea ecx, [esi - 1]
shl edx, cl
lea ecx, [esi - 2]
mov edi, 1
shl edi, cl
dec edx
xor esi, esi
mov dword [ebp - 0x34], edx
test eax, eax
jle 0x1001a06e
lea ebx, [ebx]
xor edx, edx
xor ecx, ecx
test edi, edi
je 0x1001a056
mov eax, edi
lea ebx, [ebx]
test esi, eax
je 0x1001a04d
mov eax, 1
shl eax, cl
or edx, eax
inc ecx
mov eax, edi
sar eax, cl
test eax, eax
jne 0x1001a040
mov ecx, dword [ebp - 0x3c]
mov eax, edx
not eax
and eax, dword [ebp - 0x34]
mov dword [ecx + esi*8 + 4], edx
dec eax
mov dword [ecx + esi*8], eax
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x1001a030
movss xmm0, dword [0x100b1db8]
divss xmm0, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
pop edi
movss dword [ecx + 0x10], xmm0
pop esi
mov esp, ebp
pop ebp
ret