Sorry to necro this 2 year old thread, but I wanted to build on your technique @SLB
I like how you did your byte swapping for the endian issue in the reg key, but I was wondering if there was a more general solution for byte swapping unknown length?
How could I generate the (14;15;12;13;10;11;8;9;6;7;4;5;2;3;0;1)
automatically?
I took a trick from this post 2006 post: Reversing order of substrings
modified it to this:
(it;it+1) of lengths of following texts of positions whose (it mod 2 = 0 and it != 0)
And replaced the hand crafted plural integer.
q: hexadecimal integer (concatenation of characters((it;it+1) of lengths of following texts of positions whose (it mod 2 = 0 and it != 0) of it) of (value "ComputerID" of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions" of registry as string))
A: 3901791
I: singular integer