接之前写的暴破http://bbs.pediy.com/showthread.php?t=98608
终于~~~终于完成啦.我的第一个注册机,虽然很简单,但太兴奋了,我也可以写注册机了..不知道能不能混个邀请码...不过就算没得也不远了
MASM写的部分代码.
;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
_tocount proc
invoke GetDlgItemText,hMainhwnd,IDC_EDT1,addr szBuffer,sizeof szBuffer
LEA ESI,szBuffer
PUSH ESI
_tocount5:
MOV AL,BYTE PTR [ESI]
TEST AL,AL
JE _tocount1 ; al=0 跳转
CMP AL,41h
JB offset _tocount2 ; AL<41 跳转
CMP AL,5Ah
JNB offset _tocount3 ; AL>=5A 跳转
INC ESI
JMP offset _tocount5
_tocount3:
SUB AL,20h
MOV BYTE PTR [ESI],AL
INC ESI
JMP offset _tocount5
_tocount1:
POP ESI
XOR EDI,EDI
XOR EBX,EBX
_tocount4:
MOV BL,BYTE PTR DS:[ESI]
TEST BL,BL
JE offset _tocount6
ADD EDI,EBX
INC ESI
JMP offset _tocount4
_tocount6:
XOR EDI,5678h
;逆向计算序列号
lea esi,szBuffer
xor edi,1234h
mov eax,edi
mov cx,0ah
xor ebx,ebx
_tocount8:
xor edx,edx
test eax,eax
je offset _tocount7
div cx
add dl,30h
mov [esi],dl
inc esi
inc ebx
jmp offset _tocount8
_tocount7:
mov BYTE ptr [esi],0
mov eax,ebx
mov ecx,2
div ecx
mov ecx,eax
dec ebx
xor edi,edi
xor eax,eax
lea esi,szBuffer
@@:
mov al,[esi+ebx]
mov ah,[esi+edi]
mov [esi+ebx],ah
mov [esi+edi],al
inc edi
dec ebx
loop @B
invoke SetDlgItemText,hMainhwnd,IDC_EDT2,addr szBuffer
ret
_tocount2:
pop esi
invoke MessageBox,hMainhwnd,addr stError,NULL,MB_OK
ret
_tocount endp
附上注册机和原CM CM注册机.rar
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课