After booting correctly, why at some point would function keys get remapped in Macbook Air?
Without knowing what programs you have installed that could be doing that:
Like some keyboard remapper...


Log in as different user to make sure there is not something in you profile preferences


or


Start in Safe mode to exclude other applications. 


Then start applications one by one to find out who is doing it.

Also check this setting in System preference keyboard: