I tried running the code with a simple exe file, and it appears sometimes it gets error 487, which is ERROR_INVALID_ADDRESS.
From what I read that means there isn't enough space in BaseAddress to allocate enough memory, which is weird by itself (since no memory was allocated yet so why it works most of the time but sometimes not?), but anyway any idea how to fix this?
Right now I'm just re-running all the process hollowing until it works, but it doesn't look like the best way to go.
I tried running the code with a simple exe file, and it appears sometimes it gets error 487, which is ERROR_INVALID_ADDRESS.
From what I read that means there isn't enough space in BaseAddress to allocate enough memory, which is weird by itself (since no memory was allocated yet so why it works most of the time but sometimes not?), but anyway any idea how to fix this?
Right now I'm just re-running all the process hollowing until it works, but it doesn't look like the best way to go.