{"id":29719472,"url":"https://github.com/phlearning/assembly_crash_course","last_synced_at":"2025-10-08T09:19:22.825Z","repository":{"id":252296491,"uuid":"838867652","full_name":"phlearning/assembly_crash_course","owner":"phlearning","description":"Collection of assembly exercises that I've done (exercises from pwn college)","archived":false,"fork":false,"pushed_at":"2024-08-29T13:55:58.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-29T15:29:23.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phlearning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-06T13:54:41.000Z","updated_at":"2024-08-29T13:56:02.000Z","dependencies_parsed_at":"2024-08-08T22:13:30.590Z","dependency_job_id":"fd200887-a988-43ac-9ff7-e5005402648f","html_url":"https://github.com/phlearning/assembly_crash_course","commit_stats":null,"previous_names":["phlearning/assembly_crash_course"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phlearning/assembly_crash_course","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlearning%2Fassembly_crash_course","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlearning%2Fassembly_crash_course/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlearning%2Fassembly_crash_course/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlearning%2Fassembly_crash_course/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phlearning","download_url":"https://codeload.github.com/phlearning/assembly_crash_course/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phlearning%2Fassembly_crash_course/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266836325,"owners_count":23992596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-24T11:44:12.547Z","updated_at":"2025-10-08T09:19:22.737Z","avatar_url":"https://github.com/phlearning.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1\u003e Assembly Crash Course \u003c/h1\u003e\n\n\u003e https://pwn.college/fundamentals/assembly-crash-course/\n\nThe course is part of the fundamentals series offered by pwn.college, designed to provide a comprehensive introduction to assembly language programming.\n\n\u003ch2\u003e Table of Content \u003c/h2\u003e\n\n- [Course Overview](#course-overview)\n- [Key Topics Covered](#key-topics-covered)\n- [Learning Format](#learning-format)\n- [Target Audience](#target-audience)\n- [Some registers](#some-registers)\n\t- [General-Purpose Registers](#general-purpose-registers)\n\t- [Extended General-Purpose Registers](#extended-general-purpose-registers)\n\t- [Instruction Pointer](#instruction-pointer)\n\t- [Flags Register](#flags-register)\n\t- [Instruction Pointer and Flags](#instruction-pointer-and-flags)\n\n## Course Overview\n\nThe Assembly Crash Course covers a wide range of topics, from basic register operations to more advanced concepts like control flow and library function usage. It's structured to provide hands-on experience through a series of challenges, allowing learners to practice and apply their knowledge.\n\n## Key Topics Covered\n\n- **Register Operations**: Setting single and multiple registers\n- **Arithmetic Operations**: Addition, multiplication, division, and modulus\n- **Register Sizes**: Understanding different register sizes and their implications\n- **Bitwise Operations**: Shift, AND, and other logical operations\n- **Memory Operations**: Reading from and writing to memory\n- **Stack Usage**: Manipulating the stack for various operations\n- **Control Flow**: Jumps, conditional branches, and jump tables\n- **Practical Applications**: Computing averages, implementing strlen, and using library functions\n- **Advanced Concepts**: Computing the most common byte\n\n## Learning Format\n\nThe course is structured around hands-on challenges. Each topic includes practical exercises that reinforce the concepts learned. This approach allows students to immediately apply their knowledge and gain practical experience in assembly programming.\n\n## Target Audience\n\nThis crash course is ideal for:\n- Students learning malware analysis\n- Programmers looking to understand low-level operations\n- Anyone interested in computer architecture and assembly language\n\n## Some registers\n\n### General-Purpose Registers\n1. **RAX** - Accumulator register, often used for arithmetic operations and return values from functions.\n2. **RBX** - Base register, typically used as a base pointer for data access in memory.\n3. **RCX** - Counter register, often used for loop counters and shift operations.\n4. **RDX** - Data register, used for I/O operations and as a secondary accumulator.\n5. **RSI** - Source Index register, used for string operations and as a source pointer in memory.\n6. **RDI** - Destination Index register, used for string operations and as a destination pointer in memory.\n7. **RBP** - Base Pointer register, used to point to the base of the stack frame.\n8. **RSP** - Stack Pointer register, points to the top of the stack.\n\n### Extended General-Purpose Registers\n- **R8** through **R15** - Additional general-purpose registers introduced in the x86-64 architecture, providing more options for holding data or addresses.\n\n### Instruction Pointer\n- **RIP** - Instruction Pointer register, holds the address of the next instruction to be executed.\n\n### Flags Register\n- **RFLAGS** - The Flags register contains status flags, control flags, and system flags. Some key flags include:\n  - **ZF** (Zero Flag) - Set if the result of an operation is zero.\n  - **CF** (Carry Flag) - Set if an arithmetic operation generates a carry out of the most significant bit.\n  - **OF** (Overflow Flag) - Set if an arithmetic operation generates an overflow.\n  - **SF** (Sign Flag) - Set if the result of an operation is negative.\n  - **PF** (Parity Flag) - Set if the number of set bits in the result is even.\n\n### Instruction Pointer and Flags\n- **RIP** - Holds the address of the next instruction to be executed.\n- **RFLAGS** - Contains the status and control flags for various operations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlearning%2Fassembly_crash_course","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphlearning%2Fassembly_crash_course","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlearning%2Fassembly_crash_course/lists"}