Just strip-out the commas and junk from the string, and use WriteValue with REG_BINARY like this:

$= WriteValue("key","LastUsedSource", "6e003b0031003b005c005c00730065007200...", "REG_BINARY")