A course is the basic teaching unit, it's design as a medium for a student to acquire comprehensive knowledge and skills indispensable in the given field. A course guarantor is responsible for the factual content of the course.
For each course, there is a department responsible for the course organisation. A person responsible for timetabling for a given department sets a time schedule of teaching and for each class, s/he assigns an instructor and/or an examiner.
Expected time consumption of the course is expressed by a course attribute extent of teaching. For example, extent = 2 +2 indicates two teaching hours of lectures and two teaching hours of seminar (lab) per week.
At the end of each semester, the course instructor has to evaluate the extent to which a student has acquired the expected knowledge and skills. The type of this evaluation is indicated by the attribute completion. So, a course can be completed by just an assessment ('pouze zápočet'), by a graded assessment ('klasifikovaný zápočet'), or by just an examination ('pouze zkouška') or by an assessment and examination ('zápočet a zkouška') .
The difficulty of a given course is evaluated by the amount of ECTS credits.
The course is in session (cf. teaching is going on) during a semester. Each course is offered either in the winter ('zimní') or summer ('letní') semester of an academic year. Exceptionally, a course might be offered in both semesters.
The subject matter of a course is described in various texts.
BI-SOJ Machine Oriented Languages Extent of teaching: 2P+2C Instructor: Completion: Z,ZK Department: 18104 Credits: 4 Semester: L Annotation:
Students of the course will gain an ability to create their own programs in the assembly language of the most common PC platform focusing on optimal use of microprocessor's features and efficient cooperation of software with hardware. Next, there will be discussed x86 specifics of the majority of OSes from the application point of view linked to higher level languages. This knowledge will be used during reverse engineering, optimization, and evaluation of code security.
Lecture syllabus:
1. Processor cycle, ISA, instruction encoding, addressing 2. Subroutine calling principles, interrupts 3. i8086 processor, ISA, registers, and a real mode 4. Software interrupts, peripherials, BIOS services, DOS functions 5. Direct access to hardware, hardware interrupts, service of the basic PC peripherials 6. i80386 processor, ISA, protected mode, memory protection, address mapping, paging, segmentation 7. Code optimization and vectorization 8. Anatomy of an x86 application, user space, executable files, libraries, and relocation 9. Relation with a high level languages and reverse analysis, calling conventions, external modules 10. Application and kernel security, core dumps, attacks, code encapsulation 11. Specifics of the x86 linux kernel, startup, memory virtualization, process management 12. Specifics of the x86 Windows kernel, memory virtualization, HAL, process management Seminar syllabus:
1. Basic instructions, use of registers, relationships of the machine code and assembly language 2. Branching, subroutines, IN and OUT instructions, interaction with the user 3. Use of selected BIOSu services, COM and EXE files, working with memory 4. Interrupt handling, interrupt vector manipulation, context, and reentrance 5. Protected mode mechanisms, creation, and execution of 32-bit code 6. Optimization tasks for 16/32-bit code, pipelining, basic optimization tricks 7. Computer startup, kernel startup, analysis of basic kernel parts and (un)known errors 8. Analysis of key parts of the Windows kernel, its start. Application anatomy. 9. Calling conventions, ELF, creation of a simple int 80h application, signals, minimization 10. In-line assembly, directives, symbols and constraints, impacts of a high-level optimization 11. Root-shellcode construction, privilege escallation, security bug misuse 12. Use of unpublished instructions, code steath, and polymorphism Literature:
Brandejs, M. Mikroprocesory Intel 8086 - 80486. Brno : Fakulta informatiky, Masarykova univerzita, 2010. Dostupný z WWW: http://www.fi.muni.cz/usr/brandejs/Brandejs_Mikroprocesory_Intel_8086_80486_2010.pdf. Brandejs, M. Mikroprocesory Intel - Pentium. Brno : Fakulta informatiky, Masarykova univerzita, 2010. Dostupný z WWW: http://www.fi.muni.cz/usr/brandejs/Brandejs_Mikroprocesory_Intel_Pentium_2010.pdf.Requirements:
Informace o předmětu a výukové materiály naleznete na https://courses.fit.cvut.cz/BI-SOJ/ The course is also part of the following Study plans:
Page updated 25. 4. 2024, semester: Z,L/2023-4, Z/2019-20, Z/2024-5, L/2022-3, Z/2020-1, Z,L/2021-2, L/2020-1, Z/2022-3, L/2019-20, Send comments to the content presented here to Administrator of study plans Design and implementation: J. Novák, I. Halaška