Some friend gave me a program he bought years ago. There is not much to look at except for an executable and a useless readme file (really nothing worth sharing and I'm not allowed to share the .exe-file). Unfortunately we can't get a hold of the initial developer either. When the program was given to me, I was told that it was written in python. So I attempted decompiling the .exe
with various libs I found googling. None of them seemed to work but Pydecipher had following output in its logfile:
2021-05-17 08:26:34,828: [*] Unpacking /home/me/Repos/myrepo/executable.exe
2021-05-17 08:26:34,828: [*] Checking PortableExecutable magic for file executable.exe
2021-05-17 08:26:46,090: [*] Determined executable.exe type to be PortableExecutable
2021-05-17 08:26:46,090: [*] This PE had the following VersionInfo resource: {
"CompanyName": "Node.js",
"ProductName": "Node.js",
"FileDescription": "Node.js: Server-side JavaScript",
"FileVersion": "10.21.0",
"ProductVersion": "10.21.0",
"OriginalFilename": "node.exe",
"InternalName": "node",
"LegalCopyright": "Copyright Node.js contributors. MIT license."
}
2021-05-17 08:26:46,267: [+] Dumped this PE's overlay data to pydecipher_output_executable/overlay_data
2021-05-17 08:26:56,782: [*] Found the following strings (and their surrounding bytes, for context) in this PE, which may indicate the version of Python used to freeze the executable:
[('1.0', 'tial-scale=1.0, minimum-scale=1.0,
...
I found this thread where the most useful answers were
Short answer. If you’re good enough.
and
I believe the js code must be in there somewhere. meaning you could try to use unix command strings to extract it
Unix-commands didn't quite help me so far. So first of all, can I rely on the assumption that I'm dealing with NodeJS? And if so, what are steps I could take in order to recover the code? Is it even possible?
UPDATE
It certainly was written in NodeJS