Virus.WIn9x.Smash.10262 is a memory resident parasitic virus on Microsoft Windows.
The virus uses Win9x specific functions (VxD calls) and is not able to spread under NT-based systems. The virus affects PE and EXE files by writing to the end of the file, however the virus pays no attention to filename extension, and as a result it infects any Windows PE file: executable files, DLL libraries, screen-savers (SCR), etc.
To make detection and disinfection of infected files more difficult, the virus uses a polymorphic engine that hides the virus code by using a mutating decryption loop. The virus also uses a "blocks-mixing" structure (a similar method was used in the DOS virus "Badboy"). The virus code and data are divided into about 60 blocks (installation, infection, payload routines, etc.). When the virus infects the next file, it mixes these blocks in a random order and links them with a special table. As a result, the virus structure is different in each file infected.
When the virus code is prepared for writing to a victim file (blocks are mixed, encrypted and "covered" by a polymorphic "envelope"), the virus creates a new section at the end of the file, to which it writes its code and changes necessary fields in the .pe header (including the program's start-up address field in order to gain control at the moment an infected file is executed). The name of the virus section in the file is randomly generated.
Memory residence and stealth functionsEdit
The virus installs itself into the Windows memory and stays resident until the Windows session ends. To do this, the virus uses a programming trick to switch its process from application to kernel mode (Ring3 -> Ring0). Then it allocates a block of kernel memory, hooks into the file search, accesses Windows kernel functions (IFS API) and stays in Windows memory as a VxD driver.
When disk files are being searched or opened, the virus' hooker takes control and runs its infection and stealth routines. The stealth routine makes it very difficult to detect a virus when it is active.
The virus has a very dangerous payload routine that is activated on July 14th - the virus overwrites the C:\IO.SYS file with a trojan code and displays a BSoD message:
Virus Warning! Your computer has been infected by a virus. Virus name is 'SMASH', project D version 0x0A. Created and compiled by Domitor. Seems like your bad dream comes true...
The virus then reboots the computer. While rebooting the affected IO.sys file is loaded and executed, trojan code takes control, displays the text "Formatting hard disk..." and then erases data on the first hard drive.