Exeinfo PE查壳,发现没有壳,发现是VC++程序
字符串搜索引擎位置,字符串搜索位置,分析代码
总结:
6个字节的情况是这样,超过6个字节的话第3步经历循环
1,每个ASCII xor 字符串长度
2,前三个字节与 T(54) M(4D) G(47) 分别xor
3,后三个的ASCII与前三个ASCII分别xor放到后三个字节中
4,xor后的前三个字节必须是 0x4b 0x34 0x4e
5,xor后三个字节中必须有一个是0x20 0x20后面的就是你显示到exe上的名字
KeyGen:
#include <iostream>
#include <time.h>
using namespace std;
int main()
{
unsigned int nEax = 0x2A8BF4;
srand((unsigned)time(NULL));//选取种子文件
unsigned int ctemp1;
unsigned int ctemp2;
unsigned int ctemp3;
while (1)
{
ctemp1 = rand() % 256;
ctemp2 = rand() % 256;
ctemp3 = rand() % 256;
if (ctemp1 * ctemp2 * ctemp3 == nEax)
{
printf("0x%x 0x%x 0x%x \n", ctemp1, ctemp2, ctemp3);
printf("0x%x ", ctemp1 ^ 0x1e ^ 0x54 ^ 3);
printf("0x%x ", ctemp2 ^ 0xbf ^ 0x4d ^ 3);
printf("0x%x ", ctemp3 ^ 0xa2 ^ 0x47 ^ 3);
//printf("0x%x\r\n", ctemp1 ^ 0x1e ^ 0x20 ^ 3);
getchar();
}
}
return 0;
}