Re: Using 'FileSeek' and 'Inline ASM' in Memory?
Posted: Mon Oct 16, 2023 9:02 am
Gents,
Sorry for the confusion. I'll explain the issue in detail.
Game is big so I created an alternative sample code, were you can get the 'Correct MessageBox' if you enter "I_Love_PB".
Using a debugger, you can simply change the instruction "or eax,eax" at "$10BE" to "mov al,1" to get the correct message whatever your input is, but this is Not what I want (see the picture):
https://ibb.co/jwpjghv
Actually, I need the following DLL Code to change "eax value to 1" once the code leaves RVA $10BE":
Sorry for the confusion. I'll explain the issue in detail.
Game is big so I created an alternative sample code, were you can get the 'Correct MessageBox' if you enter "I_Love_PB".
Code: Select all
If InputRequester("PoorMan", "Enter Password:", "") = "I_Love_PB"
MessageRequester("", "Password is Correct!")
Else
MessageRequester("", "Password is Incorrect!")
EndIf
https://ibb.co/jwpjghv
Actually, I need the following DLL Code to change "eax value to 1" once the code leaves RVA $10BE":
Code: Select all
EnableExplicit
ProcedureDll DoASM() ; Procedure Name will be changed later
Protected EAX.l
! mov eax, 1
! mov dword [p.v_EAX], eax ; p.v_EAX -> pointer to variable EAX
EndProcedure
DoASM()