I will explain this on the last of us.
- First thing to check is the executeable size in which the functions are located.
To look for it open the memory map and add up all of the executeable lenghts:
This adds up to a total of 0x1C88000 which is the lenght we are going to dump.
- To dump this we use the peek poker with a base adress of 0x400000 which represents the entry point with prot 5:
After you click on "Peek" wait for it to load into the memory view and then click "Save to File".
Name it whatever you want and save it on your desktop:
- Drag n drop the file into HxD or any other hex editor with search function.
For the last of us the default function as bytes is:
80 B9 87 2E 00 00 00 0F 85 1F 0D 00 00 80 B9 81 2E 00 00 00 0F 84 12 0D 00 00 89 C0
Search for that has hex string search.
- You should only find one entry as it is a game function you are looking for:
Now place your marker at the beginning of the marked up bytes and press "Ctrl + E".
- Copy what it says for the start offset and add 400000 as hex with the calculator:
The calculated adress is your offset that you can use in peek poker (403A28).
- Edit the hex string with peek poker at the calculated location. Replace the hex with:
80 B9 87 2E 00 00 00 0F 85 1F 0D 00 00 C6 81 81 2E 00 00 01 EB 04 12 0D 00 00 89 C0
- Click poke to send the changes to your console.
There you have it.
Simple as that.
Here are the bytes to search for:
The Last Of Us Remastered 1.00
80 B9 87 2E 00 00 00 0F 85 1F 0D 00 00 80 B9 81 2E 00 00 00 0F 84 12 0D 00 00 89 C0
Replace with that:
80 B9 87 2E 00 00 00 0F 85 1F 0D 00 00 C6 81 81 2E 00 00 01 EB 04 12 0D 00 00 89 C0
Uncharted 4 1.00
C5 FA 11 84 24 30 07 00 00 80 B8 9D 2E 00 00 00 0F 85 15 0E 00 00 80 B8 95 2E 00 00 00 0F 84 08 0E 00 00
Replace with that:
C5 FA 11 84 24 30 07 00 00 80 B8 9D 2E 00 00 00 0F 85 15 0E 00 00 C6 80 95 2E 00 00 01 EB 04 08 0E 00 00
Uncharted 4 1.18
80 B8 88 2E 00 00 00 0F 85 D7 22 00 00 80 B8 79 2E 00 00 00 0F 84 CA 22 00 00
Replace with that:
80 B8 88 2E 00 00 00 0F 85 D7 22 00 00 C6 80 79 2E 00 00 01 EB 04 CA 22 00 00
Uncharted 3 1.02 ## 0x96CB8B
41 80 BC 24 01 4C 00 00 00 0F 85 55 1A 00 00 41 8A 8C 24 FC 4B 00 00 84 C9 0F 84 45 1A 00 00
Replace with that:
41 80 BC 24 01 4C 00 00 01 0F 85 55 1A 00 00 41 8A 8C 24 FC 4B 00 00 84 C9 EB 16 45 1A 00 00
Uncharted 2 1.02 ## 0x7F8F4B
41 80 BC 24 21 48 00 00 00 0F 85 74 1A 00 00 41 8A 8C 24 8C 48 00 00 84 C9 0F 84 64 1A 00 00
Replace with that:
41 80 BC 24 21 48 00 00 01 0F 85 74 1A 00 00 41 8A 8C 24 8C 48 00 00 84 C9 EB 16 64 1A 00 00
Uncharted 1 1.02 ## 0x6CFEA0
41 80 BF E8 47 00 00 00 0F 85 AC E0 00 00 41 8A 8F 44 48 00 00 84 C9 0F 84 9D 0E 00 00
Replace with that:
41 C6 87 E8 47 00 00 00 EB 04 AC 0E 00 00 41 C6 87 44 48 00 00 01 EB 05 84 9D 0E 00 00