So it seems that REG_SZ Registry values can contain arbitrary binary data, but Regedit.exe will only show you up to the NULL terminator.

@williballenthin