Skip to content

Commit

Permalink
fix incorrect note about reg2reg instruction handling
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-smx committed Apr 6, 2024
1 parent 9ebebbd commit 3726956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xzre.h
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,9 @@ extern BOOL secret_data_append_if_flags(
* and making sure that the code lies between a pre-defined code range (set in @ref backdoor_setup from @ref elf_get_code_segment)
* - search for @p shift_count number of "reg2reg" instructions (explained below)
* - for each instruction, shift a '1' in the data register, and increment the shift cursor to the next bit index
* if, at any given point, a non reg2reg instruction is encountered, the whole loop will stop.
* the code only considers reg2reg instruction. other instructions are skipped.
* the function will return TRUE if the number of shifts executed == number of wanted shifts
* (that is, if there are as many compatible reg2reg instructions as the number of requested shifts)
* NOTE: MOV instructions are counted, but don't cause any shift (they are skipped).
*
* a reg2reg instruction is an x64 instruction with one of the following characteristics:
Expand Down

0 comments on commit 3726956

Please sign in to comment.