Credits:
Umo
NEVER INCLUDE A DLL AGAIN!!!!!
VS2005
Attached is the source to load any dll into memory. I made an example of how to appear "DLL-less" (lul)
Process:
1st run (commented out code)
Read dll file (test.dll)
Write contents to log file (in bytes - you can change it to make the output file shorter)
-----------------------------------------------------------------------------------------
copy output to your source - it is already formatted in c for you

----- above steps have been done for you already/commented out -----
2nd run
Write DLL file to drive
Load DLL to memory
Delete DLL file
Load DLL functions
Call DLL functions
Unload
note: the files would appear never to exist if you take out the pauses
I'm sure there are plenty of uses for this

be creative.
-Yes, you can hide other things with this but just cant delete it until you are finished with it.
Also, I hope it works for you. Some have said they can't. If you can't, you can just compile it. :P
DLLDump 1.1 - Converts your DLL to a C code byte buffer.
http://www.ucdownloads.com/downloads...o=file&id=2027
ss:
http://img227.imageshack.us/img227/7580/dlldumplz2.png
http://img170.imageshack.us/img170/3314/dlldump2xx5.png
source + exe
http://www.ucdownloads.com/downloads...o=file&id=2021 NOTICE: MODIFIED SOURCE BELOW WHERE YOU DON'T HAVE TO WRITE THE DLL TO THE DISK
modified source:
Code:
//part 2: we copy the output to the file stdafx.h so you wont have all that mess here
//now let's make our temp dll
HMEMORYMODULE TempDll = MemoryLoadLibrary(&byteDLLcontents);
if(TempDll == NULL)
{
printf("ERROR: DLL not loaded. Most likely corrupt buffer data.\n");
system("PAUSE");
return 1;
}
//lets define some functions
add = (funct)GetProcAddressMemory(TempDll, "addNumbers");
subtract = (funct)GetProcAddressMemory(TempDll, "subtractNumbers");
//let's test :D
printf("5 + 3 = %i\n", add(5,3));
printf("5 - 3 = %i\n", subtract(5,3));
UnloadFromMemory(TempDll);
system("PAUSE");
return 0;
}