Infect The File
Owhh Mighty GOD!! For how long did'nt I update this POST!!? LOL!!! I'll continue for the part of infecting the file with the virus... For the virus, this is the "guts" of the virus, the heart of the replicator. Once you have located a potential file, you must save the attributes, time, date, and size for later use. The following is a breakdown of the DTA: Offset Size What it is 0h 21 BYTES Reserved, varies as per DOS version 15h BYTE File attribute 16h WORD File time 18h WORD File date 1Ah DWORD File size 1Eh 13 BYTES ASCIIZ filename + extension As you can see, the DTA holds all the vital information about the file that you need. The following code fragment is a sample of how to save the info: lea si, [bp+offset DTA+15h] ; Start from attributes mov cx, 9 ; Finish with size lea ...