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

4. Arithmetic Operations

You can perform addition, subtraction, multiplication, and division in assembly language. A addition and subtraction are performed using the add and sub instructions, respectively. These instructions take two operands: destination and source. The add instruction adds the source and destination and stores the result in the destination. The sub instruction subtracts the source from the destination operand, and the result is stored in the destination. These instructions set or clear flags in the eflags register, based on the operation. These flags can be used in the conditional statements. The sub instruction sets the zero flag, (zf), if the result is zero, and the carry flag, (cf), if the destination value is less than ...

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