Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <string>
- using namespace std;
- HINSTANCE hinstDLL;
- typedef void(*blockXorF)(string&,string);
- typedef void(*teaEncodeF)(string,string,string&);
- typedef void(*teaDecodeF)(string,string,string&);
- typedef void(*md5F)(string&);
- typedef void(*sha512F)(string&);
- typedef void(*fileReadF)(string,string&);
- typedef void(*writeFileF)(string,string);
- typedef void(*rc4EncodeF)(string,string,string&);
- typedef void(*rc4DecodeF)(string,string,string&);
- typedef void(*toBase64F)(string,string&);
- typedef void(*fromBase64F)(string,string&);
- typedef void(*aesFileF)(string,string,string,string);
- // File Cypher
- // Cypher
- blockXorF blockXor(0);
- teaEncodeF teaEncode(0);
- teaDecodeF teaDecode(0);
- rc4EncodeF rc4Encode(0);
- rc4DecodeF rc4Decode(0);
- // Hash
- md5F md5(0);
- sha512F sha512(0);
- // File functions
- fileReadF fileRead(0);
- writeFileF fileWrite(0);
- aesFileF aesFile(0);
- // Base64
- toBase64F toBase64(0);
- fromBase64F fromBase64(0);
- void load()
- {
- hinstDLL = LoadLibrary("adevlib.dll");
- fileRead = (fileReadF)GetProcAddress(hinstDLL,"fileRead");
- fileWrite = (writeFileF)GetProcAddress(hinstDLL,"fileWrite");
- teaEncode = (teaEncodeF)GetProcAddress(hinstDLL,"teaEncode");
- teaDecode = (teaDecodeF)GetProcAddress(hinstDLL,"teaDecode");
- rc4Encode = (rc4EncodeF)GetProcAddress(hinstDLL,"rc4Encode");
- rc4Decode = (rc4DecodeF)GetProcAddress(hinstDLL,"rc4Decode");
- blockXor = (blockXorF)GetProcAddress(hinstDLL,"blockXor");
- aesFile = (aesFileF)GetProcAddress(hinstDLL,"aesFile");
- md5 = (md5F)GetProcAddress(hinstDLL,"md5");
- sha512 = (sha512F)GetProcAddress(hinstDLL,"sha512");
- toBase64 = (toBase64F)GetProcAddress(hinstDLL,"toBase64");
- fromBase64 = (fromBase64F)GetProcAddress(hinstDLL,"fromBase64");
- }
- void breakDLL()
- {
- FreeLibrary(hinstDLL);
- }
Advertisement
Add Comment
Please, Sign In to add comment