rizinorg / rz-ghidra

Deep ghidra decompiler and sleigh disassembler integration for rizin
GNU Lesser General Public License v3.0
823 stars 88 forks source link

Remove pointer wrapper on imported function calls #69

Open ITAYC0HEN opened 4 years ago

ITAYC0HEN commented 4 years ago

Currently r2ghidra-dec shows calls to imported function like this:

(*_VirtualProtect)(ppcVar4, 4, 0x40, &lpflOldProtect);

But the expected output should look like this:

VirtualProtect(ppcVar4, 4, 0x40, &lpflOldProtect);

Both Ghidra and IDA treat it like this. Here is an example from GHIDRA:

image

XVilka commented 3 years ago

Please provide a sample binary to test on.

XVilka commented 1 year ago

@ITAYC0HEN could you please provide a sample/test?