How would I change a loc to a sub IDA Pro?

4.2k Views Asked by At

Title says it all, I just want to change this

addr:
loc_74E240

That's all. This is for ROBLOX by the way

2

There are 2 best solutions below

0
On BEST ANSWER

To define loc_XXXXXX as a function you should use P. This is used to create a function where your cursor at. In some cases you'll need to undefine the current analysis done by IDA on a specific place and then redefine it as code. You can do it by pressing U and then C. Finally, by using ALT+P you can edit an existing function.

Keep in mind that creating and editing functions might cause with unwanted side-effects, so be careful with that.

For more shortcuts, see the Quick Reference Sheet by Hex-Rays.

0
On

Just use p to define the address as a function. Be careful with that because you can ruin the disassembly.