Questions tagged [decompiling]
Decompilers analyze binary code outputting source code in a higher level language such as C. The output is generally not any easier to analyze than the original assembler due to loss of information during compilation.
1,035
questions
-1
votes
0
answers
25
views
Decompiling a JAR into java files in java [duplicate]
Is there any java third party libraries or sdk to decompile class files into java files ?
0
votes
0
answers
30
views
Creating a Visual Studio Project from EXE?
while I did solve my problem and will describe how below, it was tedious, and I was just wondering if there was any less tedious way to do such.
So I had and EXE that I needed the source-code from to ...
0
votes
0
answers
12
views
Is there any easy way to recombine xml + java files to create new modified app in android Studio [closed]
I extracted both resources and the Java file. And now I want to recombine both in Android Studio and make a new app. I am not an expert developer.
Is there any easy way?
0
votes
1
answer
46
views
How to decompile html, css, js code in to html
I have a problem, I wanted to edit ui but the problem is that all the code is in the 1 line and I can't find a way to decompile the code to normal state. Can anyone help?
<html lang="en"&...
2
votes
0
answers
50
views
How can I add code to .class files in java [closed]
I have a class file and I want to add some code to it. I decompiled it and got this
package net.minecraft.client.main;
import com.google.gson.Gson;
import java.util.List;
import joptsimple.OptionSet;
...
0
votes
1
answer
42
views
Lift x64 Windows executable to LLVM bitcode and then compile back to x32 one?
So my idea is to "lift" 64-bits Windows executable to LLVM bitcode (or whatever is higher than assembly) and then compile it back to 32-bit executable.
I found that RetDec and McSema can ...
1
vote
1
answer
47
views
Scan binary for CPU feature usage
I am debugging an application that runs properly on an Intel CPU, but not on another, newer AMD processor. I suspect that it may have been compiled to use certain Intel-specific instructions, which ...
1
vote
2
answers
84
views
How to See the content of Decompiled code
I am trying to obfuscate my project. I have used Obfuscator plugin from Unity Asset store. I want to see how my obfuscated code looks like. So I did reverse engineering and got Assembly-CSharp.dll ...
1
vote
1
answer
46
views
How to retrieve real-time data from an existing Java application without access to source code?
Update: Jun 10, 2022
I have successfully been able to create a demo application with AspectJ integration that could extract variables from the demo application. It was quite a hassle since there's a ...
0
votes
0
answers
93
views
How to use Decompyle++
I am trying to decompile a .pyc python file but when I enter the command to run Decompyle++ (./pydc [path to the pyc file]) or (./pydac [path]) It says unknown command. I have run CMD through the ...
0
votes
0
answers
19
views
Eclipse Debug decompiles JAR based class file despite project settings pointing to the JAR's source
Most posts on this site relating to Eclipse decompiling Java source are written by developers having issues getting Eclipse to decompile class files. I have the exact opposite problem; I have Eclipse ...
0
votes
0
answers
22
views
How to reopen apk with jadx without decompiling it every time
I need to open the same apk with jadx quite frequently and would like to keep my renamings etc. but not decompile the apk from scratch every time.
My current alternative workflows, that are not very ...
0
votes
0
answers
65
views
How disassembler files with Ghidra in cmd
How disassembler for example .elf file in Ghidra with cmd. I am trying do this with
./analyzeHeadless -import /my/path/file
But in arguments required a Ghidra project. I want to disassembler just ...
0
votes
0
answers
27
views
Reverting a exe to a executable jar file
Hello so I'm trying to figure this out for days and i finally gave up. (I just starting programming with c++ so i may say say some mistakes).
I have a windows executable which has been wrapped in a ...
0
votes
0
answers
36
views
Are there programs for the JVM that cannot be decompiled to valid Java? [duplicate]
This is just an idle-curiosity question. I don't need the answer for any actual use.
EDIT: Thanks to the person who found the previous question that this one more or less duplicates. That was what I ...
0
votes
1
answer
102
views
half_baddata function in c
**what this part of code means and do in c? I can't understand it!**
What's the return value of the if condition and when it will happened?
LAB_001012c5
if(local_10 != *(long*)(in_FS_OFFSET + ...
0
votes
1
answer
41
views
How to change VSTO C# program without the original source code nor signing key?
our company has internally developed a toolbar used in Microsoft Excel, however unfortunately the developer does not have the source code anymore since he left the company several years ago. Thus, I ...
0
votes
1
answer
80
views
Full of hex codes in ILSpy, dNSpy, dotPeek
I'm trying to explore things with decompiling and I think I hit a wall because I think this is too much for a simple guy like me to comprehend. Is this normal? Or like the developer of the software (...
0
votes
0
answers
40
views
How to let the codes of external jar file stop in break points in debugger mode in eclipse
I want to debug with external jar files,this means I run source code in debugger mode in eclipse,and observe/inspect the value of parameter.
Now I install jd-eclipse-2.0.0 in my eclipse,so I can ...
0
votes
0
answers
100
views
Need assistance using dnspy
So im trying to edit a il2cpp file from a unity game called bullet force and im getting tons of main.g.cs errors when trying to compile after editing even if i dont edit anything at all like if i just ...
1
vote
1
answer
156
views
Is there a command execution vulnerability in this C program?
So I am working on a challenge problem to find a vulnerability in a C program binary that allows a command to be executed by the program (using the effective UID in Linux).
I am really struggling to ...
1
vote
1
answer
279
views
Is there a way to see decompiled C# code in VS Code?
Is there a way to see decompiled C# code in VS Code?
Whenever I go to the decompiled implementation, I see only interfaces of methods, but not the implementation. I heard that some people claim that ...
0
votes
0
answers
163
views
Does anyone know how to decompile or decode luraph script?
So, i tried searching similar questions, but i was not that smart to understand how this works + everything was outdated and one one website was working and it didn't give me anything. So, guys, ...
0
votes
1
answer
186
views
How do I interpret this disassembled code in IDA?
I am working on a "figure out the password" type problem and believe I'd found the functions in question. What I am struggling with is understand what is happening in them.
int __cdecl ...
1
vote
1
answer
125
views
Error while decompiling java class: ItemCollectionInvalidIndex: constants: requested 15873, limit 63
I am decompiling java application, and i have already done with 99% .class files. But, I have a problem with couple of them: error while decompilation (errors are same type).
Example:
Procyon: java....
-2
votes
1
answer
89
views
Is there a way to extract C++ code from a Windows .exe driver or a Mac OS driver?
I have a Freestyle Libre 2 blood sugar meter, and it uses a driver to upload results to the website. Unfortunately this driver is written in C++ and only compiled for Windows and Mac OS. I use Linux ...
0
votes
0
answers
8
views
How can Decompilors be used for error correction?
I was reading about decompilors, there a point was mentioned that decompilors can be used to error corrections and finding bugs. I am unable to get the logic behind this statement.
Does anyone have a ...
0
votes
1
answer
376
views
IDA Hex Rays can't decompile function in automation
when I reverse the binary with IDA gui, all the functions get decompiled without a problem.
but when I am running an automatic script on ida without gui, there is always the same function, that ...
0
votes
0
answers
28
views
how to configure IDA to present bit shifts as mathematical operations?
I try to learn some stuff on IDA by decompiling a known function.
Below is the pseudocode for Linear congruential generator.
In the end, you can see that there are bit-shifting operations that are not ...
0
votes
0
answers
28
views
'Missing partial modifier on declaration of type' error when class is not partially defined
I'm trying to rebuild an asp.net website for which the source code is long gone. I've decompiled the original code using Reflector, and rebuilt the structure of the site by copying the aspx and other ...
0
votes
0
answers
40
views
Decode and encode AndroidManifest.xml
I have decoded AndroidManifest.xml with apktool. But how do I encode it back without compiling the whole APK? Without android sdk or studio.
1
vote
1
answer
1k
views
Recovering human-readable Python 3.10 source from cached .pyc bytecode
After manually clearing a corrupt recycle bin on my removable USB drive, I found a couple of my most recently executed Python files to be corrupt as well; opening them with an editor shows their ...
0
votes
0
answers
136
views
.Net decompiler as Python library for Linux
Is there any library or wrapper for Python to decompile .Net applications on Linux? Especially interested in code.
I know Dnfile project. However it gives only methods, strings, but not decompile code....
0
votes
1
answer
84
views
How to decompile phone app back to kotlin code?
I recently I lost all of my app's files, but luckly I still had my app saved on my phone. I extracted the app on pc, but I am not sure what to do next.
App was written in kotlin and I would like to ...
1
vote
1
answer
610
views
How to disassemble single file .NET exes, or extract the .dll from them? [duplicate]
I'm have some .NET exes built with the single file option (https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file) and I need to use a disassembler on them, but none of the disassembly ...
1
vote
0
answers
74
views
How to create pyc with password encryption?
I compiled the PY file, it can decompile anyone with python modules. i need to protect pyc file from decompiling
how can do that, what are the possible ways?
0
votes
0
answers
51
views
Debug Android apk to java code and resolve Intent addFlags(335577088);
I have decompiled an apk and created an Android Studio Project. Most Layouts and Intents I can resolve. The program code is:
addFlags(335577088);
I got following error with it:
Must be one or more of:...
2
votes
1
answer
530
views
Is Ghidra misinterpreting a function call?
When analyzing the assembly listing in Ghidra, I stumbled upon this instruction:
CALL dword ptr [EBX*0x4 + 0x402ac0]=>DAT_00402abc
I assumed that the program was calling a function whose address ...
1
vote
1
answer
58
views
Analyzing the code of the class files in a jar file
I'm trying to analyze the contents of android apps. I already made the code I need to analyze it if it was a human readable file format, like .java or .txt. I know how to change the decompile the apk ...
0
votes
1
answer
81
views
What does IDA mean by this?
I have decompiled JNI function code with IDA. An encrypted key is sent to the second argument through the java function, after that something happens to it here and it is used as an HMAC key, but IDA ...
2
votes
1
answer
122
views
Visual Studio Decompiled Source Definitions from Object Browser
In Visual Studio 2019, there is a new feature powered by ILSpy to view decompiled source definitions(C#). It's documented here.
This is a great feature and when I have a snippet of code like,
...
1
vote
1
answer
288
views
Can I decompile a WebAssembly module?
Is it possible to decompile a WebAssembly module like:
https://github.com/blinkcard/blinkcard-in-browser/blob/master/resources/basic/BlinkCardWasmSDK.wasm
0
votes
1
answer
904
views
How can I get source code from exe files? [duplicate]
A few days ago, I have formated my disk and I have lost all datas.
Now I have only two VB6 exe files and I want source code from those.
Is there any way to recover source code from VB6 exe files?
...
0
votes
0
answers
22
views
HexRays(IDAPro6.8) Pointer to "center" of structure, how decompile correct?
I decompile(hexrays idapro6.8) one projects and see this code at decompiller:
void __cdecl initsomeobject(void *input)
{
void *v1; // eax@1
signed int v2; // edx@1
v1 = (char *)input + 6;
v2 =...
1
vote
1
answer
132
views
Visual Studio Obfuscation
I am trying to test different obfuscators. Before obfuscating I used Reko decompiler. It seems that the exe is already obfuscated - please look at the screen shot. Can someone please explain - why all ...
0
votes
0
answers
83
views
How to detect if .exe file contains uncompiled code
Recently I discovered that .exe files sometimes still hold their source code (readable code).
I opened an exe in IDA and it told me it was written in .NET and I could see the source code opening the ...
0
votes
0
answers
81
views
How would I go about decompiling an exe that only will run on windows XP
I started as an intern recently for a science research lab. My boss wants to port a software she uses on a windows XP computer. The only info I have is a basic overview of what it does and some exe ...
-1
votes
1
answer
83
views
How would I dump files from an APK?
I was looking to mod a game as I really felt like adding a few extra things. It is a mobile game so I got the APK and moved it onto my computer, and began to decompile it. I know it uses the Unity ...
0
votes
0
answers
264
views
Parse error while converting PYC to PY in python 3
I am decrypting a pyc file to py using uncompyle6
The python version was 3.7.7
import os
import uncompyle6
file_directory = 'E:\ABCD\EFGH'
for directory_path, b, file_names in os.walk(file_directory):
...
0
votes
1
answer
496
views
How to extract code of XAML files from executable file
we have noticed lately that we don't' have source code of some desktop applications (WPF) created by one of our developer. Applications are already used by production (I know it's shame...)
I have ...