Function at 0x1003bf50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [ecx + 0x23c]
add edi, 0x18
mov dword [ecx + 0x240], 1
mov dword [ebp - 8], ecx
add ecx, 0x294
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 2
push eax
call fcn.1003d400
mov esi, dword [edi + 4]
mov eax, 0x2aaaaaab
sub esi, dword [edi]
mov edi, dword [ebp - 8]
sar esi, 2
mov edi, dword [edi + 0x27c]
add edi, 0x58
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x18], eax
cmp esi, eax
jae 0x1003bfc0
lea eax, [esi + esi*2]
shl eax, 4
add eax, dword [edi]
jmp 0x1003bff7
jbe 0x1003bffa
mov ecx, dword [edi + 8]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x1003bfea
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.1003b3b0
jmp 0x1003bffa
sub esi, dword [ebp - 0x18]
push edi
push esi
push dword [edi + 4]
call fcn.1003b600
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1003c2fe
xor esi, esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], esi
mov ecx, dword [esi + ecx]
call fcn.1002e7e0
mov edx, dword [0x100da0ec]
mov esi, eax
mov ecx, edx
movss xmm3, dword [0x100b49d4]
and ecx, 0x3f
movss xmm5, dword [0x100b49e0]
inc edx
mov dword [0x100da0ec], edx
lea edi, [ecx + ecx*2]
mov ecx, dword [0x100da0e8]
shl edi, 4
mov eax, ecx
and eax, 0x3f
add edi, 0x100da180
inc ecx
mov dword [0x100da0e8], ecx
movss xmm6, dword [esi + 0x20]
movss xmm7, dword [esi + 0x10]
lea eax, [eax + eax*8]
movss xmm0, dword [esi + 0x14]
mulss xmm0, dword [esi + 0x1c]
movss xmm4, dword [esi + 0xc]
mulss xmm7, xmm6
mulss xmm6, xmm4
mulss xmm4, dword [esi + 0x1c]
subss xmm7, xmm0
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [esi + 0x14]
movaps xmm1, xmm7
mulss xmm1, dword [esi]
subss xmm6, xmm0
movss xmm0, dword [esi + 0x10]
mulss xmm0, dword [esi + 0x18]
mulss xmm6, dword [esi + 4]
subss xmm4, xmm0
subss xmm1, xmm6
mulss xmm4, dword [esi + 8]
addss xmm1, xmm4
divss xmm3, xmm1
mulss xmm7, xmm3
movaps xmm2, xmm3
xorps xmm2, xmm5
movss dword [eax*4 + 0x100dad80], xmm7
movss xmm1, dword [esi + 0x20]
mulss xmm1, dword [esi + 4]
movss xmm0, dword [esi + 8]
mulss xmm0, dword [esi + 0x1c]
subss xmm1, xmm0
mulss xmm1, xmm2
movss dword [eax*4 + 0x100dad84], xmm1
movss xmm1, dword [esi + 4]
mulss xmm1, dword [esi + 0x14]
movss xmm0, dword [esi + 8]
mulss xmm0, dword [esi + 0x10]
subss xmm1, xmm0
mulss xmm1, xmm3
movss dword [eax*4 + 0x100dad88], xmm1
movss xmm1, dword [esi + 0x20]
mulss xmm1, dword [esi + 0xc]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [esi + 0x14]
subss xmm1, xmm0
mulss xmm1, xmm2
movss dword [eax*4 + 0x100dad8c], xmm1
movss xmm1, dword [esi + 0x20]
mulss xmm1, dword [esi]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [esi + 8]
subss xmm1, xmm0
mulss xmm1, xmm3
movss dword [eax*4 + 0x100dad90], xmm1
movss xmm1, dword [esi + 0x14]
mulss xmm1, dword [esi]
movss xmm0, dword [esi + 0xc]
mulss xmm0, dword [esi + 8]
subss xmm1, xmm0
mulss xmm1, xmm2
movss dword [eax*4 + 0x100dad94], xmm1
movss xmm1, dword [esi + 0xc]
mulss xmm1, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x10]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [esi + 0x10]
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0xc], edx
subss xmm1, xmm0
mulss xmm1, xmm3
movss dword [eax*4 + 0x100dad98], xmm1
movss xmm1, dword [esi]
mulss xmm1, dword [esi + 0x1c]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [esi + 4]
subss xmm1, xmm0
mulss xmm1, xmm2
movss dword [eax*4 + 0x100dad9c], xmm1
movss xmm1, dword [esi]
mulss xmm1, dword [esi + 0x10]
movss xmm0, dword [esi + 4]
mulss xmm0, dword [esi + 0xc]
subss xmm1, xmm0
mulss xmm1, xmm3
movss dword [eax*4 + 0x100dada0], xmm1
movups xmm0, xmmword [eax*4 + 0x100dad80]
movups xmmword [edi], xmm0
movups xmm0, xmmword [eax*4 + 0x100dad90]
mov eax, dword [eax*4 + 0x100dada0]
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], eax
movss xmm3, dword [esi + 0x24]
movss xmm4, dword [esi + 0x28]
xorps xmm3, xmm5
movss xmm2, dword [esi + 0x2c]
xorps xmm4, xmm5
xorps xmm2, xmm5
mov esi, dword [ebp - 0x18]
movaps xmm5, xmm4
movaps xmm0, xmm3
mulss xmm0, dword [edi]
movaps xmm1, xmm4
add esi, 4
mulss xmm5, dword [edi + 0xc]
mov dword [ebp - 0x18], esi
mulss xmm1, dword [edi + 0x10]
mulss xmm4, dword [edi + 0x14]
addss xmm5, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [edi + 0x18]
addss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [edi + 4]
mulss xmm3, dword [edi + 8]
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [edi + 0x1c]
mulss xmm2, dword [edi + 0x20]
addss xmm4, xmm3
addss xmm1, xmm0
addss xmm4, xmm2
unpcklps xmm5, xmm1
movq qword [edi + 0x24], xmm5
movss dword [ebp - 0x1c], xmm4
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 8]
movups xmm0, xmmword [edi]
mov eax, dword [eax + 0x27c]
mov eax, dword [eax + 0x58]
movups xmmword [eax + ecx], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + ecx + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + ecx + 0x20], xmm0
mov eax, dword [ebp - 0x14]
add ecx, 0x30
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x1003c022
pop edi
pop esi
mov esp, ebp
pop ebp
ret