Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #define SIGNATURE ((uint32_t) (0xd9 | (0x74 << 8) | (0x24 << 16) | (0xf4 << 24))
  2.  
  3. static int check_fnstenv_instr(uint8_t* buf, int buf_len, int offset)
  4. {
  5.         for (buf += offset, buf_len -= offset - 3; buf_len > 0; buf_len--)
  6.             if (*((uint32_t*)buf++) ==  SIGNATURE)
  7.                 return $MATCH$;
  8.         return $NO MATCH$;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement