Function at 0x1003c380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
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.1003d7a0
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 - 0x10], eax
cmp esi, eax
jae 0x1003c3f0
lea eax, [esi + esi*2]
shl eax, 4
add eax, dword [edi]
jmp 0x1003c427
jbe 0x1003c42a
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 0x1003c41a
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.1003b800
jmp 0x1003c42a
sub esi, dword [ebp - 0x10]
push edi
push esi
push dword [edi + 4]
call fcn.1003ba50
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1003c71a
mov dword [ebp - 0x10], edx
mov ecx, dword [ecx + edx*4]
call fcn.1002ec40
mov edx, dword [0x1010ad50]
mov esi, eax
mov ecx, edx
movss xmm3, dword [0x100e2954]
and ecx, 0x3f
movss xmm5, dword [0x100e2960]
inc edx
mov dword [0x1010ad50], edx
lea edi, [ecx + ecx*2]
mov ecx, dword [0x1010ad4c]
shl edi, 4
mov eax, ecx
and eax, 0x3f
add edi, 0x1010ade0
inc ecx
mov dword [0x1010ad4c], 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 + 0x1010b9e0], xmm7
movss xmm1, dword [esi + 0x20]
mulss xmm1, dword [esi + 4]
movss xmm0, dword [esi + 0x1c]
mulss xmm0, dword [esi + 8]
subss xmm1, xmm0
mulss xmm1, xmm2
movss dword [eax*4 + 0x1010b9e4], xmm1
movss xmm1, dword [esi + 0x14]
mulss xmm1, dword [esi + 4]
movss xmm0, dword [esi + 0x10]
mulss xmm0, dword [esi + 8]
subss xmm1, xmm0
mulss xmm1, xmm3
movss dword [eax*4 + 0x1010b9e8], xmm1
movss xmm1, dword [esi + 0x20]
mulss xmm1, dword [esi + 0xc]
movss xmm0, dword [esi + 0x14]
mulss xmm0, dword [esi + 0x18]
subss xmm1, xmm0
mulss xmm1, xmm2
movss dword [eax*4 + 0x1010b9ec], 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 + 0x1010b9f0], 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 + 0x1010b9f4], xmm1
movss xmm1, dword [esi + 0x1c]
mulss xmm1, dword [esi + 0xc]
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 + 0x1010b9f8], xmm1
movss xmm1, dword [esi + 0x1c]
mulss xmm1, dword [esi]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [esi + 4]
subss xmm1, xmm0
mulss xmm1, xmm2
movss dword [eax*4 + 0x1010b9fc], 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 + 0x1010ba00], xmm1
movups xmm0, xmmword [eax*4 + 0x1010b9e0]
movups xmmword [edi], xmm0
movups xmm0, xmmword [eax*4 + 0x1010b9f0]
mov eax, dword [eax*4 + 0x1010ba00]
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
movaps xmm0, xmm3
mulss xmm0, dword [edi]
movaps xmm5, xmm4
mulss xmm5, dword [edi + 0xc]
movaps xmm1, xmm4
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 - 0x18], xmm4
mov eax, dword [ebp - 0x18]
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 0x1003c447
pop edi
pop esi
mov esp, ebp
pop ebp
ret