2

While trying to decompile an application with Hex-Ray 7.0, I stumbled upon the problem that in nearly all cases, what seems to be a certain inline function will not be recognised, which bloats the code base and makes it really hard to read. The function seems to be strcpy or something similar. Is there a way to have the Decompiler change the mentioned parts to an inline function? Or can I do it manually somehow? Here's a screenshot to illustrate my issue:

Thanks a lot in advance!

1
  • That's strcpy or strcat. Hexrays doesn't seem to recognize it in some compilers (I used to see this in very old Watcom executables, it recognizes it fine in most MSVC binaries). Commented Oct 13, 2023 at 21:28

1 Answer 1

1

That's extremely common. Sometimes Hex-Rays recognizes these patterns, sometimes it doesn't. Get used to recognizing them visually, writing a comment if necessary, and moving on.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.