某加密软件算法分析实录
MOV EAX,1
XOR EBX,EBX
MOV ESI,4086EE
ADD ESI,EBP
A_1: MOV BL,[ESI] 取经过换算的注册码
CMP BL,00 到末尾了吗?
JZ A_2
MUL EBX
INC ESI
JMP A_1
A_2: XOR EAX,[EBP+40A01F]
XOR EAX,[EBP+4084CF]
XCHG AH,AL
MOV EBX,EAX 这时EBX为正确的注册码
MOV ESI,408702
ADD ESI,EBP
CALL Check_Serial 判断注册码正确与否
CMP EBX,EAX
JZ Serial_OK 如果正确则AX=1
MOV AX,0 如果错误则AX=0
RET
Serial_OK: MOV AX,1
RET