A few issues when running in 2.7.3
First off--- thanks for writing this code, I am hoping to use this in my research!
I had a few errors with the python and fixed them (return False outside a function, missing ')', etc). However I am not sure I got it working, I gave it the encrypted dll.hlp file but what I get back does not look correct, see output

Any ideas? I double checked my Python version to make sure it matched.. Again, much thanks for writing this, amazing idea!
I am new to GitHub so once I figure out the pull I can send you the code which I got to work.
Can you give me the full error outputs as well? On Mar 27, 2013 1:14 AM, "sketchymoose" [email protected] wrote:
First off--- thanks for writing this code, I am hoping to use this in my research!
I had a few errors with the python and fixed them (return False outside a function, missing ')', etc). However I am not sure I got it working, I gave it the encrypted dll.hlp file but what I get back does not look correct, see output
[image: output]https://f.cloud.github.com/assets/3982994/307205/26d7c3a8-96b6-11e2-92c4-74038fe44b3a.jpg
Any ideas? I double checked my Python version to make sure it matched.. Again, much thanks for writing this, amazing idea!
I am new to GitHub so once I figure out the pull I can send you the code which I got to work.
— Reply to this email directly or view it on GitHubhttps://github.com/kcreyts/plugxdecoder/issues/2 .
Besides the output, this was at the top of the output. There were 3 files associated with this:
- benign exe
- dll which calls the malicious dl
- malicious dll <-- i ran the tool against this file

fixed the first two issues to which you referred... slight oversight, I might have pushed an incomplete development version on accident.
Oh cool-- the other error was at line 130 if ip.p = 6: changed it to == and it worked fine then, well still the weird output!
and how did you invoke it? ./plugxdecoder.py -f <the_encrypted_artifact> -o <your_name_for_the_extracted_content> ?
I would be interested in seeing your sample. (all 3 files, or the original rarsfx) you should be able to find my email pretty easily, and my pgp key lives on major keyservers.