I've been using this tool since 2012 when things go pear-shaped in BizTalk. I felt it was about time I put it somewhere useful. I've spruced it up a bit for sharing, but please feel free to send pull requests for changes.
See README.md for usage, or run extractmessages.exe --help