Discovered: April 5, 2002
Updated: February 13, 2007 12:00:23 PM
Type: Trojan Horse
Remove the changes that the Trojan made to the registry, restart the computer in Safe mode, and then delete the files \Windows\System\Diagcfg.exe and \Windows\System\Msiesmtp.dll. Detailed instructions follow.
NOTE: If the Trojan has executed, you
must do the following:
- You must modify the registry before removing Diagcfg.exe because .exe and .com files will look for this file in order to run.
- You must make of copy of Regedit.exe as Regedit.com before you can run the Registry Editor.
Remove the changes that the Trojan made to the registry
Copy Regedit.exe to Regedit.com
Because the Trojan modified the registry so that you cannot run .exe files, you must first make a copy of the Registry Editor as a file with the .com extension and then run that.
- Do one of the following, depending on which version of Windows you are running:
- Windows 95/98 users: Click Start, point to Programs, and click MS-DOS Prompt.
- Windows Me users: Click Start, point to Programs, point to Accessories, and then click MS-DOS Prompt.
- Windows NT/2000/XP users:
- Click Start, and click Run.
- Type the following and then press Enter:
command
A DOS window opens.
- Type the following and then press Enter:
cd \winnt
- Go on to the next step.
- Type the following, and then press Enter:
copy regedit.exe regedit.com
- Type the following, and then press Enter:
start regedit.com
NOTE: The Registry Editor opens in front of the DOS window. After you finish editing the registry and close Registry Editor, close the DOS window.
- Proceed to the following section Edit the registry, and remove keys and changes that the Trojan made only after you have accomplished the previous steps.
Edit the registry, and remove keys and changes that the Trojan made
CAUTION: We strongly recommend that you back up the registry before you make any changes to it. Incorrect changes to the registry can result in permanent data loss or corrupted files. Modify only the keys that are specified. Read the document
How to make a backup of the Windows registry for instructions.
- Click Start, and click Run. The Run dialog box appears.
- Type regedit and then click OK. The Registry Editor opens.
- Navigate to and select the following key:
HKEY_CLASSES_ROOT\exefile\shell\open\command
CAUTION: The HKEY_CLASSES_ROOT key contains many subkey entries that refer to other file extensions. One of these file extensions is .exe. Changing this extension can prevent any files ending with an .exe extension from running. Make sure you browse all the way along this path until you reach the \command subkey.
Do not modify the HKEY_CLASSES_ROOT\.exe key.
Do modify the HKEY_CLASSES_ROOT\exefile\shell\open\command subkey that is shown in the following figure:
<<=== NOTE: This is the key that you need to modify.
- Double-click the (Default) value in the right pane.
- Delete the current value data, and then type: "%1" %* (That is, type the following characters: quote-percent-one-quote-space-percent-asterisk.)
NOTE: On computers that run Windows 9x and Windows NT, the Registry Editor will automatically enclose the value within quotation marks. When you click OK, the (Default) value should look exactly like this: ""%1" %*" On Windows 2000/XP-based systems, the additional quotation marks will not appear. On Windows 2000/XP-based systems, the (Default) value should look exactly like this: "%1" %*
- Make sure you that completely delete all value data in the command key prior to typing the correct data. If you accidentally leave a space at the beginning of the entry, any attempt to run program files will result in the error message, "Windows cannot find .exe." or "Cannot locate C:\ <path and file name>."
- Repeat this procedure to for these keys:
HKEY_CLASSES_ROOT\comfile\shell\open\command
HKEY_LOCAL_MACHINE\Software\classes\comfile\shell\open\command
KEY_LOCAL_MACHINE\Software\classes\exefile\shell\open\command
- Navigate to the key
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices
- In the right pane, double-click (Default) and delete the contents so that the line is empty.
- In the left pane, delete the DiagnosticConfiguration subkey.
Restart the computer in Safe mode
All Windows 32-bit operating systems except Windows NT can be restarted in Safe mode. Read the document for your operating system.
Remove the Trojan
Use Windows Explorer to delete the files \Windows\System\Diagcfg.exe and \Windows\System\Msiesmtp.dll. Restart the computer, and run a full system scan.
Writeup By: Maryl Magee