isbeb on 10:31 PM 11/08/2025: thanks for this! i opened in ghidra and the key was setting the main arguments to an array. it clarified the code enough to figure out the logic.
Solution by ahmeep on 8:08 PM 08/28/2025: Walkthrough of the Disassembled Code without going into details, only explaining what the program does and finding the needed input. (graph generated by radare2 if you are curious.)