Have you tried ChatGPT Code Interpreter aka Advanced Data Analysis mode?
That's the thing that can write and then execute Python code against files you upload to it.
I've had great results using it to decipher weird binary formats, since it can try things out and iterate on them.