I have loaded a dll into a program by static injection (code cave). I have already called one dll function with no parameters, so that's okey, but I want to call a function with a memory address as one of the parameters.
Like: MyDllFunction(....., LPCWSTR MemoryAddress)
The memory address (like 027B02A3) is in a local variable [EBP-8].
I'm guessing (pretty sure) that I can't just: PUSH [EBP-8]
??
What do I do to make this happen?
Or is it easier to rewrite the dll function to take a DWORD instead of LPCWSTR and do the conversion there? I think I saw an example using swprintf_s somewhere.
I'm not that experienced with assembly yet (or C/C++) and I've only been working with hardcoded strings before.