I'm Trying to make a "builder" for my crypter.
But i have a problem that with hours of googleing msnding i cannot solve...
When i add a resource to my dropped stub the droped file ends up smaller insize (and doesnt work).
(im adding not replacesing as the number of resources im going 2 need is unknow at the time of compiling my stub as i have to split the payload into maybe resources so its not detected.)
The code im using is below.
i put it into a method to try and isolate the problem but i with no luck.Code:BOOL addResource(char* szFileName, LPBYTE lpData, DWORD dwSize, int id) { HANDLE hUpdateRes = BeginUpdateResource(szFileName, FALSE); if (hUpdateRes == NULL) { MessageBox(NULL,"BeginUpdateResource()","ERROR",MB_OK); return FALSE; } BOOL result = UpdateResource( hUpdateRes, RT_RCDATA, MAKEINTRESOURCE(id), MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), (LPVOID)lpData, dwSize ); if (!result) { MessageBox(NULL,"UpdateResource()","ERROR",MB_OK); EndUpdateResource(hUpdateRes, TRUE); return FALSE; } if(EndUpdateResource(hUpdateRes, FALSE)) { return TRUE; } return FALSE; }
Am i doing it wrong? i have tryed to look at sources for builders (only finding cryptic) and could not find a solution...
Thanks in advance, DigitalNemeis


LinkBack URL
About LinkBacks
Reply With Quote
can any one help me 