Trojan.Gema.B - Removal

Risk Level 1: Very Low

Printer Friendly Page

Discovered: May 25, 2004
Updated: February 13, 2007 12:23:11 PM
Also Known As: Downloader.Crypter.E [GRISoft], TrojanDownloader.Win32.Crypter, Trojan.Crypter.C [SOFTWIN], Trojan.DownLoader.36864 [Dialo, W32/Crypter.A [Frisk Software], SysCenter [McAffee], Trojan.Downloader.Win32.Crypte, Win32/TrojanDownloader.Crypter, Troj/Crypter-C [Sophos], TrojanDownloader.Crypter [Viru
Type: Trojan Horse
Systems Affected: Windows 2000, Windows 95, Windows 98, Windows Me, Windows NT, Windows Server 2003, Windows XP


The following instructions pertain to all current and recent Symantec antivirus products, including the Symantec AntiVirus and Norton AntiVirus product lines.


Before you begin: Read all the instructions before you start the removal, and follow them exactly in the order shown below. Do not skip any steps. We recommend printing a copy for reference.
  1. Disable System Restore (Windows Me/XP).
  2. Update the virus definitions.
  3. Restart the computer in Safe mode or VGA mode.
  4. Run a full system scan and write down the file names of any files detected as Trojan.Gema.B.
  5. Reverse the changes that the Trojan made to the Win.ini file. (Windows 95/98/Me).
  6. Reverse the changes that the Trojan made to the registry and restart the computer.
  7. Run a full system scan and delete all the files detected as Trojan.Gema.B.
For specific details on each of these steps, read the following instructions.

1. Disabling System Restore (Windows Me/XP)
If you are running Windows Me or Windows XP, we recommend that you temporarily turn off System Restore. Windows Me/XP uses this feature, which is enabled by default, to restore the files on your computer in case they become damaged. If a virus, worm, or Trojan infects a computer, System Restore may back up the virus, worm, or Trojan on the computer.

Windows prevents outside programs, including antivirus programs, from modifying System Restore. Therefore, antivirus programs or tools cannot remove threats in the System Restore folder. As a result, System Restore has the potential of restoring an infected file on your computer, even after you have cleaned the infected files from all the other locations.

Also, a virus scan may detect a threat in the System Restore folder even though you have removed the threat.

For instructions on how to turn off System Restore, read your Windows documentation, or one of the following articles:
Note: When you are completely finished with the removal procedure and are satisfied that the threat has been removed, re-enable System Restore by following the instructions in the aforementioned documents.

For additional information, and an alternative to disabling Windows Me System Restore, see the Microsoft Knowledge Base article, "Antivirus Tools Cannot Clean Infected Files in the _Restore Folder," Article ID: Q263455.

2. Updating the virus definitions
Symantec Security Response fully tests all the virus definitions for quality assurance before they are posted to our servers. There are two ways to obtain the most recent virus definitions:
  • Running LiveUpdate, which is the easiest way to obtain virus definitions: These virus definitions are posted to the LiveUpdate servers once each week (usually on Wednesdays), unless there is a major virus outbreak. To determine whether definitions for this threat are available by LiveUpdate, refer to the Virus Definitions (LiveUpdate).
  • Downloading the definitions using the Intelligent Updater: The Intelligent Updater virus definitions are posted on U.S. business days (Monday through Friday). You should download the definitions from the Symantec Security Response Web site and manually install them. To determine whether definitions for this threat are available by the Intelligent Updater, refer to the Virus Definitions (Intelligent Updater).

    The Intelligent Updater virus definitions are available: Read "How to update virus definition files using the Intelligent Updater" for detailed instructions.

3. Restarting the computer in Safe mode or VGA mode
Shut down the computer and turn off the power. Wait for at least 30 seconds, and then restart the computer in Safe mode or VGA mode.
  • For Windows 95, 98, Me, 2000, or XP users, restart the computer in Safe mode. For instructions, read the document, "How to start the computer in Safe Mode."
  • For Windows NT 4 users, restart the computer in VGA mode.

4. Scanning for and write down the file name of the infected files
  1. Start your Symantec antivirus program and make sure that it is configured to scan all the files.
  2. Run a full system scan.
  3. If any files are detected as infected with Trojan.Gema.B, write down the path and file names. Do not attempt to delete the files at this time.

5. Reversing the changes that the Trojan made to the Win.ini file
This step is necessary only if you are running Windows 95/98/Me.
  1. The function you perform depends on your operating system:
    • Windows 95/98: Go to step B.
    • Windows Me: If you are running Windows Me, the Windows Me file-protection process may have made a backup copy of the Win.ini file that you need to edit. If this backup copy exists, it will be in the C:\Windows\Recent folder. Symantec recommends that you delete this file before continuing with the steps in this section. To do this:
      1. Start Windows Explorer.
      2. Browse to and select the C:\Windows\Recent folder.
      3. In the right pane, select the Win.ini file and delete it. The Win.ini file will be regenerated when you save your changes to it in step F.
  2. Click Start, and then click Run.
  3. Type the following, and then click OK.

    edit c:\windows\win.ini

    (The MS-DOS Editor opens.)

    Note: If Windows is installed in a different location, make the appropriate path substitution.
  4. In the [windows] section of the file, look for a line similar to:

    RUN=%System%\<randomly generated name>.exe

    where <randomly generated name> refers to the path and file name of the file that was detected as the Trojan in step 4c.
  5. If this line exists, delete everything to the right of run=.
  6. Click File, and then click Save.
  7. Click File, and then click Exit.


6. Reversing the changes that the Trojan made to the registry

WARNING: Symantec strongly recommends that you back up the registry before making any changes to it. Incorrect changes to the registry can result in permanent data loss or corrupted files. Modify the specified keys only. Read the document, "How to make a backup of the Windows registry," for instructions.
  1. Click Start, and then click Run. (The Run dialog box appears.)
  2. Type:

    regedit


    Then click OK. (The Registry Editor opens.)
  3. Navigate to the key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  4. In the right pane, if it exists, delete the value:

    "<randomly generated name>"="%System%\<randomly generated name>.exe"

    where <randomly generated name> refers to the path and file name of the file that was detected as the Trojan in step 4 c.
  5. Do one of the following:
    • If you are running Windows 95/98/Me, skip to step f.
    • If you are running Windows NT/2000/XP, do the following:
      1. Navigate to the key:

        HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
      2. In the right pane, delete the value:

        "RUN"="%System%\<randomly generated name>.exe"
      3. Go on to step f.
  6. Navigate to and select the key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\
    Uninstall

  7. In the left pane, locate and delete the subkey that refers to the file that was detected as the Trojan in step 4c.
  8. Exit the Registry Editor.
  9. Restart the computer.

7. Scanning for and deleting the infected files
  1. Start your Symantec antivirus program and make sure that it is configured to scan all the files.
  2. Run a full system scan.
  3. If any files are detected as infected with Trojan.Gema.B, click Delete.
  4. If they exist, use Windows Explorer to manually delete these files:
    • C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys\<a hexadecimal file name>
    • C:\Documents and Settings\Administrator\Local Settings\Temp\<randomly generated name>

    Writeup By: Hyun Choi
    Search by name
    Example: W32.Beagle.AG@mm
    Windows 7
    Windows Vista Security