Function at 0x55ebe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
and edi, 1
mov esi, dword [ebx + 0x8c]
add edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
and eax, 1
or edi, eax
lea edx, [esi + 0x2c]
mov eax, dword [ebx + 0x84]
lea ecx, [esi + 0x21]
push esi
push 0x540100
shl edi, 8
mov dword [esp + 0x20], eax
call fcn.00540ef0
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esi + 0xc]
mov esi, 0x55e900
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x55ec4a
mov esi, 0x55e890
jmp 0x55ec55
cmp eax, 2
mov edx, 0x55e950
cmove esi, edx
cmp byte [ebx + 0x88], 2
movd xmm2, dword [ebp + 8]
movd xmm1, dword [ebp + 0xc]
cvtdq2ps xmm2, xmm2
mov dword [esp + 0x14], esi
cvtdq2ps xmm1, xmm1
addss xmm2, dword [0x6f2b28]
addss xmm1, dword [0x6f2b28]
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x24], xmm1
je 0x55ee2e
lea eax, [esp + 0x24]
push eax
sub esp, 8
lea esi, [ebx + 0x5c]
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
push esi
call dword [esp + 0x28]
add esp, 0x10
cmp byte [ebx + 0x88], 1
jne 0x55ed88
movss xmm0, dword [esi + 0x18]
call fcn.004d5c30
movss xmm1, dword [0x6f2a2c]
comiss xmm1, xmm0
jb 0x55ed60
movss xmm3, dword [esi + 0x1c]
movaps xmm0, xmm3
call fcn.004d5c30
comiss xmm1, xmm0
jb 0x55ed24
movss xmm0, dword [esi + 0x20]
subss xmm0, dword [0x6f2b58]
call fcn.004d5c30
comiss xmm1, xmm0
jb 0x55ed24
movss xmm0, dword [esi]
mulss xmm0, dword [0x6f2e24]
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0xc]
mulss xmm0, dword [0x6f2e24]
cvttss2si ecx, xmm0
jmp 0x55ed68
movd xmm2, dword [ebp + 0xc]
movss xmm0, dword [esi]
cvtdq2ps xmm2, xmm2
mulss xmm2, xmm3
addss xmm2, dword [esi + 0x20]
divss xmm0, xmm2
mulss xmm0, dword [0x6f2e24]
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0xc]
divss xmm0, xmm2
mulss xmm0, dword [0x6f2e24]
cvttss2si ecx, xmm0
jmp 0x55ed68
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
movd xmm4, eax
movd xmm5, ecx
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
mulss xmm4, dword [0x6f2a48]
mulss xmm5, dword [0x6f2a48]
jmp 0x55ed91
movss xmm4, dword [esi]
movss xmm5, dword [ebx + 0x68]
mov eax, dword [esp + 0x10]
movss xmm0, dword [esp + 0x24]
add eax, 0xc4
movss xmm3, dword [esp + 0x28]
push dword [ebp + 0x14]
mov dword [esp + 0x40], eax
subss xmm3, dword [eax + 4]
subss xmm0, dword [eax]
movss xmm2, dword [eax + 8]
movss xmm1, dword [eax + 0xc]
push edi
push dword [esp + 0x24]
movss dword [esp + 0x50], xmm3
push dword [ebp + 0x10]
mulss xmm3, xmm1
movss dword [esp + 0x50], xmm0
mulss xmm0, xmm2
mulss xmm1, xmm5
addss xmm3, xmm0
mulss xmm2, xmm4
movss dword [esp + 0x58], xmm4
movss dword [esp + 0x5c], xmm5
addss xmm1, xmm2
addss xmm3, dword [eax + 0x20]
lea eax, [esp + 0x4c]
push eax
mulss xmm1, dword [0x6f2ea0]
mulss xmm3, dword [0x6f2ea0]
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x64], xmm3
call dword [esp + 0x28]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x55ef36
lea eax, [ebx + 0x5c]
mov dword [esp + 0x10], eax
lea ebx, [ecx + 0xc4]
nop word [eax + eax]
lea ecx, [esp + 0x34]
push ecx
sub esp, 8
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
push eax
call dword [esp + 0x28]
movss xmm0, dword [esp + 0x48]
lea eax, [esp + 0x4c]
subss xmm0, dword [ebx + 4]
movss xmm4, dword [esp + 0x44]
movss xmm3, dword [ebx + 0xc]
subss xmm4, dword [ebx]
movss xmm2, dword [ebx + 8]
movaps xmm1, xmm3
mulss xmm1, xmm0
push 1
movss dword [esp + 0x58], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm4
push edi
push dword [esp + 0x34]
mov dword [esp + 0x58], ebx
addss xmm1, xmm0
movss dword [esp + 0x5c], xmm4
push dword [ebp + 0x10]
mov dword [esp + 0x68], 0
push eax
mov dword [esp + 0x70], 0
addss xmm1, dword [ebx + 0x20]
mulss xmm1, dword [0x6f2ea0]
movss dword [esp + 0x74], xmm1
xorps xmm1, xmm1
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, xmm3
mulss xmm2, dword [0x6f2ea0]
movss dword [esp + 0x78], xmm2
call esi
movss xmm2, dword [esp + 0x44]
add esp, 0x24
addss xmm2, dword [0x6f2b58]
mov eax, dword [esp + 0x14]
xor edi, 0x100
add dword [ebp + 0x10], 4
dec eax
movss xmm1, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
movss dword [esp + 0x20], xmm2
jg 0x55ee50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10