Guest User

Untitled

a guest
Aug 11th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Declare Function CallAsm Lib "user32" Alias "CallWindowProcA" (ByRef lpBytes As Any, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
  2.  
  3.  
  4.  
  5. Private Sub Command1_Click()
  6. msgbox MUL(12)
  7. End Sub
  8.  
  9.  
  10. Function MUL(x As Long) As Long
  11.     Dim o() As Byte
  12.     Dim sl As String
  13.     sl = "8B 45 0C F7 E0 C2 10 00"
  14.     o() = mb(sl)
  15.     MUL = CallAsm(o(0), x, 0, 0, 0)
  16. End Function
  17.  
  18. Function mb(x As String) As Byte()
  19.     Dim tmp() As String
  20.     Dim fx() As Byte
  21.     Dim i As Long
  22.     tmp = Split(x, " ")
  23.     ReDim fx(UBound(tmp))
  24.     For i = 0 To UBound(tmp)
  25.         fx(i) = CInt("&h" & tmp(i))
  26.     Next
  27.     mb = fx()
  28. End Function
Add Comment
Please, Sign In to add comment