Function at 0x548407
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
and esi, 1
add esi, esi
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and eax, 1
or esi, eax
mov eax, dword [edi + 0x84]
shl esi, 8
mov dword [ebp - 8], eax
call fcn.00514c2a
mov dword [ebp - 0xc], eax
mov ebx, 0x54887d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0
jne 0x548457
mov ebx, 0x5487c6
jmp 0x548463
cmp dword [eax + 0x58], 2
mov ecx, 0x548823
cmove ebx, ecx
cmp byte [edi + 0x88], 2
movd xmm1, dword [ebp + 8]
movd xmm2, dword [ebp + 0xc]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
addss xmm1, dword [0x6567d8]
addss xmm2, dword [0x6567d8]
movss dword [ebp + 8], xmm1
movss dword [ebp - 0x18], xmm2
je 0x5485b0
lea ecx, [ebp - 0x20]
push ecx
push ecx
push ecx
lea eax, [edi + 0x5c]
movss dword [esp + 4], xmm2
movss dword [esp], xmm1
push eax
mov dword [ebp + 8], eax
call dword [ebp - 8]
movss xmm6, dword [ebp - 0x20]
add esp, 0x10
cmp byte [edi + 0x88], 1
movss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x14], xmm6
movss dword [ebp - 0x18], xmm0
jne 0x54851f
movd xmm0, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
cvtdq2ps xmm0, xmm0
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, dword [ebp + 8]
movss dword [esp], xmm0
call fcn.00522a0b
movd xmm4, dword [ebp - 8]
movd xmm5, dword [ebp - 0x10]
movss xmm6, dword [ebp - 0x14]
movss xmm0, dword [ebp - 0x18]
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
mulss xmm4, dword [0x6785ec]
mulss xmm5, dword [0x6785ec]
jmp 0x548529
movss xmm4, dword [edi + 0x5c]
movss xmm5, dword [edi + 0x68]
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
add eax, 0xd4
movss dword [ebp - 0x30], xmm4
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
subss xmm0, dword [eax + 4]
movss xmm3, dword [eax + 0xc]
subss xmm6, dword [eax]
movss xmm2, dword [eax + 8]
movaps xmm1, xmm3
push dword [ebp + 0x10]
mulss xmm1, xmm0
movss dword [ebp - 0x34], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm6
mulss xmm2, xmm4
addss xmm1, xmm0
mulss xmm3, xmm5
movss dword [ebp - 0x38], xmm6
movss dword [ebp - 0x2c], xmm5
addss xmm2, xmm3
addss xmm1, dword [eax + 0x20]
lea eax, [ebp - 0x3c]
push eax
mulss xmm2, dword [0x67bdfc]
mulss xmm1, dword [0x67bdfc]
movss dword [ebp - 0x24], xmm2
movss dword [ebp - 0x28], xmm1
call ebx
add esp, 0x14
jmp 0x548696
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
test ecx, ecx
jle 0x548696
lea ecx, [edi + 0x5c]
mov dword [ebp + 0x14], ecx
lea edi, [eax + 0xd4]
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
movss dword [esp + 4], xmm2
movss dword [esp], xmm1
push ecx
call dword [ebp - 8]
movss xmm0, dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
subss xmm0, dword [edi + 4]
movss xmm4, dword [ebp - 0x20]
movss xmm3, dword [edi + 0xc]
subss xmm4, dword [edi]
movss xmm2, dword [edi + 8]
movaps xmm1, xmm3
mulss xmm1, xmm0
and dword [ebp - 0x30], 0
movss dword [ebp - 0x34], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm4
and dword [ebp - 0x2c], 0
push 1
push esi
push dword [ebp - 0xc]
addss xmm1, xmm0
mov dword [ebp - 0x3c], edi
push dword [ebp + 0x10]
movss dword [ebp - 0x38], xmm4
push eax
addss xmm1, dword [edi + 0x20]
mulss xmm1, dword [0x67bdfc]
movss dword [ebp - 0x28], xmm1
xorps xmm1, xmm1
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, xmm3
mulss xmm2, dword [0x67bdfc]
movss dword [ebp - 0x24], xmm2
call ebx
movss xmm1, dword [ebp + 8]
add esp, 0x24
addss xmm1, dword [0x65f160]
mov eax, dword [ebp + 0xc]
xor esi, 0x100
add dword [ebp + 0x10], 4
dec eax
movss xmm2, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
movss dword [ebp + 8], xmm1
mov dword [ebp + 0xc], eax
test eax, eax
jg 0x5485ca
pop edi
pop esi
pop ebx
leave
ret 0x10