home *** CD-ROM | disk | FTP | other *** search
/ KeyGen Studio 2002 / KeyGen_Studio_2002.iso / Tutorials / Dos CrackMes / com / EX-CKME.ZIP / SOURCE / CRACKME.ASM next >
Encoding:
Assembly Source File  |  1998-12-25  |  1.7 KB  |  67 lines

  1. .model tiny 
  2. .code               ; code segment
  3.  
  4. org 100h            ; com file
  5.  
  6. print MACRO         ; print macro
  7.  mov ah,9h
  8.  int 21h
  9. endm
  10.  
  11. exit MACRO          ; call to termination ;)
  12.  mov ax,4c00h
  13.  int 21h
  14. endm
  15.  
  16. start:                       ; code segment starts
  17. jmp real                     ; jump to the beginning
  18.     code_1 dw  3EB8h         ; value to accept the key codes compare
  19.     array dw 5 dup(0)        ; code array
  20. real:                        ; start
  21.     lea dx,intro             ; same as dx,OFFSET intro
  22.     print                    ; call to the macro
  23.     lea dx,inputline         
  24.     print 
  25.     mov cx,5
  26.     xor di,di
  27. loopie:                      ; loop to get 5 keys from keyboard
  28.     mov ah,01
  29.     int 21h
  30.     mov ah,00
  31.     mov array[di],ax
  32.     inc di
  33.     xor ax,ax
  34.     loop loopie
  35.     mov cx,5
  36.     xor ax,ax
  37.     xor dx,dx
  38.     xor bx,bx
  39.     mov di,4
  40. check:                        ; compare key codes
  41.     mov ax,array[di]
  42.     add bx,ax
  43.     dec di
  44.     xor ax,ax
  45.     loop check
  46.     add bx,36h                ;<-  simple math commands to get the resoult more
  47.                               ;    complicated ;)
  48.     sub bx,71h                ;<-
  49.     add bx,369h               ;<-
  50.     sub bx,222h               ;<-
  51.     cmp bx,code_1             ; compare the "code_1" with the array
  52.     je ok                     
  53. nk: lea dx,lame
  54.     print
  55.     exit
  56. ok: lea dx,shit
  57.     print
  58.     exit
  59.  
  60.  
  61.  
  62.    intro db 'E x E C U T i O N CRaCKMe (c) 1998 DR.ViRUS',10,13,'"WhAT Do Ya WanT TO cRaCK ToDaY??"',10,13,'$'
  63.    inputLine db '■ EnTeR PaSSWoRD:$'
  64.    lame db 13,10,'■ Password incorrect! Try again ;)',13,10,'$'
  65.    shit db 13,10,'■ Password correct!',10,13,'$'
  66. end start
  67.