Function at 0x465bc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, ecx
imul esi, ebp
xor edx, edx
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], edx
cmp ebp, 4
jl 0x465d14
add ebp, 0xfffffffc
shr ebp, 2
inc ebp
mov dword [esp + 0x28], ebp
add ebp, ebp
lea ebx, [ecx + ecx]
add ebp, ebp
lea ebx, [edi + ebx*4 - 4]
mov dword [esp + 0x10], ebp
movss xmm0, dword [eax + edx*4]
movss xmm1, dword [eax + esi*4]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edi + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
movss xmm1, dword [eax + esi*4]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [ebx], xmm0
add edx, ecx
movss xmm0, dword [eax + edx*4]
cvtps2pd xmm0, xmm0
add esi, ecx
movss xmm1, dword [eax + esi*4]
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edi + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
movss xmm1, dword [eax + esi*4]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
lea ebp, [ecx*8]
movss dword [ebx + ebp], xmm0
add ebx, ebp
add edx, ecx
movss xmm0, dword [eax + edx*4]
cvtps2pd xmm0, xmm0
add esi, ecx
movss xmm1, dword [eax + esi*4]
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edi + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
movss xmm1, dword [eax + esi*4]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [ebx + ebp], xmm0
add ebx, ebp
add edx, ecx
movss xmm0, dword [eax + edx*4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edi + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
movss xmm1, dword [eax + esi*4]
add ebx, ebp
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [ebx], xmm0
add edx, ecx
add ebx, ebp
add esi, ecx
dec dword [esp + 0x28]
jne 0x465c01
mov ebp, dword [esp + 0x38]
cmp dword [esp + 0x10], ebp
jge 0x465db3
lea ebp, [edi + edx*8]
lea ebx, [eax + edx*4]
mov dword [esp + 0x28], ebp
lea ebp, [ecx + ecx]
lea edx, [ebp + edx*2]
lea edx, [edi + edx*4 - 4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x10]
lea esi, [eax + esi*4]
mov dword [esp + 0x24], edx
jmp 0x465d50
movss xmm0, dword [ebx]
movss xmm1, dword [esi]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [edx], xmm0
movss xmm0, dword [ebx]
movss xmm1, dword [esi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [ebp], xmm0
lea ebp, [ecx*8]
add dword [esp + 0x14], ebp
add edx, ebp
mov dword [esp + 0x28], edx
lea edx, [ecx*4]
add ebx, edx
add esi, edx
dec dword [esp + 0x24]
jne 0x465d50
mov ebp, dword [esp + 0x38]
cmp ecx, 2
jl 0x466049
je 0x465f4d
test ebp, ebp
jle 0x465f35
mov edx, dword [esp + 0x30]
lea edx, [eax + edx*4]
mov dword [esp + 0x24], edx
lea edx, [edi + ecx*8]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], ebp
jmp 0x465df0
cmp ecx, 2
jle 0x465f0d
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x40]
add esi, 4
mov dword [esp + 0x14], esi
lea esi, [ecx - 3]
shr esi, 1
inc esi
mov ebp, dword [esp + 0x14]
movss xmm0, dword [ebp - 4]
add dword [esp + 0x10], 8
mov ebp, dword [esp + 0x10]
movss xmm1, dword [ebp - 4]
mov ebp, dword [esp + 0x14]
movss xmm2, dword [ebp]
mov ebp, dword [esp + 0x10]
movss xmm3, dword [ebp]
add dword [esp + 0x18], 8
mov ebp, dword [esp + 0x18]
cvtps2pd xmm5, xmm1
cvtps2pd xmm4, xmm0
cvtps2pd xmm0, xmm0
add dword [esp + 0x14], 8
cvtps2pd xmm1, xmm1
mulsd xmm4, xmm5
cvtps2pd xmm6, xmm2
add edx, 8
cvtps2pd xmm5, xmm3
cvtps2pd xmm2, xmm2
mulsd xmm2, xmm1
movss xmm1, dword [edx]
cvtps2pd xmm1, xmm1
cvtps2pd xmm3, xmm3
mulsd xmm0, xmm3
subsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
xorps xmm2, xmm2
cvtss2sd xmm2, xmm0
addsd xmm1, xmm2
cvtpd2ps xmm1, xmm1
movss dword [ebp], xmm1
movss xmm1, dword [edx]
cvtss2sd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [ebx - 8], xmm0
movss xmm0, dword [edx - 4]
sub ebx, 8
dec esi
cvtps2pd xmm0, xmm0
mulsd xmm5, xmm6
xorps xmm1, xmm1
addsd xmm4, xmm5
cvtpd2ps xmm4, xmm4
cvtss2sd xmm1, xmm4
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [ebp - 4], xmm0
movss xmm0, dword [edx - 4]
cvtps2pd xmm0, xmm0
xorps xmm1, xmm1
cvtss2sd xmm1, xmm4
subsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [ebx - 4], xmm0
jne 0x465e22
mov ebp, dword [esp + 0x38]
lea edx, [ecx*8]
add dword [esp + 0x1c], edx
add dword [esp + 0x28], edx
lea esi, [ecx*4]
add dword [esp + 0x20], esi
add dword [esp + 0x24], esi
dec dword [esp + 0x2c]
jne 0x465df0
mov edx, ecx
and edx, 0x80000001
jns 0x465f44
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
je 0x466049
movss xmm0, dword [0x4c8bb0]
lea esi, [ecx - 1]
mov ebx, esi
add esi, dword [esp + 0x30]
mov edx, ecx
mov dword [esp + 0x10], 0
cmp ebp, 4
jl 0x466006
mov ebp, dword [esp + 0x38]
add ebp, 0xfffffffc
shr ebp, 2
inc ebp
mov dword [esp + 0x30], ebp
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x10], ebp
jmp 0x465f90
movss xmm1, dword [eax + esi*4]
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
lea edx, [edx + ecx*2]
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
lea ebp, [ecx + ecx]
add edx, ebp
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
add edx, ebp
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add edx, ebp
add esi, ecx
add ebx, ecx
dec dword [esp + 0x30]
jne 0x465f90
mov ebp, dword [esp + 0x38]
cmp dword [esp + 0x10], ebp
jge 0x466049
lea ebp, [ecx*8]
add ecx, ecx
lea edx, [edi + edx*4]
mov edi, dword [esp + 0x38]
add ecx, ecx
sub edi, dword [esp + 0x10]
lea esi, [eax + esi*4]
lea eax, [eax + ebx*4]
jmp 0x466030
movss xmm1, dword [esi]
xorps xmm1, xmm0
movss dword [edx], xmm1
fld dword [eax]
fstp dword [edx - 4]
add edx, ebp
add esi, ecx
add eax, ecx
dec edi
jne 0x466030
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret