I was working on a practice binary. It opens the file at C:/WINDOWS/system32/filename#123.dat, if the file does not exist, the check compares the result to -1 (An invalid handle). However, even after creating the file, then re-running (Using ollydbg) the handle value is still invalid (-1). I am following a walk-through where the individual goes through the exact same steps. and a valid handle is returned. I am running as administrator. Is this a known issue? Anyone have a solution to it? Been stuck for 2 days
File being accessed via:
CreateFileA
Access = GENERIC_READ
ShareMode = 0
pSecurity= NULL
Mode = OPEN_EXISTING
Attributes = NORMAL
hTemplateFile = NULL
FileName = "C:\WINDOWS\system32\filename#123.dat"
I originally tried on Windows 10, did not work, so then I hopped over to windows XP 64 bit (what the walkthrough was using - still did not work.)