On a new Boolean function with applications