Pop-up ads that appear out of nowhere, a search engine that changes by itself, unfamiliar toolbars and unexplained slowdowns usually do not come from a single file. They are the combined result of malware, adware and unnecessary programs running in the background.
On Windows 11 and Windows 10 you do not need to buy extra software for this job: Windows Security can run both a normal scan and an offline scan that works before Windows loads.
The order below moves from easy to harder: first update the protection definitions and scan, then clean up browser extensions, startup apps and installed programs.