Link to home
Start Free TrialLog in
Avatar of Mascarado
MascaradoFlag for Afghanistan

asked on

Get register length/size?

Hi guys, I need your help :/

I have a register that points to one memory address, like this:
MOV ESI,DWORD PTR SS:[00123456]

Open in new window

And, this address(00123456), have a RANDOM string, like: "Hello, this is a string".

I need to get the length/size of the string and compare, if the string length are most than 10, the string need to be cleaned.

Can anyone help me?

NOTE: I'm writing this asm code direct in executable using OllyDbg, so, procedures in MASM, TASM, NASM, etc, will not work.
Avatar of developmentguru
developmentguru
Flag of United States of America image

There could be a bit more to answering your question that you might think.  Is the string made up of one or two byte characters?  Do you know anything about the environment that created the string?  The language that was used?  Are you interfacing with a Windows API (or some other OS)?

Answer those questions and I will see what I can do.
ASKER CERTIFIED SOLUTION
Avatar of Mascarado
Mascarado
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dirk Haest
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.