Skip to Content
Learning Malware Analysis
book

Learning Malware Analysis

by Monnappa K A
June 2018
Beginner
510 pages
13h 7m
English
Packt Publishing
Content preview from Learning Malware Analysis

9.3.7 Comparing Values in Memory (cmpsx)

The cmpsb instruction is used to compare a byte in the memory address specified by esi with a byte in the memory address specified by edi, to determine if they contain the same data. The cmpsb is normally used with repe (repe cmpsb) to compare two memory buffers; in this case, ecx will be set to the buffer length, and the comparison will continue until ecx=0 or the buffers are not equal.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Malware Analysis

Practical Malware Analysis

Michael Sikorski, Andrew Honig
Mastering Malware Analysis

Mastering Malware Analysis

Alexey Kleymenov, Amr Thabet
Evasive Malware

Evasive Malware

Kyle Cucci

Publisher Resources

ISBN: 9781788392501Other