Function at 0x548630
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 8], eax
push esi
mov edx, dword [eax]
sar edx, cl
mov eax, edx
mov dword [ebp - 0x34], edx
push edi
sar eax, 1
mov edi, edx
mov dword [ebp - 0x24], eax
shl eax, 2
sar edi, 2
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], eax
call fcn.0056f990
mov eax, dword [ebp - 0xc]
mov esi, esp
mov dword [ebp - 0x30], esi
call fcn.0056f990
cvtsi2ss xmm0, dword [ebp - 0x34]
mov edx, esp
mov eax, dword [ebp - 0x24]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
movss xmm7, dword [0x5f7b50]
imul eax, dword [ebx + 0x18]
movss xmm6, dword [0x5f7d30]
divss xmm7, xmm0
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 0x14]
movss dword [ebp - 0x28], xmm7
test edi, edi
jle 0x548772
mov eax, edi
mov dword [ebp - 0x1c], edi
xor esi, esi
lea ecx, [ecx]
mov edi, dword [ebp - 0x2c]
shl eax, cl
movss xmm2, dword [edi + eax*4]
mov eax, dword [ebp - 0x10]
movss xmm3, dword [eax]
mov eax, esi
shl eax, cl
movaps xmm4, xmm3
mov ecx, dword [ebx + 0x18]
inc esi
mulss xmm4, xmm2
movss xmm1, dword [edi + eax*4]
mov eax, dword [ebp - 0x14]
lea edi, [ecx*8]
add dword [ebp - 0x10], edi
mov ecx, dword [ebx + 0x14]
movss xmm5, dword [eax]
sub eax, edi
movaps xmm0, xmm5
mov edi, dword [ebp - 0x20]
mulss xmm0, xmm1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mulss xmm5, xmm2
dec eax
mov dword [ebp - 0x1c], eax
mulss xmm1, xmm3
subss xmm4, xmm0
xorps xmm5, xmm6
subss xmm5, xmm1
movaps xmm0, xmm4
mulss xmm4, xmm7
movaps xmm1, xmm5
addss xmm4, xmm5
mulss xmm1, xmm7
subss xmm0, xmm1
movss dword [edx], xmm0
movss dword [edx + 4], xmm4
add edx, 8
cmp esi, edi
jl 0x5486e0
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax + ecx*4 + 8]
push esi
call fcn.00550c00
mov eax, dword [ebp - 8]
add esp, 4
mov dword [ebp - 0x2c], esi
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
test edi, edi
jle 0x54880c
movss xmm6, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x1c]
shl eax, cl
movss xmm5, dword [edi + eax*4]
mov eax, dword [ebp - 8]
movaps xmm3, xmm5
mulss xmm3, dword [esi]
shl eax, cl
mulss xmm5, dword [esi + 4]
dec dword [ebp - 8]
movss xmm1, dword [edi + eax*4]
mov eax, dword [ebp - 0x14]
movaps xmm0, xmm1
mulss xmm1, dword [esi]
inc eax
mov edi, dword [ebp - 0x20]
mulss xmm0, dword [esi + 4]
mov dword [ebp - 0x14], eax
addss xmm5, xmm1
subss xmm3, xmm0
movaps xmm1, xmm5
mulss xmm1, xmm6
movaps xmm0, xmm3
mulss xmm3, xmm6
subss xmm0, xmm1
addss xmm3, xmm5
movss dword [esi], xmm0
movss dword [esi + 4], xmm3
add esi, 8
cmp eax, edi
jl 0x5487a2
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x18]
add ecx, 0xfffffffc
movss xmm1, dword [0x5f7d30]
add ecx, esi
mov dword [ebp - 8], edx
cmp edi, 4
jl 0x54889a
lea edx, [edi - 4]
shr edx, 2
inc edx
lea edi, [edx*4]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x20]
lea ecx, [ecx]
movss xmm0, dword [esi]
xorps xmm0, xmm1
movss dword [eax], xmm0
fld dword [ecx]
fstp dword [eax + 4]
movss xmm0, dword [esi + 8]
xorps xmm0, xmm1
movss dword [eax + 8], xmm0
fld dword [ecx - 8]
fstp dword [eax + 0xc]
movss xmm0, dword [esi + 0x10]
xorps xmm0, xmm1
movss dword [eax + 0x10], xmm0
fld dword [ecx - 0x10]
fstp dword [eax + 0x14]
movss xmm0, dword [esi + 0x18]
add esi, 0x20
xorps xmm0, xmm1
movss dword [eax + 0x18], xmm0
fld dword [ecx - 0x18]
sub ecx, 0x20
fstp dword [eax + 0x1c]
add eax, 0x20
sub edx, 1
jne 0x548840
mov edx, dword [ebp - 8]
cmp edx, edi
jge 0x5488c1
mov edx, edi
sub edx, dword [ebp - 8]
movss xmm0, dword [esi]
lea esi, [esi + 8]
xorps xmm0, xmm1
movss dword [eax], xmm0
fld dword [ecx]
sub ecx, 8
fstp dword [eax + 4]
add eax, 8
sub edx, 1
jne 0x5488a3
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 8]
sub edx, ecx
mov esi, dword [ebp - 0xc]
sar edx, 1
neg edx
mov dword [ebp - 0xc], 0
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x18]
add esi, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], esi
lea eax, [eax + edi*4]
mov dword [ebp - 0x2c], eax
lea edi, [esi - 4]
add eax, 0xfffffffc
mov dword [ebp - 0x18], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x20]
sar eax, 1
mov dword [ebp - 0x30], eax
mov eax, edx
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xc]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x10]
add eax, 0xfffffffc
mov dword [ebp - 0x14], eax
cmp ecx, 4
jl 0x548957
lea eax, [ecx - 4]
shr eax, 2
inc eax
mov dword [ebp - 0x24], eax
shl eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
fld dword [eax]
fstp dword [edi]
fld dword [eax - 4]
fstp dword [edi - 4]
fld dword [eax - 8]
fstp dword [edi - 8]
fld dword [eax - 0xc]
sub eax, 0x10
fstp dword [edi - 0xc]
sub edi, 0x10
sub dword [ebp - 0x24], 1
jne 0x548933
jmp 0x54895a
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], ecx
jge 0x548980
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
sub dword [ebp - 8], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
fld dword [eax]
sub eax, 4
fstp dword [edi]
sub edi, 4
sub ecx, 1
jne 0x548971
cmp dword [ebp - 0xc], edx
jge 0x5489f1
mov edx, dword [ebp - 0x10]
sub eax, edi
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
lea ecx, [eax + edx*4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
sub edx, edi
mov dword [ebp - 0x38], edx
sub esi, ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
sub dword [ebp - 8], edx
mov edx, esi
movss xmm2, dword [eax + edi]
movss xmm1, dword [edx + ecx]
movss xmm0, dword [ecx]
mov esi, dword [ebp - 0x38]
mulss xmm1, xmm2
subss xmm0, xmm1
movss dword [ecx], xmm0
add ecx, 4
movss xmm0, dword [esi + edi]
mov esi, dword [ebp - 0x1c]
mulss xmm0, xmm2
addss xmm0, dword [edi]
movss dword [edi], xmm0
sub edi, 4
sub dword [ebp - 8], 1
jne 0x5489b1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
sub eax, edx
add eax, dword [ebp - 0x34]
sub ecx, 4
lea edi, [ecx + eax*4]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x28], edi
cmp eax, 4
jl 0x548a43
lea edi, [eax - 4]
mov eax, dword [ebp - 0x2c]
shr edi, 2
inc edi
lea ecx, [edi*4]
fld dword [eax]
fstp dword [esi]
fld dword [eax + 4]
fstp dword [esi + 4]
fld dword [eax + 8]
fstp dword [esi + 8]
fld dword [eax + 0xc]
add eax, 0x10
fstp dword [esi + 0xc]
add esi, 0x10
sub edi, 1
jne 0x548a20
jmp 0x548a46
mov eax, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x10]
jge 0x548a60
jmp 0x548a50
fld dword [eax]
inc ecx
fstp dword [esi]
add esi, 4
add eax, 4
cmp ecx, dword [ebp - 0x10]
jl 0x548a50
cmp ecx, edx
jge 0x548aa4
sub dword [ebx + 0xc], esi
sub eax, esi
mov edi, dword [ebp - 0x28]
sub edx, ecx
mov edi, edi
mov ecx, dword [ebx + 0xc]
lea edi, [edi - 4]
movss xmm1, dword [esi + eax]
lea esi, [esi + 4]
movss xmm0, dword [esi + ecx - 4]
mov ecx, dword [ebp - 0x14]
mulss xmm0, xmm1
movss dword [edi + 4], xmm0
mulss xmm1, dword [ecx]
sub ecx, 4
mov dword [ebp - 0x14], ecx
movss dword [esi - 4], xmm1
sub edx, 1
jne 0x548a70
lea esp, [ebp - 0x40]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret