home *** CD-ROM | disk | FTP | other *** search
/ KeyGen Studio 2002 / KeyGen_Studio_2002.iso / Tutorials / CrackMesCbjNet / nh-ocm2.ZIP / nh-ocm2.asm next >
Encoding:
Assembly Source File  |  2001-04-23  |  1.0 KB  |  83 lines

  1. .386
  2. .model tiny
  3. cseg    segment para public 'code' use16
  4. assume    cs:cseg,ds:cseg
  5. org 100h
  6. start:
  7. mov ah,09h
  8. mov dx,offset copyright
  9. int 21h
  10. inc ah
  11. mov dx,offset nm
  12. int 21h
  13. mov cl,byte ptr nm+1
  14. cmp cl,2h
  15. ja ok
  16. mov ah,09h
  17. mov dx,offset error
  18. int 21h
  19. ret
  20. ok:
  21. mov ah,09h
  22. mov dx,offset messy2
  23. int 21h
  24. movzx ecx,cl
  25. mov si,offset nm+2
  26. mov ebx,53h
  27. mov edi,01h
  28. l1:
  29.  lodsb
  30.  movzx eax,al
  31.  push esi
  32.  imul esi,edi,26h
  33.  add esi,3h
  34.  imul esi,esi
  35.  imul esi,edi
  36.  imul esi
  37.  add ebx,eax
  38.  inc edi
  39.  pop esi
  40. loop l1
  41. mov eax,10
  42. xchg eax,ebx
  43. xor ebp,ebp
  44. cmp eax,0
  45. jge ok1
  46.  neg eax
  47.  inc ebp
  48. ok1:
  49. mov di,offset error-6
  50. l2:
  51.  xor edx,edx
  52.  div ebx
  53.  dec di
  54.  add dl,'0'
  55.  mov [di],dl
  56. or eax,eax
  57. jne l2
  58. or ebp,ebp
  59. je ok2
  60.  dec di
  61.  mov byte ptr [di],'-'
  62. ok2:
  63. mov dx,di
  64. mov ah,09h
  65. int 21h
  66. ret
  67.  
  68. copyright    db 13,10,'OutCast3k Crack Me #2 keygen by nh',13,10
  69.         db ' ■ Name : $'
  70. messy2        db 13,10,' ■ S/N  : $-Oc3k$'
  71. error        db 13,10,'Too little name...$'
  72. a        dd 0
  73. nm        dw 20h
  74.  
  75. ends
  76. end start
  77. end
  78.  
  79.  
  80.  
  81.  
  82.  
  83.