đŸ’Ÿ Archived View for gemini.ctrl-c.club â€ș ~ssb22 â€ș rising.gmi captured on 2024-03-21 at 15:26:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

âŹ…ïž Previous capture (2022-07-16)

-=-=-=-=-=-=-

Manually removing Windows “adware” with race conditions

Every so often I am asked by a local Chinese family to “fix” an old Windows computer that is displaying unwanted Chinese-language advertisements. Usually one family member has used the computer for games or other entertainment that installed the advertiser’s software, and other family members are annoyed by it. I hope the advertisers won’t hold a grudge against me for posting removal instructions: it’s actually better for their reputation if the instructions exist. (Perhaps they already exist somewhere in Chinese but my Chinese skills weren’t good enough to find them.)

The best “removal” is to replace Windows with a good installation of GNU/Linux or similar, but I’m usually asked not to do that. The off-the-shelf “adware removal” products of the English-speaking world are rarely helpful; I don’t know if other Chinese products would help, but it’s usually possible to do it manually as follows.

While well-behaved Windows programs usually have working uninstallers, advertisement software is usually designed to be difficult to remove. In some cases you can remove things as follows:

1. Enter “Safe mode” (F8 or Fn-F8 on boot)

2. Search the registry for offending registry names e.g. Babylon, BrowserDefender, BitGuard, PerformerSoft PC Performer (I’m listing these because I have seen malware operating under those names; no offense meant to any bona-fide software that shares a name with it)

3. Check all startup folders and the registry. In the registry, remember to check:

4. Remember to also check for old-fashioned autoexec, autostart and INI files, and watch out for malware that replaces your folders with EXEs disguised with folder icons

but sometimes “Safe mode” is unavailable or this approach is otherwise compromised.

If you are able to reboot into a Linux or other rescue system that has reliable read/write access to the filesystem then you can often simply remove the errant files (the list of running programs in Task Manager, invoked by pressing Ctrl-Shift-Escape, might help to identify them before the reboot as long as Task Manager itself has not been tampered with), but if rebooting to a rescue environment is not an option then deleting the files might not be possible as Windows (unlike Linux etc) does not allow deletions of programs that are still running. You could try to stop them from the Task Manager, but some might have “tricks” such as running several processes that automatically restart each other whenever one is terminated, and/or having a process run as a Windows system service set to restart on any failure. An example of a self-restarting service is RsMgrSvc.exe, allegedly by an anti-virus company called Rising (瑞星 RuĂŹxÄ«ng) but one version of it launches persistent desktop tray advertisements and apparently has no uninstaller.

You could attempt to remove a program’s method of “hooking in” to the system at startup (usually via the registry, although not always in the well-known Run sections: there’s a host of other places in the registry where startup programs can hide, some of which are listed above; you could try searching the registry for the executable’s name, but note that any finds in MSConfig merely indicate a previous failed attempt at removal using the msconfig tool). Any registry changes you make are likely to fail with aggressive software that monitors the registry for changes, undoing what you did; sometimes you can see the undo has taken place by pressing F5 to refresh the registry view after removing something.

Sometimes the only way to fix a running system, if rebooting into a suitable rescue system is not an option, is to exploit a race condition in the aggressive software’s defence mechanisms. The easiest one to exploit is usually the very short delay before a process restarts itself after Task Manager has terminated it. If you manage to delete its program file in that brief moment, it will not restart (until some other process downloads it again: advertising that automatically re-downloads its missing parts is possible, so it can help to disconnect the network while working on this). After deleting all the files you can without terminating the processes, you can select the remaining files for deletion, then terminate whatever process is interfering, then quickly switch back and finish the delete before that process is re-launched. It might take several attempts for this to work, as it depends on the timing.

Rescue system

If you are able to boot into a Linux (or other) rescue system that is able to gain read/write access to the Windows system files, then removing unwanted programs can be considerably easier.

There are small, NTFS-capable distributions of Linux that can easily fit in the spare space of most USB “sticks” that are carried around for other purposes, to save you from having to carry an extra item if you never know when you might need it.

Try “UNetbootin” to set up the USB stick from within Linux/Mac/Windows.

Many computers can boot from USB if you press a certain key during startup: try Escape or F12.

The obstacles are usually:

Legal

I hope the above pointers are useful, but I am not legally responsible for any consequences. (If you do manage to completely “trash” the system, may I suggest choosing something other than Windows next time, or if you do re-install Windows then at least warn all users about the dangers of indiscriminate downloading.) All material © Silas S. Brown unless otherwise stated. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Mac is a trademark of Apple Inc. Microsoft is a registered trademark of Microsoft Corp. Windows is a registered trademark of Microsoft Corp. Any other trademarks I mentioned without realising are trademarks of their respective holders.