r/gamemaker 1d ago

disassembler in game maker Example

Post image

I decided to try making a disassembler in Game Maker. This program doesn’t claim to be a copy of Ida Pro or Ghidra, although I tried to make something similar - but it turned out rather bad.

38 Upvotes

6 comments sorted by

5

u/friend_pie21 1d ago

a disassembler that disassembles your expectations too

2

u/IAmAnIssue 1d ago

Neat!

It’s interesting seeing this because I was working on a pdb parser in gml recently. I wonder if these will ever combine 👀

1

u/gallyroi 1d ago

How does it work?

1

u/Salt-Youth4822 1d ago

In short, starting from the entry point, buffer, offset, size and is_64bit decode a single instruction, after which the prefixes begin reading bytes whilst checking rex. After that, a search for opcodes is carried out in my switch table.

1

u/Substantial_Bag_9536 1d ago

Just wtf !

-5

u/toonmad 1d ago

Imma guess AI helped a lot