Looking at my HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command\command value (Word 2010 'Open' shell association) I see this sort of nonsense:
xb'BV5!!!!!!!!!MKKSkWORDFiles>bi$T!V!0Z={Pk0vm~AZu /n "%1"
where it's all clear about last /n "%1" parts, but the first cryptic one apparently denotes some magic instruction on running MS Word. Same voodoo I have for Excel and other Office associations.
My numerous attempts to educate myself via internet about what's going on there didn't bring any results at all. Lots of people discuss the "right incantations" to establish for Word/Excel associations working properly, however I didn't see any of them (like me too) ever understood what they're doing and why they really thought this black magic would work for other people - just because it somehow managed to work on their machines.
However, what I really didn't understand is the fact that no one (whom I spot on internet, of course) ever asked anything like "how on Earth it works?" or "what does it really mean?" or least not the last, "do you think I have a nasty virus?!". Ok, then I'm going to be the first, I guess.
My question here is not why people are so incurious though. My question is how do these strings really work in registry associations? That must be some undocumented (or documented??) Windows (presumably, Windows Shell) feature transforming such strings to something human-digestible.