Decompile FILENAME_qml.cpp
-
Hi all!
I've had a problem with my svn repository and I lost a bunch of qml components. All I still have are the precompiled <qml_componentfilename>_qml.cpp files in my build folder.
They have the following format:
// /Marker.qml namespace QmlCacheGeneratedCode { namespace _0x5f__Marker_qml { extern const unsigned char qmlData alignas(16) [] = { 0x71,0x76,0x34,0x63,0x64,0x61,0x74,0x61, 0x19,0x0,0x0,0x0,0x0,0xc,0x5,0x0, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 0x0,0xa,0x0,0x0,0x36,0x34,0x65,0x65, 0x34,0x39,0x36,0x38,0x62,0x34,0x36,0x30, 0x31,0x39,0x62,0x38,0x65,0x34,0x63,0x62, etc.
My question, is there a way to get my qml source code back from this format?
I tried to convert the hex numbers into characters, but this gives me the followingqv4cdata
folowed by some unprintable characters and again some readable qml properties etc. But I have no clue how to convert that back into qml source code.
Thanks a lot to anyone who might have an idea!
best regards
Manfred -
@wink said in Decompile FILENAME_qml.cpp:
folowed by some unprintable characters and again some readable qml properties
Maybe provide the data for an entire file. That way other people here can crack it.
I am not sure this is enough that you have posted of the character data:
extern const unsigned char qmlData alignas(16)A single complete file would be helpful.
-
Hi and thank you for your reply!
So here we go, this is the complete content of the file "Marker_qml.cpp". The original component file was named "Marker.qml"
// /Marker.qml namespace QmlCacheGeneratedCode { namespace _0x5f__Marker_qml { extern const unsigned char qmlData alignas(16) [] = { 0x71,0x76,0x34,0x63,0x64,0x61,0x74,0x61, 0x19,0x0,0x0,0x0,0x0,0xc,0x5,0x0, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 0x0,0xa,0x0,0x0,0x36,0x34,0x65,0x65, 0x34,0x39,0x36,0x38,0x62,0x34,0x36,0x30, 0x31,0x39,0x62,0x38,0x65,0x34,0x63,0x62, 0x37,0x35,0x32,0x33,0x61,0x36,0x65,0x34, 0x31,0x38,0x33,0x33,0x66,0x63,0x34,0x63, 0x66,0x36,0x36,0x35,0x0,0x0,0x0,0x0, 0x0,0x0,0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,0x0, 0x0,0x0,0x2,0x0,0x3,0x0,0x0,0x0, 0x0,0x0,0x0,0x0,0x10,0x0,0xe0,0x0, 0x10,0x0,0x90,0x1,0x0,0x0,0x0,0x0 }; } }
As for your suggestion with the executable, I still have it but I do not see the qml code either. Unfortunately I cannot show the exe as it contains company sensitive data.
-
@wink said in Decompile FILENAME_qml.cpp:
this is the complete content of the file "Marker_qml.cpp"
Okay, this is not text data. This is probably bytecode of converting QML to a compiled form. I don't know how to reverse that.
As for the exe. Get a hex editor and look through the exe and see if the qml files are attached. Someone posted a while back about this. So there may be examples in the forum on how to do this. The post was worried about disclosing code because it was attaching qml to the exe even though it was compiling the qml. I cannot remember if this was a bug or not.
-
Yeah, I have read that post.
As long as you just put your qml files into the qrc, they are indeed visible as pure text inside the executable.The problem is that I compiled the project with the statement
CONFIG += qtquickcompiler
which leads to the qml files being "compiled" to the *_qml.cpp files as the one I listed above. The C++ compiler/linker then puts them into the binary.
I can see some traces of them in the binary, but it's not realy readable and it does not allow me to regenerate my original qml file.
-
There was an interesting thread about this recently.
Take a look over here: https://forum.qt.io/topic/121561/compiled-qml-sources-visible-inside-executable
There are python snippets showing how to paste the hex into a python script and get back human-readable text. (search for "bytearray" in at least 3 places)
If your bytes have also been compressed, then you will also need the
zlib-flate -uncompress ...
stuff at the end.Feel free to post back questions here on this current thread after you look that over.
-
Apologies, I just noticed that you mentioned you already read that thread.
Looking at your hex, I realize that yours does not seem to have the
78 9C
marker that would indicate that zlib is relevant.Hmmm...
-
@wink said in Decompile FILENAME_qml.cpp:
Qt 5.15.2
The tag for
qtdeclarative
sub-project at 5.15.2 seems to be104eae5
Therefore, using
104eae5
in the URLs (below), the relevant Qt code that would have (I think?) generated that hex is the code in:- https://github.com/qt/qtdeclarative/blob/104eae5b17b0ec700391e9539ee3a4f638588194/tools/qmlcachegen/generateloader.cpp
- https://github.com/qt/qtdeclarative/blob/104eae5b17b0ec700391e9539ee3a4f638588194/tools/qmlcachegen/qmlcachegen.cpp
I have not yet skimmed the code, but maybe it contains more clues...
-
@KH-219Design Hi and thanks for your input! I'm not familiar with the files that you linked to. Are you suggesting that they might contain the "key" to decompile my files?
I'll be away for one week and unfortunately not be able to connect to the forum, but I'll get back to you when I come back.
cheers
Wink! -
@KH-219Design Hi again!
I've checked the code you linked to and even if I have found some very interesting parts like the function "compileQmlFile", I cannot seem to find a way to uncompile the qml.cpp file.If anyone has an idea I'd be happy :)
good day
Wink -
The only other line of thinking I have right now is based on this idea:
- It should be less significant which Qt version you have now, and more significant to know which Qt version was used to compile the binaries you are decompiling.
If you cannot be certain that 5.15 was used when the binaries were created, then it seems quite plausible that they were created prior to this qtdeclarative commit (41864db3b61d9e8). That commit explains that prior to 5.15, the original QML content was routinely stripped, leaving only the compiled bytecodes in the binary. That would explain why all the "tricks" from https://forum.qt.io/topic/121561/compiled-qml-sources-visible-inside-executable are utterly ineffective in your case.
If truly all you have is the bytecodes, then I do think your only hope would be to "master the bytecode semantics" and learn how to interpret raw bytecode. But at that point there probably isn't a way to ever have the "one true answer" to the question of "what did the original QML content look like?" The analogous situation would be to attempt to reconstruct C/C++ code using only the generated assembly language. It is in some sense "impossible" to arrive at the one correct answer, because a variety of differently-written C/C++ routines could end up generating the same assembly language. So "going backwards" the assembly language could map to many possibilities with no way to know which one was actually used.
I, too, would love to learn any other interesting fact or approach that others have in mind.
-
@KH-219Design Hi and thank you for your long message!
Well I think I will have to live with the fact that I have to rewrite the components.
I'm already at the point where I have spent too much time trying to recover, so I better start rewriting... :)
Thanks a lot for your help!best wishes
Wink!