TROJ_AGENT.GYI


 ALIASES:

Trojan:Win32/Malamiko.A (Microsoft); Trojan.Caiijing (Symantec); PAK:PE_Patch, PAK:UPack, Trojan-GameThief.Win32.Magania.gen, Trojan.Win32.Agent.zg (Kaspersky); Trojan.Win32.Packer.Upack0.3.9 (ep) (Sunbelt); Trojan.Generic.1966436 (FSecure)

 PLATFORM:

Windows 2000, Windows XP, Windows Server 2003

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW


This Trojan arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

  TECHNICAL DETAILS

File Size:

13,140 bytes

File Type:

EXE

Memory Resident:

No

Initial Samples Received Date:

19 Jun 2012

Arrival Details

This Trojan arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

Installation

This Trojan drops the following copies of itself into the affected system:

  • %System%\87F0E433.EXE
  • %System%\87F0E433T.EXE

(Note: %System% is the Windows system folder, which is usually C:\Windows\System on Windows 98 and ME, C:\WINNT\System32 on Windows NT and 2000, or C:\Windows\System32 on Windows XP and Server 2003.)

Other System Modifications

This Trojan deletes the following files:

  • %System%\popwin.exe

(Note: %System% is the Windows system folder, which is usually C:\Windows\System on Windows 98 and ME, C:\WINNT\System32 on Windows NT and 2000, or C:\Windows\System32 on Windows XP and Server 2003.)

It adds the following registry keys:

HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\
Services\87F0E433

It adds the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\87F0E433
Description = "87F0E433"

HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\
Services\87F0E433
Description = "87F0E433"

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\87F0E433
DisplayName = "87F0E433"

HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\
Services\87F0E433
DisplayName = "87F0E433"

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\87F0E433
ErrorControl = "1"

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\87F0E433
ImagePath = "%System%\87F0E433.EXE -service"

HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\
Services\87F0E433
ImagePath = "%System%\87F0E433.EXE -service"

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\87F0E433
ObjectName = "LocalSystem"

HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\
Services\87F0E433
ObjectName = "LocalSystem"

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\87F0E433
Start = "2"

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\87F0E433
Type = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT
ReportBootOk = "1"

It modifies the following registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
PCHealth\ErrorReporting
DoReport = "0"

(Note: The default value data of the said registry entry is 1.)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
PCHealth\ErrorReporting
ShowUI = "0"

(Note: The default value data of the said registry entry is 1.)

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer
FaultCount = "1"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer
FaultTime = "18354"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer
FaultCount = "0"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer
FaultTime = "0"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer
CleanShutdown = "0"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Applets\
SysTray
Services = "1f"

(Note: The default value data of the said registry entry is 1f.)

It deletes the following registry keys:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\ERSvc\Parameters

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\ERSvc\Security

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\ERSvc\Enum

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\ERSvc

HKEY_CURRENT_USER\Software\Microsoft\
IEAK\GroupPolicy\PendingGPOs

Dropping Routine

This Trojan drops the following files:

  • %System%\delme.bat
  • %System%\87F0E433.DLL
  • %System%\upda3tebak2.web
  • %System%\upda2tebak.web
  • %System%\87F0E433.EXE
  • %System%\87F0E433T.EXE

(Note: %System% is the Windows system folder, which is usually C:\Windows\System on Windows 98 and ME, C:\WINNT\System32 on Windows NT and 2000, or C:\Windows\System32 on Windows XP and Server 2003.)

Other Details

This Trojan connects to the following possibly malicious URL:

  • http://popwin.{BLOCKED}3.com/bgupdate.txt
  • http://x.{BLOCKED}x.com/popwin//update.txt

This report is generated via an automated analysis system.

  SOLUTION

Minimum Scan Engine:

9.200

Step 1

For Windows XP and Windows Server 2003 users, before doing any scans, please make sure you disable System Restore to allow full scanning of your computer.

Step 2

Delete this registry key

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Services
    • 87F0E433

Step 3

Delete this registry value

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\87F0E433
    • Description = "87F0E433"
  • In HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Services\87F0E433
    • Description = "87F0E433"
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\87F0E433
    • DisplayName = "87F0E433"
  • In HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Services\87F0E433
    • DisplayName = "87F0E433"
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\87F0E433
    • ErrorControl = "1"
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\87F0E433
    • ImagePath = "%System%\87F0E433.EXE -service"
  • In HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Services\87F0E433
    • ImagePath = "%System%\87F0E433.EXE -service"
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\87F0E433
    • ObjectName = "LocalSystem"
  • In HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Services\87F0E433
    • ObjectName = "LocalSystem"
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\87F0E433
    • Start = "2"
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\87F0E433
    • Type = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT
    • ReportBootOk = "1"

Step 4

Restore this modified registry value

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting
    • From: DoReport = "0"
      To: DoReport = ""1""
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting
    • From: ShowUI = "0"
      To: ShowUI = ""1""
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
    • FaultCount = "1"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
    • FaultTime = "18354"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
    • FaultCount = "0"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
    • FaultTime = "0"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
    • CleanShutdown = "0"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\SysTray
    • From: Services = "1f"
      To: Services = ""1f""

Step 5

Search and delete these files

[ Learn More ]
There may be some component files that are hidden. Please make sure you check the Search Hidden Files and Folders checkbox in the "More advanced options" option to include all hidden files and folders in the search result.
  • %System%\delme.bat
  • %System%\87F0E433.DLL
  • %System%\upda3tebak2.web
  • %System%\upda2tebak.web
  • %System%\87F0E433.EXE
  • %System%\87F0E433T.EXE

Step 6

Scan your computer with your Trend Micro product to delete files detected as TROJ_AGENT.GYI. If the detected files have already been cleaned, deleted, or quarantined by your Trend Micro product, no further step is required. You may opt to simply delete the quarantined files. Please check this Knowledge Base page for more information.

Step 7

Restore this file from backup only Microsoft-related files will be restored. If this malware/grayware also deleted files related to programs that are not from Microsoft, please reinstall those programs on you computer again.

  • %System%\popwin.exe

Step 8

Restore these deleted registry keys/values from backup

*Note: Only Microsoft-related keys/values will be restored. If the malware/grayware also deleted registry keys/values related to programs that are not from Microsoft, please reinstall those programs on your computer.

  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ERSvc
    • Parameters
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ERSvc
    • Security
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ERSvc
    • Enum
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
    • ERSvc
  • In HKEY_CURRENT_USER\Software\Microsoft\IEAK\GroupPolicy
    • PendingGPOs


Did this description help? Tell us how we did.