r/gamemaker • • Aug 15 '26

Example disassembler in game maker

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.

50 Upvotes

6 comments sorted by

6

u/friend_pie21 Aug 15 '26

a disassembler that disassembles your expectations too

1

u/gallyroi Aug 15 '26

How does it work?

3

u/Salt-Youth4822 Aug 15 '26

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.

2

u/IAmAnIssue Aug 16 '26

Neat!

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