Address Crypter :
Code:
#include <windows.h>
#include <stdio.h>
//========================================//
//===========[ Adress crypter ]===========//
//==============[ Coded by ]==============//
//==============[ ~AeroMan ]==============//
//==============[ ~ N4N033 ]==============//
//========================================//
class _xCrypt
{
public:
DWORD *_xAdress_encryption(DWORD _xAdress, int _xCryption_size);
DWORD *_xAdress_decryption(DWORD _xAdress, int _xCryption_size);
DWORD *_xSize_encryption(DWORD value);
DWORD *_xSize_decryption(DWORD value);
};_xCrypt*_xCrypter;
DWORD *_xCrypt::_xAdress_decryption(DWORD _xAdress, int _xCryption_size)
{
int _xVal_1 = 7; //Our first substraction value
int _xVal_2 = 2; //Our second substraction value
_xAdress = (_xAdress / _xVal_1 / _xVal_2 /_xCryption_size); //Current adress - Value 1 - Value 2 - Cryption size
return (DWORD*)_xAdress; //We return the recalculated value
}
DWORD *_xCrypt::_xAdress_encryption(DWORD _xAdress, int _xCryption_size)
{
int _xVal_1 = 7; //Our first value to add
int _xVal_2 = 2; //Our second value to add
_xAdress = (_xAdress * _xVal_1 * _xVal_2 *_xCryption_size); //Current adress * Value 1 * Value 2 * Cryption size
return (DWORD*)_xAdress; //We return the recalculated value
}
DWORD *_xCrypt::_xSize_encryption(DWORD value)
{
//Max value of 5
switch(value) //Switch the value to the case
{
case 0: value = 0x3C; break; //60
case 1: value = 0x47; break; //71
case 2: value = 0x53; break; //83
case 3: value = 0x5E; break; //94
case 4: value = 0x6A; break; //106
case 5: value = 0x164; break; //356
}
return (DWORD*)value;
}
DWORD *_xCrypt::_xSize_decryption(DWORD value)
{
//Max value of 5
switch(value) //Switch the value to the case
{
case 0x3C: value = 0; break; //60
case 0x47: value = 1; break; //71
case 0x53: value = 2; break; //83
case 0x5E: value = 3; break; //94
case 0x6A: value = 4; break; //106
case 0x164: value = 5; break; //356
}
return (DWORD*)value;
}
Keep Credits If You Use It !
( Credits To AeroMan & Me ! )