This topic contains 1 reply, has 2 voices, and was last updated by cents02 1 month ago.
- October 26, 2020 at 8:45 pm #322863
I’m currently trying to learn more about viruses while concomitantly learning Assembly. I started with MINI-44 which I guess is the simplest one.
**However, I want to modify it in order for it to encrypt all files with a .txt extension.**
I was thinking of using a cryptographic solution, something based on XOR most likely. Wanted to start small, so the encryption key will be initially hardcoded (and maybe later dynamically generated).
If you can give me any info on how to achieve that, I’d be very grateful.
PS: Needless to say, I’m only trying to learn some principles and I’m not going to actually use it – it’s an ancient virus after all.
Here’s the code for the original MINI44.
`FNAME EQU 9Eh`
`mov DX, offset COMP_FILE`
`mov DX, FNAME`
`COMP_FILE DB ‘*.COM’,0`
- October 26, 2020 at 8:46 pm #322864
Although it does kinda fit the sub you will get better responses in r/Assembly_language as this is more of a programming question.
- October 26, 2020 at 8:46 pm #322865
I would take a look at masm32 and RadASM perhaps. There was an old skool tutorial, check it out: [http://www.interq.or.jp/chubu/r6/masm32/tute/tute001.html](http://www.interq.or.jp/chubu/r6/masm32/tute/tute001.html)
The assembly you’ve pasted is old old, like MSDOS old, and you’ll have a hard time getting it working on any recent OS.
You must be logged in to reply to this topic.