Contract

Exhibit 10.4 Execution Version XxxXxxx.xx Holdings, Inc. Shares of Common Stock (par value $0.0001 per share) Controlled Equity OfferingSM Sales Agreement May 10, 2024 Cantor Xxxxxxxxxx & Co. 000 Xxxx 00xx Xxxxxx, 0xx Xxxxx Xxx Xxxx, XX 00000 Ladies and Gentlemen: XxxXxxx.xx Holdings, Inc., a Delaware corporation (the “Company”), confirms its agreement (this “Agreement”) with Cantor Xxxxxxxxxx & Co. (the “Agent”), as follows: 1. Issuance and Sale of Shares. The Company agrees that, from time to time during the term of this Agreement, on the terms and subject to the conditions set forth herein, it may issue and sell to or through the Agent, as sales agent or principal, shares of common stock (the “Placement Shares”) of the Company, par value $0.0001 per share (the “Common Stock”); provided, however, that in no event shall the Company issue or sell through the Agent such number or dollar amount of Placement Shares that would (a) exceed the number or dollar amount of shares of Common Stock registered on the effective Registration Statement (defined below) pursuant to which the offering is being made, (b) exceed the number of authorized but unissued shares of Common Stock (less shares of Common Stock issuable upon exercise, conversion or exchange of any outstanding securities of the Company or otherwise reserved from the Company’s authorized capital stock), (c) exceed the number or dollar amount of shares of Common Stock permitted to be sold under Form S-3 (including General Instruction I.B.6 thereof, if applicable) or (d) exceed the number or dollar amount of shares of Common Stock for which the Company has filed a Prospectus Supplement (defined below) (the lesser of (a), (b), (c) and (d), the “Maximum Amount”). Notwithstanding anything to the contrary contained herein, the parties hereto agree that compliance with the limitations set forth in this Section 1 on the amount of Placement Shares issued and sold under this Agreement shall be the sole responsibility of the Company and that the Agent shall have no obligation in connection with such compliance. The offer and sale of Placement Shares through the Agent will be effected pursuant to the Registration Statement (as defined below) filed by the Company and declared effective by the Securities and Exchange Commission (the “Commission”) on April 21, 2023, although nothing in this Agreement shall be construed as requiring the Company to use the Registration Statement to issue Common Stock. The Company has filed, in accordance with the provisions of the Securities Act of 1933, as amended (the “Securities Act”), and the rules and regulations thereunder (the “Securities Act Regulations”), with the Commission a registration statement on Form S- 3 (File No. 333-271230), including a base prospectus, relating to certain securities,

33 diligence review satisfactory to it in its reasonable judgment, and to the continuing satisfaction (or waiver by the Agent in its sole discretion) of the following additional conditions: (a) Registration Statement Effective. The Registration Statement shall have become effective and shall be available for the (i) resale of all Placement Shares issued to the Agent and not yet sold by the Agent and (ii) sale of all Placement Shares contemplated to be issued by any Placement Notice. (b) No Material Notices. None of the following events shall have occurred and be continuing: (i) receipt by the Company of any request for additional information from the Commission or any other federal or state Governmental Authority during the period of effectiveness of the Registration Statement, the response to which would require any post-effective amendments or supplements to the Registration Statement or the Prospectus; (ii) the issuance by the Commission or any other federal or state Governmental Authority of any stop order suspending the effectiveness of the Registration Statement or the initiation of any proceedings for that purpose; (iii) receipt by the Company of any notification with respect to the suspension of the qualification or exemption from qualification of any of the Placement Shares for sale in any jurisdiction or the initiation or threatening of any proceeding for such purpose; or (iv) the occurrence of any event that makes any statement of a material fact made in the Registration Statement or the Prospectus or any material document incorporated or deemed to be incorporated therein by reference untrue in any material respect or that requires the making of any changes in the Registration Statement, the Prospectus or documents so that, in the case of the Registration Statement, it will not contain any materially untrue statement of a material fact or omit to state any material fact required to be stated therein or necessary to make the statements therein not misleading and, that in the case of the Prospectus, it will not contain any materially untrue statement of a material fact or omit to state a material fact required to be stated therein or necessary to make the statements therein, in the light of the circumstances under which they were made, not misleading. (c) No Misstatement or Material Omission. Agent shall not have advised the Company that the Registration Statement or Prospectus, or any amendment or supplement thereto, contains an untrue statement of fact that in the Agent’s reasonable opinion is material, or omits to state a fact that in the Agent’s reasonable opinion is material and is required to be stated therein or is necessary to make the statements therein not misleading. (d) Material Changes. Except as contemplated in the Prospectus, or disclosed in the Company’s reports filed with the Commission, there shall not have been any material adverse change in the authorized capital stock of the Company or any Material Adverse Effect or any development that would cause a Material Adverse Effect, or a downgrading in or withdrawal of the rating assigned to any of the Company’s securities (other than asset backed securities) by any rating organization or a public announcement by any rating organization that it has under surveillance

36 of Section 15 of the Securities Act or Section 20 of the Exchange Act against any and all loss, liability, claim, damage and expense described in the indemnity contained in Section 10(a), as incurred, but only with respect to untrue statements or omissions, or alleged untrue statements or omissions, made in the Registration Statement (or any amendments thereto), the Prospectus (or any amendment or supplement thereto) or any Issuer Free Writing Prospectus (or any amendment or supplement thereto) in reliance upon and in conformity with information relating to the Agent and furnished to the Company in writing by the Agent expressly for use therein. The Company hereby acknowledges that the only information that the Agent has furnished to the Company expressly for use in the Registration Statement, the Prospectus, any Prospectus Supplement or any Issuer Free Writing Prospectus (or any amendment or supplement thereto) are the statements set forth in the seventh and eighth paragraphs under the caption “Plan of Distribution” in the Prospectus (the “Agent Information”). (c) Procedure. Any party that proposes to assert the right to be indemnified under this Section 10 will, promptly after receipt of notice of commencement of any action against such party in respect of which a claim is to be made against an indemnifying party or parties under this Section 10, notify each such indemnifying party of the commencement of such action, enclosing a copy of all papers served, but the omission so to notify such indemnifying party will not relieve the indemnifying party from (i) any liability that it might have to any indemnified party otherwise than under this Section 10 and (ii) any liability that it may have to any indemnified party under the foregoing provision of this Section 10 unless, and only to the extent that, such omission results in the forfeiture of substantive rights or defenses by the indemnifying party. If any such action is brought against any indemnified party and it notifies the indemnifying party of its commencement, the indemnifying party will be entitled to participate in and, to the extent that it elects by delivering written notice to the indemnified party promptly after receiving notice of the commencement of the action from the indemnified party, jointly with any other indemnifying party similarly notified, to assume the defense of the action, with counsel reasonably satisfactory to the indemnified party, and after notice from the indemnifying party to the indemnified party of its election to assume the defense, the indemnifying party will not be liable to the indemnified party for any other legal expenses except as provided below and except for the reasonable costs of investigation subsequently incurred by the indemnified party in connection with the defense. The indemnified party will have the right to employ its own counsel in any such action, but the fees, expenses and other charges of such counsel will be at the expense of such indemnified party unless (1) the employment of counsel by the indemnified party has been authorized in writing by the indemnifying party, (2) the indemnified party has reasonably concluded (based on advice of counsel) that there may be legal defenses available to it or other indemnified parties that are different from or in addition to those available to the indemnifying party, (3) a conflict or potential conflict exists (based on advice of counsel to the indemnified party) between the indemnified party and the indemnifying party (in which case the indemnifying party will not have the right to direct the defense of such action on

38 other hand. The relative benefits received by the Company on the one hand and the Agent on the other hand shall be deemed to be in the same proportion as the total net proceeds from the sale of the Placement Shares (before deducting expenses) received by the Company bear to the total compensation received by the Agent from the sale of Placement Shares on behalf of the Company. If, but only if, the allocation provided by the foregoing sentence is not permitted by applicable law, the allocation of contribution shall be made in such proportion as is appropriate to reflect not only the relative benefits referred to in the foregoing sentence but also the relative fault of the Company, on the one hand, and the Agent, on the other hand, with respect to the statements or omission that resulted in such loss, claim, liability, expense or damage, or action in respect thereof, as well as any other relevant equitable considerations with respect to such offering. Such relative fault shall be determined by reference to, among other things, whether the untrue or alleged untrue statement of a material fact or omission or alleged omission to state a material fact relates to information supplied by the Company or the Agent, the intent of the parties and their relative knowledge, access to information and opportunity to correct or prevent such statement or omission. The Company and the Agent agree that it would not be just and equitable if contributions pursuant to this Section 10(e) were to be determined by pro rata allocation or by any other method of allocation that does not take into account the equitable considerations referred to herein. The amount paid or payable by an indemnified party as a result of the loss, claim, liability, expense, or damage, or action in respect thereof, referred to above in this Section 10(e) shall be deemed to include, for the purpose of this Section 10(e), any legal or other expenses reasonably incurred by such indemnified party in connection with investigating or defending any such action or claim to the extent consistent with Section 10(c) hereof. Notwithstanding the foregoing provisions of this Section 10(e), the Agent shall not be required to contribute any amount in excess of the commissions received by it under this Agreement and no person found guilty of fraudulent misrepresentation (within the meaning of Section 11(f) of the Securities Act) will be entitled to contribution from any person who was not guilty of such fraudulent misrepresentation. For purposes of this Section 10(e), any person who controls a party to this Agreement within the meaning of the Securities Act, any affiliates of the Agent and any officers, directors, partners, employees or agents of the Agent or any of its affiliates, will have the same rights to contribution as that party, and each director of the Company and each officer of the Company who signed the Registration Statement will have the same rights to contribution as the Company, subject in each case to the provisions hereof. Any party entitled to contribution, promptly after receipt of notice of commencement of any action against such party in respect of which a claim for contribution may be made under this Section 10(e), will notify any such party or parties from whom contribution may be sought, but the omission to so notify will not relieve that party or parties from whom contribution may be sought from any other obligation it or they may have under this Section 10(e) except to the extent that the failure to so notify such other party materially prejudiced the substantive rights or defenses of the party from whom contribution is sought. Except for a settlement entered into pursuant to the last sentence of Section 10(c) hereof, no party will be liable for

41 Mintz, Xxxxx, Xxxx, Xxxxxx, Xxxxxxx and Xxxxx, P.C. One Financial Center Boston, Massachusetts 02111 Attention: Xxxx X. Xxxx, Xxx. Email: XXxxx@xxxxx.xxx and if to the Company, shall be delivered to: BigBear.ai Holdings, Inc. 0000 Xxxxxxxx Xxxxxxxx Xxxxx, Xxxxx 000 Xxxxxxxx, Xxxxxxxx 00000 Attention: Xxxxxxx Xxxxxxxxxxx Email: xxxxxxx.xxxxxxxxxxx@xxxxxxx.xx with a copy to: Xxxxxx & Xxxxxxx LLP 0000 Xxxxxx xx xxx Xxxxxxxx Xxx Xxxx, XX 0000 Attention: Xxxxx Xxxxxxxxxx, Esq. Xxxxxx Xxxxxxxx, Esq. Email: xxxxx.xxxxxxxxxx@xx.xxx xxxxxx.xxxxxxxx@xx.xxx Each party to this Agreement may change such address for notices by sending to the parties to this Agreement written notice of a new address for such purpose. Each such notice or other communication shall be deemed given (i) when delivered personally or by verifiable facsimile transmission (with an original to follow) on or before 4:30 p.m., New York City time, on a Business Day or, if such day is not a Business Day, on the next succeeding Business Day, (ii) by Electronic Notice, as set forth below, (iii) on the next Business Day after timely delivery to a nationally-recognized overnight courier and (iv) on the Business Day actually received if deposited in the U.S. mail (certified or registered mail, return receipt requested, postage prepaid). For purposes of this Agreement, “Business Day” shall mean any day on which the Exchange and commercial banks in the City of New York are open for business. An electronic communication (“Electronic Notice”) shall be deemed written notice for purposes of this Section 13 if sent to the electronic mail address specified by the receiving party under separate cover. Electronic Notice shall be deemed received at the time the party sending Electronic Notice receives verification of receipt by the receiving party. Any party receiving Electronic Notice may request and shall be entitled to receive the notice on paper, in a nonelectronic form (“Nonelectronic Notice”) which shall be sent to the requesting party within ten (10) days of receipt of the written request for Nonelectronic Notice. 14. Successors and Assigns. This Agreement shall inure to the benefit of and be binding upon the Company and the Agent and their respective successors and the parties referred to in Section 10 hereof. References to any of the parties contained in this Agreement shall be

45 “Applicable Time” means (i) each Representation Date, (ii) the time of each sale of any Placement Shares pursuant to this Agreement and (iii) each Settlement Date. “Governmental Authority” means (i) any federal, provincial, state, local, municipal, national or international government or governmental authority, regulatory or administrative agency, governmental commission, department, board, bureau, agency or instrumentality, court, tribunal, arbitrator or arbitral body (public or private); (ii) any self- regulatory organization; or (iii) any political subdivision of any of the foregoing. “Issuer Free Writing Prospectus” means any “issuer free writing prospectus,” as defined in Rule 433, relating to the Placement Shares that (1) is required to be filed with the Commission by the Company, (2) is a “road show” that is a “written communication” within the meaning of Rule 433(d)(8)(i) whether or not required to be filed with the Commission, or (3) is exempt from filing pursuant to Rule 433(d)(5)(i) because it contains a description of the Placement Shares or of the offering that does not reflect the final terms, in each case in the form filed or required to be filed with the Commission or, if not required to be filed, in the form retained in the Company’s records pursuant to Rule 433(g) under the Securities Act Regulations. “Rule 164,” “Rule 172,” “Rule 405,” “Rule 415,” “Rule 424,” “Rule 424(b),” “Rule 430B,” and “Rule 433” refer to such rules under the Securities Act Regulations. All references in this Agreement to financial statements and schedules and other information that is “contained,” “included” or “stated” in the Registration Statement or the Prospectus (and all other references of like import) shall be deemed to mean and include all such financial statements and schedules and other information that is incorporated by reference in the Registration Statement or the Prospectus, as the case may be. All references in this Agreement to the Registration Statement, the Prospectus or any amendment or supplement to any of the foregoing shall be deemed to include the copy filed with the Commission pursuant to XXXXX; all references in this Agreement to any Issuer Free Writing Prospectus (other than any Issuer Free Writing Prospectuses that, pursuant to Rule 433, are not required to be filed with the Commission) shall be deemed to include the copy thereof filed with the Commission pursuant to XXXXX; and all references in this Agreement to “supplements” to the Prospectus shall include, without limitation, any supplements, “wrappers” or similar materials prepared in connection with any offering, sale or private placement of any Placement Shares by the Agent outside of the United States. [Signature Page Follows]

46 If the foregoing correctly sets forth the understanding between the Company and the Agent, please so indicate in the space provided below for that purpose, whereupon this letter shall constitute a binding agreement between the Company and the Agent. Very truly yours, XXXXXXX.XX HOLDINGS, INC. By: /s/ Xxxxx Xxxx Name: Xxxxx Xxxx Title: Chief Executive Officer ACCEPTED as of the date first-above written: XXXXXX XXXXXXXXXX & CO. By: /s/ Xxxxxx Xxxxxxx Name: Xxxxxx Xxxxxxx Title: Managing Director