I have been trying to copy memory from a module from base to module size without it taking 5 years and my computer's CPU raising taller than the sky.
This script I put together is in Cheat Engine LUA, and it's copying memory via reading, then printing each byte on a single line so that I can use it to write to allocated space (memcopy // newmem2):
autoAssemble[[
alloc(newmem2, 2048)
label(memcopy)
registerSymbol(memcopy)
newmem2:
memcopy:
]]
for i = 0x00, getModuleSize("Notepad.exe") do
x = readBytes(getAddress("Notepad.exe+0" .. string.format("%x", i)))
if (string.len(x) == 1) then
print(x .. "0")
else
print(string.upper(string.format("%x", x)))
end
if (isKeyPressed(VK_F) == true) then break end
end
I am basically trying to re-create the exact module in allocated space (I don't write the memory within the script).
Help is much appreciated!