Replies: 3 comments 1 reply
-
|
Ok, I got the listing view to show the proper instructions instead of just ??. The bytes for the file are as follows: It appears in the listing as: |
Beta Was this translation helpful? Give feedback.
-
|
Are you sure this is the entire function? The assembly seems a bit weird and doesn't show a clear prologue. Either way, I saved the bytes to a file and imported them as The disassembly of the provided bytesThe decompilation of the provided bytesvoid FUN_00000000(void)
{
int iVar1;
undefined4 *unaff_EBX;
int unaff_EBP;
uint unaff_ESI;
undefined4 *unaff_EDI;
undefined4 *in_FS_OFFSET;
iVar1 = 0;
if (*(int *)(unaff_EBP + 0x10) != 0)
{
func_0x00134beb();
iVar1 = *(int *)(unaff_EBP + 0x10);
}
if ((uint)unaff_EDI[5] > 7)
{
func_0x00001a6d(*unaff_EDI);
iVar1 = *(int *)(unaff_EBP + 0x10);
}
*unaff_EDI = unaff_EBX;
unaff_EDI[5] = unaff_ESI;
unaff_EDI[4] = iVar1;
if (unaff_ESI > 7)
{
unaff_EDI = unaff_EBX;
}
*(undefined2 *)((int)unaff_EDI + iVar1 * 2) = 0;
*in_FS_OFFSET = *(undefined4 *)(unaff_EBP + -0xc);
return;
}Could you clarify what you mean by "incorrect function decompiling"? Is there a particular part of the decompiled result that is different from what you expected? |
Beta Was this translation helpful? Give feedback.
-
|
Not entirely sure whats going on with the code. But I've found the same issue in another location. It also has a couple lines that don't get processed properly and are in a block noted with... In all three cases I've found so far it seams to be that the de-compiled code should be something like... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
While de-compiling a program the following bytes failed to decode.
0x8b 0x4d 0x10 0x83 0xc4 0x04
The program is x86 - 32 bit.
As far as I can see they should result in the following instructions.
0x8b 0x4d 0x10 mov ecx,DWORD PTR [ebp+0x10]
0x83 0xc4 0x04 add esp,0x4
Beta Was this translation helpful? Give feedback.
All reactions