I found some kind of virus.

6 posts / 0 new
Last post
Offline
Last seen: 8 hours 2 min ago
Joined: Jan 11 2025 - 14:57
Posts: 29
I found some kind of virus.
AttachmentSize
Binary Data Virus.asm2.98 KB

I found some old virus code that seems to be written in assembly language. it doesn't compile for some reason. I do not know what to do. Can someone help?

mmphosis's picture
Offline
Last seen: 3 weeks 4 days ago
Joined: Aug 18 2005 - 16:26
Posts: 452
assemble

Remove the carriage returns. It assembles fine for me. Don't run this on a disk that you value!

sed Virus.asm 's/\r$//' > code.txt 

merlin32 '' code.txt 

6502 9B00 code

                              A=AA X=00 Y=00 S=00 P=22 PC=9B00  0

9B00- 4C 84 9D  JMP $9D84     A=AA X=00 Y=00 S=00 P=22 PC=9D84  3

9D84! end 

Offline
Last seen: 8 hours 2 min ago
Joined: Jan 11 2025 - 14:57
Posts: 29
help

can you please give me the file that you got? Merlin 32 refuses to work for me

mmphosis's picture
Offline
Last seen: 3 weeks 4 days ago
Joined: Aug 18 2005 - 16:26
Posts: 452
Give a man a fish
Jiroplas wrote:

can you please give me the file that you got? Merlin 32 refuses to work for me

Sure, but ...

Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime

Why does Merlin32 refuse to work? Are you getting errors?

What operating system are you using? I am using Linux so all I had to do was strip out the carriage returns from Virus.asm and Merlin32 works fine.

It's cool that you are digging into these old viruses. There are lots of tools you could use to speed things along. I am uploading the binary but providing a "how to" on how to build these things yourself might be better?

Package iconcode.zip

There is a 512 byte binary file name code contained within the 636 bye zip file.

Offline
Last seen: 8 hours 2 min ago
Joined: Jan 11 2025 - 14:57
Posts: 29
yes

Yeah, I guess you're right. Can I get an instruction manual?

mmphosis's picture
Offline
Last seen: 3 weeks 4 days ago
Joined: Aug 18 2005 - 16:26
Posts: 452
Yes
Jiroplas wrote:

Yeah, I guess you're right. Can I get an instruction manual?

https://brutaldeluxe.fr/products/crossdevtools/merlin/

man make sed hexdump

Those are the reference manuals to some of the tools that I use.

hmmm, actual "instruction" manuals. Instruction manuals are helpful. I have paper ones, there are everything from full on books to short helpful instructions in a posting or small article online. And, you can keep asking here. I am learning git and I find git frustrating to use. I've written up short HOWTOs for things that I think I want to do and all of the cryptic git commands to actually do what I want, but sadly I feel pretty clueless about using git.

Log in or register to post comments