Function at 0x10031d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push esi
push edi
push ebx
sub esp, 0x74
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x24]
lea edx, [eax + 0x1f]
and edx, 0xffffffe0
mov dword [esp + 0xc], edx
cmp dword [ebp + 0x20], 0
lea eax, [edx + ebx*8]
jbe 0x10032271
mov esi, dword [ebp + 8]
lea edi, [eax + ebx*8]
mov dword [esp + 0x24], edi
lea edi, [ebx*4]
mov dword [esp + 8], edi
mov edi, ebx
shr edi, 2
xor ecx, ecx
mov dword [esp + 0x2c], edi
shl edi, 4
add edi, dword [ebp + 0x14]
mov dword [esp], edi
mov edi, ebx
shr edi, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov edx, dword [esi + 8]
movaps xmm0, xmmword [0x10366b20]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
test eax, eax
jbe 0x10032264
mov dword [esp + 0x10], ecx
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x38], esi
mov esi, dword [edi]
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0x2c]
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [edx + edi*4]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], edi
mov edx, dword [eax + ebx*4]
mov eax, 0x38e38e39
mov dword [esp + 0x20], edx
lea edx, [ecx + 8]
mov dword [esp + 0x4c], edx
mul edx
shr edx, 1
mov edi, dword [esp + 8]
mov dword [esp + 0x34], ecx
lea ecx, [ecx + 7]
lea eax, [edx + edx*8]
mov edx, dword [esp + 0x4c]
sub edx, eax
mov eax, 0x38e38e39
imul edx, edi
add edx, dword [esi + ebx*4]
mov dword [esp + 0x4c], edx
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx, edi
add ecx, dword [esi + ebx*4]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 6]
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx, edi
add ecx, dword [esi + ebx*4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 5]
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx, edi
add ecx, dword [esi + ebx*4]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 4]
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx, edi
add ecx, dword [esi + ebx*4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 3]
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx, edi
add ecx, dword [esi + ebx*4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 2]
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx, edi
add ecx, dword [esi + ebx*4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 1]
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx, edi
add ecx, dword [esi + ebx*4]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x34]
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
sub ecx, eax
imul ecx, edi
add ecx, dword [esi + ebx*4]
mov eax, dword [ebp + 0x24]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x2c], 0
lea eax, [esi + eax*4 - 0x10]
mov esi, dword [esp + 0x30]
jbe 0x1003206e
mov dword [esp + 0x30], esi
xor edx, edx
mov dword [esp + 4], ebx
mov dword [esp + 0x34], ecx
movaps xmm2, xmmword [0x10366b20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x58], edx
shl edx, 4
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
movaps xmm0, xmmword [edi + edx]
mov edi, dword [esp + 0x30]
movaps xmm1, xmmword [ecx + edx]
mulps xmm0, xmmword [ebx + 0x10]
mulps xmm1, xmmword [ebx]
movaps xmm3, xmmword [edi + edx]
mov edi, dword [esp + 0x48]
mulps xmm3, xmmword [ebx + 0x20]
movaps xmm4, xmmword [edi + edx]
subps xmm1, xmm3
mulps xmm4, xmmword [ebx + 0x30]
mov edi, dword [esp + 0x44]
subps xmm0, xmm4
movaps xmm5, xmmword [edi + edx]
mov edi, dword [esp + 0x54]
mulps xmm5, xmmword [ebx + 0x40]
movaps xmm6, xmmword [edi + edx]
addps xmm1, xmm5
mulps xmm6, xmmword [ebx + 0x50]
mov edi, dword [esp + 0x3c]
addps xmm0, xmm6
movaps xmm7, xmmword [edi + edx]
mov edi, dword [esp + 0x40]
movaps xmm6, xmmword [eax]
add eax, 0xfffffff0
mulps xmm7, xmmword [ebx + 0x60]
movaps xmm3, xmmword [edi + edx]
subps xmm1, xmm7
mulps xmm3, xmmword [ebx + 0x70]
shufps xmm6, xmm6, 0x1b
subps xmm0, xmm3
mulps xmm6, xmm2
mov edi, dword [esp + 0x4c]
movaps xmm5, xmmword [ebx + 0x90]
mulps xmm5, xmm6
movaps xmm4, xmmword [edi + edx]
addps xmm0, xmm5
mulps xmm4, xmmword [ebx + 0x80]
movaps xmmword [ecx + edx], xmm6
add ebx, 0xa0
movaps xmm3, xmmword [esi + 0x10]
addps xmm1, xmm4
movaps xmm4, xmmword [esi]
movaps xmm5, xmm1
mulps xmm5, xmm4
add esi, 0x20
mulps xmm1, xmm3
mulps xmm3, xmm0
mulps xmm4, xmm0
subps xmm5, xmm3
addps xmm1, xmm4
mov ecx, dword [esp + 0x38]
movaps xmm0, xmm5
movlhps xmm0, xmm1
shufps xmm5, xmm1, 0xee
mov edx, dword [esp + 0x58]
inc edx
shufps xmm0, xmm0, 0xd8
shufps xmm5, xmm5, 0xd8
movaps xmmword [ecx], xmm0
movaps xmmword [ecx + 0x10], xmm5
add ecx, 0x20
mov dword [esp + 0x38], ecx
cmp edx, dword [esp + 0x2c]
jb 0x10031f6a
mov ebx, dword [esp + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push dword [edx + 0x18]
push dword [edx + 8]
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.10049410
mov eax, dword [ebp + 0x28]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x2c], 0
mov ecx, dword [eax + edx*4]
mov eax, 0
mov edx, dword [ecx + ebx*4]
jbe 0x10032167
mov dword [esp + 4], ebx
xor ecx, ecx
mov esi, dword [ebp + 0x14]
mov edi, dword [esp + 0x14]
movss xmm6, dword [ecx + esi + 0xc]
lea ebx, [eax*8]
neg ebx
add ebx, dword [esp + 0x24]
movss xmm4, dword [edi + eax*8 + 4]
movss dword [esp + 0x60], xmm6
movss xmm5, dword [ebx - 8]
movss xmm3, dword [edi + eax*8]
inc eax
movss dword [esp + 0x5c], xmm5
movaps xmm5, xmm4
movss xmm2, dword [ecx + esi]
movaps xmm7, xmm3
movss xmm6, dword [ecx + esi + 4]
mulss xmm5, xmm2
mulss xmm2, xmm3
mulss xmm4, xmm6
mulss xmm7, xmm6
addss xmm2, xmm4
subss xmm5, xmm7
movss xmm0, dword [ebx - 4]
movss xmm7, dword [esp + 0x5c]
movaps xmm3, xmm0
movss xmm1, dword [ecx + esi + 8]
movss dword [ecx + edx + 4], xmm2
movaps xmm2, xmm7
movss xmm4, dword [esp + 0x60]
mulss xmm3, xmm1
mulss xmm2, xmm4
mulss xmm0, xmm4
mulss xmm1, xmm7
addss xmm3, xmm2
subss xmm0, xmm1
movss dword [ecx + edx], xmm5
movss dword [ecx + edx + 8], xmm3
movss dword [ecx + edx + 0xc], xmm0
add ecx, 0x10
cmp eax, dword [esp + 0x2c]
jb 0x100320b1
mov ebx, dword [esp + 4]
mov esi, eax
shl esi, 4
cmp eax, dword [esp + 0x28]
jae 0x1003224a
mov dword [esp + 4], ebx
mov ecx, dword [esp]
mov ebx, dword [esp + 0x14]
movss xmm4, dword [ebx + eax*8 + 4]
lea edi, [eax*8]
neg edi
add edi, dword [esp + 0x24]
xorps xmm4, xmmword [0x10366b10]
movss xmm5, dword [edi - 8]
movss xmm2, dword [edi - 4]
mov edi, esi
neg edi
movss dword [esp + 0x64], xmm5
xorps xmm2, xmmword [0x10366b10]
movss xmm6, dword [edi + ecx - 0x10]
movss xmm0, dword [edi + ecx - 4]
movss dword [esp + 0x68], xmm6
movaps xmm5, xmm0
movss xmm3, dword [edi + ecx - 8]
movss xmm6, dword [ebx + eax*8]
inc eax
mulss xmm5, xmm4
movaps xmm7, xmm6
mulss xmm4, xmm3
mulss xmm0, xmm6
mulss xmm7, xmm3
subss xmm4, xmm0
addss xmm5, xmm7
movss xmm1, dword [edi + ecx - 0xc]
movss dword [esi + edx + 4], xmm4
movaps xmm3, xmm1
movss xmm4, dword [esp + 0x64]
movss xmm7, dword [esp + 0x68]
movaps xmm0, xmm4
mulss xmm3, xmm2
mulss xmm0, xmm7
mulss xmm1, xmm4
mulss xmm2, xmm7
subss xmm3, xmm0
addss xmm1, xmm2
movss dword [esi + edx], xmm5
movss dword [esi + edx + 8], xmm3
movss dword [esi + edx + 0xc], xmm1
add esi, 0x10
cmp eax, dword [esp + 0x28]
jb 0x10032181
mov ebx, dword [esp + 4]
inc ebx
cmp ebx, dword [ebp + 0x1c]
jb 0x10031dec
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
inc ecx
inc edx
mov dword [esi + 8], edx
cmp ecx, edi
jb 0x10031dde
add esp, 0x74
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret