Function at 0x1002d2a0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x20
mov edx, dword [esp + 0x50]
test edx, edx
mov eax, dword [esp + 0x40]
jbe 0x1002d9b2
xor ecx, ecx
mov ebx, eax
movss xmm2, dword [0x10365ae0]
xor ebp, ebp
movss xmm1, dword [0x10365af0]
movss xmm0, dword [0x10365af4]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
movss xmm3, dword [0x10365ae4]
lea ecx, [ebx + 0x1f]
movss xmm5, dword [edi + ebp*4 + 0x50]
and ecx, 0xffffffe0
movss xmm6, dword [edi + ebp*4 + 0x10]
xor eax, eax
mulss xmm5, xmm3
lea edx, [ebx + 0x19b]
mulss xmm6, xmm3
movaps xmm4, xmm5
movaps xmm3, xmm0
movss xmm7, dword [0x10365aec]
and edx, 0xffffffe0
subss xmm4, xmm6
addss xmm6, xmm5
mulss xmm4, xmm2
mulss xmm6, dword [0x10365ae8]
movss dword [ecx + 0x10], xmm4
movaps xmm4, xmm1
movss dword [ecx + 0x14], xmm6
movss xmm6, dword [edi + ebp*4 + 0xc]
movss xmm5, dword [edi + ebp*4 + 0x4c]
mulss xmm6, xmm7
mulss xmm5, xmm7
mulss xmm3, xmm6
mulss xmm4, xmm5
mulss xmm6, xmm1
mulss xmm5, xmm0
subss xmm4, xmm3
addss xmm6, xmm5
xorps xmm6, xmmword [0x10365ac0]
movaps xmm5, xmm1
movss dword [ecx + 0x18], xmm4
movss dword [ecx + 0x1c], xmm6
movss xmm3, dword [edi + ebp*4 + 8]
mulss xmm3, dword [0x10365af8]
movss dword [ecx + 0x24], xmm3
movss xmm4, dword [edi + ebp*4 + 0x48]
mulss xmm4, dword [0x10365afc]
movss dword [ecx + 0x20], xmm4
movss xmm3, dword [edi + ebp*4 + 4]
movss xmm4, dword [edi + ebp*4 + 0x44]
movss xmm7, dword [0x10365b00]
mulss xmm3, xmm7
mulss xmm4, xmm7
movaps xmm7, xmm0
mulss xmm7, xmm3
mulss xmm5, xmm4
mulss xmm4, xmm0
mulss xmm3, xmm1
addss xmm7, xmm5
subss xmm4, xmm3
movss dword [ecx + 0x28], xmm7
movss dword [ecx + 0x2c], xmm4
movss xmm4, dword [edi + ebp*4]
movss xmm6, dword [0x10365b04]
mulss xmm4, xmm6
movss xmm5, dword [edi + ebp*4 + 0x40]
movaps xmm3, xmm4
mulss xmm5, xmm6
mov dword [ecx + 0x38], eax
addss xmm3, xmm5
subss xmm5, xmm4
mulss xmm3, xmm2
mulss xmm5, xmm2
movss dword [ecx + 0x30], xmm3
movss dword [ecx + 0x34], xmm5
movaps xmm5, xmm0
mov dword [ecx + 0x3c], eax
movss xmm7, dword [edi + ebp*4 + 0x18]
movss xmm6, dword [0x10365b08]
mulss xmm7, xmm6
movss dword [ecx], xmm7
movss xmm3, dword [edi + ebp*4 + 0x58]
mulss xmm3, xmm6
movss dword [ecx + 4], xmm3
movss xmm6, dword [edi + ebp*4 + 0x14]
movss xmm3, dword [edi + ebp*4 + 0x54]
movss xmm4, dword [0x10365b0c]
mulss xmm6, xmm4
mulss xmm3, xmm4
movaps xmm4, xmm1
mulss xmm4, xmm6
mulss xmm5, xmm3
mulss xmm6, xmm0
mulss xmm3, xmm1
subss xmm4, xmm5
addss xmm6, xmm3
mov dword [esp + ebp*4], edx
push dword [esi + 0x18]
push dword [esi]
push edx
push ecx
movss dword [ecx + 8], xmm4
movss dword [ecx + 0xc], xmm6
call fcn.100493f0
inc ebp
add ebx, 0x5f
movss xmm2, dword [0x10365ae0]
movss xmm1, dword [0x10365af0]
movss xmm0, dword [0x10365af4]
cmp ebp, dword [esp + 0x50]
jb 0x1002d2e1
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x4c], 0
jbe 0x1002d6e2
xor ebx, ebx
xor ebp, ebp
test edx, edx
jbe 0x1002d848
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x1f400]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ecx*4]
shl eax, 7
xor edx, edx
add eax, edi
mov dword [esp + 0x18], ebp
add eax, ebp
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
lea esi, [edx + edx*4]
shl esi, 7
cmp ecx, 5
ja case.default.0x1002d528
jmp dword [ecx*4 + 0x10365b30]
mov edi, dword [esp + edx*4]
movss xmm0, dword [eax + esi]
movss xmm1, dword [eax + esi + 4]
movss xmm2, dword [eax + esi + 8]
movss xmm3, dword [eax + esi + 0xc]
addss xmm0, dword [edi]
movss dword [eax + esi], xmm0
addss xmm1, dword [edi + 4]
movss dword [eax + esi + 4], xmm1
addss xmm2, dword [edi + 0x38]
movss dword [eax + esi + 8], xmm2
subss xmm3, dword [edi + 0x3c]
movss dword [eax + esi + 0xc], xmm3
cmp ebx, 1
jae 0x1002d582
inc edx
cmp edx, ebp
jb 0x1002d519
jmp 0x1002d6b7
mov edi, dword [esp + edx*4]
movss xmm0, dword [eax + esi + 0x10]
movss xmm1, dword [eax + esi + 0x14]
movss xmm2, dword [eax + esi + 0x18]
movss xmm3, dword [eax + esi + 0x1c]
addss xmm0, dword [edi + 8]
movss dword [eax + esi + 0x10], xmm0
addss xmm1, dword [edi + 0xc]
movss dword [eax + esi + 0x14], xmm1
addss xmm2, dword [edi + 0x30]
movss dword [eax + esi + 0x18], xmm2
subss xmm3, dword [edi + 0x34]
movss dword [eax + esi + 0x1c], xmm3
cmp ebx, 2
jae 0x1002d5dc
inc edx
cmp edx, ebp
jb 0x1002d519
jmp 0x1002d6b7
mov edi, dword [esp + edx*4]
movss xmm0, dword [eax + esi + 0x20]
movss xmm1, dword [eax + esi + 0x24]
addss xmm0, dword [edi + 0x10]
movss dword [eax + esi + 0x20], xmm0
addss xmm1, dword [edi + 0x14]
movss dword [eax + esi + 0x24], xmm1
cmp ebx, 3
jae 0x1002d614
inc edx
cmp edx, ebp
jb 0x1002d519
jmp 0x1002d6b7
mov edi, dword [esp + edx*4]
movss xmm0, dword [eax + esi + 0x30]
movss xmm1, dword [eax + esi + 0x34]
addss xmm0, dword [edi + 0x18]
movss dword [eax + esi + 0x30], xmm0
addss xmm1, dword [edi + 0x1c]
movss dword [eax + esi + 0x34], xmm1
cmp ebx, 4
jae 0x1002d649
inc edx
cmp edx, ebp
jb 0x1002d519
jmp 0x1002d6b7
mov edi, dword [esp + edx*4]
movss xmm0, dword [eax + esi + 0x38]
movss xmm1, dword [eax + esi + 0x3c]
addss xmm0, dword [edi + 0x20]
movss dword [eax + esi + 0x38], xmm0
addss xmm1, dword [edi + 0x24]
movss dword [eax + esi + 0x3c], xmm1
cmp ebx, 5
jae 0x1002d67e
inc edx
cmp edx, ebp
jb 0x1002d519
jmp 0x1002d6b7
mov edi, dword [esp + edx*4]
inc edx
movss xmm0, dword [eax + esi + 0x48]
cmp edx, ebp
movss xmm1, dword [eax + esi + 0x4c]
addss xmm0, dword [edi + 0x28]
movss dword [eax + esi + 0x48], xmm0
addss xmm1, dword [edi + 0x2c]
movss dword [eax + esi + 0x4c], xmm1
jb 0x1002d519
jmp 0x1002d6b7
inc edx
cmp edx, ebp
jb 0x1002d519
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
inc ebx
add ebp, 0x3200
cmp ebx, esi
jb 0x1002d4f5
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
xor ebp, ebp
mov ebx, dword [esp + 0x48]
mov edi, eax
mov esi, ecx
movss xmm0, dword [0x10365ae0]
movss xmm6, dword [esi + ebp*4]
lea eax, [edi + 0x1f]
movss xmm1, dword [0x10365b10]
and eax, 0xffffffe0
mulss xmm6, xmm1
lea edx, [edi + 0x19b]
movss xmm5, dword [esi + ebp*4 + 0x40]
and edx, 0xffffffe0
movss xmm2, dword [esi + ebp*4 + 0x10]
movss xmm4, dword [esi + ebp*4 + 0x50]
movss xmm3, dword [0x10365b14]
mulss xmm5, xmm1
mulss xmm2, xmm3
mulss xmm4, xmm3
xorps xmm6, xmmword [0x10365ac0]
addss xmm5, xmm4
subss xmm6, xmm2
movss dword [eax + 0x10], xmm5
movss dword [eax + 0x14], xmm6
movss xmm2, dword [esi + ebp*4 + 0xc]
movss xmm7, dword [0x10365b18]
mulss xmm2, xmm7
movss xmm3, dword [esi + ebp*4 + 0x4c]
movaps xmm1, xmm2
mulss xmm3, xmm7
movss xmm5, dword [0x10365b1c]
addss xmm1, xmm3
subss xmm3, xmm2
mulss xmm1, xmm0
mulss xmm3, xmm0
movss dword [eax + 0x18], xmm1
movss dword [eax + 0x1c], xmm3
movss xmm4, dword [esi + ebp*4 + 0x18]
mulss xmm4, xmm5
movss dword [eax], xmm4
movss xmm6, dword [esi + ebp*4 + 0x58]
mulss xmm6, xmm5
movss dword [eax + 4], xmm6
movss xmm4, dword [esi + ebp*4 + 4]
movss xmm5, dword [esi + ebp*4 + 0x44]
movss xmm7, dword [0x10365b20]
mulss xmm4, xmm7
mulss xmm5, xmm7
movss xmm1, dword [esi + ebp*4 + 0x14]
movss xmm7, dword [0x10365b24]
mulss xmm1, xmm7
movss xmm2, dword [esi + ebp*4 + 0x54]
addss xmm4, xmm1
mulss xmm2, xmm7
movaps xmm3, xmm4
addss xmm5, xmm2
subss xmm3, xmm5
addss xmm5, xmm4
mulss xmm3, xmm0
mulss xmm5, xmm0
mov dword [esp + ebp*4], edx
push dword [ebx + 0x18]
push dword [ebx]
push edx
push eax
movss dword [eax + 8], xmm3
movss dword [eax + 0xc], xmm5
call fcn.100493f0
inc ebp
add edi, 0x5f
movss xmm0, dword [0x10365ae0]
cmp ebp, dword [esp + 0x50]
jb 0x1002d6f8
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x4c], 0
jbe 0x1002d9aa
test edx, edx
mov ecx, 0
mov ebx, ecx
jbe 0x1002d9aa
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
mov eax, dword [eax + 0x1f400]
mov dword [esp + 0x18], eax
lea edx, [eax + eax*4]
shl edx, 7
xor ebp, ebp
add edx, edi
mov dword [esp + 0x14], ebx
add edx, ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
lea esi, [ebp + ebp*4]
shl esi, 7
cmp eax, 8
ja case.default.0x1002d89b
jmp dword [eax*4 + 0x10365b48]
cmp ecx, 3
jae 0x1002d8b1
inc ebp
cmp ebp, ebx
jb 0x1002d88b
jmp 0x1002d987
mov edi, dword [esp + ebp*4]
movss xmm0, dword [edx + esi + 0x28]
movss xmm1, dword [edx + esi + 0x2c]
addss xmm0, dword [edi + 8]
movss dword [edx + esi + 0x28], xmm0
addss xmm1, dword [edi + 0xc]
movss dword [edx + esi + 0x2c], xmm1
cmp ecx, 5
jae 0x1002d8e5
inc ebp
cmp ebp, ebx
jb 0x1002d88b
jmp 0x1002d987
mov edi, dword [esp + ebp*4]
movss xmm0, dword [edx + esi + 0x40]
movss xmm1, dword [edx + esi + 0x44]
addss xmm0, dword [edi + 0x10]
movss dword [edx + esi + 0x40], xmm0
addss xmm1, dword [edi + 0x14]
movss dword [edx + esi + 0x44], xmm1
cmp ecx, 7
jae 0x1002d91a
inc ebp
cmp ebp, ebx
jb 0x1002d88b
jmp 0x1002d987
mov edi, dword [esp + ebp*4]
movss xmm0, dword [edx + esi + 0x50]
movss xmm1, dword [edx + esi + 0x54]
addss xmm0, dword [edi + 0x18]
movss dword [edx + esi + 0x50], xmm0
addss xmm1, dword [edi + 0x1c]
movss dword [edx + esi + 0x54], xmm1
cmp ecx, 9
jae 0x1002d94f
inc ebp
cmp ebp, ebx
jb 0x1002d88b
jmp 0x1002d987
mov edi, dword [esp + ebp*4]
inc ebp
movss xmm0, dword [edx + esi + 0x60]
cmp ebp, ebx
movss xmm1, dword [edx + esi + 0x64]
addss xmm0, dword [edi]
movss dword [edx + esi + 0x60], xmm0
addss xmm1, dword [edi + 4]
movss dword [edx + esi + 0x64], xmm1
jb 0x1002d88b
jmp 0x1002d987
inc ebp
cmp ebp, ebx
jb 0x1002d88b
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
inc ecx
add ebx, 0x3200
cmp ecx, esi
jb 0x1002d867
add esp, 0x20
pop ebp
pop ebx
pop edi
pop esi
ret
cmp dword [esp + 0x4c], 0
ja 0x1002d4d3
jmp 0x1002d9aa