0%

Book Description

Program in assembly starting with simple and basic programs, all the way up to AVX programming. By the end of this book, you will be able to write and read assembly code, mix assembly with higher level languages, know what AVX is, and a lot more than that. 

The code used in Beginning x64 Assembly Programming is kept as simple as possible, which means: no graphical user interfaces or whistles and bells or error checking. Adding all these nice features would distract your attention from the purpose: learning assembly language. The theory is limited to a strict minimum: a little bit on binary numbers, a short presentation of logical operators, and some limited linear algebra. And we stay far away from doing floating point conversions. 

The assembly code is presented in complete programs, so that you can test them on your computer, play with them, change them, break them. This book will also show you what tools can be used, how to use them, and the potential problems in those tools. It is not the intention to give you a comprehensive course on all of the assembly instructions, which is impossible in one book: look at the size of the Intel Manuals. Instead, the author will give you a taste of the main items, so that you will have an idea about what is going on. If you work through this book, you will acquire the knowledge to investigate certain domains more in detail on your own. 

The majority of the book is dedicated to assembly on Linux, because it is the easiest platform to learn assembly language. At the end the author provides a number of chapters to get you on your way with assembly on Windows. You will see that once you have Linux assembly under your belt, it is much easier to take on Windows assembly.

This book should not be the first book you read on programming, if you have never programmed before, put this book aside for a while and learn some basics of programming with a higher-level language such as C.


What You Will Learn
  • Discover how a CPU and memory works
  • Appreciate how a computer and operating system work together
  • See how high-level language compilers generate machine language, and use that knowledge to write more efficient code
  • Be better equipped to analyze bugs in your programs
  • Get your program working, which is the fun part
  • Investigate malware and take the necessary actions and precautions

Who This Book Is For

Programmers in high level languages. It is also for systems engineers and security engineers working for malware investigators.  Required knowledge: Linux, Windows, virtualization, and higher level programming languages (preferably C or C++).

Table of Contents

  1. Cover
  2. Front Matter
  3. 1. Your First Program
  4. 2. Binary Numbers, Hexadecimal Numbers, and Registers
  5. 3. Program Analysis with a Debugger: GDB
  6. 4. Your Next Program: Alive and Kicking!
  7. 5. Assembly Is Based on Logic
  8. 6. Data Display Debugger
  9. 7. Jumping and Looping
  10. 8. Memory
  11. 9. Integer Arithmetic
  12. 10. The Stack
  13. 11. Floating-Point Arithmetic
  14. 12. Functions
  15. 13. Stack Alignment and Stack Frame
  16. 14. External Functions
  17. 15. Calling Conventions
  18. 16. Bit Operations
  19. 17. Bit Manipulations
  20. 18. Macros
  21. 19. Console I/O
  22. 20. File I/O
  23. 21. Command Line
  24. 22. From C to Assembler
  25. 23. Inline Assembly
  26. 24. Strings
  27. 25. Got Some ID?
  28. 26. SIMD
  29. 27. Watch Your MXCSR
  30. 28. SSE Alignment
  31. 29. SSE Packed Integers
  32. 30. SSE String Manipulation
  33. 31. Search for a Character
  34. 32. Compare Strings
  35. 33. Do the Shuffle!
  36. 34. SSE String Masks
  37. 35. AVX
  38. 36. AVX Matrix Operations
  39. 37. Matrix Transpose
  40. 38. Performance Optimization
  41. 39. Hello, Windows World
  42. 40. Using the Windows API
  43. 41. Functions in Windows
  44. 42. Variadic Functions
  45. 43. Windows Files
  46. Back Matter
3.144.123.147