home *** CD-ROM | disk | FTP | other *** search
/ The Elite Hackers Toolkit / TheEliteHackersToolkitVolume1_1998.rar / HACKERS.BIN / appcraks / LV608KEY.ZIP / LV608KEY.ASM < prev    next >
Assembly Source File  |  1998-05-09  |  6KB  |  176 lines

  1. .386p
  2. cseg            segment         use16
  3.                 assume          cs:cseg,ds:cseg,es:cseg
  4.                 org             100h
  5. begin           proc
  6.                 lea             dx,hello
  7.                 mov             ah,9
  8.                 int             21h
  9.                 mov             ax,6900h
  10.                 mov             bl,3
  11.                 lea             dx,DiskSerial
  12.                 int             21h
  13.                 lea             si,DiskSerial+2
  14.                 lodsw
  15.                 xchg            ax,bx
  16.                 lodsw
  17.                 add             ax,13h
  18.                 add             bx,ax
  19.                 mov             dx,bx
  20.                 xor             bx,25fh
  21.                 xor             dx,260h
  22.                 push            dx
  23.                 mov             IDNum,bx
  24.                 call            tryIt
  25.                 pop             IDNum
  26.                 mov             ah,9
  27.                 lea             dx,_6_08
  28.                 int             21h
  29.                 cld
  30.                 lea             di,serial
  31.                 mov             al,'0'
  32.                 mov             cx,11
  33.                 rep             stosb
  34.                 call            tryIt
  35.                 mov             ah,4ch
  36.                 int             21h
  37. tryIt:
  38.                 mov             cx,11
  39.                 lea             di,serial
  40. __inc:
  41.                 call            Increment
  42.  
  43.                 lea             si,serial
  44.                 mov             bx,IDNum
  45.                 mov             cx,6
  46. LoopIt:
  47.                 lodsb
  48.                 cbw
  49.                 sub             al,2fh
  50.                 mov             di,ax
  51.                 mov             bp,1234h
  52.                 mul             bp
  53.                 xor             ax,bx
  54.                 add             ax,di
  55.                 xchg            ax,bx
  56.                 lodsb
  57.                 loop            LoopIt
  58.                 lea             di,serial+1
  59.                 mov             ax,bx
  60.                 xor             dx,dx
  61.                 mov             cx,2710h
  62.                 div             cx
  63.                 add             al,48
  64.                 stosb
  65.                 inc             di
  66.                 mov             ax,bx
  67.                 mov             cx,3e8h
  68.                 xor             dx,dx
  69.                 div             cx
  70.                 xor             dx,dx
  71.                 mov             cx,10
  72.                 div             cx
  73.                 xchg            dx,ax
  74.                 add             al,48
  75.                 stosb
  76.                 inc             di
  77.                 mov             ax,bx
  78.                 mov             cx,64h
  79.                 xor             dx,dx
  80.                 div             cx
  81.                 xor             dx,dx
  82.                 mov             cx,10
  83.                 div             cx
  84.                 xchg            dx,ax
  85.                 add             al,48
  86.                 stosb
  87.                 inc             di
  88.                 mov             ax,bx
  89.                 mov             cx,10
  90.                 xor             dx,dx
  91.                 div             cx
  92.                 xor             dx,dx
  93.                 div             cx
  94.                 xchg            dx,ax
  95.                 xor             dx,dx
  96.                 add             al,48
  97.                 stosb
  98.                 inc             di
  99.                 mov             ax,bx
  100.                 div             cx
  101.                 xchg            dx,ax
  102.                 add             al,48
  103.                 stosb
  104.  
  105.                 lea             si,Serial+2
  106.                 mov             di,IDNum
  107.                 mov             cx,6
  108.                 mov             bx,1234h
  109. _3ff:
  110.                 lodsb
  111.                 cbw
  112.                 sub             al,2fh
  113.                 push            ax
  114.                 mul             bx
  115.                 xor             di,ax
  116.                 pop             ax
  117.                 add             di,ax
  118.                 inc             si
  119.                 loop            _3ff
  120.                 push            di
  121.                 lea             si,Serial+3
  122.                 mov             cl,5
  123.                 mov             bx,10
  124.                 xor             ax,ax
  125. _419:
  126.                 mul             bx
  127.                 xchg            di,ax
  128.                 lodsw
  129.                 cbw
  130.                 sub             al,30h
  131.                 add             ax,di
  132.                 loop            _419
  133.                 pop             cx
  134.                 cmp             ax,cx
  135.                 jne             __inc
  136.  
  137.                 mov             byte ptr (serial+11),'$'
  138.                 mov             ah,9
  139.                 lea             dx,msg
  140.                 int             21h
  141.                 mov             byte ptr (serial+11),'0'
  142.                 jmp             __inc
  143. enough:
  144.                 pop             ax
  145.                 retn
  146.                 
  147. Increment:
  148.                 lea             si,IDNum-3
  149.                 std
  150. _inc:
  151.                 lodsb
  152.                 dec             si
  153.                 inc             ax
  154.                 cmp             al,3ah
  155.                 jnz             skp
  156.                 cmp             si,offset serial-2
  157.                 jz              enough
  158.                 mov             byte ptr [si+2],'0'
  159.                 jmp             _inc
  160. skp:
  161.                 mov             byte ptr [si+2],al
  162.                 cld
  163.                 retn
  164.  
  165. hello           db              'The LGAVIEW key generator for v6.07&6.08',13,10
  166.                 db              'Copyright (c) by MERLiN // Delirium Tremens ''98',13,10
  167.                 db              'Processing codes for v6.07b ...$'
  168. _6_08           db              13,10,'Now calculating the v6.08a codes ...$'
  169. msg             db              13,10,'Found code:',32
  170. serial          db              '0000000000000'
  171. IDNum           dw              ?
  172. DiskSerial:
  173. begin           endp
  174. cseg            ends
  175.                 end             begin
  176.