|
没想到刚要写就黄了
加密部门
void CCsuanfaDlg::jiami(DWORD qian8,DWORD hou8)
{
DWORD a,b,c;
esi=0;
for(int i=16;i!=0;i--)
{
a=qian8+esi; //EDX+ESI
b=a^0x5073425d;
a=qian8*16;
b+=a;
a=qian8/32;
a+=0x7c7f7e59;
c=a^b;
hou8+=c;
esi-=0x61c88647;
a=esi+hou8;
b=a^0x384b3a45;
a=hou8*16;
b+=a;
a=hou8/32;
a+=0x74477641;
c=b^a;
qian8+=c;
}
edx=qian8;
ecx=hou8;
}
解密部门
void CCsuanfaDlg::jiemi(DWORD qian8,DWORD hou8)
{
DWORD a,b,c;
for(int i=16;i!=0;i--)
{
a=esi+hou8;
b=a^0x384b3a45;
a=hou8*16;
b+=a;
a=hou8/32;
a+=0x74477641;
c=b^a;
qian8=qian8-c;
esi+=0x61c88647;
a=qian8+esi;
b=a^0x5073425d;
a=qian8*16;
b+=a;
a=qian8/32;
a+=0x7c7f7e59;
c=a^b;
hou8=hou8-c;
}
edx=qian8;
ecx=hou8;
} |
上一篇:传奇怎么添加带上装备杀怪涨经验升级功能下一篇:2003传奇服务器安全配置,防木马权限设置IIS
|