Function at 0x5466b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push ebx
push esi
push edi
movd xmm0, dword [eax + 0x54]
sub esp, 8
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x10], eax
mulsd xmm0, qword [0x8c2678]
movsd qword [esp], xmm0
call fcn.0055b750
mov edi, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
xorps xmm7, xmm7
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [ebp - 0xc], ecx
movaps xmm6, xmm7
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
movsd qword [eax], xmm7
test edi, edi
jle 0x5468ed
cmp edi, 8
jb 0x5467c2
cmp dword [0x12e808c], 2
jl 0x5467c2
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x546729
dec eax
or eax, 0xfffffff8
inc eax
mov esi, dword [ebp + 0xc]
mov ecx, edi
xorps xmm4, xmm4
sub ecx, eax
movaps xmm5, xmm4
lea eax, [esi + 0x20]
nop dword [eax]
movd xmm2, dword [eax + 0x10]
lea eax, [eax + 0x80]
movd xmm0, dword [eax - 0x80]
add ebx, 8
movd xmm1, dword [eax - 0x90]
movd xmm3, dword [eax - 0xa0]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0x40]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x30]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0x50]
punpckldq xmm1, xmm2
pmaxsd xmm4, xmm3
movd xmm3, dword [eax - 0x60]
punpckldq xmm3, xmm0
punpckldq xmm3, xmm1
pmaxsd xmm5, xmm3
cmp ebx, ecx
jl 0x546740
pmaxsd xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
pmaxsd xmm4, xmm0
movaps xmm0, xmm4
psrldq xmm0, 4
pmaxsd xmm4, xmm0
movd ecx, xmm4
jmp 0x5467c5
mov esi, dword [ebp + 0xc]
cmp ebx, edi
jge 0x5467e4
mov edx, ebx
shl edx, 4
add edx, esi
mov esi, edi
sub esi, ebx
cmp dword [edx], ecx
cmovg ecx, dword [edx]
lea edx, [edx + 0x10]
sub esi, 1
jne 0x5467d4
mov edx, dword [ebp - 4]
test ecx, ecx
jle 0x5468ed
movsd xmm2, qword [0x8c26e0]
xor eax, eax
movd xmm0, ecx
mov dword [ebp + 8], eax
cvtdq2pd xmm0, xmm0
divsd xmm2, xmm0
test edx, edx
js 0x54688b
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add ebx, 4
mov edx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], edx
nop
movaps xmm1, xmm7
test edi, edi
jle 0x54687c
mov ecx, ebx
mov esi, edx
mov ebx, edi
nop dword [eax]
mov eax, dword [ecx]
add ecx, 0x10
sub eax, dword [esi]
add esi, 0x10
cdq
xor eax, edx
sub eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm2
addsd xmm1, xmm0
sub ebx, 1
jne 0x546830
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
test edi, edi
jle 0x54687c
movd xmm0, edi
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
comisd xmm1, xmm6
jbe 0x54687c
movaps xmm6, xmm1
mov dword [ebp - 0xc], eax
inc eax
add edx, 0x10
dec edi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
cmp eax, ecx
jle 0x546820
mov ebx, dword [ebp - 0xc]
sub esp, 8
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
movd xmm1, ebx
cvtdq2pd xmm1, xmm1
movsd qword [esi], xmm6
movd xmm0, dword [ecx + 0x54]
mulsd xmm1, qword [0x8c27c8]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esp], xmm1
call fcn.0055b750
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp ebx, eax
jge 0x5468ed
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x69f968]
addsd xmm0, qword [esi]
movsd qword [esi], xmm0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10