AMENDED AND RESTATED SECURITY AGREEMENT Dated as of December 23, 2016 among BASIC ENERGY SERVICES, INC. and the other Debtors parties hereto in favor of U.S. BANK NATIONAL ASSOCIATION, as Administrative Agent