CrackMe来源:http://download.csdn.net/detail/betabin/4103045
CrackMe特点:Anti-Debug
破解方法:静态分析,通过GetDlgItemText函数可以得到关键代码附近的代码,然后向上分析得到。有点需要注意的是,printf函数参数顺序eax和ecx不要搞反就没太大问题。至于如何Anti-Anti-Debug,我就直接把首行的跳转到60那边去了。
注册机代码:
#include <stdio.h>
#include <string.h>
int main()
{
char userName[] = "betabin";
unsigned int eax;
unsigned int ebx;
unsigned int ecx = 0;
int len = strlen(userName);
for(int i = 0; i < len; i++)
{
eax = userName[i] << 0x4;
ebx = userName[i] >> 0x5;
eax ^= ebx;
eax += 0x26;
eax ^= ecx;
ecx += eax;
}
eax = 0x0c0def;
eax -= ecx;
eax *= eax;
printf("CM2-%lX-%lX", ecx, eax);
return 0;
}