Can the game differentiate item sources?

Yeah. Dismantle tables are global based on item quality (IIRC it’s common/magic/rare/epic/leg)