Start Avast, then in the menu choose “schedule bootitme scan”. This requires you to restart the system. Avast will scan your system before Windows is fully loaded. See if that solve the problem.