Hi,
I suggest if you don't already have it, download Malewarebytes from the link below then run it.
Malwarebytes
Also launch Safari preferences by going to Safari in the upper right of Finder & choosing Preferences ~> Extensions then have a look for any Extensions that you think might be related to anysearchmanager.
In Safari ~> Preferences ~> General, set your Homepage to whichever it should be according to you.
See if any of this helps & report back please.