Document:

EX-10.32.5

 Exhibit 10.32.5 

EXECUTION 
 AMENDMENT NO.
5 TO 
 MASTER REPURCHASE AGREEMENT 

Amendment No. 5 to Master Repurchase Agreement, dated as of September 25, 2020 (this “Amendment”), among CREDIT
SUISSE FIRST BOSTON MORTGAGE CAPITAL LLC (the “Administrative Agent”), CREDIT SUISSE AG, a company incorporated in Switzerland, acting through its Cayman Islands Branch (“CS Cayman” and a “Buyer”), ALPINE
SECURITIZATION LTD (“Alpine” and a “Buyer” and together with CS Cayman, the “Buyers”) and LOANDEPOT.COM, LLC (the “Seller”). 

RECITALS 
 The
Administrative Agent, CS Cayman and the Seller are parties to that certain (i) Master Repurchase Agreement, dated as of March 10, 2017 (as amended by Amendment No. 1, dated as of August 11, 2017, Amendment No. 2, dated as of
January 31, 2018, Amendment No. 3, dated as of April 8, 2019 and Amendment No. 4, dated as of February 26, 2020, the “Existing Repurchase Agreement”; and as further amended by this Amendment, the
“Repurchase Agreement”) and (ii) Pricing Side Letter, dated as of March 10, 2017 (as amended, restated, supplemented or otherwise modified from time to time, the “Pricing Side Letter”). Capitalized terms
used but not otherwise defined herein shall have the meanings given to them in the Repurchase Agreement or Pricing Side Letter, as applicable. 

The Administrative Agent, the Buyers and the Seller have agreed, subject to the terms and conditions of this Amendment, that the Existing
Repurchase Agreement be amended to reflect certain agreed upon revisions to the terms of the Existing Repurchase Agreement. 
 Accordingly,
the Administrative Agent, the Buyers and the Seller hereby agree, in consideration of the mutual promises and mutual obligations set forth herein, that the Existing Repurchase Agreement is hereby amended as follows: 

SECTION 1. Joinder of Alpine. Alpine hereby agrees to all of the provisions of the Repurchase Agreement and accepts all the duties and
responsibilities of a Buyer under the Repurchase Agreement and agrees to assume the duties and be bound by each of the obligations of a Buyer and is hereby made a party to the Repurchase Agreement from and after the date hereof. All references to
Buyer and Buyers in the Repurchase Agreement and the other Program Agreements shall be deemed to include Alpine. 
 SECTION 2.
Definitions. Section 2 of the Existing Repurchase Agreement is hereby amended by: 
 2.1 deleting the definitions of
“Affiliate”, “Buyer”, “Change in Control”, “Custodial Agreement”, “Electronic Tracking Agreement” and “Servicer” in their entirety and replacing
them with the following: 

 “Affiliate” means, with respect to any Person, any “affiliate” of
such Person, as such term is defined in the Bankruptcy Code; which shall also include, for the avoidance of doubt, with respect to Administrative Agent only, any CP Conduit; provided, however, notwithstanding the foregoing, none of the
direct or indirect holders of any equity interest in Parthenon Investors III, L.P., PCap Associates, Parthenon Capital Partners Fund, L.P., Parthenon loanDepot Partners, LP, Parthenon Capital Partners Fund II, LP, or Parthenon Investors IV, LP
(which six companies are, as of the date of this Agreement, the owners of all of the stock of LD Investment Holdings, Inc.), JLSA, LLC, Trilogy Mortgage Holdings, Inc., Anthony Hsieh or his Family Members and his Family Trusts, or any entity
“controlling” or “controlled by” or “under common control with” any direct or indirect holders of any equity interest in any of the foregoing named companies (other than LD Investment Holdings, Inc., Seller or
Seller’s Subsidiaries), shall constitute an “Affiliate” of Seller or any of its Subsidiaries. 
 “Buyer”
means CS Cayman, Alpine and each other Buyer which becomes a party hereto pursuant to and in accordance with Section 22 hereof and, with respect to Section 11 hereof, its participants. 

“Change in Control” means: 

(1) the acquisition by any Person, or two or more Persons acting in concert, of beneficial ownership (within the meaning of Rule 13d-3 of the Securities and Exchange Commission under the Securities Exchange Act of 1934, as amended) of outstanding shares of voting stock (or equivalent equity interests) of Seller at any time if, after giving
effect to such acquisition, Parthenon Investors III, L.P., PCap Associates, Parthenon Capital Partners Fund, L.P., JLSA, LLC, Parthenon Investors IV, LP, Parthenon Capital Partners Fund II, LP, Parthenon loanDepot Partners, LP, Trilogy Mortgage
Holdings, Inc. and Anthony Hsieh and his Family Members and his Family Trusts, do not together own and control, directly or indirectly, more than fifty percent (50%) of the outstanding voting equity interests of Seller; 

(2) the sale, transfer, or other disposition of all or substantially all of Seller’s assets (excluding any such action taken in connection
with any securitization transaction); 
 (3) Seller enters into any transaction or series of transactions to adopt, file, effect or
consummate a Division, or otherwise permits any such Division to be adopted, filed, effected or consummated; or 
 (4) the consummation of a
merger or consolidation of Seller with or into another entity or any other corporate reorganization, if more than 50% of the combined voting power of the continuing or surviving entity’s stock outstanding immediately after such merger,
consolidation or such other reorganization is owned by Persons who were not stockholders of Seller immediately prior to such merger, consolidation or other reorganization. 

“Custodial Agreement” means the Amended and Restated Custodial Agreement, dated as of September 25, 2020, among Seller,
Administrative Agent, Buyers and Custodian, as the same may be amended, restated, supplemented or otherwise modified from time to time. 

“Electronic Tracking Agreement” means one or more Electronic Tracking Agreements with respect to (x) the tracking of
changes in the ownership, mortgage servicers and servicing rights ownership of Purchased Mortgage Loans held on the MERS System, and (y) the tracking of the Control of eNotes held on the MERS eRegistry, each in a form acceptable to
Administrative Agent. 

  
 2 

 “Servicer” means Cenlar FSB, Seller and any other servicer or subservicer
approved by Administrative Agent in its sole good faith discretion. 
 1.2 adding the following definitions in their proper alphabetical
order: 
 “Additional Buyers” shall have the meaning set forth in Section 35 hereof. 

“Agency-Required eNote Legend” means the legend or paragraph required by Fannie Mae or Freddie Mac, as applicable, to be set
forth in the text of an eNote, which includes the provisions set forth on Exhibit Q to the Custodial Agreement, as may be amended from time to time by Fannie Mae or Freddie Mac, as applicable. 

“Authoritative Copy” means, with respect to an eNote, the unique copy of such eNote that is within the Control of the
Controller. 
 “Beneficial Ownership Certification” means a certification regarding beneficial ownership required by the
Beneficial Ownership Regulation. 
 “Beneficial Ownership Regulation” means 31 C.F.R. § 1010.230. 

“Control” means, with respect to an eNote, the “control” of such eNote within the meaning of UETA and/or, as
applicable, E-Sign, which is established by reference to the MERS eRegistry and any party designated therein as the Controller. 

“Control Failure” means, with respect to an eNote, the failure of the Controller status of the eNote in the MERS eRegistry to
reflect Administrative Agent’s MERS Org ID as a result of an unauthorized Transfer of Control or unauthorized Transfer of Control and Location, in either case, initiated by Custodian or through Custodian’s system, in contravention of the
terms of this Agreement; provided that (i) Custodian delivered the most recent Custodial Asset Schedule and exception report reflecting the Location status of the eNote as the Custodian’s MERS Org ID and the Controller status of the eNote
as Administrative Agent’s MERS Org ID and (ii) the Controller status and Location status of such eNote have not been transferred pursuant to (x) a Request for Release of Documents (as defined in the Custodial Agreement) or
(y) Administrative Agent’s written request or instruction. 
 “Controller” means, with respect to an eNote, the
party designated in the MERS eRegistry as the “Controller”, and who in such capacity shall be deemed to be “in control” or to be the “controller” of such eNote within the meaning of UETA or E-Sign, as applicable. 
 “CP Conduit” means a commercial paper conduit, including but
not limited to Alpine Securitization LTD, administered, managed or supported by CSFBMC or an Affiliate of CSFBMC. 
 “Debtor Relief
Law” means any law, administration, or regulation relating to reorganization, winding up, administration, composition or adjustment of debts or otherwise relating to bankruptcy or insolvency. 

  
 3 

 “Delegatee” means, with respect to an eNote, the party designated in the
MERS eRegistry as the “Delegatee” or “Delegatee for Transfers”, who in such capacity is authorized by the Controller to perform certain MERS eRegistry transactions on behalf of the Controller such as Transfers of Control and
Transfers of Control and Location. 
 “Division” means the division of a limited liability company into two or more limited
liability companies pursuant to and in accordance with Section 18-217 of Chapter 18 of the Delaware Limited Liability Company Act, 6 Del. C. §§ 18-101 et
seq., as amended. 
 “Electronic Agent” means MERSCORP Holdings, Inc., or its successor in interest or assigns. 

“Electronic Record” means, as the context requires, (i) “Record” and “Electronic Record,” both as defined
in E-Sign, and shall include but not be limited to, recorded telephone conversations, fax copies or electronic transmissions, including without limitation, those involving the Warehouse Electronic System, and
(ii) with respect to an eMortgage Loan, the related eNote and all other documents comprising the Mortgage File electronically created and that are stored in an electronic format, if any. 

“eMortgage Loan” means a Mortgage Loan that is a Conforming Mortgage Loan (other than an FHA Loan or VA Loan) with respect to
which there is an eNote and as to which some or all of the other documents comprising the related Mortgage File may be created electronically and not by traditional paper documentation with a pen and ink signature. 

“eNote” means, with respect to any eMortgage Loan, the electronically created and stored Mortgage Note that is a Transferable
Record. 
 “eNote Delivery Requirement” shall have the meaning set forth in Section 3(c) hereof. 

“eNote Replacement Failure” shall have the meaning set forth in the Custodial Agreement. 

“E-Sign” means the federal Electronic Signatures in Global and National Commerce Act,
as amended from time to time. 
 “eVault” means an electronic repository established and maintained by an eVault Provider
for delivery and storage of eNotes. 
 “eVault Provider” means Document Systems, Inc. d/b/a DocMagic, or its successor in
interest or assigns, or such other entity agreed upon by Custodian or Administrative Agent. 
 “Family Members” means, with
respect to any individual, any other individual having a relationship by blood, marriage or adoption to such individual. 

  
 4 

 “Family Trusts” means, with respect to any individual, any trust or other
estate planning vehicle established for the benefit of such individual or Family Members of such individual. 
 “Hash
Value” means, with respect to an eNote, the unique, tamper-evident digital signature of such eNote that is stored with MERS. 

“Location” means, with respect to an eNote, the location of such eNote which is established by reference to the MERS
eRegistry. 
 “Master Servicer Field” means, with respect to an eNote, the field entitled, “Master Servicer” in
the MERS eRegistry. 
 “MERS eDelivery” means the transmission system operated by the Electronic Agent that is used to
deliver eNotes, other Electronic Records and data from one MERS eRegistry member to another using a system-to-system interface and conforming to the standards of the
MERS eRegistry. 
 “MERS eRegistry” means the electronic registry operated by the Electronic Agent that acts as the legal
system of record that identifies the Controller, Delegatee and Location of the Authoritative Copy of registered eNotes. 
 “MERS Org
ID” means a number assigned by the Electronic Agent that uniquely identifies MERS members, or, in the case of a MERS Org ID that is a “Secured Party Org ID”, uniquely identifies MERS eRegistry members, which assigned numbers for
each of Administrative Agent, Seller and Custodian have been provided to the parties hereto. 
 “Subservicer Field” means,
with respect to an eNote, the field entitled, “Subservicer” in the MERS eRegistry. 
 “Transfer of Control”
means, with respect to an eNote, a MERS eRegistry transfer transaction used to request a change to the current Controller of such eNote. 

“Transfer of Control and Location” means, with respect to an eNote, a MERS eRegistry transfer transaction used to request a
change to the current Controller and Location of such eNote. 
 “Transfer of Location” means, with respect to an eNote, a
MERS eRegistry transfer transaction used to request a change to the current Location of such eNote. 
 “Transferable
Record” means an Electronic Record under E-Sign and UETA that (i) would be a note under the Uniform Commercial Code if the Electronic Record were in writing, (ii) the issuer of the
Electronic Record has expressly agreed is a “transferable record”, and (iii) for purposes of E-SIGN, relates to a loan secured by real property. 

“Transfer of Servicing”: means, with respect to an eNote, a MERS eRegistry transfer transaction used to request a change to
the current Master Servicer Field or Subservicer Field of such eNote. 

  
 5 

 “UETA” means the Official Text of the Uniform Electronic Transactions Act
as approved by the National Conference of Commissioners on Uniform State Laws at its Annual Conference on July 29, 1999. 

“Unauthorized Master Servicer or Subservicer Modification” means, with respect to an eNote, a Transfer of Location, Transfer
of Servicing or a change in any other information, status or data, including, without limitation, a change of the Master Servicer Field or Subservicer Field with respect to such eNote on the MERS eRegistry, initiated by the Seller, any Servicer or a
vendor. 
 “Warehouse Electronic System” means the system utilized by or Administrative Agent either directly, or through
its vendors, and which may be accessed by Seller in connection with delivering and obtaining information and requests in connection with the Program Agreements. 

SECTION 3. eNote Delivery Requirements. Section 3(c) of the Existing Repurchase Agreement is hereby amended by deleting such
section in its entirety and replacing it with the following: 
 (c) With respect to any eMortgage Loan, Seller shall deliver to Custodian
each of Administrative Agent’s and Seller’s MERS Org IDs, and shall cause (i) the Authoritative Copy of the related eNote to be delivered to the eVault via a secure electronic file, (ii) the Controller status of the related eNote
to be transferred to Administrative Agent, (iii) the Location status of the related eNote to be transferred to Custodian, and (iv) the Delegatee status of the related eNote to be transferred to Custodian, in each case using MERS eDelivery
and the MERS eRegistry and (v) the Master Servicer Field or Subservicer Field, as applicable, status of the related eNote to be transferred to Seller (collectively, the “eNote Delivery Requirements”). 

SECTION 4. Repurchase. Section 4(b) of the Existing Repurchase Agreement is hereby amended by deleting such section in its
entirety and replacing it with the following: 
 (b) Provided that no Default shall have occurred and is continuing, and Administrative Agent
has received the related Repurchase Price (excluding accrued and unpaid Price Differential, which, for the avoidance of doubt, shall be paid on the next succeeding Price Differential Payment Date) upon repurchase of the Purchased Assets,
Administrative Agent and Buyers will each be deemed to have released their respective interests hereunder in the Purchased Assets (and the Repurchase Assets related thereto) at the request of Seller. The Purchased Assets (and the Repurchase Assets
related thereto) shall be delivered to Seller free and clear of any lien, encumbrance or claim of Administrative Agent or the Buyers, and the Administrative Agent shall execute and deliver such terminations and releases as the Seller may reasonably
request to evidence the foregoing. With respect to payments in full by the related Mortgagor of a Purchased Mortgage Loan, Seller agrees to promptly remit (or cause to be remitted) to Administrative Agent for the benefit of Buyers the Repurchase
Price with respect to such Purchased Mortgage Loan. Administrative Agent and Buyers agree to release their respective interests in Purchased Mortgage Loans which have been prepaid in full after receipt of evidence of compliance with the immediately
preceding sentence. 

  
 6 

 SECTION 5. Conveyance; Security Interest. Section 8(a) of the Existing
Repurchase Agreement is hereby amended by deleting such section in its entirety and replacing with the following: 
 (a) Conveyance;
Security Interest. (1) On each Purchase Date, Seller hereby sells, assigns and conveys all rights and interests in the Purchased Assets identified on the related Asset Schedule, including related Servicing Rights and Asset Documents, and
the Repurchase Assets to Administrative Agent for the benefit of Buyers. Although the parties intend that all Transactions hereunder be sales and purchases and not loans, in the event any such Transactions are deemed to be loans, and in any event,
Seller hereby pledges to Administrative Agent as security for the performance by Seller of the Obligations and hereby grants, assigns and pledges to Administrative Agent a fully perfected first priority security interest (in each case, to the extent
a security interest may be perfected by possession, control or filing of a UCC financing statement) in the Purchased Assets, including related Servicing Rights and Asset Documents related to such Purchased Assets, the Servicer Advances related to
such Purchased Assets, all debenture interests payable by HUD on account of any GNMA EBO which constitutes a Purchased Asset, any Agency Security or right to receive such Agency Security when issued to the extent backed by any of the Purchased
Assets, the Records related to the Purchased Assets, the Program Agreements (to the extent such Program Agreements and Seller’s rights thereunder relate to the Purchased Assets), any related Take-out
Commitments related to such Purchased Assets, any Property relating to the Purchased Assets, all insurance policies and insurance proceeds relating to any Purchased Asset or the related Mortgaged Property, including, but not limited to, any payments
or proceeds under any related primary insurance, hazard insurance and FHA Mortgage Insurance Contracts and VA Loan Guaranty Agreements (if any), Income related to such Purchased Assets, the Collection Account, Interest Rate Protection Agreements
related to such Purchased Assets, deposit accounts or securities accounts related to the Purchased Assets (including any interest of Seller in escrow accounts) and any other contract rights, instruments, deposit accounts or securities accounts,
payments, rights to payment (including payments of interest or finance charges), general intangibles and other assets, in each case, relating to the Purchased Assets and any proceeds (including the related securitization proceeds) and distributions
with respect to any of the foregoing, whether now owned or hereafter acquired, now existing or hereafter created in each case excluding any Take-out Commitments and Interest Rate Protection Agreements to the
extent Seller may not, pursuant to the provisions thereof, assign or transfer, or pledge or grant a security interest in, such Take-out Commitments or Interest Rate Protection Agreements without the consent
of, or without violating its obligations to, the related Take-out Investor or counterparty to such Interest Rate Hedging Agreement, but only to the extent such provisions are not rendered ineffective against
the Administrative Agent under Article 9, Part 4 of the Uniform Commercial Code (collectively, the “Repurchase Assets”). (2) Administrative Agent and Seller hereby agree that in order to further secure Seller’s Obligations
hereunder, Seller hereby grants to Administrative Agent, for the benefit of Buyers, a security interest in Seller’s rights under the VFN Repurchase Agreement, including, without limitation, any rights to receive payments thereunder or any
rights to collateral thereunder whether now owned or hereafter acquired, now existing or hereafter created. Seller shall deliver an irrevocable instruction (the “Irrevocable Instruction Letter”) to the buyer under the VFN Repurchase
Agreement that upon receipt of a notice of an Event of Default under this Agreement, the buyer thereunder is authorized and instructed to remit to Administrative Agent for the benefit of Buyers hereunder directly any amounts otherwise payable to
Seller and to deliver to Administrative 

  
 7 

 
Agent for the benefit of Buyers all collateral otherwise deliverable to Seller. In furtherance of the foregoing, the Irrevocable Instruction Letter shall also require, upon (i) repayment of
the entire obligations under the VFN Repurchase Agreement and the termination of all obligations of the seller thereunder or other termination of the VFN Repurchase Agreement following the repayment of all obligations thereunder, and (ii) if
buyer thereunder has received a notice of an Event of Default under this Agreement, that the buyer thereunder deliver to Administrative Agent for the benefit of Buyers hereunder any collateral then in its possession or control. 

SECTION 6. Covenants. Sections 14(hh) and (ii) of the Existing Repurchase Agreement is hereby amended by deleting such section in
its entirety and replacing it with the following: 
 (hh) MERS. Seller shall comply in all material respects with the rules and
procedures of MERS in connection with the servicing of all Purchased Mortgage Loans that are registered with MERS and, with respect to Purchased Mortgage Loans that are eMortgage Loans, the maintenance of the related eNotes on the MERS eRegistry for
as long as such Purchased Mortgage Loans are so registered. 
 (ii) Beneficial Ownership Certification. Seller shall at all times
either (i) ensure that the Seller has delivered to Administrative Agent a Beneficial Ownership Certification, if applicable, and that the information contained therein is true and correct in all respects or (ii) deliver to Administrative
Agent an updated Beneficial Ownership Certification if any information contained in any previously delivered Beneficial Ownership Certification ceases to be true and correct in all respects. At all times, Seller shall promptly notify Administrative
Agent upon becoming aware that the information provided in the most recent Beneficial Ownership Certification is no longer true and correct and shall deliver an updated Beneficial Ownership Certification to Administrative Agent promptly but in any
event within two (2) Business Days thereafter. 
 SECTION 7. Reports. Section 17(b) of the Existing Repurchase Agreement is
hereby amended by (i) deleting the “.” at the end of clause (7) and replacing it with “;”and (ii) adding the following new clause at the end thereof: 

(8) upon Seller becoming aware of any Control Failure with respect to a Purchased Mortgage Loan that is an eMortgage Loan or any eNote
Replacement Failure. 
 SECTION 8. Notices and Other Communications. Section 20 of the Existing Repurchase Agreement is hereby
amended by deleting Seller’s notice information in its entirety and replacing it with the following: 
 If to Seller: 

loanDepot.com, LLC 
 26642 Towne
Centre Drive 
 Foothill Ranch, CA 92610 

pflanagan@loandepot.com 

  
 8 

 With a copy to: 

Sheila Mayes 
 loanDepot.com,
LLC 
 26642 Towne Centre Drive 

Foothill Ranch, CA 92610 

smayes@loandepot.com 

SECTION 9. Participations. Section 22(b) of the Existing Repurchase Agreement is hereby amended by deleting such section in its
entirety and replacing it with the following: 
 (b) Participations. Any Buyer may sell participations to one or more Persons in or to
all or a portion of its rights and obligations under this Agreement and under the Program Agreements; provided, however, that (i) such Buyer’s obligations under this Agreement and the other Program Agreements shall remain unchanged,
(ii) such Buyer shall remain solely responsible to the other parties hereto for the performance of such obligations; and (iii) Seller shall continue to deal solely and directly with Administrative Agent and/or Buyers in connection with
such Buyer’s rights and obligations under this Agreement and the other Program Agreements except as provided in Section 11. Administrative Agent and Buyers may distribute to any prospective or actual participant this
Agreement, the other Program Agreements any document or other information delivered to Administrative Agent and/or Buyers by Seller; provided, that, Administrative Agent or Buyers, as applicable, will cause such party to execute and
deliver a non-disclosure agreement whereby such prospective or actual participant agrees to keep such information delivered by Administrative Agent or any Buyer to such party confidential, on substantially
similar terms as set forth in Section 32 of this Agreement. 
 SECTION 10. Counterparts. Section 31 of the Existing
Repurchase Agreement is hereby amended by deleting such section in its entirety and replacing it with the following: 
 31. Counterparts

 This Agreement may be executed in one or more counterparts, each of which shall be deemed to be an original, and all such counterparts
shall together constitute one and the same instrument. Delivery of an executed counterpart of a signature page of this Agreement in a Portable Document Format (PDF) or by facsimile shall be effective as delivery of a manually executed original
counterpart of this Agreement. The parties agree that this Agreement, any addendum or amendment hereto or any other document necessary for the consummation of the transactions contemplated by this Agreement may be accepted, executed or agreed to
through the use of an electronic signature in accordance with the E-Sign, UETA and any applicable state law. Any document accepted, executed or agreed to in conformity with such laws will be binding on
all parties hereto to the same extent as if it were physically executed and each party hereby consents to the use of any secure third party electronic signature capture service with appropriate document access tracking, electronic signature tracking
and document retention as may be approved by the Administrative Agent in its sole discretion. 

  
 9 

 SECTION 11. Acknowledgment of Assignment and Administration of Repurchase Agreement.
Section 35 of the Existing Repurchase Agreement is hereby amended by deleting such section in its entirety and replacing it with the following: 

35. Acknowledgment of Assignment and Administration of Repurchase Agreement 

Pursuant to Section 22 above (Non-assignability) of this Agreement,
Administrative Agent may sell, transfer and convey or allocate certain Purchased Assets and the related Repurchase Assets and related Transactions to certain affiliates of Administrative Agent and/or one (1) or more CP Conduits (the
“Additional Buyers”) with the prior written consent of Seller; provided that such consent shall not be required to the extent Administrative Agent or Buyers sells, transfers or conveys to (i) to an Affiliate thereof or
(ii) during an Event of Default. Administrative Agent shall notify the Seller promptly after each sale, transfer, conveyance or allocation, provided that the failure to give such notice shall not affect the validity of such sale, transfer,
conveyance or allocation. Seller hereby acknowledges and agrees to the joinder of such Additional Buyers and the assignments and the terms and provisions set forth in the Administration Agreement; provided that any Confidential Information provided
to an Additional Buyer shall be provided subject to a commercially reasonable non-disclosure agreement. The Administrative Agent shall administer the provisions of this Agreement, subject to the terms of the
Administration Agreement for the benefit of the Buyers and any Repledgees, as applicable. For the avoidance of doubt, all payments, notices, communications and agreements pursuant to this Agreement shall be delivered to, and entered into by, the
Administrative Agent for the benefit of the Buyers and/or the Repledgees, as applicable. Furthermore, to the extent that the Administrative Agent exercises remedies pursuant to this Agreement, any of the Administrative Agent and/or any Buyer will
have the right to bid on and/or purchase any of the Repurchase Assets pursuant to Section 16 above (Remedies Upon Default). The benefit of all representations, rights, remedies and covenants set forth in this
Agreement shall inure to the benefit of the Administrative Agent on behalf of each Buyer and Repledgees, as applicable. All provisions of this Agreement shall survive the transfers contemplated herein (including any Repledge Transactions) and in the
Administration Agreement, except to the extent such provisions are modified by the Administration Agreement. In the event of a conflict between the Administration Agreement and this Agreement, the terms of the Administration Agreement shall control.
Notwithstanding that multiple Buyers may purchase individual Purchased Mortgage Loans subject to Transactions entered into under this Agreement, all Transactions shall continue to be deemed a single Transaction and all of the Repurchase Assets shall
be security for all of the Obligations hereunder, subject to the priority of payments provisions set forth in the Administration Agreement. 

SECTION 12. Bankruptcy Non-Petition; Limited Recourse. The Existing Repurchase Agreement is
hereby amended by adding the following new sections at the end thereof: 

  
 10 

 42. Bankruptcy Non-Petition 

The parties hereby agree that they shall not institute against, or join any other person in instituting against, any Buyer that is a CP Conduit any bankruptcy,
reorganization, arrangement, insolvency or liquidation proceeding, or other proceeding under any federal or state bankruptcy or similar law, for one (1) year and one (1) day after the latest maturing commercial paper note issued by the
applicable CP Conduit is paid in full. Nothing in this Section 42 shall preclude any party (i) from filing any claim prior to the expiration of the aforementioned one year and one day period in (A) any insolvency proceeding
voluntarily filed or commenced by such CP Conduit or (B) any involuntary insolvency proceeding filed or commenced by a Person other than such party, or (ii) from commencing against such CP Conduit any legal action which is not an
insolvency proceeding. 
 43. Limited Recourse 

The obligations of each Buyer under this Agreement or any other Program Agreement are solely the corporate obligations of such Buyer. No
recourse shall be had for the payment of any amount owing by any Buyer under this Agreement, or for the payment by any Buyer of any fee in respect hereof or any other obligation or claim of or against such Buyer arising out of or based on this
Agreement, against any stockholder, partner, member, employee, officer, director or incorporator or other authorized person of such Buyer. In addition, notwithstanding any other provision of this Agreement, the parties agree that all payment
obligations of any Buyer that is a CP Conduit under this Agreement shall be limited recourse obligations of such Buyer, payable solely from the funds of such Buyer available for such purpose in accordance with its commercial paper program documents.
Each party waives payment of any amount which such Buyer does not pay pursuant to the operation of the preceding sentence until the day which is at least one (1) year and one (1) day after the payment in full of the latest maturing
commercial paper note (and waives any “claim” against such Buyer within the meaning of Section 101(5) of the Bankruptcy Code or any other Debtor Relief Law for any such insufficiency until such date). 

SECTION 13. Representations and Warranties Concerning Purchased Mortgage Loans. Schedule 1-A to
the Existing Repurchase Agreement is hereby amended by adding the following new paragraphs at the end thereof: 
 (mmm) eNote Legend.
If the Mortgage Loan is an eMortgage Loan, the related eNote contains the Agency-Required eNote Legend. 
 (nnn)
eNotes. With respect to each eMortgage Loan, the related eNote satisfies all of the following criteria: 
  

	 	(i)	 the eNote bears a digital or electronic signature; 

 

	 	(ii)	 the Hash Value of the eNote indicated in the MERS eRegistry matches the Hash Value of the eNote as reflected in
the eVault; 

  

	 	(iii)	 there is a single Authoritative Copy of the eNote, as applicable and within the meaning of Section 9-105 of the UCC or Section 16 of the UETA, as applicable, that is held in the eVault; 

  

	 	(iv)	 the Location status of the eNote on the MERS eRegistry reflects the MERS Org ID of the Custodian;

  
 11 

	 	(v)	 the Controller status of the eNote on the MERS eRegistry reflects the MERS Org ID of Administrative Agent;

  

	 	(vi)	 the Delegatee status of the eNote on the MERS eRegistry reflects the MERS Org ID of Custodian;

  

	 	(vii)	 the Master Servicer Field status of the eNote on the MERS eRegistry reflects the MERS Org ID of Servicer or
Seller; 

  

	 	(viii)	 the Subservicer Field status of the eNote on the MERS eRegistry (i) reflects, if there is a third-party
subservicer, such subservicer’s MERS Org ID or (ii) if there is not a subservicer, is blank; 

  

	 	(ix)	 There is no Control Failure, eNote Replacement Failure or Unauthorized Master Servicer or Subservicer
Modification with respect to such eNote; 

  

	 	(x)	 the eNote is a valid and enforceable Transferable Record or comprises “electronic chattel paper”
within the meaning of the UCC; 

  

	 	(xi)	 there is no defect with respect to the eNote that would result in Administrative Agent having less than full
rights, benefits and defenses of “Control” (within the meaning of the UETA or the UCC, as applicable) of the Transferable Record; and 

  

	 	(xii)	 there is no paper copy of the eNote in existence nor has the eNote been
papered-out. 

 SECTION 14. Conditions Precedent. This Amendment shall
become effective as of the date hereof (the “Amendment Effective Date”), subject to the satisfaction of the following conditions precedent: 

14.1 Delivered Documents. On the Amendment Effective Date, the Administrative Agent on behalf of Buyers shall have
received the following documents, each of which shall be satisfactory to the Administrative Agent in form and substance: 

(a) this Amendment, executed and delivered by the duly authorized officers of the Administrative Agent, Buyers, and the Seller;

 (b) Amended and Restated Custodial Agreement, executed and delivered by duly authorized officers, as applicable, of
Administrative Agent, Buyers, Sellers, and Deutsche Bank National Trust Company;  

(c) Addendum to Electronic Tracking Agreement for eNotes, executed and delivered by duly authorized officers of Administrative
Agent and Seller, and to be executed and delivered by duly authorized officers of MERSCORP Holdings, Inc. and Mortgage Electronic Registrations Systems, Inc.; and 

(d) such other documents as the Administrative Agent or counsel to the Administrative Agent may reasonably request. 

  
 12 

 SECTION 15. Representations and Warranties. The Seller hereby represents and warrants
to the Administrative Agent and Buyers that it is in compliance with all the terms and provisions set forth in the Repurchase Agreement on Seller’s part to be observed or performed, and that no Event of Default has occurred or is continuing,
and Seller hereby confirms and reaffirms the representations and warranties contained in Section 13 of the Repurchase Agreement as of the date hereof are true and correct in all material respects, except to the extent such representations
relate to a date prior to the date hereof, in which case the representations and warranties are true and correct in all material respects as of such date. 

SECTION 16. Limited Effect. Except as expressly amended and modified by this Amendment, the Existing Repurchase Agreement shall
continue to be, and shall remain, in full force and effect in accordance with its terms. 
 SECTION 17. Severability. Each provision
and agreement herein shall be treated as separate and independent from any other provision or agreement herein and shall be enforceable notwithstanding the unenforceability of any such other provision or agreement. 

SECTION 18. Counterparts. This Amendment may be executed by each of the parties hereto on any number of separate counterparts, each of
which shall be an original and all of which taken together shall constitute one and the same instrument. Delivery of an executed counterpart of a signature page of this Amendment in a Portable Document Format (PDF) or by facsimile shall be effective
as delivery of a manually executed original counterpart of this Amendment. The parties agree that this Amendment, any addendum or amendment hereto or any other document necessary for the consummation of the transactions contemplated by this
Amendment may be accepted, executed or agreed to through the use of an electronic signature in accordance with the E-Sign, UETA and any applicable state law. Any document accepted, executed or agreed to
in conformity with such laws will be binding on all parties hereto to the same extent as if it were physically executed and each party hereby consents to the use of any secure third party electronic signature capture service providers with
appropriate document access tracking, electronic signature tracking and document retention as may be approved by the Administrative Agent in its sole discretion. 

SECTION 19. GOVERNING LAW. THIS AMENDMENT SHALL BE GOVERNED BY, AND CONSTRUED IN ACCORDANCE WITH, THE LAWS OF THE STATE OF
NEW YORK WITHOUT REFERENCE TO THE CHOICE OF LAW PROVISIONS THEREOF. 
 [SIGNATURE PAGES FOLLOW] 

  
 13 

 IN WITNESS WHEREOF, the parties have caused their names to be signed hereto by their
respective officers thereunto duly authorized as of the day and year first above written. 
  

			
	CREDIT SUISSE FIRST BOSTON MORTGAGE CAPITAL LLC, as Administrative Agent
		
	By:	 	
                     
    

	Name:
	Title:
	
	CREDIT SUISSE AG, Cayman Islands Branch, as a Buyer
		
	By:	 	  

	Name:
	Title:
		
	By:	 	  

	Name:
	Title:
	
	ALPINE SECURITIZATION LTD, as a Buyer, by Credit Suisse AG, New York Branch as Attorney-in-Fact
		
	By:	 	  

	Name:
	Title:
		
	By:	 	  

	Name:
	Title:

 Signature Page to Amendment No. 5 to Master Repurchase Agreement 

 
			
	LOANDEPOT.COM, LLC, as Seller
		
	By:	 	
                     
        

	Name: Patrick Flanagan
	Title: Chief Financial Officer

 Signature Page to Amendment No. 5 to Master Repurchase AgreementEX-10.36

 Exhibit 10.36 

EXECUTION 
  

 
  

MORTGAGE LOAN PARTICIPATION SALE AGREEMENT 

between 
 LOANDEPOT.COM, LLC 

as Seller, 
 and 

JPMORGAN CHASE BANK, NATIONAL ASSOCIATION, 

as Purchaser 
 August 15,
2016 
  
  

 
  

 TABLE OF CONTENTS 

 

							
	 	 	 	  	Page	 
	 Section 1.
	 	 Definitions
	  	 	1	 
			
	 Section 2.
	 	 Purchases of Participation Certificates
	  	 	18	 
			
	 Section 3.
	 	 Takeout Commitments
	  	 	19	 
			
	 Section 4.
	 	 Issuance and Delivery of Participation Certificate
	  	 	20	 
			
	 Section 5.
	 	 Mortgage Pool Interim Servicing
	  	 	21	 
			
	 Section 6.
	 	 Seller Covenants Regarding Transfer of Servicing
	  	 	27	 
			
	 Section 7.
	 	 Intent of Parties; Security Interest
	  	 	29	 
			
	 Section 8.
	 	 Conditions Precedent
	  	 	31	 
			
	 Section 9.
	 	 Representations and Warranties
	  	 	32	 
			
	 Section 10.
	 	 Covenants of Seller
	  	 	39	 
			
	 Section 11.
	 	 Term
	  	 	48	 
			
	 Section 12.
	 	 Exclusive Benefit of Parties; Assignment
	  	 	48	 
			
	 Section 13.
	 	 Amendment; Waivers
	  	 	49	 
			
	 Section 14.
	 	 Effect of Invalidity of Provisions
	  	 	49	 
			
	 Section 15.
	 	 Governing Law; Waiver of Jury Trial
	  	 	49	 
			
	 Section 16.
	 	 Notices
	  	 	50	 
			
	 Section 17.
	 	 Execution in Counterparts
	  	 	50	 
			
	 Section 18.
	 	 Confidentiality
	  	 	50	 

  
 -i- 

							
	 Section 19.
	 	 Acknowledgments
	  	 	52	 
			
	 Section 20.
	 	 Authorizations
	  	 	52	 
			
	 Section 21.
	 	 Set-Off
	  	 	52	 

 EXHIBITS 
  

			
	SCHEDULE 1	  	AUTHORIZATIONS
		
	EXHIBIT A	  	FORM OF TAKEOUT ASSIGNMENT
		
	EXHIBIT B	  	MORTGAGE LOAN SCHEDULE DATA FIELDS
		
	EXHIBIT C	  	SELLER’S WIRE TRANSFER INSTRUCTIONS
		
	EXHIBIT D	  	FORM OF OPINION OF COUNSEL TO THE SELLER
		
	EXHIBIT E	  	RESERVED
		
	EXHIBIT F	  	SUBSIDIARY INFORMATION

  
 -ii- 

 MORTGAGE LOAN PARTICIPATION SALE AGREEMENT 

This is a MORTGAGE LOAN PARTICIPATION SALE AGREEMENT (“Agreement”), dated as of August 15, 2016 between JPMorgan Chase
Bank, National Association (“Purchaser”) and loanDepot.com, LLC (“Seller”). 
 R E C I T A L S 

WHEREAS, Seller desires to sell from time to time to Purchaser all of Seller’s right, title and interest in and to designated pools of
fully amortizing first lien residential Mortgage Loans (defined below) (each such pool of Mortgage Loans so purchased and sold, a “Mortgage Pool”), each in the form of a 100% participation interest evidenced by a Participation
Certificate, and Purchaser, at its sole election agrees to purchase such Participation Certificates evidencing such participation interests from Seller in accordance with the terms and conditions set forth in this Agreement and the Custodial
Agreement. 
 WHEREAS, Seller acknowledges that it will cause each Mortgage Pool purchased hereunder as evidenced by a Participation
Certificate to be converted into an Agency Security relating to such Mortgage Pool, such Agency Security to be backed by and to relate to the Mortgage Loans subject to the Mortgage Pools. In furtherance thereof, Seller agrees to cause the related
Agency Security to be issued and delivered on or before the Settlement Date under the terms and conditions provided herein. 
 WHEREAS,
coincident with each Mortgage Pool purchase, Seller will have validly assigned to Purchaser all of Seller’s rights and obligations under one or more forward purchase commitments each evidencing an institution’s commitment to purchase on a
mandatory basis on a designated purchase date an agreed upon principal amount of the related Agency Security. 
 NOW, THEREFORE, in
consideration of the mutual covenants and agreements contained herein, Purchaser and Seller, intending to be legally bound, hereby agree as follows: 

Section 1. Definitions. 

Capitalized terms used in this Agreement shall have the meanings ascribed to them below. 

“Accepted Servicing Practices”: With respect to each Mortgage Loan, such standards which comply with the applicable standards
and requirements under: (i) an applicable Agency Program and related provisions of the applicable Agency Guide pursuant to which the related Agency Security is intended to be issued, and/or (ii) any applicable FHA and/or VA program and
related provisions of applicable FHA and/or VA servicing guidelines. 
 “Additional Collateral”: Shall have the meaning
ascribed thereto in Section 7(d) of this Agreement. 

 “Adjusted Tangible Net Worth”: With respect to Seller and its Subsidiaries
on a consolidated basis on any day, an amount equal to: 
 (i) the Tangible Net Worth of Seller and its Subsidiaries on a consolidated basis
on that day; 
 plus (ii) the lesser of (x) one percent (1%) of the Outstanding Principal Balances of all residential mortgage
loans for which Seller and its Subsidiaries own the Servicing Rights and (y) the capitalized value of Seller’s and its Subsidiaries’ Servicing Rights on that day; 

plus (iii) the then unpaid principal amount of all Qualified Subordinated Debt of Seller and its Subsidiaries; 

minus (iv) the book value of residential mortgage loans held by Seller and its Subsidiaries for investment purposes net of their
reserves against residential mortgage loan investment losses on that day; 
 plus (v) the lesser of (x) the amount subtracted
pursuant to clause (iv) immediately above and (y) fifty percent (50%) of the sum of the Outstanding Principal Balances of residential mortgage loans then held by Seller and its Subsidiaries for investment purposes; 

minus (vi) fifty percent (50%) of the book value of REO Property held by Seller and its Subsidiaries net of their reserves
against REO Property losses on that day; 
 minus (vii) without duplication of the amounts deducted above or in the definition of
Tangible Net Worth, fifty percent (50%) of the book value of other illiquid investments held by Seller and its Subsidiaries net of their reserves against other illiquid investments on that day. 

“Affiliate”: As to a specified Person, any other Person (a) that directly or indirectly through one or more
intermediaries controls, is controlled by or is under common control with the specified Person, (b) that directly or indirectly through one or more intermediaries, is the beneficial owner of ten percent (10%) or more of the voting securities of
the specified Person or (c) of which the specified Person is directly or indirectly the owner of ten percent (10%) or more of the voting securities (or equivalent voting equity interests). For the purposes of this definition,
“control” means the power to direct the management and policies of such Person, directly or indirectly, whether through the ownership of voting securities, by contract or otherwise and the terms “controlling”, “controlled
by” and “under common control with” have meanings correlative to the meaning of “control”. Notwithstanding the foregoing, except where the term “Affiliate” is used in this Agreement or any other Program Document in
reference to or in respect of Anti-Money Laundering Laws, none of the direct or indirect holders of any equity interest in Parthenon Investors III, L.P., PCap Associates or Parthenon Capital Partners Fund, L.P. (which three companies are, as of the
date of this Agreement, the owners of all of the stock of LD Investment Holdings, Inc.) or any entity “controlling” or “controlled by” or “under common control with” any direct or indirect holders of any equity interest
in any of those three named companies (other than LD Investment Holdings, Inc., Seller or Seller’s Subsidiaries), shall constitute an “Affiliate” of Seller or any of its Subsidiaries. 

  
 -2- 

 “Agency”: The Government National Mortgage Association
(“GNMA”), the Federal National Mortgage Association (“Fannie Mae”), and the Federal Home Loan Mortgage Corporation (“Freddie Mac”), as applicable. 

“Agency Approvals”: Shall have the meaning ascribed thereto in Section 9(a)(xxiv) of this
Agreement. 
 “Agency Eligible Mortgage Loan”: A mortgage loan that is in strict compliance with the eligibility
requirements for swap or purchase by the designated Agency, under the applicable Agency Guide and/or applicable Agency Program. 

“Agency Guaranty Fee”: Such fee, payable monthly by Seller to the Agency, as set by the Agency and as in effect at the time a
Transaction is commenced, the amount of which with respect to each Mortgage Loan shall be specified as a percentage of par by notice from Seller to Purchaser and on the Mortgage Loan Schedule. 

“Agency Guide”: Respecting GNMA Securities, the GNMA Mortgage-Backed Securities
Guide; respecting Fannie Mae Securities, the Fannie Mae Selling Guide and the Fannie Mae Servicing Guide; and respecting Freddie Mac Securities, the Freddie Mac Sellers’ and Servicers’ Guide; in each case as such Agency Guide may be
amended from time to time. 
 “Agency Program”: The specific mortgage-backed
securities swap or purchase program under the relevant Agency Guide or as otherwise approved by the Agency pursuant to which the Agency Security for a given Transaction is to be issued. 

“Agency Security”: A fully modified pass-through
mortgage-backed certificate guaranteed by GNMA, a guaranteed mortgage pass-through certificate issued by Fannie Mae, or a mortgage participation certificate issued by
Freddie Mac, in each case representing or backed by the Mortgage Pool which is the subject of a Transaction. The particular Agency Security for the relevant Agency is alternatively referred to as: “GNMA Securities” (in the case of
GNMA), “Fannie Mae Securities” (in the case of Fannie Mae) and “Freddie Mac Securities” (in the case of Freddie Mac). 

“Agency Security Face Amount”: The original unpaid principal balance of the Agency Security. 

“Agency Security Issuance Deadline”: The date by which the Agency Security must be issued and delivered to Purchaser, which,
unless otherwise agreed to by Purchaser as provided herein, shall occur no later than the Settlement Date. 
 “Agency Security
Issuance Failure”: Failure of the Agency Security to be issued for any reason whatsoever on or before the Agency Security Issuance Deadline, or a prior good faith determination by Seller or Purchaser that such Agency Security will not be
issued on or before such time. 
 “Anti-Corruption Laws”: All laws, rules and regulations of any jurisdiction applicable to
Seller or its Affiliates from time to time concerning or relating to bribery or corruption. 

  
 -3- 

 “Anti-Money Laundering Laws”: Federal, state and local anti-money
laundering laws, orders and regulations, including the USA Patriot Act of 2001, the Bank Secrecy Act, OFAC regulations and applicable Executive Orders. 

“Available Warehouse Facilities”: As the context requires, (i) the aggregate amount at any time of used and unused
available warehouse lines of credit, purchase facilities, repurchase facilities, early purchase program facilities and off-balance sheet funding facilities (whether committed or uncommitted) to finance
residential mortgage loans available to Seller at such time or (ii) such warehouse lines of credit, purchase facilities, repurchase facilities, early purchase program facilities and off-balance sheet
funding facilities themselves. 
 “Basic Collateral”: Shall have the meaning ascribed thereto in
Section 7(c) of this Agreement. 
 “Blanket Bond Required Endorsement”: Endorsement of
Seller’s mortgage banker’s blanket bond insurance policy to (i) provide that for any loss affecting Purchaser’s interest, Purchaser will be named on the loss payable draft as its interest may appear and (ii) provide
Purchaser access to coverage under the theft of secondary market institution’s money or collateral clause of policy. 

“Breach”: Shall have the meaning ascribed thereto in Section 9(c) of this Agreement. 

“Business Day”: A day (other than a Saturday, Sunday or any other day on which the jurisdiction in which the Custodian’s
custodial offices are located are authorized or obligated by law to be closed) when (i) banks in Houston, Texas, Orange County, California and New York, New York are generally open for commercial banking business and (ii) federal funds
wire transfers can be made. 
 “Cash Equivalents”: Each of (a) marketable direct obligations issued by, or
unconditionally guaranteed by the United States Government or issued by any agency thereof and backed by the full faith and credit of the United States, in each case maturing within ninety (90) days or less after the date of the applicable
financial statement reporting such amounts; (b) certificates of deposit, time deposits or Eurodollar time deposits having maturities of ninety (90) days or less after the date of the applicable financial statement reporting such amounts,
or overnight bank deposits issued by any well-capitalized commercial bank organized under the laws of the United States or any state thereof having combined capital and surplus of not less than Five Hundred Million Dollars ($500,000,000) and rated
at least A- by S&P or A3 by Moody’s; (c) repurchase obligations of any commercial bank satisfying the requirements of clause (b) of this definition, having a term of not more than
seven (7) days with respect to securities issued or fully guaranteed or insured by the United States Government, (d) commercial paper of a domestic issuer rated at least A-1 or the equivalent thereof
by S&P or P-1 or the equivalent thereof by Moody’s and in either case maturing within ninety (90) days after the date of acquisition, (e) securities with maturities of ninety (90) days
or less from the date of acquisition issued or fully guaranteed by any state, commonwealth or territory of the United States, by any political subdivision or taxing authority of any such state, commonwealth or territory or by any foreign government,
the securities of which state, commonwealth, territory, political subdivision, taxing authority or foreign 

  
 -4- 

 
government (as the case may be) rated at least A by S&P or A by Moody’s, (f) securities with maturities of ninety (90) days or less from the date of acquisition backed by
standby letters of credit issued by any commercial bank satisfying the requirements of clause (b) of this definition, or (g) shares of money market mutual or similar funds which invest exclusively in assets satisfying the
requirements of clauses (a) through (f) of this definition. 
 “Change in Control”: The acquisition by
any Person, or two or more Persons acting in concert, of beneficial ownership (within the meaning of Rule 13d-3 of the Securities and Exchange Commission under the Securities Exchange Act of 1934, as amended)
of outstanding shares of voting stock (or equivalent equity interests) of Seller at any time if, after giving effect to such acquisition, Parthenon Investors III, L.P., PCap Associates and Parthenon Capital Partners Fund, L.P., and Anthony Hsieh and
his Family Members and his Family Trusts, do not together own and control, directly or indirectly, more than fifty percent (50%) of the outstanding equity interests of Seller. 

“Code”: The Internal Revenue Code of 1986, as amended from time to time. 

“Collateral”: Shall have the meaning ascribed thereto in Section 7(d) of this Agreement. 

“Custodial Account”: An account established pursuant to Section 5(c) hereof. 

“Custodial Agreement”: The Custodial Agreement, dated as of the date hereof, among Seller, Purchaser and the Custodian, in
form and substance acceptable to the parties. 
 “Custodian”: Deutsche Bank National Trust Company and its successors shall
be the Custodian under the Custodial Agreement. 
 “Cut-off Date”: The first
calendar day of the month in which the Settlement Date is to occur. 
 “Cut-off Date
Principal Balance”: The Outstanding Principal Balance of the Mortgage Loans (that are subject to Transactions hereunder) on the Cut-off Date after giving effect to payments of principal and interest
due on or prior to the Cut-off Date whether or not such payments are received. 
 “Deficient
Mortgage Loans”: Shall have the meaning ascribed thereto in Section 9(c) of this Agreement. 

“Designated Servicer”: Shall have the meaning ascribed thereto in Section 5(f) of this Agreement.

 “Discount Rate”: With respect to each Transaction, the percentage set forth in the Pricing Side Letter and on the
applicable funding report delivered on the related Purchase Date. 
 “Dormant Subsidiaries” means the following inactive
Subsidiaries of the Seller, each of which was formed in connection with a contemplated initial public offering, so long as such Subsidiaries remain inactive and respectively do not hold assets having value of more than Five Hundred Thousand Dollars
($500,000): loanDepot, Inc., LD Intermediate, LLC and loanDepot Holdings, LLC. 

  
 -5- 

 “Electronic Tracking Agreement”: The Electronic Tracking Agreement, dated
as of the date hereof, among Seller, Purchaser, MERS and MERSCORP Holdings, Inc., in form and substance acceptable to the parties. 

“ERISA”: With respect to any Person, the Employee Retirement Income Security Act of 1974, as amended from time to time. 

“Escrow Agreement”: That certain Fourth Amended and Restated Escrow Agreement, dated as on or about August 15, 2016, by
and among Bank of America, N.A., EverBank, Jefferies Funding LLC, Texas Capital Bank, National Association, UBS AG, by and through its branch office at 1285 Avenue of the Americas, New York, New York, Morgan Stanley Bank, N.A., BMO Harris Bank N.A.,
Citibank, N.A., Purchaser, Seller and Wells Fargo Bank, N.A., as escrow agent, as the same may be amended, restated, supplemented or otherwise modified, from time to time. 

“Escrow Payments”: With respect to any Mortgage Loan, the amounts constituting ground rents, taxes, assessments, water rents,
sewer rents, municipal charges, mortgage insurance premiums, fire and hazard insurance premiums, condominium charges, and any other payments required to be escrowed by the related mortgagor with the mortgagee pursuant to the Mortgage or any other
related document. 
 “Event of Insolvency”: With respect to any Person (a) the commencement by that Person as debtor
of any case or proceeding under any bankruptcy, insolvency, reorganization, liquidation, dissolution or similar law, or a request by that Person for the appointment of a receiver, trustee, custodian or similar official for that Person or any
substantial part of its property; (b) the commencement of any such case or proceeding against that Person, or another’s seeking such appointment, or the filing against that Person of an application for a protective decree that (i) is
consented to or not timely contested by that Person, (ii) results in the entry of an order for relief, such an appointment, the issuance of such a protective decree or the entry of an order having similar effect, or (iii) is not dismissed
within sixty (60) days; (c) the making by that Person of a general assignment for the benefit of creditors; (d) the admission in writing by that Person that it is unable to pay its debts as they become due, or the nonpayment of its
debts generally as they become due; or (e) the board of directors, managers, members or partners, as the case may be, of that Person taking any action in furtherance of any of the foregoing. 

“Expenses”: All present and future reasonable
out-of-pocket expenses incurred by or on behalf of the Purchaser in connection with this Agreement or any of the other Program Documents and any amendment, supplement or
other modification or waiver related hereto or thereto, whether incurred heretofore or hereafter, including without limitation, reasonable attorneys’ fees. 

“Family Member”: With respect to any individual, any other individual having a relationship by blood, marriage, or adoption
to such individual. 

  
 -6- 

 “Family Trust”: With respect to any individual, any trust or other estate
planning vehicle established for the benefit of such individual or Family Members of such individual. 
 “Fannie Mae
Securities”: Shall have the meaning ascribed thereto in the definition of “Agency Security” herein. 

“FDIC”: The Federal Deposit Insurance Corporation or its permitted successors or assigns. 

“FHA”: The Federal Housing Administration. 

“FHA Approved Mortgagee”: An institution that is approved by the FHA to act as a mortgagee and servicer of record, pursuant
to FHA Regulations. 
 “FHA Insurance Contract”: The contractual obligation of FHA respecting the insurance of an FHA Loan
pursuant to the National Housing Act, as amended. 
 “FHA Loan”: A Mortgage Loan that is the subject of an FHA Insurance
Contract as evidenced by a Mortgage Insurance Certificate. 
 “FHA Regulations”: The regulations promulgated by HUD under
the National Housing Act, codified in 24 Code of Federal Regulations, and other HUD issuances relating to FHA Loans, including the related handbooks, circulars, notices and mortgagee letters, and all amendments and additions thereto. 

“Freddie Mac Securities”: Shall have the meaning ascribed thereto in the definition of “Agency Security”
herein. 
 “GAAP”: Generally accepted accounting principles set forth in the opinions and pronouncements of the Accounting
Principles Board of the American Institute of Certified Public Accountants and the statements and pronouncements of the Financial Accounting Standards Board, or in statements and pronouncements of such other entity as may be approved by a
significant segment of the accounting profession. 
 “GLB Act”: The Gramm-Leach-Bliley Act of 1999 (Public Law 106-102, 113 Stat 1338), as it may be amended from time to time. 
 “GNMA Securities”:
Shall have the meaning ascribed thereto in the definition of “Agency Security” herein. 
 “Good Delivery”:
Shall have the meaning ascribed thereto in the SIFMA Guide in connection with the standard requirements for the delivery and settlement of an Agency Security. 

“Governmental Authority”: The government of the United States of America, any other nation or any political subdivision
thereof, whether state or local, and any agency, authority, instrumentality, regulatory body, central bank or other entity exercising executive, legislative, judicial, taxing, regulatory or administrative powers or functions of or pertaining to
government, any governmental or quasi-governmental department, commission, board, bureau or instrumentality, any court, tribunal or arbitration panel, and, with respect to any Person, any private body having
regulatory jurisdiction over any Person or its business or assets. 

  
 -7- 

 “HUD”: The United States Department of Housing and Urban Development or any
successor thereto. 
 “Indebtedness”: With respect to any Person, on any day (a) all indebtedness or other obligations
of such Person (and, if applicable, that Person’s Subsidiaries, on a consolidated basis) that, in accordance with GAAP, should be included in determining total liabilities as shown on the liabilities side of a balance sheet of such Person at
such date, and (b) all indebtedness or other obligations of such Person (and, if applicable, that Person’s Subsidiaries, on a consolidated basis) for borrowed money or for the deferred purchase price of property or services;
provided that, for purposes of this Agreement, there shall be excluded from Indebtedness on any day trade accounts payable, loan loss reserves, deferred taxes arising from capitalized excess service fees, operating leases and Qualified
Subordinated Debt. 
 “Individual Takeout Amount”: The principal amount of an Agency Security covered by a particular
Takeout Commitment plus accrued interest on such amount, determined in accordance with Good Delivery requirements. 
 “Initial
Balance”: The aggregate Outstanding Principal Balance of the Mortgage Loans evidenced by a Participation Certificate as of the related Purchase Date. 

“Initial Remittance Date”: Shall have the meaning ascribed thereto in Section 4(c) of this
Agreement. 
 “Interim Servicing Period”: Shall have the meaning ascribed thereto in
Section 2(b)(iv) of this Agreement. 
 “Intercreditor Agreement”: That certain Fourth Amended and
Restated Intercreditor Agreement, dated on or about August 15, 2016 by and among Bank of America, N.A., EverBank, Jefferies Funding LLC, Texas Capital Bank, National Association, UBS AG, by and through its branch office at 1285 Avenue of the
Americas, New York, New York, Morgan Stanley Bank, N.A., BMO Harris Bank N.A., Citibank, N.A., Purchaser and Seller as the same may be amended, restated, supplemented or otherwise modified, from time to time. 

“Joint Securities Account Control Agreement”: That certain Fourth Amended and Restated Joint Securities Account Control
Agreement, dated on or about August 15, 2016 by and among Bank of America, N.A., EverBank, Jefferies Funding LLC, Texas Capital Bank, National Association, UBS AG, by and through its branch office at 1285 Avenue of the Americas, New York, New
York, Morgan Stanley Bank, N.A., BMO Harris Bank N.A., Citibank, N.A., Purchaser, Seller and Wells Fargo Bank, N.A., as paying agent, as the same may be amended, restated, supplemented or otherwise modified, from time to time. 

“Leverage Ratio”: The ratio of a Person’s Indebtedness (including off balance sheet financings) to its Adjusted Tangible
Net Worth. 

  
 -8- 

 “LIBOR Rate”: With respect to each day or portion thereof, the rate of
interest which is equal to the rate reported by the ICE Benchmark Administration (or any successor institution or replacement institution used to administer LIBOR) as shown on the display designated as “BBAM” “Page DG8 4a”
on Bloomberg (or such other display as may replace “BBAM” “Page DG8 4a” on Bloomberg) at approximately 11:00 a.m., London time, on that day, as the rate for delivery on that day of one (1) month U.S. dollar deposits. In
the event that such rate is not available at such time for any reason, then LIBOR for the relevant day shall be the rate at which one (1) month U.S. dollar deposits are offered by the principal London office of Buyer in immediately available
funds in the London interbank market at approximately 11:00 a.m. London time on that day. Notwithstanding the foregoing, under no circumstances shall the LIBOR Rate be less than zero. 

“Lien”: Any security interest, mortgage, deed of trust, charge, pledge, hypothecation, assignment as security for an
obligation, deposit arrangement as security for an obligation, encumbrance, lien (statutory or other), preference, priority or other security agreement or preferential arrangement of any kind or nature whatsoever, including any conditional sale or
other title retention arrangement, any financing lease arrangement having substantially the same economic effect as any of the foregoing and the security interest evidenced or given notice of by the filing of any financing statement under the UCC
(other than any such financing statement filed for informational purposes only) or comparable law of any jurisdiction. 

“Liquidity”: At any time, Seller’s unencumbered and unrestricted cash and Cash Equivalents (including the balance on
deposit in the Cash Pledge Account, the Funding Account and the Operating Account (each as defined in the Master Repurchase Agreement), but excluding any restricted cash or cash pledged to third parties) at such time plus, with respect to any
Purchased Mortgage Loans (as defined in the Master Repurchase Agreement) then subject to outstanding Transactions (as defined in the Master Repurchase Agreement), the excess, if any, of (x) the sum of the maximum Purchase Prices (as defined in
the Master Repurchase Agreement) available to Seller for such Purchased Mortgage Loans (as defined in the Master Repurchase Agreement) pursuant to the terms of the Master Repurchase Agreement over (y) the Aggregate Purchase Price (as defined in
the Master Repurchase Agreement) at such time. 
 “Losses”: Shall have the meaning ascribed thereto in
Section 5(a) of this Agreement. 
 “Master Repurchase Agreement”: That certain Master Repurchase
Agreement, dated as of June 3, 2016, by and between loanDepot.com, LLC, as seller, and JPMorgan Chase Bank, N.A., as buyer, as the same may be amended, restated, modified or otherwise supplemented, from time to time. 

“Material Adverse Effect”: Any (i) material adverse effect upon the validity, performance or enforceability of any
Program Document, (ii) material adverse effect on the properties, business or condition, financial or otherwise, of Seller and its Subsidiaries, on a consolidated basis, (iii) material adverse effect upon the ability of Seller to fulfill
its obligations under this Agreement, or (iv) material adverse effect on the value or salability of the Mortgage Loans that are subject to Transactions hereunder, the Participation Certificates or the Agency Securities subject to this
Agreement, taken as a whole, as determined in each case by Purchaser in Purchaser’s sole good faith discretion. 

  
 -9- 

 “Maximum Purchase Price”: Shall have the meaning ascribed thereto in the
Pricing Side Letter. 
 “MERS”: Mortgage Electronic Registration Systems, Inc., a corporation organized and existing under
the laws of the State of Delaware, or any successor thereto. 
 “MERS System”: The system of recording transfers of
mortgages electronically maintained by MERS. 
 “Mortgage”: A first lien mortgage or deed of trust securing a Mortgage
Note. 
 “Mortgage File”: The items pertaining to each Mortgage Loan (other than the Mortgage Loan Documents required to be
delivered to the Custodian pursuant to the Custodial Agreement) and Agency Program as described in the relevant Agency Guide. 

“Mortgage Insurance Certificate”: An original HUD Form 59100 signed by HUD which identifies the Mortgage Loan it accompanies.

 “Mortgage Interest Rate”: The annual rate of interest borne by the Mortgage Note. 

“Mortgage Loan”: Each mortgage loan included in a Mortgage Pool, in each case secured by a Mortgage on a one- to four-family residence and (if so required by the relevant Agency Program) eligible to be either guaranteed by VA and/or insured by FHA, or insured by a private mortgage insurer, as applicable. 

“Mortgage Loan Documents”: The originals of the Mortgage Notes and other documents and instruments required to be delivered
to the Custodian in connection with each Transaction, all pursuant to the Custodial Agreement. 
 “Mortgage Loan Remittance
Report”: Shall have the meaning ascribed thereto in Section 5(a) of this Agreement. 
 “Mortgage
Loan Schedule”: Shall have the meaning ascribed thereto in the Custodial Agreement. 
 “Mortgage Note”: A
promissory note or other evidence of indebtedness of the obligor thereunder, representing a Mortgage Loan, and secured by the related Mortgage. 

“Mortgage Pool”: Shall have the meaning ascribed thereto in the introductory recitals to this Agreement. 

“Mortgage Pool Ownership Interest”: Shall have the meaning ascribed thereto in Section 2(b)(i) of
this Agreement. 

  
 -10- 

 “Mortgaged Property”: The real property securing repayment of the debt
evidenced by a Mortgage Note. 
 “Mortgagor”: The obligor or obligors on a Mortgage Note, including any person who has
assumed or guaranteed the obligations of the obligor thereunder 
 “Net Income”: For any Person for any period, the net
income of such Person for such period as determined in accordance with GAAP. 
 “Net Mortgage Interest Rate”: With respect
to any Mortgage Loan, the Mortgage Interest Rate applicable to such Mortgage Loan less the Servicing Fee. 
 “Obligations”:
All of the obligations of the Seller to the Purchaser under the Program Documents. 
 “OFAC”: The Office of Foreign Assets
Control of the U.S. Department of the Treasury. 
 “Outstanding Principal Balance”: At any time, the then unpaid
outstanding principal balance of a residential mortgage loan. 
 “Outstanding Transaction”: Shall have the meaning ascribed
thereto in Section 11 of this Agreement. 
 “Participation Certificate”: A certificate issued in
the name of Purchaser and delivered to Custodian by Seller in connection with each Transaction, substantially in the form attached as an exhibit to the Custodial Agreement, such certificate to evidence the entire (100%) beneficial ownership interest
in the related Mortgage Pool. 
 “Participation Certificate Pass-Through Rate”:
With respect to each Participation Certificate, the per annum rate at which interest is passed through to Purchaser which initially shall be the rate of interest specified on such Participation Certificate as the
Pass-Through Rate, subject to adjustment as contemplated hereby. The Participation Certificate Pass-Through Rate is based upon the weighted average of the Net Mortgage
Interest Rates on the Mortgage Loans. 
 “Permitted Tax Distributions”: As to any taxable period of Seller for
which Seller, if a corporation, makes an S corporation election, or if a multi-member limited liability company or a partnership, does not make an election with the Internal Revenue Service
to be treated as a corporation, an annual or quarterly distribution necessary to enable each shareholder, partner or member, as applicable, of Seller to pay income taxes attributable to such shareholder, partner or member resulting solely from
such shareholder’s, partner’s or member’s allocated share of income of Seller for such period). 

“Person”: Any individual, corporation, company, voluntary association, partnership, joint venture, limited liability company,
trust, unincorporated association or government (or any agency, instrumentality or political subdivision thereof). 

  
 -11- 

 “Plan”: Shall have the meaning ascribed thereto in
Section 9(a)(xxiii) of this Agreement. 
 “Pooling Documents”: Each of the original schedules,
forms and other documents (other than the Mortgage Loan Documents) required to be delivered by or on behalf of Seller to the relevant Agency and/or the Purchaser and/or the Custodian, as further described in the Custodial Agreement. 

“Potential Servicing Termination Event”: A Servicing Termination Event or an event that with notice or lapse of time or both
would become a Servicing Termination Event. 
 “Present Value Adjustment”: The product of (a) the Discount Rate,
(b) the Initial Balance, (c) the Takeout Price and (d) a fraction, the numerator of which is the actual number of days elapsed from (and including) the Purchase Date to (but excluding) the
Cut-off Date and the denominator of which is 360. 
 “Pricing Side Letter”: That
certain pricing side letter and fee letter between Purchaser and Seller, dated as of the date hereof. 
 “Privacy
Requirements”: (a) Title V of the GLB Act, (b) any applicable federal regulations implementing such act codified at 12 CFR Parts 40, 216, 332 and 573, (c) any of the Interagency Guidelines Establishing Standards For Safeguarding
Customer Information codified at 12 CFR Parts 30, 168, 170, 208, 211, 225, 263, 308 and 364 that are applicable and (d) any other applicable federal, state and local laws, rules, regulations and orders relating to the privacy and security of
Seller’s Customer Information, as such statutes and such regulations, guidelines, laws, rules and orders (the “Safeguards Rules”) may be amended from time to time. 

“Program Documents”: This Agreement, the Pricing Side Letter, the Custodial Agreement, the Electronic Tracking Agreement,
each Participation Certificate, each Takeout Commitment, the Intercreditor Agreement, the Escrow Agreement, the Joint Securities Account Control Agreement and all other documents related thereto. 

“Property”: Any right or interest in or to property of any kind whatsoever, whether real, personal or mixed and whether
tangible or intangible. 
 “Program Fee”: Shall have the meaning ascribed thereto in the Pricing Side Letter. 

“Purchase Date”: As to a given Transaction, the date of Seller’s sale and Purchaser’s purchase of the designated
Mortgage Pool, as evidenced by Purchaser’s payment to Seller of the Purchase Price. 
 “Purchase Price”: With respect
to any Participation Certificate, an amount equal to the sum of: 
 (A) the product of the Initial Balance and the Takeout
Price; 
 (B) the product of (i) the product of (1) the Participation Certificate Pass-Through Rate and
(2) the Initial Balance; and (ii) a fraction, the numerator of which is the actual number of days elapsed from (and including) the Cut-off Date to (but excluding) the Settlement Date and the
denominator of which is 360; and 

  
 -12- 

 (C) minus the Present Value Adjustment. 

“Qualified Depository”: A depository institution, the accounts of which are insured by the FDIC, which meets the applicable
requirements of the relevant Agency for maintaining custodial collection accounts and escrow accounts in connection with servicing residential mortgage loans underlying an Agency Security. 

“Qualified Subordinated Debt”: With respect to any Person, all unsecured Indebtedness of such Person, for borrowed money,
that is, by its terms or by the terms of a subordination agreement (which terms shall have been approved by Purchaser), in form and substance satisfactory to Purchaser, effectively subordinated in right of payment to all other present and future
obligations and all indebtedness of such Person, of every kind and character, owed to Purchaser and which terms or subordination agreement, as applicable, include, among other things, standstill and blockage provisions approved by Purchaser,
restrictions on amendments without the consent of Purchaser, non-petition provisions and maturity date or dates for any principal thereof at least 395 days after the date hereof. 

“REO Property”: Real property acquired by Seller through foreclosure or deed in lieu of foreclosure. 

“Repurchase Price”: With respect to any Mortgage Loan, a price equal to (i) the product of the Initial Balance and the
Takeout Price (expressed as a percentage) plus (ii) interest on such Initial Balance at the Mortgage Interest Rate from the date on which interest has been paid and distributed to the Purchaser to the date of repurchase, less amounts received,
if any, plus amounts advanced, if any, by the Seller as servicer, in respect of such Mortgage Loan. 
 “Remittance Date”:
The twenty fifth (25th) day of each month (or if such day is not a Business Day, the Business Day immediately following such twenty fifth
(25th) day). 
 “Requirement of Law”: Any law, treaty, ordinance,
decree, requirement, order, judgment, rule, regulation or licensing requirement (or interpretation of any of the foregoing) of any Governmental Authority having jurisdiction over Purchaser, Seller or any Takeout Buyer, any of their respective
Subsidiaries or their respective properties or any agreement by which any of them is bound, as the same may be supplemented, amended, recodified or replaced from time to time, including: 

 

	 	•	 	 Equal Credit Opportunity Act and Regulation B promulgated thereunder; 

 

	 	•	 	 Fair Housing Act; 

  

	 	•	 	 Gramm-Leach-Bliley Act and Regulation P promulgated thereunder; 

  
 -13- 

	 	•	 	 Fair Credit Reporting Act and Regulation V promulgated thereunder; 

 

	 	•	 	 Home Mortgage Disclosure Act and Regulation C promulgated thereunder; 

 

	 	•	 	 Federal Unfair, Deceptive, or Abusive Acts or Practices laws (including Section 5 of the Federal Trade
Commission Act (the “FTC Act”)); 

  

	 	•	 	 Truth In Lending Act and Regulation Z promulgated thereunder; 

 

	 	•	 	 Qualified Mortgage/Ability to Repay Rule; 

 

	 	•	 	 Real Estate Settlement Procedures Act and Regulation X promulgated thereunder; 

 

	 	•	 	 Home Ownership and Equity Protection Act and applicable portions of Regulation Z promulgated thereunder;

  

	 	•	 	 Electronic Fund Transfer Act and Regulation E promulgated thereunder; 

 

	 	•	 	 National Flood Insurance Act, Flood Disaster Protection Act of 1973, National Flood Insurance Reform Act of 1994,
Biggert-Waters Flood Insurance Act of 2012, Homeowner Flood Insurance Affordability Act (the “Flood Laws”); 

  

	 	•	 	 Servicemembers Civil Relief Act; 

 

	 	•	 	 rules, regulations and guidelines promulgated under any of such statutes; and 

 

	 	•	 	 any applicable state or local equivalent or similar laws and regulations. 

“Responsible Officer”: As to any Person, the chief executive officer or, with respect to financial matters, the chief
financial officer, chief accounting officer or controller of such Person; provided that in the event any such officer is unavailable at any time he or she is required to take any action hereunder, “Responsible Officer” means any
officer authorized to act on such officer’s behalf as demonstrated by a certificate of corporate resolution or similar document and an incumbency certificate. 

“Sanctions”: Economic or financial sanctions or trade embargoes imposed, administered or enforced from time to time by the
U.S. government, including those administered by OFAC or the U.S. Department of State. 
 “Sanctioned Country”: At any
time, a country, region or territory that is then the subject or target of any Sanctions (at the time of this Agreement, Cuba, Iran, North Korea, Sudan, Syria and Crimea). 

  
 -14- 

 “Sanctioned Person”: At any time, (a) any Person listed in any
Sanctions-related list of designated Persons maintained by OFAC or the U.S. Department of State, (b) any Person operating, organized or resident in a Sanctioned Country or (c) another Person controlled by any such Person. 

“SEC”: The Securities and Exchange Commission. 

“Scheduled Delivery Date”: The date of delivery of any Agency Security to be delivered by an Agency to Purchaser in
connection with a Transaction. 
 “Seller’s Customer”: Any natural person who has applied to Seller for a financial
product or service, has obtained any financial product or service from Seller or has a residential mortgage loan that is serviced or subserviced by Seller. 

“Seller’s Customer Information”: Any information or records in any form (written, electronic or otherwise) containing a
Seller’s Customer’s personal information or identity, including such Seller’s Customer’s name, address, telephone number, loan number, loan payment history, delinquency status, insurance carrier or payment information, tax amount
or payment information and the fact that such Seller’s Customer has a relationship with Seller. 
 “Serviced Loans”:
All residential mortgage loans serviced or required to be serviced by the Seller under any Servicing Agreement, irrespective of whether the actual servicing is done by another Person (a subservicer) retained by the Seller for that
purpose. 
 “Servicing Agreement”: With respect to any Person, the arrangement (whether or not in writing) pursuant to
which that Person acts as servicer of residential mortgage loans, whether owned by that Person or by others. 
 “Servicing
Fee”: With respect to any Mortgage Loan and any month, the monthly fee payable to the Seller for the servicing of such Mortgage Loan, such fee being calculated on a Mortgage
Loan-by-Mortgage Loan basis and equal to the Outstanding Principal Balance of such Mortgage Loan on which interest accrued in the related month multiplied by a
percentage which is set forth on the Mortgage Loan Schedule plus the Agency Guaranty Fee which is also set forth on the Mortgage Loan Schedule. 

“Servicing File”: With respect to each Mortgage Loan, the file to be held by or for Seller in trust for the benefit of
Purchaser, solely in a custodial capacity. Such file includes, but is not limited to, originals or copies of all documents in the Mortgage File, computer files, data disks, books, records, payment histories, data tapes, notes and all additional
documents generated as a result of or utilized in originating and servicing each Mortgage Loan. 
 “Servicing Portfolio”:
The Seller’s entire portfolio of Serviced Loans. 
 “Servicing Rights”: All rights and interests of Seller or any
other Person, whether contractual, possessory or otherwise, to service, administer and collect income with respect to residential mortgage loans, and all rights incidental thereto. 

  
 -15- 

 “Servicing Termination Events”: Shall have the meaning ascribed thereto in
Section 5(e) of this Agreement. 
 “Servicing Transfer Date”: Shall have the meaning ascribed
thereto in Section 6 of this Agreement. 
 “Settlement Date”: With respect to each Transaction,
that date specified as the contractual delivery and settlement date in the related Takeout Commitment(s) pursuant to which Purchaser has the right to deliver Agency Securities to the Takeout Buyer(s). 

“SIFMA Guide”: The uniform practices for the clearance and settlement of mortgage backed securities and other related
securities, published (and periodically updated as supplemented) by The Securities Industry and Financial Markets Association (“SIFMA”). 

“Standard Agency Mortgage Loan Representations”: Shall have the meaning ascribed thereto in
Section 9(b)(iii) of this Agreement. 
 “Subservicer”: Any entity which is subservicing the
Mortgage Loans pursuant to a subservicing agreement with Seller. Each Subservicer and the related subservicing agreement shall be approved in advance by Purchaser. 

“Subsidiary”: With respect to any Person, any corporation, association or other business entity in which more than fifty
percent (50%) of the total voting power or shares of stock (or equivalent equity interest) entitled to vote in the election of directors, managers or trustees thereof is at the time owned or controlled, directly or indirectly, by such Person or one
or more of the other Subsidiaries of such Person or a combination thereof. 
 “Takeout Amount”: The aggregate of the
Individual Takeout Amounts respecting the Agency Security to be issued in connection with a given Transaction, which Takeout Amount shall be required to equal the unpaid principal balance of the Agency Security plus accrued interest. 

“Takeout Buyer”: (i) Any member of the MBS Securities Clearing Corporation or any Person who clears through a MBS Securities
Clearing Corporation member with a comparison and netting agent agreement in place with such MBS Securities Clearing Corporation member, which has been previously approved, and not subsequently disapproved, by Purchaser, or (ii) any Agency.

 “Takeout Commitment”: A trade confirmation from the Takeout Buyer to Seller in electronic format confirming the details
of a forward trade between the Takeout Buyer (as buyer) and Seller (as seller) constituting a valid, binding and enforceable mandatory delivery commitment by a Takeout Buyer to purchase on the Settlement Date and at a given Takeout Price the
principal amount of the Agency Security described therein. 
 “Takeout Commitment Assignment”: An assignment executed by
Seller, whereby Seller irrevocably assigns its rights but not its obligations under the Takeout Commitment, and which assignment shall be substantially in the form and content of Exhibit A hereto. 

  
 -16- 

 “Takeout Price”: As to each Takeout Commitment the purchase price
(expressed as a percentage of par) set forth therein. 
 “Tangible Net Worth”: With respect to any Person on any day, the
sum of total shareholders’ or members’ equity in such Person (including capital stock or member interests, additional paid-in capital and retained earnings, but excluding treasury stock, if any),
each as determined in accordance with GAAP on a consolidated basis; provided that, for purposes of this definition, there shall be excluded from assets the following: the aggregate book value of all intangible assets of such Person (as
determined in accordance with GAAP), including goodwill, trademarks, trade names, service marks, copyrights, patents, licenses, franchises, capitalized servicing rights, excess capitalized servicing rights, each to be determined in accordance with
GAAP consistent with those applied in the preparation of such Person’s financial statements; advances or loans to shareholders or Affiliates, advances or loans to employees (unless such advances are against future commissions), unconsolidated
investments in Affiliates, deferred tax assets, assets pledged to secure any liabilities not included in the Indebtedness of such Person and any other assets that would be deemed by any Agency to be unacceptable in calculating tangible net worth.

 “Transaction”: (i) Each agreement by Purchaser to purchase, and by Seller to sell, a Mortgage Pool as evidenced by a
Participation Certificate under the terms and conditions of this Agreement; (ii) Seller’s performance of its obligations both hereunder respecting such Mortgage Pool and under the Custodial Agreement; (iii) the issuance and delivery
of the related Agency Security together with Seller’s undertakings respecting the facilitation of such Agency Security issuance; (iv) the delivery of the related Agency Security to the Takeout Buyer under each Takeout Commitment;
(v) Purchaser’s exercise of its rights and remedies hereunder and in the Custodial Agreement in the event of an Agency Security Issuance Failure or Servicing Termination Event; and (vi) as appropriate, Seller’s interim servicing
of such Mortgage Pool as described herein. 
 “Transfer”: Shall have the meaning ascribed thereto in
Section 10 (a)(xviii) of this Agreement. 
 “VA”: The Department of Veterans Affairs. 

“VA Approved Lender”: Those lenders that are approved by the VA to act as a lender in connection with the origination of any
VA Loan subject to a VA Loan Guaranty Agreement. 
 “VA Loan”: A Mortgage Loan that is or will be the subject of a VA Loan
Guaranty Agreement. 
 “VA Loan Guaranty Agreement”: The obligation of the United States to pay a specific percentage of a
Mortgage Loan (subject to a maximum amount) pursuant to the Serviceman’s Readjustment Act, as amended. 
 “Wire
Instructions”: The wiring instructions as provided by the Seller to the Purchaser and attached hereto as Exhibit C. 

  
 -17- 

 Section 2. Purchases of Participation Certificates. 

(a) Purchaser may in its sole discretion from time to time, purchase one or more Participation Certificates on a servicing released basis from
Seller at the Purchase Price. Prior to Purchaser’s purchase of any Participation Certificate, the Conditions Precedent set forth in Section 8 shall be satisfied or waived. 

(b) Simultaneously with the payment by Purchaser of the Purchase Price, in accordance with the warehouse lender’s wire instructions or
Seller’s Wire Instructions, as applicable, with respect to a Participation Certificate, Seller hereby agrees to: 
 (i)
irrevocably and absolutely sell, transfer, assign, set over and convey to Purchaser, without recourse but subject to the terms of this Agreement, all right, title and interest of Seller in and to (A) the Participation Certificate and a 100%
undivided beneficial ownership interest in the Mortgage Loans subject to such Participation Certificate, (B) all Servicing Rights related to the Mortgage Loans that are subject to such Participation Certificate, (C) any payments or
proceeds under any related primary insurance, hazard insurance and FHA insurance policies and VA guarantees (if any) or otherwise and (D) the Mortgage Loan Documents, Mortgage Files and Servicing Files related to the Mortgage Loans that are
subject to such Participation Certificate (collectively, the “Mortgage Pool Ownership Interest”); 
 (ii)
irrevocably and absolutely assign and set over to Purchaser all of Seller’s rights (but not its obligations) in and to each Takeout Commitment related to the Mortgage Loans that are subject to such Participation Certificate and does hereby
deliver to Purchaser the related Takeout Commitment Assignment duly executed by Seller; 
 (iii) sell, transfer, set over and
convey to Purchaser all of Seller’s right, title and interest in and to the Agency Security scheduled to be issued by the applicable Agency with respect to the Mortgage Loans that are subject to such Participation Certificate; and 

(iv) accept its appointment and discharge its performance obligations as servicer of all of the Mortgage Loans subject to the
applicable Participation Certificate for the benefit of Purchaser (and any other registered holder of the Participation Certificate) for the period (the “Interim Servicing Period”) from and after the Purchase Date through the
earliest to occur of (A) the date of actual issuance, delivery and settlement of the Agency Security to Purchaser, provided such issuance and delivery occurs on or before the Agency Security Issuance Deadline, unless otherwise mutually agreed
to by the parties and (B) in the case of an Agency Security Issuance Failure, either (x) any date so designated by Purchaser, but in all events a date occurring no later than the last calendar day of the second month following the month in
which the Settlement Date for the related Agency Security was originally scheduled to occur; or (y) the date of Seller’s purchase of the entire Mortgage Pool related to such Participation Certificate based on, and as a result of,
Seller’s breach of any of its representations and warranties hereunder including without limitation any of the mortgage loan representations herein. 

  
 -18- 

 (c) From time to time Seller may make a request of Purchaser by telephone or otherwise to
enter into a Transaction. Purchaser shall be under no obligation to enter into the Transaction unless and until (i) it elects to do so, which election shall be evidenced solely by its transfer of appropriate funds to Seller and (ii) the
conditions specified herein have been satisfied. 
 (d) If Purchaser elects to purchase any Participation Certificate, Purchaser shall pay an
amount equal to the Purchase Price for such Participation Certificate by wire transfer of immediately available funds in accordance with the warehouse lender’s wire instructions or if there is no warehouse lender, Seller’s Wire
Instructions. In the event that Purchaser rejects a Participation Certificate for purchase for any reason and/or does not transmit the Purchase Price, (i) any Participation Certificate delivered to Custodian in anticipation of such purchase
shall automatically be null and void and shall be returned by Custodian to Seller and (ii) if Purchaser shall nevertheless receive any portion of the related Takeout Price, Purchaser shall pay such Takeout Price to Seller in accordance with
Seller’s Wire Instructions on the date of receipt thereof by Purchaser if Purchaser receives such portion of the Takeout Price prior to 1:00 p.m., New York City time and otherwise, on the next Business Day. 

(e) In the event that the Agency Security in connection with a Transaction is not issued on or before the Agency Security Issuance Deadline for
such Transaction, Purchaser and Seller may, in the sole discretion of each such party, agree to extend the original Agency Security Issuance Deadline for such Transaction, which agreement shall be evidenced in writing. 

(f) To the extent, but only to the extent, the Agency Security for a Transaction is not issued on or before the Agency Security Issuance
Deadline for such Transaction or an Agency Security Issuance Failure is otherwise determined to have occurred with respect to such Transaction, then all payments and recoveries of principal and interest respecting any Mortgage Loan that are subject
to such Transaction due on or after the Cut-off Date shall belong to Purchaser. 
 (g) The terms and
conditions of the purchase of each Participation Certificate shall be as set forth in this Agreement and in each Participation Certificate. Each Participation Certificate shall be deemed to incorporate, and Seller shall be deemed to make as of the
applicable dates specified herein, for the benefit of Purchaser, the representations and warranties set forth herein in respect of such Participation Certificate and the Mortgage Loans evidenced by such Participation Certificate. 

Section 3. Takeout Commitments. 

(a) Seller, coincident with the commencement of each Transaction, hereby and thereby assigns and sets over to Purchaser, without recourse, free
and clear of any lien, claim, participation or encumbrance of any kind, all of Seller’s rights (but not its obligations) under each Takeout Commitment related to such Transaction, including without limitation its right and entitlement to
receive the entire Takeout Price specified in each Takeout Commitment related to such Transaction from a Takeout Buyer. Purchaser agrees that it will deliver to each Takeout Buyer such Agency Security that is sufficient to satisfy all Takeout
Commitments related to such Transaction, provided that (i) the Agency Security shall have been issued and delivered to Purchaser in the Agency Security Face Amount, and at least equal to the Cut-off Date
Principal Balance for such Transaction, on or before the Settlement Date for such Transaction so as to allow Purchaser to effect Good Delivery of the Agency Security to the Takeout Buyer; and (ii) such Takeout Buyer executes the Takeout
Commitment Assignment to Purchaser. 

  
 -19- 

 (b) In the event the Takeout Buyer, in connection with any Transaction, fails to perform its
obligations under the related Takeout Commitment as determined under the express terms set forth in such Takeout Commitment, Purchaser and Seller may, but neither is required to, renegotiate the terms of the Takeout Commitment Assignment. 

Section 4. Issuance and Delivery of Participation Certificate. 

(a) In connection with each Transaction, Seller shall cause a fully executed and completed Participation Certificate to be issued and delivered
to the Custodian for authentication and delivery of a copy thereof to Purchaser on or before the Purchase Date. Pursuant to the Custodial Agreement, Custodian shall hold the Participation Certificate for the exclusive use and benefit of Purchaser,
as Purchaser’s bailee, and shall deliver a facsimile copy of the Participation Certificate to Purchaser upon authentication. The Participation Certificate shall evidence the entire Mortgage Pool Ownership Interest in the Mortgage Pool. The
Participation Certificate shall, by its terms, cease to evidence a Mortgage Pool Ownership Interest (i) (A) with respect to any Agency Security issued by GNMA, when Purchaser is registered as the registered owner of such Security on GNMA’s
central registry and (B) with respect to any Agency Security issued by Fannie Mae or FHLMC, the later to occur of (x) the issuance of the related Agency Security and (y) the transfer of all of the right, title and ownership interest
in that Agency Security to Purchaser or its designee; or (ii) in the event of an Agency Security Issuance Failure, a purchase of the entire Participation Certificate by Seller in an amount equal to the aggregate unpaid principal balance of the
Mortgage Loans evidenced by such Participation Certificate plus accrued interest at the Participation Certificate Pass-Through Rate; provided, however, that in the event of an Agency Security
Issuance Failure, Purchaser may at its option cause the Participation Certificate to be canceled in exchange for assignment and delivery to Purchaser by the Custodian of the entire Mortgage Pool Ownership Interest, and provided further, that the
rights and remedies conferred under such Participation Certificate and this Agreement shall continue to be effective in determining the rights of Purchaser (or other holder of the Participation Certificate) to receive the benefit of any required
payments derived from the Mortgage Pool. 
 (b) Purchaser and any transferee under the Participation Certificate shall be entitled during the
term in which a Participation Certificate remains in force and effect to sell, transfer, assign, pledge, or otherwise dispose of such Participation Certificate in accordance with the terms of the Custodial Agreement, all without the consent of
Seller; provided, however, that no such sale, transfer, assignment, pledge or disposition shall release Purchaser from any of its obligations under this Agreement or any other Program Document. Seller agrees to treat any registered holder of the
Participation Certificate as the sole beneficial owner of the Mortgage Pool evidenced thereby, all as further provided in the Custodial Agreement; provided, however, that no sale, transfer, assignment, pledge or disposition of such Participation
Certificate shall release Purchaser from any of its obligations under this Agreement or any other Program Document. 
 (c) Each Participation
Certificate shall provide for monthly remittance by Seller to the registered holder thereof of Mortgage Pool payments of principal (including principal prepayments) and interest. The first Remittance Date for Seller’s remittance of Mortgage
Loan payments to the holder of a Participation Certificate (“Initial Remittance Date”) shall occur (if at all) on the twenty fifth (25th) day of the month following the month in
which the Settlement Date is scheduled to occur. The remittance on the Initial Remittance Date, or on such earlier date if an Agency Security Issuance Failure has occurred, shall include all Mortgage Pool payments (with the interest component
thereof adjusted to the Participation Certificate Pass-Through Rate) received by Seller (or Subservicer). 

  
 -20- 

 (d) Upon sale or other disposition by Purchaser as contemplated herein, Purchaser (or a
subsequent registered holder of a Participation Certificate) shall surrender the Participation Certificate (to the extent in its possession) to Custodian upon the earliest to occur of (i) the sale or transfer of such Participation Certificate
and (ii) the assignment and delivery to Purchaser of the entire Mortgage Pool Ownership Interest. 
 Section 5. Mortgage
Pool Interim Servicing. 
 (a) General Interim Servicing Standards; Indemnification; Servicing Compensation. Seller and
Purchaser each agrees and acknowledges that each Mortgage Pool shall be sold to Purchaser on a servicing released basis. Purchaser and Seller agree, however, that Purchaser is engaging, and Purchaser does hereby engage, Seller to provide interim
servicing of each Mortgage Pool for the benefit of Purchaser (and any other registered holder of the Participation Certificate) from the Purchase Date for each Transaction until the expiration or earlier termination of the Interim Servicing Period.
Seller shall have no further servicing obligations or duties to Purchaser under the terms of this Agreement with respect to the relevant Mortgage Pool upon the expiration of the applicable Interim Servicing Period. 

Seller shall separately service and administer each Mortgage Pool that is subject to a Transaction hereunder in accordance with Accepted
Servicing Practices and Seller shall at all times comply with applicable law, FHA Regulations and VA regulations, as applicable, and any other applicable rules or regulations so that (among other things) FHA insurance, VA guarantee, or private
mortgage insurance in respect of any Mortgage Loan in such Mortgage Pool remains in full force and effect and is not reduced. Seller shall at all times maintain accurate and complete records of its servicing of the Mortgage Loans that are subject to
a Transaction, and Purchaser may, at any time during Seller’s normal business hours, on reasonable prior written notice, examine such records. In addition, Seller shall deliver to Purchaser on each Remittance Date (or other date of required
remittance of Mortgage Loan payments) occurring during the Interim Servicing Period a written report regarding the status of those Mortgage Loans that are subject to a Transaction, in the form, and having the content, of the remittance report
required under the relevant Agency Guide and Agency Program respecting the Agency Security originally intended to be issued pursuant to the Transaction (each, a “Mortgage Loan Remittance Report”). Seller shall not consent to a
modification of the interest rate of a Mortgage Note that is subject to a Transaction, defer or forgive the payment thereof or of any principal, reduce the Outstanding Principal Balance (except for actual payments of principal) or extend the final
maturity date of a Mortgage Loan that is subject to a Transaction during the Interim Servicing Period or at any other time that it is servicing such Mortgage Loan hereunder for the benefit of Purchaser or its permitted assigns. In addition, the
Seller will not make material changes to the servicing of the Mortgage Loans that are subject to Transactions without the consent of the Purchaser. 

  
 -21- 

 Seller shall indemnify and hold Purchaser harmless against any and all actions, claims,
liabilities or other losses (“Losses”) resulting from or otherwise arising in connection with the failure of Seller to perform its Obligations in strict compliance with the terms of this Agreement (which indemnification shall not
include consequential damages but shall include, without limitation, any failure to perform interim servicing obligations, any failure of a Takeout Buyer to perform in a timely manner under its forward purchase commitment if such failure was caused
by Seller’s breach of its obligations under this Agreement or Seller’s failure to take action under the terms of this Agreement, any Losses attributable to an Agency Security Issuance Failure if such failure was caused by Seller’s
breach of its obligations under this Agreement or Seller’s failure to take action under the terms of this Agreement, any Losses attributable to the improper servicing of the Mortgage Loans that are subject to a Transaction and any Losses
attributable to the failure of an Agency to deliver an Agency Security on the Scheduled Delivery Date if such failure was caused by Seller’s breach of its obligations under this Agreement or Seller’s failure to take action under the terms
of this Agreement). 
 With respect to any Mortgage Loan that is subject to a Transaction, if such Mortgage Loan is delinquent with respect
to either the Mortgage Loan’s first or second scheduled monthly payment subsequent to origination of such Mortgage Loan, Seller shall, upon receipt of notice from Purchaser, promptly indemnify and hold Purchaser harmless against any Losses
resulting from or otherwise arising in connection with such delinquent Mortgage Loan. 
 As compensation for Seller undertaking interim
servicing duties, Seller shall be entitled to receive the Servicing Fee and such other compensation (e.g., late fees and assumption fees) as and in such manner provided for under the applicable provisions of the relevant Agency Guide and
Agency Program. 
 (b) Seller’s Retention of Mortgage Files and Servicing Files. Each Servicing File and Mortgage File related to
Mortgage Loans that are subject to a Participation Certificate shall be held by Seller in order to service such Mortgage Loans pursuant to this Agreement and are and shall be held in trust by Seller for the benefit of Purchaser as the owner thereof
during the Interim Servicing Period or at any other time that it is servicing such Mortgage Loan hereunder for the benefit of Purchaser or its permitted assigns. Seller’s possession of each Servicing File and Mortgage File related to the
Mortgage Loans that are subject to a Participation Certificate is at the will of Purchaser for the sole purpose of facilitating servicing of the related Mortgage Loan during the Interim Servicing Period pursuant to this Agreement, and such retention
and possession by Seller shall be in a custodial capacity only. The ownership of each Mortgage Note, Mortgage and related Mortgage Loan Documents related to the Mortgage Loans that are subject to a Participation Certificate, and the contents of each
Servicing File and Mortgage File related thereto is vested in Purchaser and the ownership of all records and documents with respect to the related Mortgage Loan prepared by or which come into the possession of Seller shall immediately vest in
Purchaser and shall be retained and maintained, in trust, by Seller at the will of Purchaser in such custodial capacity only. The books and records of Seller shall be appropriately marked to clearly reflect the ownership of the Mortgage Loans that
are subject to a Participation Certificate by Purchaser (subject to the rights of the relevant Agency upon issuance of the Agency Security). Seller shall release from its custody the contents of any Mortgage File or Servicing File related to
Mortgage Loans that are subject to a Participation Certificate retained by it only in accordance with this Agreement and/or any applicable Agency Guide, unless such release is required as incidental to the servicing of a Mortgage Loan. 

  
 -22- 

 (c) Custodial Collection Account and Escrow Account; Mortgage Loan Payments. Seller
shall establish one or more custodial collection accounts and escrow accounts, each in the form of time deposit or demand accounts, and each titled, “loanDepot.com, LLC, in trust for JPMorgan Chase Bank, National Association Residential Rate
Mortgage Loans and various Mortgagors” (each such account, a “Custodial Account”). Such accounts shall be established with a Qualified Depository acceptable to Purchaser and Seller shall promptly deliver to Purchaser evidence
of the establishment of such accounts by delivery to Purchaser of certifications substantially in the form of the above-referenced account certifications. 

Any funds deposited in any of the foregoing accounts shall at all times be fully insured by the FDIC to the full extent permitted under
applicable law. Funds shall be deposited in such accounts, and may be drawn on and invested and reinvested, by Seller solely in a manner consistent with the applicable servicing provisions of the Agency Guide and Agency Program relating to the
Agency Security originally intended to be issued in connection with the relevant Transaction. 
 (d) Subservicers. The Mortgage Loans
may be subserviced by a Subservicer on behalf of Seller provided that the Subservicer is a GNMA-approved issuer, Fannie Mae-approved lender, FHLMC seller/servicer, FHA
Approved Mortgagee, and VA Approved Lender, in each case in good standing, and no event has occurred, including but not limited to a change in insurance coverage, that would make it unable to comply with the eligibility requirements for
lenders/servicers imposed by the relevant Agency Guide. Seller shall notify all relevant Subservicers, at the commencement of each Transaction, of Purchaser’s interest under this Agreement. Seller shall pay all fees and expenses of a
Subservicer from its own funds, and a Subservicer’s fee shall not exceed the Servicing Fee respecting a particular Mortgage Pool. 
 At
the cost and expense of Seller, without any right of reimbursement from any custodial collection account, Seller shall be entitled to terminate the rights and responsibilities of a Subservicer and arrange for any servicing responsibilities to be
performed by a successor Subservicer meeting the requirements in the preceding paragraph; provided, however, that nothing contained herein shall be deemed to prevent or prohibit Seller, at Seller’s option, from electing to service
the related Mortgage Loans itself. In the event that Seller’s responsibilities and duties respecting a particular Mortgage Pool expire by reason of expiration or earlier termination of the Interim Servicing Period, if reasonably requested to do
so by Purchaser, Seller shall, at its own cost and expense, terminate the rights and responsibilities of any Subservicers as soon as is reasonably possible. 

Notwithstanding any of the provisions of this Agreement relating to agreements or arrangements between Seller and a Subservicer or any
reference herein to actions taken through a Subservicer or otherwise, Seller shall not be relieved of its Obligations to Purchaser or other registered holder of the Participation Certificate and shall be obligated to the same extent and under the
same terms and conditions as if it alone were servicing and administering the Mortgage Loans and Seller shall remain responsible hereunder for all acts and omissions of a Subservicer as fully as if such acts and omissions were those of Seller.
Seller shall be entitled to enter into an agreement with a Subservicer for indemnification of Seller by the Subservicer and nothing contained in this Agreement shall be deemed to limit or modify such indemnification. 

  
 -23- 

 Any subservicing agreement and any other transactions or services relating to the Mortgage
Loans involving a Subservicer shall be deemed to be between the Subservicer and Seller alone, and Purchaser shall have no obligations, duties or liabilities with respect to the Subservicer including no obligation, duty or liability to pay the
Subservicer’s fees and expenses. 
 (e) Early Servicing Termination. Without limiting Purchaser’s rights to terminate Seller
as servicer as provided above, Purchaser (or any other registered holder of the related Participation Certificate) shall nonetheless be entitled (and in the case of clause (vi), such termination shall occur automatically), by written notice to
Seller (and in the case of clause (vi) below immediately without notice), to effect termination of Seller’s interim Servicing Rights and obligations respecting the affected Mortgage Pool in the event any of the following circumstances or
events (“Servicing Termination Events”) occur and are continuing: 
 (i) the Seller shall default in the
payment of (i) any Losses pursuant to Section 5(a) of this Agreement, or (ii) any other Expenses, payments or obligations under the Program Documents, when the same shall become due and payable, whether at the due date thereof, or by
acceleration or otherwise, and such failure to pay under this clause (ii) continues unremedied for a period of two (2) Business Days; or 

(ii) Reserved; or 

(iii) (A) any representation or warranty (other than the representations and warranties set forth in Section 10(b) unless
(x) Seller shall have made any such representations and warranties with actual knowledge that they were materially false or misleading at the time made or (y) any such representations and warranties have been determined by Purchaser to be
materially false or misleading on a regular basis) made by Seller in this Agreement or any other Program Document is untrue, inaccurate or incomplete in any material respect on or as of the date made; or 

(B) any information contained in any written statement, report, financial statement or certificate made or delivered by Seller
(either before or after the date hereof) to Purchaser pursuant to the terms of this Agreement or any other Program Document (other than as set forth in Section 10(b) unless (x) Seller shall have made any such representations and warranties
with actual knowledge that they were materially false or misleading at the time made or (y) any such representations and warranties have been determined by Purchaser to be materially false or misleading on a regular basis) is untrue or
incorrect in any material respect as of the date when made or deemed made; or 
 (iv) Seller shall fail to comply with any of
the requirements set forth in Sections 10(a)(v) (Disposition; Liens), (a)(vii) (Inspection of Properties and Books), (a)(xii) (Financial Condition Covenants), (a)(xviii) (Limitation of Sale of
Assets), or (a)(xxiii) (Agency Approvals; Servicing); or 
 (v) Seller shall fail to observe, keep or
perform any material duty, responsibility or obligation imposed or required by this Agreement or any other Program Document other than one of the Servicing Termination Events specified or described in another section of this
Section 5(e), and such failure continues unremedied for a period of ten (10) Business Days; or 

  
 -24- 

 (vi) an Event of Insolvency occurs with respect to Seller or any of its
Subsidiaries; or 
 (vii) one or more final judgments or decrees are entered against Seller, any of its Subsidiaries for the
payment of money in excess of Five Million Dollars ($5,000,000) (net of the portion thereof, if any, covered by insurance and the same shall not be vacated, discharged (or provisions satisfactory to Purchaser shall not be made for such discharge),
satisfied or stayed or bonded pending appeal, within thirty (30) days from the date of entry thereof, and Seller or such Subsidiary, as applicable, shall not within said period of thirty (30) days or such longer period during which
execution of same shall have been stayed by court order or by written agreement with the judgment creditor, perfect appeal therefrom and cause execution thereof to be stayed during such appeal; or 

(viii) any Agency, private investor or any other Person seizes or takes control of any material portion of the Servicing
Portfolio of its residential mortgage loans being serviced by Seller or any of its Subsidiaries for breach of any servicing agreement applicable to such Servicing Portfolio or for any other reason whatsoever; or 

(ix) any Agency or Governmental Authority revokes or materially restricts the authority of Seller to originate, purchase, sell
or service residential mortgage loans, or Seller shall fail to meet all requisite servicer eligibility qualifications promulgated by any Agency; or 

(x) there is a default that has continued beyond any grace or cure period under (A) the Master Repurchase Agreement or
(B) any agreement other than a Program Document that Seller, or any of its Subsidiaries, has entered into with Purchaser or any of its Affiliates or Subsidiaries if the effect of such default is to cause, or to permit such counterparty (or a
trustee on behalf of such counterparty) to cause, Indebtedness of Seller in excess of One Million Dollars ($1,000,000) to become or be declared due before its stated maturity (upon the giving or receiving of notice, lapse of time or both, if
applicable, or satisfaction of any other condition to acceleration, whether or not any such condition to acceleration has been satisfied); or 

(xi) Seller fails to pay when due any repurchase price, margin amount, price differential, principal, interest or other amount
due on any other Indebtedness (including, without limitation, under any credit or repurchase, early purchase or similar facilities for the financing of its Mortgage Loans, mortgage Servicing Rights or servicing advances) in excess of Ten Million
Dollars ($10,000,000), individually or in the aggregate, beyond any period of grace provided, or there occurs any breach or default (beyond any period of grace provided) with respect to any material term of any such Indebtedness in excess of Ten
Million Dollars ($10,000,000), individually or in the aggregate, if the effect of such failure, breach or default is to cause, or to permit the holder or holders thereof (or a trustee on behalf of such holder or holders) to cause, such Indebtedness
of Seller to become or be declared due before its stated maturity (upon the giving or receiving of notice, lapse of time 

  
 -25- 

 
or both, if applicable, or satisfaction of any other condition to acceleration, whether or not any such condition to acceleration has been satisfied); provided that if such breach or
default is waived in writing by the holder of such Indebtedness before Purchaser has exercised its right to terminate the interim Servicing Rights and Obligations of the Seller pursuant to Section 5(f) of this Agreement, no Servicing
Termination Event shall be deemed to exist under this Agreement on account of such waived breach or default; or 
 (xii)
there is a Material Adverse Effect; or 
 (xiii) (A) Seller shall assert that any Program Document is not in full force and
effect or shall otherwise seek to terminate (other than a termination of this Agreement or any Program Document that is expressly permitted by this Agreement), or disaffirm its obligations under, any such Program Document at any time following the
execution thereof or (B) any Program Document ceases to be in full force and effect, or any of Seller’s material obligations under any Program Document shall cease to be in full force and effect (other than as a result of any termination
of this Agreement or any Program Document that is expressly permitted by this Agreement), or the enforceability thereof shall be contested by Seller; or 

(xiv) any Governmental Authority or any trustee, receiver or conservator acting or purporting to act under such Governmental
Authority shall have taken any action to condemn, seize or appropriate, or to assume custody or control of, all or any substantial part of the assets of Seller or any Subsidiary of Seller, or shall have taken any action to displace the management of
Seller or any Subsidiary of Seller or to curtail its authority in the conduct of the business of Seller or any Subsidiary of Seller, or to restrict the payment of dividends to Seller by any Subsidiary of Seller, and such action shall not have been
discontinued or stayed within thirty (30) days; or 
 (xv) any Change in Control of Seller shall have occurred without
Purchaser’s prior written consent; or 
 (xvi) Seller ceases to meet the qualifications for maintaining all Agency
Approvals or fails to maintain, following its approval by HUD, (A) its HUD status as a Direct Endorsement underwriting mortgagee and (B) its authorization to underwrite a single family loan; or 

(xvii) any failure by Seller to deliver assignments executed in blank to Purchaser or its designee for each Mortgage Loan that
is the subject of a Transaction under this Agreement then held by Purchaser within ten (10) Business Days following any termination of Seller’s MERS membership; or 

(xviii) an Agency Security Issuance Failure that is caused by Seller’s failure to take action in accordance with this
Agreement; or 
 (xix) a downgrade of any of Seller’s or any of its Subsidiaries’ servicer ratings below the
ratings held by Seller or such Subsidiary as of the date of this Agreement or, for ratings initiated after the date of this Agreement, below such initial ratings; or 

  
 -26- 

 (xx) the Pension Benefit Guaranty Corp. shall file notice of a Lien pursuant
to Section 4068 of ERISA with regard to any of the assets of Seller or any of its Subsidiaries; or 
 (xxi) Seller shall
become subject to registration as an “investment company” as defined in, or subject to regulation under, the Investment Company Act of 1940, as amended; or 

(xxii) (A) Seller shall grant, or suffer to exist, any Lien on any Participation Certificate or Mortgage Loan related thereto
(except any Lien in favor of the Purchaser), or (B) the Liens contemplated hereby fail to be first priority perfected Liens on any Mortgage Pool subject to a Participation Certificate in favor of the Purchaser. 

(f) Remedies. In the case of the events described in clause (e)(vi), immediately upon the occurrence of any such event,
regardless of whether notice of such event shall have been given to or by Purchaser or Seller, and each and every other case, so long as the Servicing Termination Event shall not have been remedied (but only to the extent, and within the time
period, of any remedy period provided above), in addition to whatever rights Purchaser may have at law or equity to damages, including injunctive relief and specific performance, by notice in writing to Seller, Purchaser may terminate all the
interim Servicing Rights and Obligations of Seller under this Agreement and all Outstanding Transactions. 
 Upon receipt by Seller of such
written notice, all authority and power of Seller respecting its interim mortgage servicing duties under this Agreement and any affected Transactions, shall pass to and be vested in the successor servicer appointed by Purchaser (a
“Designated Servicer”). Upon written request by Purchaser, Seller shall prepare, execute and deliver to the Designated Servicer any and all documents and other instruments, place in such successor’s possession all Mortgage
Files and Servicing Files related to the Mortgage Loans that are subject to affected Transactions, and do or cause to be done all other acts or things necessary or appropriate to effect the purposes of such notice of termination, including, but not
limited to, the transfer, endorsement and assignment of the Mortgage Loans and related documents related to affected Transactions, at Seller’s sole expense. 

Section 6. Seller Covenants Regarding Transfer of Servicing. 

In the event a Servicing Termination Event occurs as described in clause (e)(vi) of the definition of Servicing Termination Event or
Purchaser gives notice to Seller of Purchaser’s intention to transfer servicing to the Designated Servicer upon the occurrence of any other Servicing Termination Event, expiration or earlier termination of the Interim Servicing Period
(“Servicing Transfer Date”), then, in each such case Seller agrees at its sole expense to take all reasonable and customary actions, to assist Purchaser, Custodian and Designated Servicer in effectuating and evidencing transfer of
servicing to the Designated Servicer in compliance with applicable law on or before the Servicing Transfer Date, including: 
 (a) Notice
to Mortgagors. Seller shall mail to the mortgagor of each Mortgage Loan that is subject to an affected Transaction, by such date as may be required by law, a letter advising the mortgagor of the transfer of the servicing thereof to the
Designated Servicer. Seller shall promptly provide the Designated Servicer with copies of all such letters. Purchaser shall cause the Designated Servicer to mail a letter to each such mortgagor advising such mortgagor that the Designated Servicer is
the new servicer of the related Mortgage Loan. Such letters shall be mailed by such date as may be required by applicable law. 

  
 -27- 

 (b) Notice to Taxing Authorities, Insurance Companies and HUD (if applicable). Seller
shall transmit or cause to transmit to the applicable taxing authorities and insurance companies (including primary mortgage insurers, if applicable) and/or agents, not less than fifteen (15) days prior to the Servicing Transfer Date,
notification of the transfer of the servicing to the Designated Servicer and instructions to deliver all notices, tax bills and insurance statements, as the case may be, to the Designated Servicer from and after the Servicing Transfer Date. Seller
shall promptly provide the Designated Servicer with copies of all such notices. With respect to any FHA-insured/VA guaranteed Mortgage Loans in the Mortgage Pool that is subject to an affected Transaction in
addition to the requirements set forth above, Seller shall provide notice to HUD on such forms prescribed by HUD, or to the VA respecting the transfer of insurance credits, as the case may be. Seller shall continue to remit all mortgage insurance
premiums with respect to FHA/VA Mortgage Loans until such notice is received by HUD and/or the VA. 
 (c) Assignment and Endorsements.
At Purchaser’s (or Designated Servicer’s) direction and in Purchaser’s sole discretion, Seller shall, at its own cost and expense, prepare and/or complete endorsements to Mortgage Notes and assignments of Mortgages (including any
interim endorsements or assignments), in each case to the extent subject to an affected Transaction, prior to the Servicing Transfer Date. 

(d) Delivery of Servicing Records. Seller shall forward to the Designated Servicer, not more than thirty (30) days after the
Servicing Transfer Date, all Servicing Files, Mortgage Files and any other Mortgage Loan Documents in Seller’s (or any Subservicer’s) possession relating to each Mortgage Loan that is subject to an affected Transaction. 

(e) Escrow Payments. Seller shall provide the Designated Servicer on or before the Servicing Transfer Date with immediately available
funds by wire transfer in the amount of the net Escrow Payments and suspense balances and all loss draft balances associated with the Mortgage Loans in an affected Mortgage Pool. Seller shall provide the Designated Servicer on or before the
Servicing Transfer Date with an accounting statement of Escrow Payments and suspense balances and loss draft balances sufficient to enable the Designated Servicer to reconcile the amount of such payment with the accounts of the Mortgage Loans in the
affected Mortgage Pool. Additionally, Seller shall wire to the Designated Servicer on or before the Servicing Transfer Date the amount of any agency, trustee or prepaid Mortgage Loan payments and all other similar amounts held by Seller (or
Subservicer), in each case with respect to Mortgage Loans that are subject to an affected Transaction. 
 (f) Payoffs and Assumptions.
Seller shall provide to the Designated Servicer, on or before the Servicing Transfer Date, copies of all assumption and payoff statements generated by Seller (or Subservicer), on the Mortgage Loans. 

(g) Mortgage Payments Received Prior to Servicing Transfer Date. Seller shall forward by wire transfer, on or before the Servicing
Transfer Date, all payments received by Seller (or Subservicer) on each Mortgage Loan in the affected Mortgage Pools prior to the Servicing Transfer Date to Purchaser. 

  
 -28- 

 (h) Mortgage Payments Received After Servicing Transfer Date. Seller shall forward
the amount of any monthly payments received by Seller (or Subservicer) after the Servicing Transfer Date) on account of each Mortgage Loan in the affected Mortgage Pools to the Designated Servicer by overnight mail on the date of receipt. Seller
shall notify the Designated Servicer of the particulars of the payment, which notification requirement shall be satisfied (except with respect to Mortgage Loans then in foreclosure or bankruptcy) if Seller (or Subservicer) forwards with its payments
sufficient information to the Designated Servicer. Seller shall assume full responsibility for the necessary and appropriate legal application of monthly Mortgage Pool payments received by Seller (or Subservicer) after the Servicing Transfer Date
with respect to Mortgage Loans then in foreclosure or bankruptcy; provided, however, necessary and appropriate legal application of such monthly Mortgage Pool payments shall include, but not be limited to, endorsement of a Mortgage
Loan monthly payment to the Designated Servicer with the particulars of the payment such as the account number, dollar amount, date received and any special mortgage application instructions. 

(i) Reconciliation. Not less than five (5) days prior to the Servicing Transfer Date, Seller shall reconcile principal balances and
make any monetary adjustments reasonably required by the Designated Servicer. Any such monetary adjustments will be transferred between Seller and the Designated Servicer, as appropriate. 

(j) IRS Forms. Seller shall timely file all IRS forms which are required to be filed in relation to the servicing and ownership of the
Mortgage Loans in the affected Mortgage Pools. Seller shall provide copies of such forms to the Designated Servicer upon request and shall reimburse the Designated Servicer for any costs or penalties incurred by the Designated Servicer due to
Seller’s failure to comply with this paragraph. 
 In the event Seller fails to perform any of its obligations described in paragraph
(a) through (j) above within the time periods specified therein, Purchaser may take, or cause to be taken, at Seller’s expense, any of the actions described therein. 

Section 7. Intent of Parties; Security Interest. 

(a) From and after the issuance of the related Participation Certificate, the record title of Seller to each related Mortgage Loan is retained
by Seller in trust, for the sole purpose of facilitating the interim servicing of such Mortgage Loan, and all funds received on or in connection with such Mortgage Loan shall be deposited in the Custodial Account and held by Seller in trust for the
benefit of the registered holder of the related Participation Certificate and shall be disbursed only in accordance with this Agreement. 

(b) It is the intent of the parties hereto that the sale of a participation in each Mortgage Loan shall be reflected on Seller’s balance
sheet and other financial statements as a sale of assets by Seller. Seller shall be responsible for maintaining, and shall maintain, a complete set of books and records for each Mortgage Loan that is subject to a Transaction hereunder which shall be
clearly marked to reflect that such Mortgage Loan is subject to a Transaction hereunder. 

  
 -29- 

 (c) Purchaser and Seller confirm that each of the Transactions contemplated herein are
purchases and sales and are not loan transactions. If Seller is an insured depository institution, the parties understand and intend that this Agreement and each Transaction constitute “qualified financial contracts” as that term is used
in the Federal Deposit Insurance Act, Section 1821 of Title 12 of the United States Code, as amended. If Seller is any other type of entity, the parties understand and intend that this Agreement and each Transaction constitute a
“securities contract” as that term is defined in § 741(7) of the United States Bankruptcy Code. In addition to the foregoing, (x) Seller hereby pledges to Purchaser as security for the performance by Seller of its obligations
under this Agreement and hereby grants, assigns and pledges to Purchaser a fully perfected first priority security interest in the Mortgage Loans that are the subject of a Participation Certificate, any Agency Security or right to receive such
Agency Security when issued to the extent backed by any of such Mortgage Loans, the custodial collection accounts and escrow accounts referred to in this Agreement or any other Program Document, the Takeout Commitments (and assignments thereof) with
respect to any Agency Security to be issued in connection with a Transaction under this Agreement, together with all related Servicing Rights, the Servicing Files, Mortgage Files, Mortgage Loan Documents and Pooling Documents and any other contract
rights, accounts (including any interest of Seller in escrow accounts) and any other payments, rights to payment (including payments of interest or finance charges) and general intangibles, in each case to the extent that the foregoing relates to
any Mortgage Loan that is subject to a Participation Certificate; and any other assets relating to such Mortgage Loans (including, without limitation, any other accounts) that are subject to a Participation Certificate or any interest in the
Mortgage Loans that are subject to a Participation Certificate and all products and proceeds of any and all of the foregoing, in all instances, whether now owned or hereafter acquired, now existing or hereafter created (collectively, the
“Basic Collateral”); (y) possession of the Mortgage Loan Documents, Pooling Documents and any other documentation relating to the Mortgage Pool or the Agency Security relating to any Transaction hereunder by Custodian or by Seller
shall constitute constructive possession by Purchaser; and (z) Purchaser shall have all the rights of a secured party pursuant to applicable law, and for such purposes this Agreement shall constitute a security agreement. 

(d) In the event that the servicing of the Mortgage Loans that are subject to a Participation Certificate is deemed a separate property right
severable from the Mortgage Loans and Participation Certificates, and in any event, Seller and Purchaser intend that Purchaser or its Assignee, as the case may be, shall have, and the Seller hereby grants and pledges to Purchaser or its Assignee a
perfected first priority security interest in Seller’s right, title and interest in the Servicing Rights to the Mortgage Loans that are subject to a Participation Certificate and the Servicing Files related thereto and the proceeds of any and
all of the foregoing in all instances, whether now owned or hereafter acquired, now existing or hereafter created (“Additional Collateral”; together with the Basic Collateral, the “Collateral”) free and clear of
adverse claims. 

  
 -30- 

 Section 8. Conditions Precedent. 

It shall be a condition precedent to the parties entering into each Transaction, under this Agreement that Purchaser receives the following: 

(i) a certificate of a Responsible Officer attaching certified copies of Seller’s certificate of formation, operating
agreement and resolutions of Seller’s members authorizing the transactions contemplated hereby; 
 (ii) a certificate of
incumbency of authorized representatives which sets forth the names, titles and true signatures of all of those individuals authorized to execute any document or instrument contemplated by this Agreement and the Custodial Agreement; 

(iii) an opinion of counsel of the Seller, (A) in the form of Exhibit D or such other form as the Purchaser may
accept (including a non-contravention, enforceability and corporate opinion with respect to Seller); (B) an opinion with respect to the inapplicability of the Investment Company Act of 1940 to Seller and
(C) a true sale opinion; each in form and substance acceptable to Purchaser; 
 (iv) a fully executed Custodial
Agreement; 
 (v) such other documents reasonably requested by Purchaser; and 

(vi) the Program Fee in accordance with the Pricing Side Letter. 

(b) It shall be a condition precedent to the parties entering into additional Transactions, under this Agreement that: 

(i) Purchaser receives a copy of the Takeout Commitment covering in the aggregate a Takeout Amount equal to the Agency Security
Face Amount; 
 (ii) Purchaser receives the Takeout Commitment Assignment(s), duly executed by Seller, together with
appropriate instructions sufficient to ensure that Purchaser can obtain the consent of each Takeout Buyer to the assignment of the Takeout Commitment; 

(iii) Purchaser receives such copies of the relevant Pooling Documents (the originals of which shall have been delivered to the
Agency) as Purchaser may request from time to time; 
 (iv) Purchaser receives a letter from any warehouse lender having a
security interest in the Mortgage Loans, addressed to Purchaser, releasing any and all right, title and interest in such Mortgage Loans, substantially in the form of an exhibit to the Custodial Agreement; 

(v) Purchaser receives a facsimile copy of the original Participation Certificate fully completed by Seller and authenticated
by Custodian; 
 (vi) no Servicing Termination Event or Potential Servicing Termination Event shall have occurred and be
continuing under the Program Documents and under the Master Repurchase Agreement; 

  
 -31- 

 (vii) Purchaser receives an electronic data file for each Transaction,
including all fields set forth on Exhibit B hereto; 
 (viii) the representations and warranties made by the Seller
shall be true, correct and complete on and as of such Purchase Date in all material respects with the same force and effect as if made on and as of such date (or, if any such representation or warranty is expressly stated to have been made as of a
specific date, as of such specific date); 
 (ix) after giving effect to the requested Transaction, the aggregate outstanding
Purchase Price for all Mortgage Loans subject to Outstanding Transactions under this Agreement shall not exceed the Maximum Purchase Price; 

(x) there shall not have occurred a material adverse change in the financial condition of the Purchaser which affects (or can
reasonably be expected to affect) materially and adversely the ability of the Purchaser to fund its obligations under this Agreement; and 

(xi) such Purchase Date occurs at least two (2) Business Days prior to the related Settlement Date. 

Section 9. Representations and Warranties. 

(a) Seller hereby represents and warrants to Purchaser as of the date hereof and as of the date of each issuance and delivery of a
Participation Certificate that: 
 (i) Seller is Principal. Seller is engaging in the Transactions as a principal.

 (ii) Reserved. 

(iii) Solvency. Both as of the date hereof and immediately after giving effect to each Transaction hereunder, the fair
value of Seller’s assets is greater than the fair value of Seller’s liabilities (including contingent liabilities if and to the extent required to be recorded as liabilities on the financial statements of Seller in accordance with GAAP),
and Seller (1) is not insolvent (as defined in 11 U.S.C. § 101(32)), (2) is able to pay and intends to pay its debts as they mature and (3) does not have unreasonably small capital to engage in the business in which it is engaged and
proposes to engage. Seller does not intend to incur, or believe that it has incurred, debts beyond its ability to pay such debts as they mature. Seller is not transferring any Mortgage Loans with any intent to hinder, delay or defraud any Person.

 (iv) No Broker. The Seller has not dealt with any broker, investment banker, agent, or other person, except for the
Purchaser, who may be entitled to any commission or compensation in connection with the sale of Participation Certificates pursuant to this Agreement. 

(v) Performance. Seller does not believe, nor does it have any reason or cause to believe, that it cannot perform, and
Seller intends to perform, each and every covenant that it is required to perform under this Agreement and the other Program Documents. 

  
 -32- 

 (vi) Organization and Good Standing; Subsidiaries. Seller is a
limited liability company duly organized, validly existing and in good standing under the laws of the jurisdiction under which it was organized, has full legal power and authority to own its property and to carry on its business as currently
conducted, and is duly qualified as a foreign entity to do business and is in good standing in each jurisdiction in which the transaction of its business makes such qualification necessary, except in jurisdictions, if any, where a failure to be in
good standing has no material adverse effect on the business, operations, assets or financial condition of Seller. For the purposes hereof, good standing shall include qualification for any and all licenses and payment of any and all taxes required
in the jurisdiction of its organization and in each jurisdiction in which Seller transacts business. Seller has no Subsidiaries except those listed in Exhibit F, as such exhibit has been most recently updated by a revision delivered by Seller
to Purchaser. As of the date of this Agreement, with respect to Seller and each such Subsidiary, Exhibit F correctly states its name as it appears in its articles of formation filed in the jurisdiction of its organization, address, place of
organization, each state in which it is qualified as a foreign corporation or entity, and in the case of the Subsidiaries, the percentage ownership (direct or indirect) of Seller in such Subsidiary. 

(vii) Financial Condition. The consolidated balance sheets of Seller provided to Purchaser pursuant to
Section 10(a)(vi) (and, if applicable, its Subsidiaries) as of the dates of such balance sheets, and the related consolidated statements of income, changes in stockholders’ equity and cash flows for the periods ended
on the dates of such balance sheets heretofore furnished to Purchaser, fairly present in all material respects the financial condition of Seller and its Subsidiaries as of such dates and the results of their operations for the periods ended on such
dates. On the dates of such balance sheets, Seller had no known material liabilities, direct or indirect, fixed or contingent, matured or unmatured, or liabilities for taxes, long-term leases or unusual forward or long-term commitments not disclosed
by, or reserved against on, said balance sheets and related statements, and at the present time there are no material unrealized or anticipated losses from any loans, advances or other commitments of Seller except as heretofore disclosed to
Purchaser in writing. Said financial statements were prepared in accordance with GAAP and applied on a consistent basis throughout the periods involved. Since the date of the balance sheet most recently provided, there has been no Material Adverse
Effect, nor is Seller aware of any state of facts particular to Seller that (with or without notice or lapse of time or both) could reasonably be expected to result in any such Material Adverse Effect. 

(viii) No Conflict. Neither the execution and delivery of this Agreement, nor the consummation of the transactions
contemplated by this Agreement, nor compliance with its terms and conditions, shall conflict with or result in the breach of, or constitute a default under, or result in the creation or imposition of any Lien (other than Liens created pursuant to
this Agreement and the other Program Documents) of any nature upon the properties or assets of Seller under, any of the terms, conditions or provisions of Seller’s organizational documents, or any material mortgage, indenture, deed of trust,
loan or credit agreement or other material agreement or material instrument to which Seller is now a party or by which it is bound (other than this Agreement). 

  
 -33- 

 (ix) Authority and Capacity. Seller has all requisite power,
authority and capacity to enter into this Agreement and each other Program Document and to perform the obligations required of it hereunder and thereunder. This Agreement and all of the Program Documents constitute a valid and legally binding
agreement of Seller enforceable in accordance with its terms, except as enforceability may be limited by bankruptcy, insolvency, moratorium, reorganization, conservatorship and similar laws, and by equitable principles. No consent, approval,
authorization, license or order of or registration or filing with, or notice to, any Governmental Authority is required under any Requirement of Law before the execution, delivery and performance of or compliance by Seller with this Agreement or any
other Program Document or the consummation by Seller of any transaction contemplated thereby, except for those that have already been obtained by Seller, and the filings and recordings in respect of the Liens created pursuant to this Agreement and
the other Program Documents. If Seller is a depository institution, this Agreement is a part of, and will be maintained in, Seller’s official records. 

(x) Approved Company. Seller currently holds all approvals, authorizations and other licenses from the Takeout Buyer and
the Agencies required under the Agency Guides (or otherwise) to originate, purchase, hold, service and sell Mortgage Loans of the types to be transferred hereunder. 

(xi) Reserved. 

(xii) Reserved. 

(xiii) Reserved. 

(xiv) No Potential Servicing Termination Event. No Potential Servicing Termination Event or Servicing Termination Event
has occurred and is continuing. 
 (xv) Litigation; Compliance with Laws. There is no litigation pending or, to
Seller’s knowledge threatened, that could reasonably be expected to cause a Material Adverse Effect or that could reasonably be expected to materially and adversely affect the Participation Certificates, Mortgage Loans or Agency Securities
transferred or to be transferred pursuant to this Agreement, taken as a whole. Seller has not violated any Requirement of Law applicable to Seller that, if violated, would materially and adversely affect the Participation Certificates, Mortgage
Loans or Agency Securities to be transferred pursuant to this Agreement, taken as a whole, or could reasonably be expected to have a Material Adverse Effect. 

(xvi) Tax Returns and Payments. All federal, state and local income, excise, property and other tax returns required to
be filed with respect to Seller’s operations and those of its Subsidiaries in any jurisdiction have been filed on or before the due date thereof (plus any applicable extensions); all such returns are true and correct in all material respects;
all taxes, assessments, fees and other governmental charges upon Seller, and Seller’s Subsidiaries and upon their respective properties, income or franchises, that are, or should be shown on such tax returns to be, due and payable have been
paid, including all Federal Insurance Contributions Act (FICA) payments and withholding taxes, if 

  
 -34- 

 
appropriate, other than those that are being contested in good faith by appropriate proceedings, diligently pursued and as to which Seller has established adequate reserves determined in
accordance with GAAP, consistently applied. The amounts reserved, as a liability for income and other taxes payable, in the financial statements described in Section 10(a)(vi) are sufficient for payment of all unpaid
federal, state and local income, excise, property and other taxes, whether or not disputed, of Seller and its Subsidiaries, accrued for or applicable to the period and on the dates of such financial statements and all years and periods prior thereto
and for which Seller and Seller’s Subsidiaries may be liable in their own right or as transferee of the assets of, or as successor to, any other Person. 

(xvii) Investment Company Act. Seller is not an “investment company” within the meaning of the Investment
Company Act of 1940, as amended. 
 (xviii) Participation Certificates. 

(A) The Seller has not assigned, pledged, or otherwise conveyed or encumbered any Mortgage Loan that is subject to a
Participation Certificate to any other Person (other than Purchaser), and immediately prior to the sale of the related Participation Certificate to the Purchaser, the Seller was the sole owner of such Mortgage Loan and had good and marketable title
thereto, free and clear of all Liens, in each case except for Liens to be released simultaneously with the sale to the Purchaser hereunder. 

(B) The provisions of this Agreement are effective to either constitute a sale of the Participation Certificate and the
beneficial interest in the Mortgage Pool to the Purchaser or to create in favor of the Purchaser a valid security interest in all right, title and interest of the Seller in, to and under the Mortgage Pool related to such Participation Certificate.

 (xix) Place of Business and Formation. As of the date of this Agreement, the principal place of business of Seller
is located at the address set forth for Seller in Section 16. As of the date of this Agreement, and during the four (4) months immediately preceding that date, the chief executive office of Seller and the office where
it keeps its financial books and records relating to its property and all contracts relating thereto and all accounts arising therefrom is and has been located at the address set forth for Seller in Section 16. As of the
date hereof, Seller’s jurisdiction of organization is the state specified in Section 16. 

(xx) Reserved. 

(xxi) Reserved. 

(xxii) Statements Made. The information, reports, financial statements, exhibits and schedules furnished in writing by
or on behalf of Seller to Purchaser in connection with the negotiation, preparation or delivery of this Agreement and the other Program Documents or included herein or therein or delivered pursuant hereto or thereto, when taken as a whole, do not
contain any untrue statement of material fact or omit to state any material fact necessary to make the statements herein or therein, in light of the 

  
 -35- 

 
circumstances under which they were made, not misleading. All written information furnished after the date hereof by or on behalf of Seller to Purchaser in connection with this Agreement and the
other Program Documents and the transactions contemplated hereby and thereby will be true, complete and accurate in every material respect, or (in the case of projections) based on reasonable estimates, on the date as of which such information is
stated or certified. There is no fact known to a Responsible Officer that, after due inquiry, could reasonably be expected to have a Material Adverse Effect that has not been disclosed herein, in the other Program Documents or in a report, financial
statement, exhibit, schedule, disclosure letter or other writing furnished to Purchaser for use in connection with the transactions contemplated hereby or thereby. 

(xxiii) ERISA. All plans (“Plans”) of a type described in Section 3(3) of ERISA in respect of
which Seller or any Subsidiary of Seller is an “employer,” as defined in Section 3(5) of ERISA, are in substantial compliance with ERISA, and none of such Plans is insolvent or in reorganization, has an accumulated or waived funding
deficiency within the meaning of Section 412 of the Code, and neither Seller nor any Subsidiary of Seller has incurred any material liability (including any material contingent liability) to or on account of any such Plan pursuant to Sections
4062, 4063, 4064, 4201 or 4204 of ERISA. No proceedings have been instituted to terminate any such Plan, and no condition exists that presents a material risk to Seller or a Subsidiary of Seller of incurring a liability to or on account of any such
Plan pursuant to any of the foregoing Sections of ERISA. As of the date of this Agreement, no material liability exists with respect to any Plan in which Seller, any Subsidiary of Seller is an “employer”, or any trust forming a part
thereof, that has been terminated since December 1, 1974. 
 (xxiv) Agency Approvals. Seller (and each
subservicer) is approved by GNMA as an approved issuer, Fannie Mae as an approved lender, Freddie Mac as an approved seller/servicer (as the case may be) and by FHA as an approved mortgagee and by VA as an approved VA lender, in each case in good
standing (such collective approvals and conditions, “Agency Approvals”), with no event having occurred or Seller (or any subservicer) having any reason whatsoever to believe or suspect will occur prior to the issuance of the Agency
Security, including without limitation a change in insurance coverage which would either make Seller (or any subservicer) unable to comply with the eligibility requirements for maintaining all such Agency Approvals. Should Seller (or any
subservicer), for any reason, cease to possess all such Agency Approvals, Seller shall so notify Purchaser immediately in writing. Notwithstanding the preceding sentence, Seller shall take all necessary action to maintain all of its (and each
subservicer’s) Agency Approvals at all times during the term of this Agreement and each outstanding Transaction. Seller (and any subservicer) has adequate financial standing, servicing facilities, procedures and experienced personnel necessary
for the sound servicing of residential mortgage loans of the same types as may from time to time constitute Mortgage Loans and in accordance with Accepted Servicing Practices; 

(xxv) No Reliance. The Seller has made its own independent decisions to enter into the Program Documents and each
transaction and as to whether such Transaction is appropriate and proper for it based upon its own judgment and upon advice from such advisors (including without limitation, legal counsel and accountants) as it has deemed necessary. The Seller is
not relying upon any advice from Purchaser as to any aspect of the Transactions, including without limitation, the legal, accounting or tax treatment of such Transactions. 

  
 -36- 

 (xxvi) Plan Assets. The Seller is not an employee benefit plan as
defined in Section 3 of Title I of ERISA, or a plan described in Section 4975(e)(1) of the Code, and the Mortgage Loans are not “plan assets” within the meaning of 29 CFR §2510.3-101
in Seller’s hands. 
 (xxvii) Anti-Money Laundering Laws. Seller and its Affiliates each complies with all
Anti-Money Laundering Laws applicable to it and its agents. 
 (xxviii) Anti-Corruption Laws and Sanctions. Seller has
implemented and maintains in effect policies and procedures designed to ensure compliance by Seller, its Subsidiaries and their respective directors, members, managers, officers, employees and agents with Anti-Corruption Laws and applicable
Sanctions, and Seller, its Subsidiaries and their respective directors, members, managers, officers, employees and agents, are in compliance with Anti-Corruption Laws and applicable Sanctions in all material respects. Neither Seller, any of its
Subsidiaries nor any of their respective directors, members, managers, officers or employees or agents that will act in any capacity in connection with or benefit from the mortgage warehousing facility established hereby, is a Sanctioned Person. No
use of proceeds of any Transaction nor any other transaction contemplated by the Program Documents will violate Anti-Corruption Laws or applicable Sanctions. 

(xxix) Eligibility of Custodian. The Custodian is an eligible custodian under the Agency Guide and Agency Program; 

(xxx) Takeout Commitment. Any related Takeout Commitment constitutes a valid, binding and enforceable mandatory delivery
commitment by a Takeout Buyer to purchase on the Settlement Date and at a given Takeout Price the principal amount of the Agency Security described therein. 

(b) Seller hereby represents and warrants to Purchaser with respect to each Mortgage Loan and the related Mortgage Pool, in each case to the
extent subject to a Participation Certificate, as of the relevant Purchase Date and Cut-off Date as follows; provided to the extent that the Cut-off Date is a date
following the Purchase Date and any facts or circumstances which did not exist on the Purchase Date shall occur subsequent to the Purchase Date that would render any such representation and warranty materially false if made as of the Cut-off Date, Seller shall have no liability for a breach of such representation and warranty made as of such Cut-off Date: 

(i) Agency Eligibility. Each such Mortgage Loan is an Agency Eligible Mortgage Loan. 

(ii) Mortgage Loan Schedule. The Mortgage Loan Schedule contains a complete listing and schedule of such Mortgage Loans,
and the information contained on such Mortgage Loan Schedule is accurate and complete in all material respects. 

  
 -37- 

 (iii) Agency Representations. As to both such Mortgage Pool and each
such Mortgage Loan, all of the representations and warranties made or deemed made respecting same contained in (or incorporated by reference therein) the relevant Agency Guide provisions and Agency Program (collectively, the “Standard Agency
Mortgage Loan Representations”) are (and shall be as of all relevant dates) true and correct in all material respects; and except as may be expressly and previously disclosed to Purchaser, Seller has not negotiated with the Agency any
exceptions or modifications to such Standard Agency Mortgage Loan Representations. 
 (iv) Aggregate Principal
Balance. The Cut-off Date Principal Balance respecting such Mortgage Pool shall be at least equal to the Agency Security Face Amount for the Agency Security designated to be issued. 

(c) In the event any of Seller’s representations or warranties set forth in Section 10(b) are materially breached or determined by
either party not to be accurate in any material respect (each a “Breach”), if such Breach can be cured by action of Seller, Seller may attempt to cure such Breach. If such Breach is not cured within five (5) Business Days of
the occurrence of such Breach, Purchaser at its sole election shall be entitled by notice to Seller to immediately require Seller (i) to purchase the Mortgage Loans which are subject to such Breach (the “Deficient Mortgage
Loans”); and (ii) if such Breach relates to any of the representations made pursuant to Section 10(b) and the aggregate principal balance of the Deficient Mortgage Loans, when deducted from the
Cut-off Date Principal Balance, would result in a remaining Mortgage Pool principal balance insufficient to support the issuance of an Agency Security to satisfy the Takeout Commitments taken as a whole, to
purchase the Deficient Mortgage Loans and, if further elected by Purchaser, to take and accept reassignment to Seller of all of the related Takeout Commitments, in both (i) and (ii) above at the Repurchase Price for the Deficient Mortgage
Loans. 
 At the time of repurchase, the Purchaser and the Seller shall arrange for the reassignment of the Deficient Mortgage Loan to the
Seller and the delivery to the Seller of any documents held by the Custodian relating to the Deficient Mortgage Loan. In the event of a repurchase, the Seller shall, simultaneously with such reassignment, give written notice to the Purchaser that
such repurchase has taken place and amend the Mortgage Loan Schedule to reflect the withdrawal of the Deficient Mortgage Loan from this Agreement. 

In addition to such repurchase the Seller shall indemnify the Purchaser and hold it harmless against any losses, damages, penalties, fines,
forfeitures, including, without limitation, legal fees and related costs, judgment, and other costs and expenses resulting from any claim, demand, defense or assertion based on or grounded upon, or resulting from, a Breach of the Seller
representations and warranties contained in Section 10(b) or enforcement of this provision hereunder. It is understood and agreed that the obligations of the Seller set forth in this Section 9 to
cure or repurchase a Deficient Mortgage Loan and to indemnify the Purchaser as provided in this Section 9 constitute the sole remedies of the Purchaser respecting a Breach of the foregoing representations and warranties.

  
 -38- 

 The representations and warranties set forth in this Agreement shall survive transfer of the
Participation Certificates to Purchaser and shall continue for so long as the Participation Certificates are subject to this Agreement. Any cause of action against the Seller relating to or arising out of the Breach of any of the representations and
warranties made in this Section 9 shall accrue as to any Mortgage Loan upon (i) discovery of such Breach by the Purchaser or notice thereof by the Seller to the Purchaser, (ii) failure by the Seller to cure such
Breach or repurchase such Mortgage Loan as specified above, and (iii) demand upon the Seller by the Purchaser for compliance with this Agreement. 

Section 10. Covenants of Seller. 

(a) On and as of the date of this Agreement and each Purchase Date and each day until this Agreement is no longer in force, the Seller
covenants as follows: 
 (i) Maintenance of Existence; Conduct of Business. Seller shall preserve and maintain its
existence in good standing and all of its rights, privileges, licenses and franchises necessary in the normal conduct of its business, including its eligibility as lender, seller/servicer and issuer described under
Section 9(a)(x) and shall make no material change in the nature or character of its business or engage in any business substantially different from the loan origination and servicing business in which it is engaged on the
date of this Agreement. Seller will not make any material change in its accounting treatment and reporting practices except as required by GAAP. Seller will remain a member of MERS in good standing. 

(ii) Compliance with Applicable Laws. Seller shall comply with all Requirements of Law, a breach of which would, or
could reasonably be expected to, affect, as a whole in a materially adverse manner, the Participation Certificates, Mortgage Loans or Agency Securities to be transferred pursuant to this Agreement, or that could reasonably be expected to result in a
Material Adverse Effect, in each case except where contested in good faith and by appropriate proceedings and with adequate book reserves determined in accordance with GAAP, consistently applied, established therefor. Seller shall comply in all
material respects with all Requirements of Law applicable to it. Without limiting the foregoing, Seller shall comply in all material respects with all applicable (1) Agency Guides, (2) Privacy Requirements, including the GLB Act and
Safeguards Rules promulgated thereunder, (3) consumer protection laws and regulations, (4) licensing and approval requirements applicable to Seller’s origination of Mortgage Loans and (5) other laws and regulations referenced in
the definition of “Requirement(s) of Law”. 
 (iii) Taxes. Seller shall pay and discharge or cause to be
paid and discharged all taxes, assessments and governmental charges or levies imposed upon Seller or upon its income, receipts or properties, before the same shall become past due, as well as all lawful claims for labor, materials or supplies or
otherwise that, if unpaid, might become a Lien upon such properties or any part thereof; provided that Seller shall not be required to pay obligations, taxes, assessments or governmental charges or levies or claims for labor, materials or
supplies for which Seller shall have obtained an adequate bond or adequate insurance or that are being contested in good faith and by proper proceedings that are being reasonably and diligently pursued, if such proceedings do not involve any
likelihood of the sale, forfeiture or loss of any such property or any interest therein while such proceedings are pending and if adequate book reserves determined in accordance with GAAP, consistently applied, are established therefor. 

  
 -39- 

 (iv) Notices. Seller will promptly notify Buyer of the occurrence of
any of the following and shall provide such additional documentation and cooperation as Purchaser may request with respect to any of the following: 

(A) any change in the business address and/or telephone number of Seller; 

(B) any merger, consolidation or reorganization of Seller; 

(C) Seller’s creation, formation or acquisition of any Subsidiary; 

(D) for any reason, Anthony Hsieh ceases to be the chairman and chief executive officer of Seller or Bryan Sullivan ceases to
be the chief financial officer of Seller; 
 (E) any changes in the ownership of Seller after the date of this Agreement by
direct or indirect means, after which (x) any Person other than Anthony Hsieh, Parthenon Investors III, L.P., Trilogy Mortgage Holdings, Inc. or LD Investment Holdings, Inc. shall own, directly or indirectly, a ten percent (10%) or greater
equity interest in Seller or (y) either (i) Anthony Hsieh, his Family Members and his Family Trusts, or (ii) Parthenon Investors III, L.P., PCap Associates and Parthenon Capital Partners Fund, L.P. together, shall own, both directly and
indirectly, less than a ten percent (10%) equity interest in Seller. “Indirect” means any change in ownership of a controlling interest of the relevant Person’s direct or indirect parent; 

(F) any change of the name or jurisdiction of organization of Seller; 

(G) non-speculative hedging arrangements incurred in the ordinary course of business

 (H) Seller’s incurring Indebtedness other than the following: 

a. Seller’s obligations under this Agreement and the other Program Documents; 

b. Seller’s existing Indebtedness, or Seller’s existing guaranties of its Subsidiaries’ or any other
Persons’ indebtedness, described on Exhibit E at current levels; 
 c. Seller’s and its Subsidiaries’
obligations under other Available Warehouse Facilities; 
 d. obligations to pay taxes; 

e. liabilities for accounts payable, non-capitalized equipment or operating leases and
similar liabilities, but only if incurred in the ordinary course of business; 

  
 -40- 

 f. accrued expenses, deferred credits and loss contingencies that are
properly classified as liabilities under GAAP; 
 g. credit or warehouse, early purchase, repurchase or similar facilities
for the financing of its Mortgage Loans; 
 h. capital lease obligations or purchase money debt of Seller or any of its
Subsidiaries for fixed or capital assets incurred in the ordinary course of business; 
 i. other Indebtedness not exceeding
Ten Million Dollars ($10,000,000) in the aggregate at any time outstanding; and 
 j. guaranties of Indebtedness incurred by
a Subsidiary for credit or warehouse, early purchase, repurchase or similar facilities to finance its investment in Mortgage Loans; 

(I) Seller’s guaranteeing obligations of any other Person except Indebtedness incurred by a Subsidiary for credit or
warehouse, early purchase, repurchase or similar facilities to finance its investment in residential mortgage loans; 
 (J)
any material adverse change in the financial position of Seller, Seller and its Subsidiaries taken as a whole; 
 (K) receipt
by Seller of notice from the holder of any of its Indebtedness of any alleged default in respect of Indebtedness of One Million Dollars ($1,000,000) or more; 

(L) the filing of any petition, claim or lawsuit against Seller or any Subsidiary of Seller that could reasonably be expected
to have a Material Adverse Effect; 
 (M) the initiation of any investigations, audits, examinations or reviews of Seller or
any Subsidiary of Seller by any Agency or Governmental Authority relating to the origination, sale or servicing of Mortgage Loans by Seller or any Subsidiary of Seller or the business operations of Seller, any Subsidiary of Seller (with the
exception of routine and normally scheduled audits or examinations by the regulators of Seller or any Subsidiary of Seller), in each case provided that Seller or such Subsidiary is not prohibited by either any Requirement of Law or any agreement
with such Agency or Governmental Authority from disclosing the fact of the investigation, audit, examination or review; 

(N) the occurrence of any actions, inactions or events upon which an Agency may, in accordance with Agency Guides, disqualify
or suspend Seller or any Subsidiary of Seller as a seller or servicer, including any notification or knowledge, from any source, of any such disqualification or suspension, or any warning of any such disqualification or suspension or impending or
threatened such 

  
 -41- 

 
disqualification or suspension and including (if Seller is or becomes a Freddie Mac-approved seller or servicer) those events or reasons for
disqualification or suspension enumerated in Chapter 5 of the Freddie Mac Single Family Seller/Servicer Guide and (if Seller is or becomes a Fannie Mae-approved seller or servicer) any breach of Seller’s
“Lender Contract” (as defined in the Fannie Mae Single Family 2010 Selling Guide) with Fannie Mae including the breaches described or referred to in Section A2-3,
1-01 “Lender Breach of Contract” of the Fannie Mae Single Family 2010 Selling Guide; 

(O) the filing, recording or assessment of any federal, state or local tax Lien in excess of Five Hundred Thousand Dollars
($500,000) against Seller or any of its assets; 
 (P) the occurrence of any Potential Servicing Termination Event or
Servicing Termination Event hereunder; 
 (Q) the suspension, revocation or termination of any licenses or eligibility as
described under Section 9(a)(x) of Seller or any Subsidiary of Seller; 
 (R) any other action,
event or condition of any nature that could reasonably be expected to result in a Material Adverse Effect or that, with or without notice or lapse of time or both, will constitute a default under any other material agreement, instrument or indenture
to which Seller is a party or to which its properties or assets may be subject; 
 (S) any alleged breach by Purchaser of any
provision of this Agreement or of any of the other Program Documents of which Seller has actual knowledge; provided that the failure to give the notice required by this Section 10 shall not constitute a Servicing
Termination Event; 
 (T) promptly upon receipt of notice or knowledge of any Lien or security interest (other than security
interests created hereby or under any other Program Document) on, or claim asserted against, any of the Mortgage Pool that is subject to a Participation Certificate; 

(U) reserved; 

(V) promptly, but no later than two (2) Business Days after the Seller receives notice of the same, (A) any Mortgage
Loan submitted for inclusion into an Agency Security and rejected by that Agency for inclusion in such Agency Security or (B) any Mortgage Loan submitted to a Takeout Buyer (whole loan or securitization) and rejected for purchase by such
Takeout Buyer. 
 (v) Disposition; Liens. Except as contemplated or permitted by this Agreement, the Seller shall not
cause any Mortgage Pool to be sold, pledged, assigned or transferred; nor shall the Seller create, incur, assume or suffer to exist any mortgage, pledge, Lien, charge or other encumbrance of any nature whatsoever on any Mortgage Pool, whether real,
personal or mixed, now or hereafter owned, other than Liens in favor of the Purchaser; 

  
 -42- 

 (vi) Financial Statements and Other Reports. Seller shall deliver or
cause to be delivered to Purchaser: 
 (A) as soon as available and in any event not later than thirty (30) days after
the end of each calendar month, consolidated statements of income, retained earnings and cash flow of Seller and Seller’s Subsidiaries for the immediately preceding month, and related consolidated balance sheet as of the end of the immediately
preceding month, all in reasonable detail, prepared in accordance with GAAP applied on a consistent basis, and certified as to the fairness of presentation by the chief financial officer, chief accounting officer or controller of Seller, excluding,
however, normal year-end audit adjustments; 
 (B) as soon as available and in any
event not later than ninety (90) days after Seller’s fiscal year end, consolidated statements of income, retained earnings and cash flows of Seller and Seller’s Subsidiaries for the preceding fiscal year, the related consolidated
balance sheet as of the end of such year, all in reasonable detail, prepared in accordance with GAAP applied on a consistent basis throughout the periods involved, and accompanied by an opinion (without a “going concern” or like
qualification, commentary or exception and without any qualification or exception as to the scope of such audit) prepared by Ernst & Young, another accounting firm reasonably satisfactory to Purchaser or other independent certified public
accountants of nationally recognized standing selected by Seller, each stating that said financial statements fairly present in all material respects the financial condition, cash flows and results of operations of Seller and Seller’s
Subsidiaries as of the end of, and for, such year; 
 (C) simultaneously with the furnishing of each of the financial
statements to be delivered pursuant to subsections (A) and (B) above, a certificate in the form of Exhibit C to the Master Repurchase Agreement and certified by the chief financial officer, chief accounting officer or controller of the
Seller; provided that delivery of such certificate under the Master Repurchase Agreement shall satisfy delivery under this Agreement so long as the Master Repurchase Agreement is in full force and effect; 

(D) photocopies or electronic copies of any Form S-1 and all regular or periodic
financial and other reports, if any, that Seller shall file with the SEC (other than routine corporate or organizational filings), not later than five (5) Business Days after filing; 

(E) photocopies or electronic copies of any audits completed by any Agency of Seller, any Subsidiary of Seller, unless such
disclosure is prohibited by such Agency, not later than five (5) Business Days after receiving such audit; 

  
 -43- 

 (F) with reasonable promptness following Purchaser’s request for them,
photocopies or electronic copies of any regular or periodic financial and other reports (other than routine tax and corporate or organizational filings) that Seller shall have filed with any Governmental Authority other than the SEC; 

(G) as soon as available and in any event not later than one hundred twenty (120) days after the fiscal year end,
statements of income, retained earnings and cash flows of each Subsidiary of Seller (other than Dormant Subsidiaries) for the preceding fiscal year and the related balance sheet as of the end of such year, all in reasonable detail and each of which
may be prepared by the Seller or such Subsidiary; 
 (H) Seller will furnish to Purchaser monthly electronic Mortgage Loan
performance data, including, without limitation, delinquency reports and volume information, broken down by product (i.e., delinquency, foreclosure and net charge-off reports), as well as a summary of
the portfolio performance on a rolling monthly period stratified by percentage repurchase demands for: representation breaches, missing document breaches, repurchases due to fraud, early payment default requests, summarized on the basis of
(a) pending repurchase demands (including weighted average duration of outstanding request), (b) satisfied repurchase demands, (c) total repurchase demands; 

(I) Seller will furnish a monthly mortgage loan production report reflecting the Seller’s monthly mortgage loan production
and acquisition volumes, as well as its mortgage loan pipeline; and 
 (J) promptly, from time to time, such other
information regarding the business affairs, operations and financial condition of the Seller, as the Purchaser may reasonably request. 

(vii) Inspection of Properties and Books. Seller shall permit authorized representatives of Purchaser to
(i) discuss the business, operations, assets and financial condition of Seller and Seller’s Subsidiaries with their officers and employees and to examine their books of account, records, reports and other papers and make copies or extracts
thereof, (ii) inspect Seller’s Mortgage Files and Servicing Files relating to Mortgage Loans that are subject to Participation Certificates and all related information and reports, and (iii) audit Seller’s operations to ensure
compliance with the terms of the Program Documents, the GLB Act and other privacy laws and regulations, all at such reasonable times as Purchaser may request. Unless a Potential Servicing Termination Event or a Servicing Termination Event has
occurred and is continuing (in which event Purchaser shall have no obligation whatsoever to give Seller advance notice), Purchaser will give Seller reasonable advance notice of each such audit, inspection or visit. Seller shall reimburse Purchaser
for out-of-pocket expenses reasonably incurred in connection with only one such audit, inspection or visit during any twelve (12) month period, and for out-of-pocket expenses reasonably incurred in connection with each such audit, inspection or visit, if any, undertaken when a Potential Servicing Termination Event or a
Servicing Termination Event exists. Seller will provide its accountants with a photocopy of this 

  
 -44- 

 
Agreement promptly after Purchaser notifies Seller that Purchaser wishes to discuss the financial condition or affairs of Seller and Seller’s Subsidiaries with such accountants and will
instruct its accountants to answer candidly any and all questions that the officers of Purchaser or any authorized representatives of Purchaser may address to them in reference to the financial condition or affairs of Seller and Seller’s
Subsidiaries. Seller may have its representatives in attendance at any meetings between the officers or other representatives of Purchaser and Seller’s accountants held in accordance with this authorization. 

(viii) Reimbursement of Expenses. On the date of execution of this Agreement, the Seller shall reimburse the Purchaser
for all Expenses incurred by the Purchaser on or prior to such date. From and after such date, the Seller shall promptly reimburse the Purchaser for all Expenses within thirty (30) days of the receipt of invoices therefor. 

(ix) Further Assurances. Seller agrees to do such further acts and things and to execute and deliver to Purchaser such
additional assignments, acknowledgments, agreements, powers and instruments as are reasonably required by Purchaser to carry into effect the intent and purposes of this Agreement and the other Program Documents, to perfect the interests of Purchaser
in the Collateral or to better assure and confirm unto Purchaser its rights, powers and remedies hereunder and thereunder. 

(x) True and Correct Information. All information, reports, financial statements, exhibits and schedules furnished in
writing by or on behalf of Seller to Purchaser in connection with the negotiation, preparation or delivery of this Agreement and the other Program Documents or included herein or therein or delivered pursuant hereto or thereto, when taken as a
whole, do not and shall not contain any untrue statement of material fact or omit to state any material fact necessary to make the statements herein or therein, in light of the circumstances under which they were made, not misleading. 

(xi) Reserved. 

(xii) Financial Condition Covenants. The Seller shall comply with the financial condition covenants set forth in the
Pricing Side Letter. 
 (xiii) Insurance. Seller shall maintain at no cost to Purchaser (a) errors and omissions
insurance or mortgage impairment insurance and blanket bond coverage, with such companies and in such amounts as to satisfy the requirements of prevailing Agency Guides applicable to a qualified mortgage originating institution, and shall cause
Seller’s policy to be endorsed with the Blanket Bond Required Endorsement and (b) liability insurance and fire and other hazard insurance on its properties, with responsible insurance companies, in such amounts and against such risks as is
customarily carried by similar businesses operating in the same vicinity. Photocopies of such policies shall be furnished to Purchaser at no cost to Purchaser upon Seller’s obtaining such coverage or any renewal of or modification to such
coverage. 
 (xiv) Reserved. 

(xv) Reserved. 

  
 -45- 

 (xvi) Reserved. 

(xvii) Limits on Distributions. 

(A) If any Potential Servicing Termination Event or Servicing Termination Event described in
Section 5(e)(i) (payment), Section 10(a)(xii) (Financial Condition Covenants) or Section 5(e)(x) (cross-defaults with Purchaser or an Affiliate), shall have occurred and
be continuing, Seller shall not declare, make or pay, or incur any liability to declare, make or pay, any dividend (excluding stock dividends) or other distribution including any Permitted Tax Distribution, direct or indirect, on or on account of
any shares of its stock (or equivalent equity interest) or any redemption or other acquisition, direct or indirect, of any shares of its stock (or equivalent equity interest) or of any warrants, rights or other options to purchase any shares of its
stock (or equivalent equity interest), nor purchase, acquire, redeem or retire any stock (or equivalent equity interest) in itself, whether now or hereafter outstanding, without the prior written consent of Purchaser, which consent may not be
unreasonably withheld. 
 (B) If any Potential Servicing Termination Event or Servicing Termination Event other than those
referred to in Section 10(a)(xvii)(A) shall have occurred and be continuing, Seller shall not declare, make or pay, or incur any liability to declare, make or pay, any dividend or other distribution other than stock
dividends and Permitted Tax Distributions, direct or indirect, on or on account of any shares of its stock (or equivalent equity interest) or any redemption or other acquisition, direct or indirect, of any shares of its stock (or equivalent equity
interest) or of any warrants, rights or other options to purchase any shares of its stock (or equivalent equity interest), nor purchase, acquire, redeem or retire any stock (or equivalent equity interest) in itself, whether now or hereafter
outstanding, without the prior written consent of Purchaser, which consent may not be unreasonably withheld. 
 (xviii)
Limitation on Sale of Assets. Seller shall not convey, sell, lease, assign, transfer or otherwise dispose of (collectively, “Transfer”) all or substantially all of its property, business or assets (including receivables and
leasehold interests) whether now owned or hereafter acquired, other than sales of Mortgage Loans, Participation Certificates and related assets in the ordinary course of Seller’s loan origination and servicing business. 

(xix) Transactions with Affiliates. Except for the transactions described in footnote 18 of the audited financial
statements of Seller for the fiscal year ended December 31, 2015, Seller will not enter into any transaction, including any purchase, sale, lease or exchange of property or the rendering of any service, with any Affiliate unless such
transaction is (a) not prohibited under this Agreement and (b) in the ordinary course of Seller’s business and upon fair and reasonable terms no less favorable to Seller than it would obtain in a comparable arm’s-length transaction with a Person that is not an Affiliate; provided that this Section 10(a)(xix) shall not prohibit any Subsidiary of Seller from making any dividend or
distribution to Seller or Seller from making any dividend or distribution permitted under Section10(a)(xvii). 

  
 -46- 

 (A) Reserved. 

(xx) Mergers, Acquisitions, Subsidiaries. Without the prior written consent of Purchaser, Seller will not consolidate or
merge with or into any entity (unless Seller is the surviving entity and any of Seller’s Subsidiaries may merge with or into Seller). Seller shall not create, form or acquire any Subsidiary not listed in Exhibit F, unless (i) such
Subsidiary engages only in the loan origination, loan servicing, loan escrow or settlement business or a closely related business or a business incidental to the foregoing and (ii) Seller has given Purchaser notice of such creation, formation
or acquisition as and when required under Section 10(a)(iv)(C) of this Agreement. 
 (xxi)
Reserved. 
 (xxii) Agency Approvals; Servicing. The Seller shall maintain its Agency Approvals. Should the
Seller, for any reason, cease to possess all such applicable Agency Approvals to the extent necessary, the Seller shall so notify Purchaser immediately in writing. 

(xxiii) Reserved. 

(xxiv) Takeout Commitment. On a timely basis, as required by the Good Delivery standards, Seller shall deliver to
Purchaser all pool information relating to each Agency Security referred to in a Takeout Commitment that has been assigned to Purchaser. 

(xxv) Reserved. 

(xxvi) Treatment as Sale. Under GAAP and for federal income tax purposes, Seller will report each sale of a
Participation Certificate to Purchaser as a sale of the ownership interest in the Mortgage Loans evidenced by the Participation Certificate. It is understood that, in making an independent decision to enter into the Transactions contemplated hereby,
Seller has obtained such independent legal, tax, financial, regulatory and accounting advice as it deems necessary in order to determine the effect of any Transaction on Seller, including but not limited to the accounting treatment of such
Transaction. It is further understood that Purchaser has not provided, and Seller has not relied on Purchaser for, any legal, tax, financial, regulatory or accounting advice in connection with entering into any Transaction. It is further understood
that Purchaser makes no representation or warranty as to the accuracy or appropriateness of any determination by Seller and its independent legal, tax, financial, regulatory and accounting advisers with respect to the effect of any Transaction on
Seller. 
 (xxvii) Cooperation. Seller shall, upon request of Purchaser, promptly execute and deliver to Purchaser all
such other and further documents and instruments of transfer, conveyance and assignment, and shall take such other action Purchaser may require more effectively to transfer, convey, assign to and vest in Purchaser and to put Purchaser in possession
of the property to be transferred, conveyed, assigned and delivered hereunder and otherwise to carry out more effectively the intent of the provisions under this Agreement. 

  
 -47- 

 (xxviii) Delivery of Mortgage Loans. Seller shall deliver Mortgage
Loans in sufficient quantity and Outstanding Principal Balance to enable Purchaser to consummate the sale or swap as contemplated under the related Takeout Commitment. Should Seller fail to deliver Mortgage Loans in sufficient quantity and
Outstanding Principal Balance, Seller shall indemnify Purchaser for any and all losses sustained by Purchaser arising out of the related Takeout Commitment. 

(xxix) MERS. Seller will remain a member of MERS in good standing. Seller has listed Purchaser in “interim
funder” field on the MERS System with respect to each Mortgage Loan and no other Person shall be identified in the field designated “interim funder”. 

Section 11. Term. 

(a) This Agreement shall continue in effect until the earliest of (i) August 14, 2017, and (ii) at Purchaser’s option, upon
the occurrence of a Servicing Termination Event; provided, however, that no termination will affect the obligations hereunder as to any Transaction then outstanding. A Transaction shall be deemed “outstanding” (each, an
“Outstanding Transaction”) during the period commencing on the effective date of such Transaction and continuing until the later of (i) the date of the expiration (or early termination) of the relevant Interim Servicing Period
and (as applicable) the effective transfer of Servicing Rights to a Designated Servicer or (ii) the expiration of the time period for the exercise of Purchaser’s rights and remedies pursuant to subclause (v) of the definition of
“Transaction”. Notwithstanding the foregoing or any other provision of this Agreement, Seller’s liability for Purchaser’s claims for damages hereunder and liability for Seller’s indemnities, representations and warranties
contained herein shall survive any termination of this Agreement. 
 (b) Upon the occurrence and continuance of a Servicing Termination Event
or an Event of Default (as defined in the Master Repurchase Agreement), Purchaser may terminate this Agreement. 
 Section 12.
Exclusive Benefit of Parties; Assignment. 
 This Agreement is for the exclusive benefit of the parties hereto and their
respective successors and permitted assigns and (except as provided in the next sentence) shall not be deemed to give any legal or equitable right to any other person. Seller expressly agrees that Purchaser (or any of its permitted assigns) and any
Designated Servicer shall be intended third party beneficiaries under this Agreement. Except as expressly provided herein, this Agreement may not be assigned by Seller or duties hereunder delegated without the prior written consent of Purchaser.
This Agreement may not be assigned by Purchaser without the prior written consent of Seller, unless (i) such assignment is to an Affiliate of Purchaser, or (ii) a Potential Servicing Termination Event or a Service Termination Event has
occurred and is continuing. 

  
 -48- 

 Section 13. Amendment; Waivers. 

This Agreement may be amended from time to time only by written agreement of Seller and Purchaser. Any forbearance, failure, or delay by
Purchaser in exercising any right, power or remedy hereunder shall not be deemed to be a waiver thereof, and any single or partial exercise by Purchaser of any right, power or remedy hereunder shall not preclude the further exercise thereof. Every
right, power and remedy of Purchaser shall continue in full force and effect until specifically waived by Purchaser in writing. 

Section 14. Effect of Invalidity of Provisions. 

In case any one or more of the provisions contained in this Agreement should be or become invalid, illegal or unenforceable in any respect, the
validity, legality and enforceability of the remaining provisions contained herein or therein shall in no way be affected, prejudiced or disturbed thereby. 

Section 15. Governing Law; Waiver of Jury Trial. 

This Agreement shall be governed by and construed in accordance with the laws of the State of New York, which is the place of the making of
this Agreement, without regard to conflict of laws rules (other than Section 5-1401 of the New York General Obligations Law). EACH OF SELLER AND PURCHASER HEREBY: 

SUBMITS FOR ITSELF AND ITS PROPERTY IN ANY LEGAL ACTION OR PROCEEDING RELATING TO THIS AGREEMENT, OR FOR RECOGNITION AND ENFORCEMENT OF ANY
JUDGMENT IN RESPECT THEREOF, TO THE GENERAL JURISDICTION OF THE COURTS OF THE STATE OF NEW YORK SITTING IN THE BOROUGH OF MANHATTAN, THE FEDERAL COURTS OF THE UNITED STATES OF AMERICA FOR THE SOUTHERN DISTRICT OF NEW YORK, AND APPELLATE COURTS FROM
ANY THEREOF; 
 CONSENTS THAT ANY SUCH ACTION OR PROCEEDING (INCLUDING ANY BROUGHT AGAINST ANY SUBSERVICER) MAY BE BROUGHT IN SUCH
COURTS AND, TO THE EXTENT PERMITTED BY LAW, WAIVES ANY OBJECTION THAT IT MAY NOW OR HEREAFTER HAVE TO THE VENUE OF ANY SUCH ACTION OR PROCEEDING IN ANY SUCH COURT OR THAT SUCH ACTION OR PROCEEDING WAS BROUGHT IN AN INCONVENIENT COURT AND AGREES NOT
TO PLEAD OR CLAIM THE SAME; 
 AGREES THAT SERVICE OF PROCESS IN ANY SUCH ACTION OR PROCEEDING MAY BE EFFECTED BY MAILING A COPY
THEREOF BY REGISTERED OR CERTIFIED MAIL (OR ANY SUBSTANTIALLY SIMILAR FORM OF MAIL), POSTAGE PREPAID, TO ITS ADDRESS SET FORTH ON SCHEDULE 1 HERETO OR AT SUCH OTHER ADDRESS OF WHICH EACH OTHER PARTY HERETO SHALL HAVE BEEN NOTIFIED IN WRITING;

 AGREES THAT NOTHING HEREIN SHALL AFFECT THE RIGHT TO EFFECT SERVICE OF PROCESS IN ANY OTHER MANNER PERMITTED BY LAW OR SHALL LIMIT
THE RIGHT TO SUE IN ANY OTHER JURISDICTION; AND 
 WAIVES, TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, ANY AND ALL RIGHT TO
TRIAL BY JURY IN ANY LEGAL PROCEEDING ARISING OUT OF OR RELATING TO THIS AGREEMENT, THE PROGRAM DOCUMENTS OR THE TRANSACTIONS CONTEMPLATED HEREBY OR THEREBY. 

  
 -49- 

 Section 16. Notices. 

Except as otherwise expressly permitted by this Agreement, all notices, requests and other communications provided for herein (including
without limitation any modifications of, or waivers, requests or consents under, this Agreement) shall be given or made in writing (including without limitation by telecopy or electronic mail) delivered to the intended recipient at the “Address
for Notices” specified below its name on Schedule 1 hereto); or, as to any party, at such other address as shall be designated by such party in a written notice to each other party. Except as otherwise provided in this Agreement all such
communications shall be deemed to have been duly given when transmitted by telecopy or personally delivered or, in the case of a mailed notice, upon receipt, in each case given or addressed as aforesaid. In all cases, to the extent that the related
individual set forth in the respective “Attention” line is no longer employed by the respective Person, such notice may be given to the attention of a Responsible Officer of the respective Person or to the attention of such individual or
individuals as subsequently notified in writing by a Responsible Officer of the respective Person. 
 Section 17. Execution in
Counterparts. 
 This Agreement may be executed in any number of counterparts, all of which taken together shall constitute one and
the same instrument, and any of the parties hereto may execute this Agreement by signing any such counterpart. Delivery of an executed counterpart of a signature page of this Agreement in Portable Document Format (PDF) or by facsimile shall be
effective as delivery of a manually executed original counterpart of this Agreement. 
 Section 18. Confidentiality. 

(a) Confidential Terms. The parties hereto hereby acknowledge and agree that all written or computer-readable information provided by
one party to any other regarding the terms set forth in any of the Program Documents or the Transactions contemplated thereby (the “Confidential Terms”) shall be kept confidential and shall not be divulged to any Person without the
prior written consent of such other party except to the extent that (i) such Person is an Affiliate, Subsidiary, division or parent holding company of a party or a director, officer, employee or agent (including an accountant, legal counsel and
other advisor) of a party or such Affiliate, division or parent holding company, provided such recipients are advised of the confidential nature of the Confidential Terms, (ii) in such party’s opinion, it is necessary to do so in working
with legal counsel or auditors (provided such recipients are advised of the confidential nature of the Confidential Terms), taxing authorities or other governmental agencies or regulatory bodies (including any self-regulatory authority, such as the
National Association of Insurance Commissioners) or in order to comply with any applicable federal or state laws or regulations, (iii) any of the Confidential Terms are in the public domain other than due to a breach of this covenant,
(iv) in the event of a Potential Servicing Termination Event or a Servicing Termination Event, Purchaser reasonably determines such information to be necessary or desirable to disclose in connection with the marketing and sales of the Mortgage
Loans and Participation Certificates or otherwise to enforce or exercise Purchaser’s rights hereunder, (v) to the extent Purchaser deems 

  
 -50- 

 
it necessary or appropriate to disclose it to Custodian or in connection with an assignment or participation under Section 12 or in connection with any hedging
transaction related to Mortgage Loans, provided such recipients are advised of the confidential nature of the Confidential Terms, or (vi) Seller may make disclosures related to this Agreement and the other Program Documents as required by the
SEC or any federal or state securities laws and Seller may make disclosures related to this Agreement and the other Program Documents to describe to its creditors the facilities provided under the Program Documents so long as pricing information
(including the Discount Rate and the Program Fee), fees and financial covenant terms related to the Program Documents are given without linking or relating them to Purchaser and in a range which describes such terms for all of Seller’s
warehouse facilities generally. Notwithstanding the foregoing or anything to the contrary contained herein or in any other Program Document, the parties hereto may disclose to any and all Persons, without limitation of any kind, the U.S. federal,
state and local tax treatment of the Transactions, any fact that may be relevant to understanding the U.S. federal, state and local tax treatment of the Transactions, and all materials of any kind (including opinions or other tax analyses) relating
to such U.S. federal, state and local tax treatment and that may be relevant to understanding such tax treatment, and the parties hereto may disclose information pertaining to this Agreement routinely provided by arrangers to league table providers,
that serve the financing industry; provided that Seller may not disclose (except as provided in clauses (i), (ii), (iii) or (vi) of this Section 18(a)) the name of or identifying
information with respect to Purchaser or any pricing terms (including the Discount Rate, Program Fee or other fee) or other nonpublic business or financial information (including any sublimits and financial covenants) that is unrelated to the U.S.
federal, state and local tax treatment of the Transactions and is not relevant to understanding the U.S. federal, state and local tax treatment of the Transactions, without the prior written consent of Purchaser. Any Person required to maintain the
confidentiality of Confidential Terms as provided in this Section 18(a) shall be considered to have complied with its obligation to do so if such Person has exercised the same degree of care to maintain the confidentiality
of such Confidential Terms as such Person would accord to its own confidential information. The provisions set forth in this Section 18(a) shall survive the termination of this Agreement for a period of one (1) year
following such termination. 
 (b) Privacy of Customer Information. 

(i) Seller’s Customer Information in the possession of Purchaser, other than information independently obtained by
Purchaser and not derived in any manner from or using information obtained under or in connection with this Agreement, is and shall remain confidential and proprietary information of Seller. Except in accordance with this Section18(b),
Purchaser shall not use any Seller’s Customer Information for any purpose, including the marketing of products or services to, or the solicitation of business from, customers, or disclose any Seller’s Customer Information to any Person,
including any of Purchaser’s employees, agents or contractors or any third party not affiliated with Purchaser. Purchaser may use or disclose Seller’s Customer Information only to the extent necessary (1) for examination and audit of
Purchaser’s activities, books and records by Purchaser’s regulatory authorities, (2) to protect or exercise Purchaser’s rights and privileges or (3) to carry out Purchaser’s express obligations under this Agreement and
the other Program Documents (including providing Seller’s Customer Information to Takeout Buyers), and for no other purpose; provided that Purchaser may also use and disclose Seller’s Customer Information as expressly permitted by
Seller in writing, to the extent that 

  
 -51- 

 
such express permission is in accordance with the Privacy Requirements. Purchaser shall take commercially reasonable steps to ensure that each Person to which Purchaser intends to disclose
Seller’s Customer Information, before any such disclosure of information, agrees to keep confidential any such Seller’s Customer Information and to use or disclose such Seller’s Customer Information only to the extent necessary to
protect or exercise Purchaser’s rights and privileges, or to carry out Purchaser’s express obligations, under this Agreement and the other Program Documents (including providing Seller’s Customer Information to Takeout Buyers).
Purchaser agrees to maintain an information security program and to assess, manage and control risks relating to the security and confidentiality of Seller’s Customer Information pursuant to such program in the same manner as Purchaser does in
respect of its own customers’ information, and shall implement the standards relating to such risks in the manner set forth in the Interagency Guidelines Establishing Standards for Safeguarding Company Customer Information set forth in 12 CFR
Parts 30, 168, 170, 208, 211, 225, 263, 308 and 364. Without limiting the scope of the foregoing sentence, Purchaser shall use at least the same physical and other security measures to protect all of Seller’s Customer Information in its
possession or control as it uses for its own customers’ confidential and proprietary information. 
 (ii) Seller shall
indemnify Purchaser’s Affiliates and Subsidiaries and their respective directors, officers, agents, advisors and employees (each an “Indemnified Party”) against, and hold each of them harmless from, any losses, liabilities,
damages, claims, costs and expenses (including reasonable attorneys’ fees and disbursements) suffered or incurred by any Indemnified Party relating to or arising out of Seller’s loss, improper disclosure or misuse of any Seller’s
Customer Information not caused by Purchaser’s sole or concurrent gross negligence or willful misconduct. 
 Section 19.
Acknowledgments. 
 Seller hereby acknowledges that: 

(a) it has been advised by counsel in the negotiation, execution and delivery of the Program Documents; 

(b) Seller has no fiduciary relationship to Purchaser, and the relationship between Seller and Purchaser is solely that of seller and
purchaser; and 
 (c) no joint venture exists between Seller and Purchaser. 

Section 20. Authorizations. Any of the persons whose signatures and titles appear on Schedule 1
are authorized, acting singly, to act for Seller or Purchaser, as the case may be, under this Agreement. 

Section 21. Set-Off. In addition to any rights and remedies of
Purchaser hereunder and by law, Purchaser shall have the right, without prior notice to the Seller, any such notice being expressly waived by the Seller to the extent permitted by applicable law, upon any amount becoming due and payable by the
Seller hereunder (whether at the stated maturity, by acceleration or otherwise) and provided that a Servicing Termination Event has occurred and is continuing, to set-off and appropriate and apply against such
amount any and all deposits (general 

  
 -52- 

 
or special, time or demand, provisional or final), in any currency, and any other credits, indebtedness or claims, in any currency, in each case whether direct or indirect, absolute or
contingent, matured or unmatured, at any time held or owing by Purchaser or any Affiliate thereof to or for the credit or the account of the Seller. Purchaser agrees promptly to notify the Seller after any such set off and application made by
Purchaser; provided that the failure to give such notice shall not affect the validity of such set off and application. 
 [SIGNATURE PAGE
FOLLOWS] 

  
 -53- 

 IN WITNESS WHEREOF, Purchaser and Seller have duly executed this Agreement as of the date
first above written. 
  

			
	LOANDEPOT.COM, LLC, as Seller
		
	By:	 	  

		 	Name: Bryan Sullivan
		 	Title: Chief Financial Officer
	
	JPMORGAN CHASE BANK, NATIONAL     ASSOCIATION
	    as Purchaser
		
	By:	 	  

		 	Name:
		 	Title:

 Signature Page to Mortgage Loan Participation Sale Agreement 

 SCHEDULE 1 

SELLER NOTICES 
  

					
	 Name: Bryan Sullivan
 Email:
bsullivan@loandepot.com
	  	Address:      	  	 loanDepot.com, LLC
 26642 Towne Centre Drive

Foothill Ranch, CA 92610

 SELLER AUTHORIZATIONS 

Any of the persons whose signatures and titles appear below are authorized, acting singly, to act for Seller under this Agreement: 

 

					
	 Name
	  	 Title
	  	 Signature

SEE ATTACHED 

  
 Schedule 1 

 JPMORGAN CHASE BANK, NATIONAL ASSOCIATION NOTICES 

 

					
	 Name: Jonathan Davis
 Title: Executive
Director
 Telephone: (212) 834-3850

Facsimile: (917) 464-4160

E-mail: jonathan.p.davis@jpmorgan.com
	  	Address:      	  	 JPMorgan Chase Bank, National
 Association

383 Madison Avenue
 31st Floor
 New York, New York 10179

 JPMORGAN CHASE BANK, NATIONAL ASSOCIATION AUTHORIZATIONS 

Any of the persons whose signatures and titles appear below, including any other authorized officers, are authorized, acting singly, to act for Purchaser under
this Agreement: 
  

					
	 Name
	  	 Title
	  	 Signature

	Jonathan Davis	  	Executive Director	  	
			
	Seth Fenton	  	Vice President	  	
			
	John Winchester	  	Executive Director	  	
			
	Rifat R. Chowdhury	  	Executive Director	  	

 Schedule 2 

 EXHIBIT A 

TAKEOUT ASSIGNMENT 
 Commitment

 ___________________________________(“Takeout Investor”) 

(Address) 
 Attention: ___________________________ 

Gentlemen: 
 Attached hereto is a correct and complete copy of
your confirmation of commitment (the “Commitment”), documenting your purchase of mortgage-backed pass-through securities (“Securities”)
under the following trade terms: 
  

					
	Seller:                                     
                                         
                               	 		  	Pool Type:
	Trade
Date:                                        
                                         
                  	 		  	Settlement Date:
	Amount:                                     
                                         
                          	 		  	Purchase Price:
	Coupon:                                     
                                         
                           	 		  	Agency:
	Trade Stipulations (if any):	 		  	__ (a) Government National Mortgage Association
		 		  	__ (b) Fannie Mae
		 		  	__ (c) Federal Home Loan Mortgage Corporation

 This is to confirm that (i) the Commitment is in full force and effect, (ii) the Commitment has been assigned to
JPMorgan Chase Bank, National Association (“Purchaser”), whose acceptance of such assignment is indicated below, (iii) you will accept delivery of such Securities directly from Purchaser and (iv) you will pay Purchaser for
such Securities. Payment will be made “delivery versus payment (DVP)” to Purchaser in immediately available funds. Purchaser shall have the right to require you to fulfill your obligation to purchase the Securities. 

Notwithstanding the foregoing, the obligation to deliver the Securities to you shall be that of Seller and your sole recourse for the failure
of such delivery shall be against Seller. 

  
 A-1 

 Please execute this letter in the space provided below and send it by telecopy immediately
to Purchaser at JPMorgan Chase Bank, National Association, 500 Stanton Christiana Road, Ops 4, Floor 02, Newark, Delaware 19713-2107 (telephone no. (302) 634-2602), Attention: Michael McCarthy. If you have any
questions, please call Michael McCarthy at (302) 634-2602 immediately. 
  

	
	Very truly yours,
	
	LOANDEPOT.COM, LLC, as Seller
	
	By:                                     
                                         
                  
	Title:                                     
                                         
              
	Date:                                     
                                         
              

 Agreed to: 
 JPMORGAN CHASE
BANK, NATIONAL ASSOCIATION 
  

	
	By:                                     
                                         
            
	Title:                                     
                                         
         
	Date:                                     
                                         
         
	
	Agreed to:
	
	TAKEOUT BUYER
	
	By:                                     
                                         
            
	Title:                                     
                                         
         
	Date:                                     
                                         
         

  
 A-2 

 EXHIBIT B 

MORTGAGE LOAN SCHEDULE DATA FIELDS 
  

	 	1.	 Loan ID 

  

	 	2.	 Pool Number 

  

	 	3.	 Warehouse Lender 

  

	 	4.	 Issue date UPB 

  

	 	5.	 Loan Amount Original 

 

	 	6.	 Price on Line 

  

	 	7.	 Line Payoff 

  

	 	8.	 Origination Date 

  

	 	9.	 Loan Age (in Months) 

 

	 	10.	 Months Delinquent 

  

	 	11.	 Original FICO Score 

  

	 	12.	 Current FICO Score 

  

	 	13.	 Original LTV 

  

	 	14.	 Original Appraised Value 

 

	 	15.	 Original Note Rate 

  

	 	16.	 Agency Type (FN/FH/GN) 

 

	 	17.	 Property Type 

  

	 	18.	 Occupancy 

  

	 	19.	 Lien Position 

  

	 	20.	 Loan Purpose 

  

	 	21.	 State 

  

	 	22.	 Zipcode 

  
 B-1 

 EXHIBIT C 

[LETTERHEAD OF THE SELLER] 

(date) 
 JPMorgan Chase Bank, National
Association 
 383 Madison Avenue, 31st Floor 

New York, New York 10179 
 Dear Sirs: 

The Seller’s wire transfer instructions for purposes of all remittances and payments related to this Agreement are as follows: 

ABA Number: 121000248 
 Bank: Wells
Fargo Bank, N.A. 
 Bank Address: 420 Montgomery Street, San Francisco, CA 94104 

BIC: WFBIUS6S 
 Beneficiary Account
Number: 4988640066 
 Beneficiary Name: LD MBS 

For International Transfer Only: International SWIFT BIC WFBIUS6S 

CHIPS Participants Only: UID ABA 0407 
  

			
	Very truly yours,
	
	loanDepot.com, LLC
		
	By:	 	  

		 	Name:
		 	Title:

  
 C-1 

 EXHIBIT D 

[FORM OF OPINION OF COUNSEL TO THE SELLER] 

(date) 
 JPMorgan Chase Bank, National
Association 
 383 Madison Avenue, 31st Floor 

New York, New York 10179 
 Ladies and Gentlemen: 

You have requested [our] [my] opinion, as [Assistant] General Counsel to
[             ] (the “Company”), with respect to certain matters in connection with the sale by the Company of designated pools of fully amortizing first lien residential
Mortgage Loans pursuant to that certain Mortgage Loan Participation Sale Agreement by and between the Company and JPMorgan Chase Bank, National Association (the “Purchaser”), dated as of August 15, 2016, (the
“Participation Agreement”) which sale is in the form of a 100% participation interest in each pool of Mortgage Loan as evidenced by a Participation Certificate issued thereunder, being executed contemporaneously with a Custodial
Agreement (the “Custodial Agreement”) by and among the Company, the Purchaser and Deutsche Bank National Trust Company (the “Custodian”). Capitalized terms not otherwise defined herein have the meanings set forth in
the Participation Agreement. 
 [We] [I] have examined the following documents: 

 

	 	(1)	 the Participation Agreement; 

 

	 	(2)	 the Participation Certificate(s); 

 

	 	(3)	 the form of assignment of Mortgage; 

 

	 	(4)	 the form of endorsement of the Mortgage Notes; 

 

	 	(5)	 the Custodial Agreement; and 

 

	 	(6)	 such other documents, records and papers as we have deemed necessary and relevant as a basis for this opinion.

 To the extent [we] [I] have deemed necessary and proper, [we] [I] have relied upon the representations and warranties
of the Company contained in the Participation Agreement. [We] [I] have assumed the authenticity of all documents submitted to [us] [me] as originals, the genuineness of all signatures, the legal capacity of natural persons and the conformity to the
originals of all documents. 

  
 D-1 

 Based upon the foregoing, it is [our] [my] opinion that: 

 

	 	(1)	 The Company is a [federally chartered stock savings and loan association] duly organized, validly existing and
in good standing under the laws of the [United States] and is qualified to transact business in, and is in good standing under, the laws of the state of _________________. 

 

	 	(2)	 The Company has the power to engage in the transactions contemplated by the Participation Agreement and all
requisite power, authority and legal right to execute and deliver the Participation Agreement, the Participation Certificate(s) and the Custodial Agreement, and to perform and observe the terms and conditions of such instruments.

  

	 	(3)	 Each of the Participation Agreement, the Participation Certificate(s) and the Custodial Agreement has been duly
authorized, executed and delivered by the Company and is a legal, valid and binding agreement enforceable in accordance with its respective terms against the Company, subject to bankruptcy laws and other similar laws of general application affecting
rights of creditors and subject to the application of the rules of equity, including those respecting the availability of specific performance, none of which will materially interfere with the realization of the benefits provided thereunder or with
the certificateholder’s ownership of the Mortgage Loans. The Mortgage Loans are not subject to any security interest, claim, pledge, hypothecation or lien. 

 

	 	(4)	 The Company has been duly authorized to allow any of its officers to execute any and all documents by original
signature in order to complete the transactions contemplated by the Participation Agreement, the Custodial Agreement and the Participation Certificate(s) [and by original [or facsimile] signature in order to execute the endorsements to the Mortgage
Notes and the assignments of Mortgages, and the original [or facsimile] signature of the officer at the Company executing the endorsements to the Mortgage Notes and the assignments of Mortgages represents the legal and valid signature of said
officer of the Company]. 

  

	 	(5)	 Either (i) no consent, approval, authorization or order of any court or governmental agency or body is
required for the execution, delivery and performance by the Company of or compliance by the Company with the Participation Agreement, the Custodial Agreement or the Participation Certificates, or the sale of the Mortgage Loans as evidenced by the
Participation Certificates or the consummation of the transactions contemplated by the Participation Agreement; or (ii) any required consent, approval, authorization or order has been obtained by the Company. To the extent that the
Participation Certificates may be deemed “securities” under the Securities Act of 1933, as amended, the offer and sale of the Participation Certificates by the Company to the Purchaser is exempt from registration pursuant to
Section 4(5) of such Act, subject to the Purchaser’s representation that it will purchase such Participation Certificates for its own account. 

  
 D-2 

	 	(6)	 Neither the consummation of the transactions contemplated by, nor the fulfillment of the terms of, the
Participation Agreement, the Participation Certificates or the Custodial Agreement conflicts or will conflict with or results or will result in a breach of or constitutes or will constitute a Potential Servicing Termination Event under the charter
or by-laws of the Company, the terms of any indenture or other agreement or instrument to which the Company is a party or by which it is bound or to which it is subject, or violates any statute or order, rule,
regulations, writ, injunction or decree of any court, Governmental Authority or regulatory body to which the Company is subject or by which it is bound. 

  

	 	(7)	 There is no action, suit, proceeding or investigation pending or, to the best of [our] [my] knowledge,
threatened against the Company which, in [our] [my] judgment, either in any one instance or in the aggregate, may result in any material adverse change in the business, operations, financial condition, properties or assets of the Company or in any
material impairment of the right or ability of the Company to carry on its business substantially as now conducted or in any material liability on the part of the Company or which would draw into question the validity of the Participation Agreement,
the Participation Certificates, the Custodial Agreement or the Mortgage Loans or of any action taken or to be taken in connection with the transactions contemplated thereby, or which would be likely to impair materially the ability of the Company to
perform under the terms of the Participation Agreement, the Participation Certificates, or the Custodial Agreement. 

  

	 	(8)	 The sale of each Mortgage Note and Mortgage as and in the manner contemplated by the Participation Agreement is
sufficient fully to transfer to each certificateholder all right, title and interest of the Company thereto as noteholder and mortgagee. 

  

	 	(9)	 The Mortgages have been duly assigned and the Mortgage Notes have been duly endorsed as provided in the
Custodial Agreement. The Assignments of Mortgage are in recordable form, except for the insertion of the name of the assignee, and upon the name of the assignee being inserted, are acceptable for recording under the laws of the state where each
related Mortgaged Property is located. The endorsement of the Mortgage Notes, the delivery to the Custodian of the Assignments of Mortgage, and the delivery of the original endorsed Mortgage Notes to the Custodian are sufficient to permit the holder
of a Participation Certificate to avail itself of all protection available under applicable law against the claims of any present or future creditors of the Company, and are sufficient to prevent any other sale, transfer, assignment, pledge or
hypothecation of the Mortgages and the Mortgage Notes by the Company from being enforceable. 

  
 D-3 

 This opinion is given to you for your sole benefit, and no other person or entity is
entitled to rely hereon except that the purchaser or purchasers to which you initially and directly resell the Participation Certificates may rely on this opinion as if it were addressed to them as of its date. 

 

	
	Very truly yours,
	
	By:                                     
                                         
                  
	Name:
	Title: [Assistant] General Counsel

  
 D-4 

 EXHIBIT E 

RESERVED 

  
 E-1 

 EXHIBIT F 

SUBSIDIARY INFORMATION 

  
 F-1

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00319-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00319-of-00352.parquet"}]]