1. OLLDBG載入,查找出錯信息,直接進入
009957C5 |. B8 3C589900 mov eax, 0099583C ; ASCII "Invalid RockWorks unlocking code."
2.向上找兩個CALL,F7跟入,不久就看到以下代碼,即爲加密過程,以下已註釋
0099532D |. /7E 23 jle short 00995352
0099532F |. |BA 01000000 mov edx, 1
00995334 |> |8B4D FC /mov ecx, dword ptr [ebp-4] ; dword ptr [ebp-4],便是機器碼
00995337 |. |4A |dec edx
00995338 |. |85C9 |test ecx, ecx
0099533A |. |74 05 |je short 00995341
0099533C |. |3B51 FC |cmp edx, dword ptr [ecx-4] ; 長度
0099533F |. |72 05 |jb short 00995346
00995341 |> |E8 3AFEA6FF |call 00405180
00995346 |> |42 |inc edx
00995347 |. |0FB64C11 FF |movzx ecx, byte ptr [ecx+edx-1] ; 逐個取字符
0099534C |. |03D9 |add ebx, ecx ; 累加
0099534E |. |42 |inc edx
0099534F |. |48 |dec eax
00995350 |.^|75 E2 \jnz short 00995334
00995352 |> \33C0 xor eax, eax
---------------------------------------------------------------------------------------------------------安全