Document:

EX-10.64

 Exhibit 10.64 

EXECUTION VERSION 
 AMENDMENT
NO. 5
 TO MASTER REPURCHASE AGREEMENT 

Amendment No. 5 to Master Repurchase Agreement, dated as of March 27, 2014 (this “Amendment”), by and among Bank of
America, N.A. (“Buyer”), PennyMac Corp. (“Seller”), PennyMac Mortgage Investment Trust and PennyMac Operating Partnership, L.P. (individually and collectively, the “Guarantor”). 

RECITALS 
 Buyer,
Guarantor and Seller are parties to that certain Master Repurchase Agreement, dated as of November 7, 2011 (as amended from time to time, the “Existing Master Repurchase Agreement”; and as further amended by this Amendment, the
“Master Repurchase Agreement”). The Guarantor is a party to that certain Guaranty (as amended from time to time, the “Guaranty”), dated as of November 7, 2011, made by Guarantor in favor of Buyer. 

Buyer, Seller and Guarantor have agreed, subject to the terms and conditions of this Amendment, that the Existing Master Repurchase Agreement
be amended to reflect certain agreed upon revisions to the terms of the Existing Master Repurchase Agreement. As a condition precedent to amending the Existing Master Repurchase Agreement, Buyer has required Guarantor to ratify and affirm the
Guaranty on the date hereof. 
 Accordingly, Buyer, Seller and Guarantor hereby agree, in consideration of the mutual premises and mutual
obligations set forth herein, that the Existing Master Repurchase Agreement is hereby amended as follows: 
 SECTION 1.
Covenants. Section 14 of the Existing Master Repurchase Agreement is hereby amended by deleting subsection (a)(4) in its entirety and replacing it with the following: 

(4) Profitability. (A) PMIT shall maintain profitability of at least $1.00 in Net Income for the Test Period; and (B) PMOP
shall maintain profitability of at least $1.00 in Net Income for the Test Period less any mark-to-market adjustments with respect to the derivative related to the issuance of PennyMac Corp. 5.375% Exchangeable Senior Notes due 2020. 

SECTION 2. Fees. Section 34 of the Existing Master Repurchase Agreement is hereby amended by deleting subsection (c) in
its entirety and replacing it with the following (modified text underlined for review purposes): 
 c. The Facility Fee (as such term is
defined in the Transaction Terms Letter) shall be deemed earned in full on the Effective Date and if this Agreement is renewed, thereafter on or before the anniversary of the Effective Date. The Facility Fee shall be payable in monthly
installments, which shall be paid on March 27, 2014 and on the Price Differential Payment Date every month thereafter. Such payment shall be made in Dollars, in immediately available funds, without deduction, set-off or
counterclaim, to Buyer at such account designated by Buyer. In the event Seller terminates this Agreement prior to the Termination Date, the unpaid portion of the Facility Fee shall be paid in full. In the event that this Agreement is assigned by
Seller (with the 

 
prior written consent of Buyer) or this Agreement is terminated and replaced with a New Facility, Seller shall be permitted to credit any paid and unused allocable portion of the Facility Fee
toward any facility fee required under any such New Facility. 
 SECTION 3. Fees and Expenses. Seller hereby agrees to pay to
Buyer, on demand, any and all reasonable fees, costs and expenses (including reasonable fees and expenses of counsel) incurred by Buyer in connection with the development, preparation and execution of this Amendment, irrespective of whether any
transactions hereunder are executed. 
 SECTION 4. Conditions Precedent. This Amendment shall become effective as of the date
hereof upon Buyer’s receipt of this Amendment, executed and delivered by a duly authorized officer of Buyer, Seller and Guarantor. 

SECTION 5. Limited Effect. Except as expressly amended and modified by this Amendment, the Existing Master Repurchase Agreement
shall continue to be, and shall remain, in full force and effect in accordance with its terms. 
 SECTION 6. 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. 

SECTION 7. 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 8. GOVERNING LAW. THE AMENDMENT AND THE RIGHTS AND OBLIGATIONS OF THE PARTIES HEREUNDER SHALL BE CONSTRUED IN
ACCORDANCE WITH, AND GOVERNED BY, THE LAW OF THE STATE OF NEW YORK, WITHOUT GIVING EFFECT TO THE CONFLICT OF LAWS PRINCIPLES THEREOF. 

SECTION 9. Reaffirmation of Guaranty. The Guarantor hereby (i) agrees that the liability of Guarantor or rights of Buyer
under the Guaranty shall not be affected as a result of this Amendment, (ii) ratifies and affirms all of the terms, covenants, conditions and obligations of the Guaranty and (iii) acknowledges and agrees that such Guaranty is and shall
continue to be in full force and effect. 
 [SIGNATURE PAGE FOLLOWS] 

  
 2 

 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. 
  

			
	 BANK OF AMERICA, N.A., as Buyer

		
	By:	 	 /s/ Adam Robitshek

		 	Name: Adam Robitshek
		 	Title: Vice President
	
	PENNYMAC CORP., as Seller
		
	By:	 	 /s/ Pamela Marsh

		 	Name: Pamela Marsh
		 	Title: Executive Vice President, Treasurer
	
	PENNYMAC MORTGAGE INVESTMENT TRUST, as Guarantor
		
	By:	 	 /s/ Pamela Marsh

		 	Name: Pamela Marsh
		 	Title: Executive Vice President, Treasurer
	
	PENNYMAC OPERATING PARTNERSHIP, L.P., as Guarantor
	
	By: PennyMac GP OP, Inc., its General Partner
		
	By:	 	 /s/ Pamela Marsh

		 	Name: Pamela Marsh
		 	Title: Executive Vice President, Treasurer

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

 Exhibit 10.76 

EXECUTION 
 AMENDMENT NO.
10
 TO MASTER REPURCHASE AGREEMENT 

Amendment No. 10, dated as of January 10, 2014 (this “Amendment”), among Credit Suisse First Boston Mortgage
Capital LLC (the “Buyer”), PennyMac Holdings, LLC (“PennyMac Holdings”), PennyMac Operating Partnership, L.P., in its capacity as a seller (“POP” and together with PennyMac Holdings, the
“Sellers”) and PennyMac Mortgage Investment Trust and PennyMac Operating Partnership, L.P. (each, a “Guarantor” and collectively, the “Guarantors”). 

RECITALS 
 The Buyer, the
Sellers and the Guarantors are parties to that certain Master Repurchase Agreement, dated as of March 29, 2012 (as amended by Amendment No. 1, dated as of July 25, 2012, Amendment No. 2, dated as of September 26, 2012,
Amendment No. 3, dated as of October 29, 2012, Amendment No. 4, dated as of June 1, 2013, Amendment No. 5, dated as of August 29, 2013, Amendment No. 6, dated as of September 27, 2013, Amendment No. 7,
dated as of October 1, 2013, Amendment No. 8, dated as of December 27, 2013, and Amendment No. 9, dated as of December 31, 2013, the “Existing Repurchase Agreement”; and as further amended by this Amendment,
the “Repurchase Agreement”). The Guarantors are parties to that certain Guaranty (the “Guaranty”), dated as of March 29, 2012, as the same may be further amended from time to time, by the Guarantors in favor of
Buyer. Capitalized terms used but not otherwise defined herein shall have the meanings given to them in the Existing Repurchase Agreement and Guaranty, as applicable. 

The Buyer, the Sellers and the Guarantors 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. As a condition precedent to amending the Existing Repurchase Agreement, the Buyer has required the Guarantors to ratify and affirm the
Guaranty on the date hereof. 
 Accordingly, the Buyer, the Sellers and the Guarantors 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.
Representations and Warranties. Part 1 of Schedule 1 of the Existing Repurchase Agreement is hereby amended by adding the following clause (hhh) at the end thereof: 

(hhh) Qualified Mortgage. Notwithstanding anything to the contrary set forth in this Agreement, on and after
January 10, 2014 (or such later date as set forth in the relevant regulations), (i) prior to the origination of each Mortgage Loan, the originator made a reasonable and good faith determination that the Mortgagor had a reasonable ability
to repay the loan according to its terms, in accordance with, at a minimum, the eight underwriting factors set forth in 12 CFR 1026.43(c) and (ii) each Mortgage Loan is a “Qualified Mortgage” as defined in 12 CFR 1026.43(e). 

  
 -1- 

 SECTION 2. 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: 
 2.1
Delivered Documents. On the Amendment Effective Date, the Buyer shall have received the following documents, each of which shall be satisfactory to the Buyer in form and substance: 

(a) this Amendment, executed and delivered by duly authorized officers of the Buyer, the Sellers and the Guarantors; and 

(b) such other documents as the Buyer or counsel to the Buyer may reasonably request. 

SECTION 3. Representations and Warranties. Each Seller hereby represents and warrants to the Buyer that it is in compliance with all
the terms and provisions set forth in the Existing Repurchase Agreement on its part to be observed or performed, and that no Event of Default has occurred and is continuing, and hereby confirms and reaffirms the representations and warranties
contained in Section 13 of the Existing Repurchase Agreement. 
 SECTION 4. 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 5. 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. 
 SECTION 6. 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 7. 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. 
 SECTION 8. Reaffirmation of Guaranty. The Guarantors hereby
ratify and affirm all of the terms, covenants, conditions and obligations of the Guaranty and acknowledge and agree that the term “Obligations” as used in the Guaranty shall apply to all of the Obligations of Sellers to Buyer under the
Repurchase Agreement, as amended hereby. 
 [Remainder of page intentionally left blank] 

  
 -2- 

 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 Buyer
		
	By:	 	 /s/ Adam Loskove

		 	Name: Adam Loskove
		 	Title: Vice President
	
	PennyMac Holdings, LLC, as Seller
		
	By:	 	 /s/ Pamela Marsh

		 	Name: Pamela Marsh
		 	Title: Executive Vice President, Treasurer
	
	PennyMac Mortgage Investment Trust, as Guarantor
		
	By:	 	 /s/ Pamela Marsh

		 	Name: Pamela Marsh
		 	Title: Executive Vice President, Treasurer
	
	PennyMac Operating Partnership, L.P., as Seller and Guarantor
		
	By:	 	PennyMac GP OP, Inc., its General Partner
		
	By:	 	 /s/ Pamela Marsh

		 	Name: Pamela Marsh
		 	Title: Executive Vice President, Treasurer

 Signature Page to Amendment No. 10 to Master Repurchase Agreement

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