Library
My library

+ Add to library

Contact us
24/7 Tech support | Rules regarding submitting

Send a message

Your tickets

Profile

Trojan.Belonard.5

Added to the Dr.Web virus database: 2019-01-19

Virus description added:

Packer: VMProtect

Dates of compilation and SHA1 hashes:

  • 15879cfa3e5e4463ef15df477ba1717015652497 - 07.08.2017 00:47:36
  • 4b4da2c0a992d5f7884df6ea9cc0094976c1b4b3 - 28.12.2017 21:37:02
  • 6813cca586ea1c26cd7e7310985b4b570b920803 - 21.10.2018 11:25:07

Description

Trojan.Belonard.5 is part of the Belonard trojan. The original name is fiveseven_reload_clipin_sliderelease.dll. This library has three exported functions: "CreateInstance", "xW” and "yW". Trojan.Belonard.5 can be created by files Mssv36.asi (Trojan.Belonard.10) and Mssv16.asi (Trojan.Belonard.3). The trojan runs Mssv16.asi via rundll32: It downloads and runs Mssv16.asi (Trojan.Belonard.3).

Operating routine

Trojan.Belonard.5 receives information about the running process and paths to the module in DllMain. If the process name is not rundll32.exe, it starts a separate thread for subsequent actions.

In the running thread, Trojan.Belonard.5 creates the key [HKCU\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers] '<path to the executable file process>', assigns it the value “RUNASADMIN”, and checks the module name. If the name matches “Mssv24.asi”, it calls its exported function “y”; if not, it copies itself into the Mssv24.asi file and runs the exported function "x” of that file, passing a path to the current module as a parameter. After that, it runs the exported function “y”, passing to it the path to the Mssv24.asi file.

In the “yW” exported function the library decrypts the address of the C&C server, fuztxhus.valve-ms[.]ru.

Decryption algorithm:


def decrypt(data):
    s = 'f'
    for i in range(0,len(data)-1):
            s += chr((ord(s[i]) + ord(data[i]))&0xff)
    print s

The algorithm was changed in later versions of the trojan, but the C&C server’s address remains the same.

New decryption algorithm:


def decrypt(d):
    s = ''
    c = ord(d[0])
    for i in range(len(d)-1):
        c = (ord(d[i+1]) + 0xe3*ord(d[i])-0x0d*(c+4)) & 0xff
        s += chr(c)
    return s

The trojan then checks if the Wow64 process is running. Based on the check results, it chooses either the 28821 or 28822 port and connects to the server to receive an executable file. The first DWORD in the buffer indicates the size of the executable MZPE file. The trojan then saves the MZPE file in the Mssv16.asi (Trojan.Belonard.3) and changes the created/modified/accessed dates of the file to the same date of one of the components: Mssv12.asi, Mssv29.asi, Mss32.dll, hl.exe.

The trojan runs Mssv16.asi via rundll32:

rundll32.exe 0 "Mssv16.asi",x

In its exported function, “xW” receives a path as an argument, and then deletes the file located in that path.

In its exported function, “CreateInstsance” returns 1.

Curing recommendations

  1. If the operating system (OS) can be loaded (either normally or in safe mode), download Dr.Web Security Space and run a full scan of your computer and removable media you use. More about Dr.Web Security Space.
  2. If you cannot boot the OS, change the BIOS settings to boot your system from a CD or USB drive. Download the image of the emergency system repair disk Dr.Web® LiveDisk , mount it on a USB drive or burn it to a CD/DVD. After booting up with this media, run a full scan and cure all the detected threats.
Download Dr.Web

Download by serial number

Use Dr.Web Anti-virus for macOS to run a full scan of your Mac.

After booting up, run a full scan of all disk partitions with Dr.Web Anti-virus for Linux.

Download Dr.Web

Download by serial number

  1. If the mobile device is operating normally, download and install Dr.Web for Android. Run a full system scan and follow recommendations to neutralize the detected threats.
  2. If the mobile device has been locked by Android.Locker ransomware (the message on the screen tells you that you have broken some law or demands a set ransom amount; or you will see some other announcement that prevents you from using the handheld normally), do the following:
    • Load your smartphone or tablet in the safe mode (depending on the operating system version and specifications of the particular mobile device involved, this procedure can be performed in various ways; seek clarification from the user guide that was shipped with the device, or contact its manufacturer);
    • Once you have activated safe mode, install the Dr.Web for Android onto the infected handheld and run a full scan of the system; follow the steps recommended for neutralizing the threats that have been detected;
    • Switch off your device and turn it on as normal.

Find out more about Dr.Web for Android