Exhibit 23.2
Consent of Independent Registered Public Accounting Firm
We consent to the incorporation by reference in this Registration Statement on Form S-8 of National Bankshares, Inc. of our report dated March 10, 2023, relating to the consolidated financial statements of National Bankshares, Inc., appearing in the Annual Report on Form 10-K of National Bankshares, Inc. for the year ended December 31, 2022.
/s/ Yount, Hyde & Barbour, P.C.
Winchester, Virginia
June 7, 2023