kbx: Unify blob reading functions.