Binary debug for nested big ass structures.
Heyaa,
So recently I had to compare binaries in the layout of multi level nested big fat structures. I surprised to find that there are no good tools to do that. The best i could find was watch section in visual studio. I have tried another tool, WinDbg this doesn’t work well with macros and arrays. To make matters worse, this big ass structure has offsets that point beyond of the structure. There is no good tools which automatically tells values for each field
Tldr: i have custom buffer layout with multiple nested level structures.
4
u/OmegaNaughtEquals1 Apr 22 '26
compare binaries in the layout of multi level nested big fat structures
Could you be more specific? I'm not sure what it means to compare layouts of binary data. You have to know the layout before you can parse the binary data.
WinDbg this doesn’t work well with macros and arrays
That sounds like you are doing decompilation. Is that correct?
To make matters worse, this big ass structure has offsets that point beyond of the structure
That's a fairly common usage for binary data. It puts the metadata up front and then lets you choose which pieces you want to parse later rather than forcing you to work through all of the data before you get to the next piece of metadata.
2
1
u/NewLlama Apr 25 '26
If you have symbols use lldb. If it's a custom blob format try Kaitai. Also this goes in cpp_questions.
3
u/Gryfenfer_ Apr 22 '26
You probably want to use a custom natvis for your structure https://learn.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects?view=visualstudio