- UID
- 158
注册时间2005-2-14
阅读权限10
最后登录1970-1-1
周游历练
该用户从未签到
|
发表于 2005-2-15 17:39:04
|
显示全部楼层
ytsnow//4214443872 灌水.哈哈
00401542 |. 8D45 EC lea eax,dword ptr ss:[ebp-14]
00401545 |. 50 push eax
00401546 |. 68 E8030000 push 3E8
0040154B |. 8B8D 40FEFFFF mov ecx,dword ptr ss:[ebp-1C0]
00401551 |. E8 34080000 call <jmp.&MFC42.#3097_CWnd::GetDlgItemTextA> ; 取用户名
00401556 |. 8D4D E8 lea ecx,dword ptr ss:[ebp-18]
00401559 |. 51 push ecx
0040155A |. 68 E9030000 push 3E9
0040155F |. 8B8D 40FEFFFF mov ecx,dword ptr ss:[ebp-1C0]
00401565 |. E8 20080000 call <jmp.&MFC42.#3097_CWnd::GetDlgItemTextA> ; 取假码
0040156A |. 8D4D EC lea ecx,dword ptr ss:[ebp-14]
0040156D |. E8 DE020000 call crackme3.00401850 ; 计算name长度
00401572 |. 8945 E4 mov dword ptr ss:[ebp-1C],eax ; len[name]
00401575 |. 837D E4 05 cmp dword ptr ss:[ebp-1C],5 ; name长度要求大于5
00401579 |. 7D 43 jge short crackme3.004015BE
0040157B |. 6A 40 push 40
0040157D |. 68 20404000 push crackme3.00404020 ; ASCII "CrackMe"
00401582 |. 68 28404000 push crackme3.00404028 ; ASCII "User Name must have at least 5 characters."
00401587 |. 8B8D 40FEFFFF mov ecx,dword ptr ss:[ebp-1C0]
0040158D |. E8 F2070000 call <jmp.&MFC42.#4224_CWnd::MessageBoxA>
00401592 |. C645 FC 01 mov byte ptr ss:[ebp-4],1
00401596 |. 8D4D DC lea ecx,dword ptr ss:[ebp-24]
00401599 |. E8 C2070000 call <jmp.&MFC42.#800_CString::~CString>
0040159E |. C645 FC 00 mov byte ptr ss:[ebp-4],0
004015A2 |. 8D4D E8 lea ecx,dword ptr ss:[ebp-18]
004015A5 |. E8 B6070000 call <jmp.&MFC42.#800_CString::~CString>
004015AA |. C745 FC FFFFFFFF mov dword ptr ss:[ebp-4],-1
004015B1 |. 8D4D EC lea ecx,dword ptr ss:[ebp-14]
004015B4 |. E8 A7070000 call <jmp.&MFC42.#800_CString::~CString>
004015B9 |. E9 F9010000 jmp crackme3.004017B7
004015BE |> C745 E0 00000000 mov dword ptr ss:[ebp-20],0 ; 初始化=0
004015C5 |. EB 09 jmp short crackme3.004015D0
004015C7 |> 8B55 E0 /mov edx,dword ptr ss:[ebp-20]
004015CA |. 83C2 01 |add edx,1 ; i=i+1
004015CD |. 8955 E0 |mov dword ptr ss:[ebp-20],edx
004015D0 |> 8B45 E0 mov eax,dword ptr ss:[ebp-20] ; i 循环变量,0开始
004015D3 |. 3B45 E4 |cmp eax,dword ptr ss:[ebp-1C] ; 循环条件
004015D6 |. 7D 42 |jge short crackme3.0040161A
004015D8 |. 8B4D E0 |mov ecx,dword ptr ss:[ebp-20]
004015DB |. 51 |push ecx ; /Arg1
004015DC |. 8D4D EC |lea ecx,dword ptr ss:[ebp-14] ; |
004015DF |. E8 1C030000 |call crackme3.00401900 ; \顺次取name的ascii
004015E4 |. 0FBED0 |movsx edx,al ; n1,n2,...
004015E7 |. 8B45 F0 |mov eax,dword ptr ss:[ebp-10] ; 0x81276345-->eax(第1次循环) ;result-->eax(第2次循环);...
004015EA |. 03C2 |add eax,edx ; temp1=eax+n1;eax+n2;...
004015EC |. 8945 F0 |mov dword ptr ss:[ebp-10],eax ; save temp1
004015EF |. 8B4D E0 |mov ecx,dword ptr ss:[ebp-20] ; i
004015F2 |. C1E1 08 |shl ecx,8 ; i>>8即 * 2^8
004015F5 |. 8B55 F0 |mov edx,dword ptr ss:[ebp-10]
004015F8 |. 33D1 |xor edx,ecx ; temp2=temp1 xor (i>>8)
004015FA |. 8955 F0 |mov dword ptr ss:[ebp-10],edx ; save temp2
004015FD |. 8B45 E0 |mov eax,dword ptr ss:[ebp-20] ; i
00401600 |. 83C0 01 |add eax,1 ; x=i+1
00401603 |. 8B4D E4 |mov ecx,dword ptr ss:[ebp-1C] ; len[name]
00401606 |. 0FAF4D E0 |imul ecx,dword ptr ss:[ebp-20] ; y=len[name]*i
0040160A |. F7D1 |not ecx ; !y
0040160C |. 0FAFC1 |imul eax,ecx ; z=x*y
0040160F |. 8B55 F0 |mov edx,dword ptr ss:[ebp-10] ;
00401612 |. 0FAFD0 |imul edx,eax ; result=temp2*z
00401615 |. 8955 F0 |mov dword ptr ss:[ebp-10],edx ; save result
00401618 |.^ EB AD \jmp short crackme3.004015C7
0040161A |> 8B45 F0 mov eax,dword ptr ss:[ebp-10]
0040161D |. 50 push eax
0040161E |. 68 54404000 push crackme3.00404054 ; ASCII "%lu"
00401623 |. 8D4D DC lea ecx,dword ptr ss:[ebp-24]
00401626 |. 51 push ecx
00401627 |. E8 52070000 call <jmp.&MFC42.#2818_CString::Format> ; 无符号数输出
0040162C |. 83C4 0C add esp,0C
0040162F |. 8D4D DC lea ecx,dword ptr ss:[ebp-24]
00401632 |. E8 79020000 call crackme3.004018B0
00401637 |. 50 push eax ; /真码
00401638 |. 8D4D E8 lea ecx,dword ptr ss:[ebp-18] ; |
0040163B |. E8 80020000 call crackme3.004018C0 ; \比较
00401640 |. 85C0 test eax,eax
00401642 |. 0F85 FF000000 jnz crackme3.00401747 //关键跳
[ Last edited by ytsnow on 2005-2-15 at 06:00 PM ] |
|