Advertisement
Riremito

aaaasdfff

Aug 20th, 2016
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<Windows.h>
  2. #include<stdio.h>
  3.  
  4. void GetAllItemList(){
  5.     int i;
  6.     DWORD GetAddr;
  7.     FILE *fp;
  8.  
  9.     fp = fopen("ItemList.txt", "a");
  10.  
  11.     for(i=0; i<9999999; i++){
  12.  
  13.         GetAddr = 0;
  14.  
  15.         _asm{
  16.             mov ebx,0x006D0550
  17.             lea eax,[GetAddr]
  18.             push [i]
  19.             push eax
  20.             mov ecx,0x014716A0
  21.             mov ecx,[ecx]
  22.             call ebx
  23.         }
  24.  
  25.         if(*(BYTE *)GetAddr != 0x00){
  26.             fprintf(fp, "%d:%s\n", i, (char *)GetAddr);
  27.         }
  28.  
  29.     }
  30.  
  31.     fclose(fp);
  32.     MessageBoxA(NULL, "END", "ItemList", NULL);
  33.  
  34. }
  35.  
  36. BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved){
  37.  
  38.     if(fdwReason != DLL_PROCESS_ATTACH){return FALSE;}
  39.  
  40.     CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)GetAllItemList, NULL, NULL, NULL);
  41.     return TRUE;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement