home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Quantico / km / rbs-fwkg.asm.txt < prev    next >
Encoding:
Text File  |  2000-05-25  |  1.9 KB  |  119 lines

  1. .model small
  2. .386
  3. .data
  4.   welcome db "FTP Wolf V2.x (100% Working) *Keymaker*",10,13,"  Written by ^pain^ '98 / Rebels!",10,13,"Name:$"
  5.   PBytes  db 0EAh,0d0h,0bbh,93h
  6.   UserName    db 10h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h,00h
  7.   Key     db 10,13,"Key :FW01-$"
  8.   goodbye db 10,13,10,13,"                     Enjoy!$"
  9.   Gen     db 00,00,00,00
  10. .Stack 100h
  11. .code
  12.  
  13. Start:
  14.  
  15.   mov ax,@data
  16.   mov ds,ax
  17.   mov ah,09
  18.   mov dx,offset Welcome
  19.   int 21h
  20.   mov ah,0ah
  21.   mov dx,offset UserName
  22.   int 21h
  23.   mov dx,offset UserName
  24.   mov di,dx
  25.   add di,2
  26.   mov bx,4 
  27.   xor ecx,ecx
  28.   mov si,offset Gen
  29.   mov eax,57fd46H
  30. aa:
  31.    mov al,byte ptr [di]
  32.    mov dl,59h
  33.    imul dl
  34.    mov dl,48h
  35.    imul dl
  36.    mov dl,32h
  37.    imul dl
  38.    mov dl,33h
  39.    imul dl
  40.    mov [si],al
  41.    inc di
  42.    inc si
  43.    dec bx
  44.    jnz aa
  45.   
  46. ;  mov di,offset PBytes
  47.   ;mov ecx,93bbd0eah ; dword ptr [di]
  48.   mov si, offset UserName
  49.   mov bl,byte ptr [si+1]
  50.   add si,02h
  51. GenerateCode:
  52.    mov di,offset Gen
  53.    lea cx,[di+5]
  54.    mov al,[si]
  55.    add al,02h
  56.    xxx:
  57.        xor [di],al
  58.        inc di
  59.        cmp di,cx
  60.        jnz xxx
  61.  
  62.    inc si
  63.    dec bl
  64.  jnz GenerateCode
  65.  
  66. ; mov di,offset PBytes 
  67. ; mov ecx,dword ptr [di]
  68.  mov di, offset Gen
  69.  mov eax,dword ptr [di]
  70.  test eax,eax
  71.  jge aaaa
  72.  neg eax
  73. aaaa:
  74.  cmp eax,270fh
  75.  jge xx2
  76. xx1:
  77.  lea eax,[ecx+ecx*4]
  78.  shl eax,01h
  79.  cmp eax,270fh
  80.  jl xx1
  81. xx2:
  82.  cmp eax,0f423fh
  83.  jle GOOD
  84. xx3:
  85.   cdq
  86.   mov edi,0ah
  87.   idiv edi
  88.   cmp eax,0f423fh
  89.  jg xx3
  90. GOOD:
  91.  mov ecx,eax
  92.  mov ah,09h
  93.  mov dx,offset key
  94.  int 21h
  95.  mov eax,ecx
  96.  mov bl,00h
  97. Hex2Str:
  98.  CDQ
  99.  inc bl
  100.  mov edi,0ah
  101.  idiv edi
  102.  add dl,30h
  103.  push dx
  104.  test eax,eax
  105. jnz hex2str
  106. mov ah,06h
  107. hex2st:
  108.   pop dx
  109.   int 21h
  110.   dec bl
  111.   jnz hex2st
  112.  mov ah,4ch
  113.  int 21h
  114. end start
  115.  
  116.    
  117.  
  118.  
  119.