The calculated distance (air line) between Maşyāf and Al Bāb is approximately 112 miles respectively 180 kilometers.
By car or train, the actual journey to Al Bāb is certainly longer, as only the direct route (as the crow flies) between Maşyāf and Al Bāb has been calculated here.