Document:

<PAGE>

                                                                    EXHIBIT 10.3

                                GENENTECH, INC.

                         MAGAININ PHARMACEUTICALS INC.

                           STOCK PURCHASE AGREEMENT

                                April 28, 2000
<PAGE>

                               TABLE OF CONTENTS
                               -----------------

<TABLE>
<CAPTION>
                                                                                                                Page
                                                                                                                ----
<S>                                                                                                             <C>
                                                  ARTICLE 1

                      Authorization and Sale of Series a Preferred Stock and Common Stock

Section 1.01.  Authorization of Series A Preferred Stock........................................................  2
Section 1.02.  Sale of Series A Preferred Stock.................................................................  2
Section 1.03.  Authorization of Common Stock....................................................................  2
Section 1.04.  Sale of Common Stock.............................................................................  2

                                                    ARTICLE 2
                                             Closing Dates; Delivery

Section 2.01.  Closing Dates....................................................................................  2
Section 2.02.  Delivery and Payment.............................................................................  3

                                                    ARTICLE 3
                                  Representations and Warranties of the Company

Section 3.01.  Organization and Standing; Certificate of Incorporation, Certificate of Designations and Bylaws..  3
Section 3.02.  Corporate Power..................................................................................  4
Section 3.03.  Subsidiaries.....................................................................................  4
Section 3.04.  Capitalization...................................................................................  4
Section 3.05.  Authorization....................................................................................  5
Section 3.06.  Proprietary Rights...............................................................................  6
Section 3.07.  Litigation, Etc..................................................................................  6
Section 3.08. NASD Listing......................................................................................  7
Section 3.09.  Material Agreements..............................................................................  7
Section 3.10.  Title to Properties and Assets; Liens, Etc.......................................................  7
Section 3.11.  Compliance with Other Instruments, None Burdensome, Etc..........................................  7
Section 3.12.  Employees........................................................................................  8
Section 3.13.  Registration Rights..............................................................................  8
Section 3.14.  Governmental Regulations, Etc....................................................................  8
Section 3.15.  Offering.........................................................................................  9
Section 3.16.  Brokers or Finders...............................................................................  9
Section 3.17.  Related-Party Transactions.......................................................................  9
Section 3.18.  Permits..........................................................................................  9
Section 3.19.  Insurance........................................................................................  9
</TABLE>
<PAGE>

<TABLE>
<CAPTION>
                                                                                         Page
                                                                                         ----
<S>                                                                                      <C>
Section 3.20.  Disclosure................................................................   9
Section 3.21.  SEC Filings...............................................................  10
Section 3.22.  Financial Statements......................................................  10
Section 3.23.  Investment Company........................................................  10
Section 3.24.  Absence of Changes........................................................  10
Section 3.25.  Tax Returns...............................................................  11
Section 3.26.  Environmental Safety and Laws.............................................  11
Section 3.27.  Manufacturing and Marketing Rights........................................  12
Section 3.28.  Compliance with ERISA.....................................................  12

                                              ARTICLE 4
                             Representations and Warranties of the Purchaser

Section 4.01.  Preexisting Relationship with Company; Business and Financial Experience..  12
Section 4.02.  Blue Sky..................................................................  12
Section 4.03.  Private Placement.........................................................  13
Section 4.04.  Rule 144..................................................................  13
Section 4.05.  Restrictions on Transfer; Restrictive Legends.............................  13
Section 4.06.  Access to Data............................................................  13
Section 4.07.  Organization and Good Standing............................................  14
Section 4.08.  Authorization.............................................................  14
Section 4.09.  Brokers or Finders........................................................  14

                                             ARTICLE 5
                                Conditions to Closing of the Purchaser

Section 5.01.  Representations and Warranties Correct....................................  15
Section 5.02.  Covenants.................................................................  15
Section 5.03.  Consents, Permits and Waivers.............................................  15
Section 5.04.  Opinion of the Company=s Counsel..........................................  15
Section 5.05.  Blue Sky..................................................................  15
Section 5.06.  Certificate of Designations...............................................  15
Section 5.07.  Legal Matters.............................................................  15
Section 5.08.  Registration Rights Agreement.............................................  16
Section 5.09.  Compliance Certificate....................................................  16
Section 5.10.  License Agreement.........................................................  16
Section 5.11.  Proceedings and Documents.................................................  16
Section 5.12.  Delivery of Stock Certificates............................................  16
</TABLE>
<PAGE>

<TABLE>
<CAPTION>
                                                                                         Page
                                                                                         ----
<S>                                                                                      <C>
                                              ARTICLE 6
                                 Conditions To Closing of the Company

Section 6.01.  Representations and Warranties Correct........................................  16
Section 6.02.  Covenants.....................................................................  16
Section 6.03.  Blue Sky......................................................................  17
Section 6.04.  Certificate of Designations...................................................  17
Section 6.05.  Legal Matters.................................................................  17
Section 6.06.  Registration Rights Agreement.................................................  17
Section 6.07.  License Agreement.............................................................  17

                                               ARTICLE 7
                  Financing upon Occurrence of A Merger Event or A Capitalization Event

Section 7.01.  Loans by Purchaser............................................................  17
Section 7.02.  Closing Conditions for Loans..................................................  17

                                               ARTICLE 8
                                 Covenants of Purchaser and the Company

Section 8.01.  Restrictions on Sales of Common Stock During Calculation of Conversion Price..  18
Section 8.02.  No Superior or Parity Debt....................................................  18
Section 8.03.  HSR Filing....................................................................  18

                                               ARTICLE 9
                                             Miscellaneous

Section 9.01.  Governing Law.................................................................  19
Section 9.02.  Entire Agreement; Amendment...................................................  19
Section 9.03.  Notices, Etc..................................................................  19
Section 9.04.  Delays or Omissions...........................................................  20
Section 9.05.  Expenses......................................................................  20
Section 9.06.  Counterparts..................................................................  21
Section 9.07.  Severability..................................................................  21
Section 9.08.  Titles and Subtitles..........................................................  21
</TABLE>

SCHEDULE 1 Schedule of Exceptions
SCHEDULE 2 Schedule of Licenses, Options and Material Agreements Relating to the
           Subject of the License Agreement
<PAGE>

EXHIBIT A  Certificate of Designations, Preferences and Rights of Series A
           Preferred Stock
EXHIBIT B  Registration Rights Agreement
EXHIBIT C  Compliance Certificate
EXHIBIT D  Form of Note
<PAGE>

                         MAGAININ PHARMACEUTICALS INC.

                           STOCK PURCHASE AGREEMENT

     This agreement (the "Agreement") is made effective as of April 28, 2000, by
and among Magainin Pharmaceuticals Inc., a Delaware corporation (the "Company"),
and Genentech, Inc. a Delaware corporation (the "Purchaser").

                            RECITALS

     WHEREAS, the Company and the Purchaser entered into a Collaborative
Research and License Agreement dated as of the date hereof (the "License
Agreement"), pursuant to which the Purchaser will conduct research with respect
to IL-9 and the Company will grant Purchaser an exclusive license regarding the
development and commercialization thereof;

     WHEREAS, pursuant to the License Agreement the parties have agreed to enter
into this Agreement;

     WHEREAS, in connection with its obligation to fund certain research by the
Company pursuant to the License Agreement, the Purchaser has agreed to purchase
(i) up to 42,000 shares of the Company's Series A Preferred Stock at the per
share purchase price of $1,000 and (ii) 1,085,973 shares of the Company's Common
Stock at the per share purchase price of $4.60414;

     WHEREAS, the Purchaser will initially purchase 500 shares of Series A
Preferred Stock, and will purchase up to 41,500 additional shares of Series A
Preferred Stock from time to time on a quarterly basis as determined by the
Joint Steering Committee established pursuant to the License Agreement (the
"Joint Steering Committee");

     WHEREAS, the Conversion Shares underlying the Series A Preferred Stock and
the shares of Common Stock issued pursuant to this Agreement shall have
registration rights as evidenced by the Registration Rights Agreement in the
form attached hereto as Exhibit B (the "Registration Rights Agreement");

     NOW, THEREFORE, in consideration of the foregoing recitals and the mutual
promises hereinafter set forth,

     THE PARTIES HEREBY AGREE AS FOLLOWS;
<PAGE>

                                   ARTICLE 1

      Authorization and Sale of Series a Preferred Stock and Common Stock

     Section 1.1.  Authorization of Series A Preferred Stock.  The Company has
authorized the issuance and sale of 80,000 shares (the "Preferred Shares") of
Series A Preferred Stock, par value $.001 per share (the "Series A Preferred"),
having the rights, preferences, privileges and restrictions set forth in the
Certificate of Designations, Preferences and Rights of Series A Preferred Stock
in substantially the form attached hereto as Exhibit A (the "Certificate of
Designations").

     Section 1.2.  Sale of Series A Preferred Stock.  Subject to the terms and
conditions hereof, the Company will issue and sell to the Purchaser and the
Purchaser will buy from the Company up to a total of 42,000 Preferred Shares at
a per share purchase price of $1,000 (the "Per Share Price").

     Section 1.3.  Authorization of Common Stock.  The Company has authorized
the issuance and sale of 1,085,973 shares (the "Common Shares" and together with
the Preferred Shares, the "Shares") of its Common stock, par value $.002 per
share (the "Common Stock") to the Purchaser.

     Section 1.4.  Sale of Common Stock.  Subject to the terms and conditions
hereof, the Company will issue and sell to the Purchaser and the Purchaser will
buy from the Company a total of 1,085,973 Common Shares at a per share purchase
price of $4.60417.

                                   ARTICLE 2

                            Closing Dates; Delivery

     Section 2.1.  Closing Dates.  (a) It is anticipated that purchases and
sales of the Preferred Shares hereunder shall be consummated at thirty five (35)
closings (collectively, the "Closings" or each individually, a "Closing").  Each
Closing shall be held at the offices of the Purchaser, 1 DNA Way, South San
Francisco,  CA at 4:00 p.m., local time, or at such other time and place upon
which the Company and the Purchaser shall agree.  The first such closing (the
"First Closing") shall take place on May 10, 2000 or such other date upon which
the Company and the Purchaser shall agree (the date and time of the First
Closing is hereinafter referred to as the "First Closing Date").  The subsequent
closings (each a "Subsequent Closing") shall take place (i) on a quarterly basis
on March 31, June 30, September 30 and December 31 of each year starting
September 30, 2000 with the last Subsequent Closing on December 31, 2008 or (ii)
on such dates
<PAGE>

as established by the Joint Steering Committee (the date and time of each
Subsequent Closing is hereinafter referred to as a "Subsequent Closing Date").

       (b)  The Purchaser will purchase 500 Preferred Shares at the First
Closing.

       (c)  The number of Preferred Shares to be purchased by the Purchaser at
each Subsequent Closing shall be determined by the Joint Steering Committee in
accordance with procedures laid out in the License Agreement; provided that if
the License Agreement expires or is terminated, the Purchaser will have no
further obligation to purchase any additional Preferred Shares; provided further
that the sale of Preferred Shares and the Purchaser's obligation to purchase any
Preferred Shares will terminate upon the occurrence of a either a Merger Event
or a Capitalization Event (each as defined in the Certificate of Designations).
The Per Share Price and other terms of sales consummated at each Subsequent
Closing shall be substantially identical to the terms of the sales consummated
at the First Closing.

       (d)  The purchase and sale of the Common Shares hereunder shall be
consummated at the First Closing.

       Section 2.2.  Delivery and Payment.  At each Closing, the Company will
deliver to the Purchaser, with respect to the Shares being purchased at such
Closing, a certificate or certificates, registered in the Purchaser's name,
representing the number of Shares to be purchased by the Purchaser at such
Closing, against payment of the purchase price therefor, by check payable to the
Company, by wire transfer in immediately available funds or by any combination
of the foregoing, per the Company's instructions.

                                   ARTICLE 3

                 Representations and Warranties of the Company

       Except as set forth on Schedule 1 attached hereto, and as updated by the
Company on each subsequent Closing Date, the Company represents and warrants to
the Purchaser that, as of the date of each Closing at which the Purchaser
consummates its purchase of Shares or at each Loan Closing (as defined in
Section 7.01) hereunder:

       Section 3.1.  Organization and Standing; Certificate of Incorporation,
Certificate of Designations and Bylaws.  The Company is a corporation duly
organized and existing under, and by virtue of, the laws of the State of
Delaware and is in good standing under such laws.  The Company has requisite
corporate
<PAGE>

power and authority to own and operate its properties and assets, and to carry
on its business as presently conducted and as proposed to be conducted. The
Company is presently qualified to do business as a foreign corporation in
Pennsylvania and there is no other jurisdiction in which the failure to be so
qualified would have a material adverse effect on the business or financial
condition of the Company. The Company has furnished to counsel for the Purchaser
copies of its Certificate of Incorporation, as amended to date (the "Certificate
of Incorporation"), Certificate of Designations and Amended and Restated Bylaws,
as amended to date (the "Bylaws"). Said copies are true, correct and complete
and reflect all amendments now in effect.

     Section 3.2.  Corporate Power.  The Company has all requisite legal and
corporate power and authority to execute and deliver this Agreement and the
Registration Rights Agreement, to sell and issue the Shares hereunder, to issue
the Common Stock underlying the Preferred Shares (the "Conversion Stock") in
accordance with the provisions of the Certificate of Designations, to sell and
issue the Notes (as defined in Section 7.01), and to carry out and perform its
obligations under the terms of this Agreement and the Registration Rights
Agreement.

     Section 3.3.  Subsidiaries.  The Company has no subsidiaries or affiliated
companies and does not otherwise own or control, directly or indirectly, any
equity interest in any corporation, association or business entity.

     Section 3.4.  Capitalization.  The authorized capital stock of the Company
will, upon the filing of the Certificate of Designations, consist of 45,000,000
shares of Common Stock and 9,211,031 shares of Preferred Stock, 80,000 of which
have been designated Series A Preferred.  As of the First Closing Date, the
total number of outstanding shares of Common Stock will be 28,195,339.  Upon the
filing of the Certificate of Designations and immediately prior to the First
Closing, no shares of Preferred Stock and 27,109,366 shares of Common Stock were
outstanding.  The Series A Preferred shall have the rights, preferences,
privileges and restrictions set forth in the Certificate of Designations.  All
currently outstanding shares of Common Stock have been duly authorized and
validly issued, are fully paid and nonassessable, and have been issued in
compliance with applicable securities laws.  The Company has reserved 80,000
shares of Series A Preferred and 1,085,973 shares of Common Stock for issuance
hereunder and 4,000,000 shares of Common Stock for issuance upon conversion of
the Series A Preferred.  Of the 160,000 shares of Common Stock of the Company
reserved for issuance under the Company's 1990 Stock Option Plan, options to
purchase 160,000 shares have been granted, and no shares remain available to
underlie future option grants.  Of the 2,500,000 shares of Common Stock of the
Company reserved for issuance under the Company's 1992 Stock Option Plan, as
amended, options to purchase 2,063,850 shares have been granted,
<PAGE>

and 436,150 shares remain available to underlie future option grants. Of the
1,500,000 shares of Common Stock of the Company reserved for issuance under the
Company's 1998 Equity Compensation Plan, 1,325,625 shares have been accounted
for through the grant of options to purchase Common Stock and restricted stock
awards and 174,375 shares remain available to underlie future option grants or
awards of restricted stock. In addition, as of the First Closing, there are
outstanding options to purchase 485,612 shares of the Company's Common Stock
that are not subject to any of the stock option plans or employee compensation
plans of the Company. Warrants to purchase 1,387,949 shares of the Company's
Common Stock are held by third parties. Of these, warrants to purchase 1,158,210
shares contain antidilution provisions that increase the number of shares
subject to the warrants and decrease the exercise price if the Company issues
Common Stock and/or other securities convertible into Common Stock at certain
prices. Except as set forth above and as provided in the Company's Certificate
of Incorporation, there are no options, warrants or other rights to purchase or
acquire any of the Company's authorized and unissued capital stock.

     Section 3.5.  Authorization.  All corporate action on the part of the
Company, its directors and stockholders necessary for the authorization,
execution, delivery and performance of this Agreement,  the Registration Rights
Agreement and the License Agreement by the Company, the authorization, sale,
issuance and delivery of the Shares and the Conversion Stock and the performance
of all of the Company's obligations hereunder and under the Registration Rights
Agreement has been taken or will be taken prior to the First Closing.  This
Agreement and the Registration Rights Agreement, when executed and delivered by
the Company, shall constitute valid and binding obligations of the Company,
enforceable in accordance with their terms (except as to rights of
indemnification in the Registration Rights Agreement which may be
unenforceable), subject to laws of general application relating to bankruptcy,
insolvency and the relief of debtors and rules of law governing specific
performance, injunctive relief or other equitable remedies.  The Preferred
Shares and the Common Shares, when issued in compliance with the provisions of
this Agreement, will be validly issued, fully paid and nonassessable, and will
have the rights, preferences, privileges and restrictions described in the
Certificate of Designations and the Certificate of Incorporation, respectively;
the Common Stock issuable upon conversion of the Preferred Shares has been duly
and validly reserved and, when issued in compliance with the provisions of the
Certificate of Designations, will be validly issued, fully paid and
nonassessable; and the Shares and the Conversion Stock will be free of any liens
or encumbrances (assuming the Purchaser takes the Shares with no notice thereof)
other than any liens or encumbrances created by or imposed upon the holders;
provided, however, that the Shares and the Conversion Stock may be subject to
restrictions on transfer
<PAGE>

under state or federal securities laws and restrictions set forth in the
Registration Rights Agreement. The issuance of the Shares is not subject to any
preemptive rights or rights of first refusal.

     Section 3.6.  Proprietary Rights.  The Company has title and ownership of,
or rights to use, all patents, trademarks, service marks, trade names,
copyrights, trade secrets, information, proprietary rights and processes
necessary for its business as now conducted without any conflict with or
infringement of the rights of others, except as would not have a material
adverse effect on the Company.  Except as set forth in Schedule 2 hereof, there
are no outstanding options, licenses, or agreements of any kind relating to the
subject of the License Agreement and the transactions and the research
contemplated by the License Agreement, nor is the Company bound by or a party to
any options, licenses or agreements of any kind with respect to the patents,
trademarks, service marks, trade names, copyrights, trade secrets, licenses,
information, proprietary rights and processes of any other person or entity.
The Company has not received any communications alleging that the Company has
violated or, by conducting its business as proposed, would violate any of the
patents, trademarks, service marks, trade names, copyrights or trade proprietary
rights of any other person or entity and that management reasonably believes
will have a material adverse effect on the Company.  To the best knowledge of
the Company, none of its employees is obligated under any contract (including
licenses, covenants or commitments of any nature) or other agreement, or subject
to any judgment, decree or order of any court or administrative agency, that
would interfere with the use of his or her best efforts to promote the interests
of the Company or that would conflict with the Company's business as proposed to
be conducted.  Neither the execution nor delivery of this Agreement or the
Registration Rights Agreement, nor the carrying on of the Company's business by
the employees of the Company, nor the conduct of the Company's business as
proposed, will, to the best of the Company's knowledge, conflict with or result
in a breach of the terms, conditions or provisions of, or constitute a default
under, any contract, covenant or instrument under which the Company or any of
such employees is now obligated except as would not have a material adverse
effect on the Company.  The Company does not believe it is or will be necessary
to utilize any inventions of any of its employees (or people it currently
intends to hire) made prior to their employment by the Company.

     Section 3.7.  Litigation, Etc.  There are no actions, suits, proceedings or
investigations pending or, to the Company's knowledge, threatened against the
Company or its properties before any court or governmental agency which
management believes is likely to have a material adverse effect on the Company.
The foregoing includes, without limitation, actions pending or threatened (or
any basis therefor known to the Company) involving the prior employment of any
of
<PAGE>

the Company's employees, their use in connection with the Company's business of
any information or techniques allegedly proprietary to any of their former
employers, or their obligations under any agreements with prior employers. The
Company is not a party or subject to the provisions of any order, writ,
injunction, judgment or decree of any court or government agency or
instrumentality. There is no action, suit, proceeding or investigation by the
Company currently pending or which the Company intends to initiate.

     Section 3.8.  NASD Listing.  The Common Stock is, and the Conversion Stock
will upon issuance be, listed for trading on the Nasdaq National Market.

     Section 3.9.  Material Agreements.  All of the contracts and agreements to
which the Company is a party and which are in effect as of the First Closing
Date and which the Company considers to be material are listed on as exhibits to
the Company's Form 10-K for the period ended December 31, 1999.  All such
contracts and agreements are valid, binding and in full force and effect in all
material respects, subject to laws of general application relating to
bankruptcy, insolvency and the relief of debtors and rules of law governing
specific performance, injunctive relief or other equitable remedies, and the
Company has not received any indication of an intention to terminate any such
contract or agreement by any of the parties to any such contract or agreement.

     Section 3.10.  Title to Properties and Assets; Liens, Etc.  Except with
respect to assets consisting of Proprietary Rights which are covered by Section
3.06 hereof, the Company has good and marketable title to its properties and
assets, and has good title to all its leasehold interests (except where the
failure to have such title would not, individually or in the aggregate, have a
material adverse effect) in each case subject to no mortgage, pledge, lien,
encumbrance or charge, other than (i) the lien of current taxes not yet due and
payable, and (ii) possible minor liens and encumbrances which, when considered
individually or together, do not materially detract from the value of the
property subject thereto or materially impair the operations of the Company, and
which have not arisen otherwise than in the ordinary course of business and such
properties and assets are sufficient to enable the Company to carry on its
business as presently conducted and, to the Company's knowledge, as proposed to
be conducted.

     Section 3.11.  Compliance with Other Instruments, None Burdensome, Etc.
The Company is not in violation of: any term of its Certificate of
Incorporation, or its Bylaws; in any material respect of any term or provision
of any mortgage, indebtedness, indenture, contract, agreement, instrument,
judgment or decree; and, to the best of its knowledge, is not in violation of
any order, statute, rule or regulation applicable to the Company except for such
violations that would not, individually or in the aggregate, have a material
adverse effect.
<PAGE>

The execution, delivery and performance of and compliance with this Agreement,
and the issuance of the Shares and the Conversion Stock, have not resulted and
will not result in any violation of, or conflict with, or constitute a default
under, the Company's Certificate of Incorporation, or its Bylaws, and have not
and will not result in any material violation of, or conflict with, or
constitute a material default under, any of its agreements nor result in the
creation of any mortgage, pledge, lien, encumbrance or charge upon any of the
properties or assets of the Company.

     Section 3.12.  Employees.  All of the Company's material contracts with
employees are filed as exhibits to the Company's Form 10-K for the period ended
December 31, 1999.  To the best of the Company's knowledge, no employee of the
Company nor any consultant with whom the Company has contracted is in violation
of any term of any employment contract, non-disclosure agreement or any other
similar contract or agreement relating to the relationship of such employee or
consultant with the Company.  Except as disclosed in the Company's Form 10-K (or
the exhibits to the Form 10-K) for the period ended December 31, 1999, no
employee of the Company has been granted the right to continued employment by
the Company or to any material compensation following termination of employment
with the Company.  The Company is not aware that any officer or key employee, or
that any group of key employees, intends to terminate their employment with the
Company, nor does the Company have a present intention to terminate the
employment of any officer, key employee or group of key employees.  Each
employee of the Company has executed an appropriate confidential information and
invention assignment agreement.

     Section 3.13.  Registration Rights.   The Company has not granted or agreed
to grant any registration rights, including piggyback rights, to any person or
entity, except for rights that the Company believes have expired by their terms.

     Section 3.14.  Governmental Regulations, Etc.  Except as required pursuant
to the Securities Act of 1933, as amended (the "Securities Act"), the Securities
Exchange Act of 1934 (the "Exchange Act"), as amended and state securities laws,
the Company is not subject to any Federal or state law or regulation limiting
its ability to execute and deliver this Agreement, or to offer, sell or issue
the Shares or the Conversion Stock, or consummate any other transaction
contemplated hereby, other than (a) the filing of the Certificate of
Designations in the office of the Delaware Secretary of State prior to the First
Closing and (b) the qualification (or taking of such action as may be necessary
to secure an exemption from qualification, if available) of the offer and sale
of the Shares and the Conversion Stock under applicable Blue Sky laws, which
filings and qualifications, if required, will be accomplished in a timely
manner.
<PAGE>

     Section 3.15.  Offering.  Subject to the accuracy of the Purchaser's
representations in Section 4 hereof, the offer, sale and issuance of the Shares
and the Conversion Stock constitute transactions exempt from the registration
requirements of Section 5 of the Securities Act.

     Section 3.16.  Brokers or Finders.  Neither the Company nor the Purchaser,
as a result of any action taken by the Company, have incurred or will incur,
directly or indirectly, any liability for brokerage or finders' fees or agents'
commissions or any similar charges in connection with this Agreement or the
transactions contemplated hereby.

     Section 3.17.  Related-Party Transactions.  No employee, officer, or
director of the Company or member of such person's immediate family is indebted
to the Company, nor is the Company indebted (or committed to make loans or
extend or guarantee credit) to any of them, except for indebtedness or
commitments to make loans or extend or guarantee credit that do not,
individually or in the aggregate, exceed $60,000.  To the best of the Company's
knowledge, none of such persons has any direct or indirect ownership interest in
any firm or corporation with which the Company is affiliated or with which the
Company has a business relationship, or any firm or corporation that competes
with the Company, except that employees, officers, or directors of the Company
and members of their immediate families may own stock in publicly traded
companies that may compete with the Company.  No member of the immediate family
of any officer or director of the Company is directly or indirectly interested
in any material contract with the Company.

     Section 3.18.  Permits.  The Company has all franchises, permits, licenses,
and any similar authority necessary for the conduct of its business as now being
conducted, the lack of which could materially and adversely affect the business,
properties, prospects, or financial condition of the Company, and the Company
believes it can obtain, without undue burden or expense, any similar authority
for the conduct of its business as planned to be conducted.  The Company is not
in default in any material respect under any of such franchises, permits,
licenses, or other similar authority.

     Section 3.19.  Insurance.  The Company has insurance policies in effect
covering the risks associated with its business and properties which are of such
character and in such amounts as are customarily maintained by entities engaged
in the same or similar business and similarly situated.

     Section 3.20.  Disclosure.  No representation or warranty made by the
Company in this Agreement, any schedule or exhibit hereto, or any certificate
delivered hereunder, when taken together, contains any untrue statement of a
<PAGE>

material fact, or omits to state a material fact necessary to make the
statements contained herein or therein not misleading in light of the
circumstances under which they were made.

       Section 3.21.  SEC Filings.  (a) The Company has delivered or made
available to the Purchaser (i) its annual reports on Form 10-K for its fiscal
year ended December 31, 1999 and 1998, (ii) its proxy or information statements
relating to meetings of or actions taken without a meeting by the Company's
stockholders held since December 15, 1998, and (iii) all of its other reports,
statements, schedules and registration statements filed with the SEC since
January 1, 1999 (the documents referred to in this Section 3.21, collectively,
the "Company SEC Documents").

       (b)  As of its filing date, each Company SEC Document complied as to form
in all material respects with the applicable requirements of the Securities Act
and the Exchange Act, as the case may be.

       (c)  As of its filing date, each Company SEC Document filed pursuant to
the Exchange Act did not contain any untrue statement of a material fact or omit
to state any material fact necessary in order to make the statements made
therein, in the light of the circumstances under which they were made, not
misleading.

       Section 3.22.  Financial Statements.  The audited financial statements
and unaudited interim financial statements of the Company included in the
Company SEC Documents fairly present, in all material respects, in conformity
with GAAP applied on a consistent basis (except as may be indicated in the notes
thereto), the financial position of the Company as of the dates thereof and its
results of operations and cash flows for the periods then ended (subject to
normal year-end adjustments and to the omission of certain footnotes required by
GAAP in the case of any unaudited interim financial statements). The Company has
no liabilities or obligations, absolute or contingent, that are required by GAAP
to be set forth in such financials, that have not been so set forth.

       Section 3.23.  Investment Company.  The Company is not, and after the
issuance and sale of the Shares or the Conversion Stock will not be, an
"investment company" within the meaning of the Investment Company Act of 1940,
as amended.

       Section 3.24.  Absence of Changes.  Except as specifically set forth in
this Agreement, since December 31, 1999: (a) the Company has not entered into
any transaction that was not in the ordinary course of business; (b) there has
been no material adverse change in the condition (financial or otherwise) of the
business, prospects, property, assets or liabilities of the Company; (c) there
has
<PAGE>

been no damage to, destruction of or loss of physical property (whether or not
covered by insurance) materially and adversely affecting the assets, financial
condition, operating results, prospects, business or operations of the Company;
(d) the Company has not declared or paid any dividend or made any distribution
on its stock, of redeemed or purchased or otherwise acquired any of its stock or
incurred any material tax liability; (e) the Company has not changed any
compensation arrangement or agreement with any of its key employees or executive
officers, or changed the rate of pay of its employees as a group, other than in
the ordinary course of business; (f) the Company has not received notice that
there has been a loss of a material customer of the Company; (g) the Company has
not changed or amended any contract by which the Company or any of its assets
are bound or subject that would have a material adverse effect on the Company;
(h) there has been no resignation or termination of employment of any officer or
key employee of the Company, and the Company does not know of any impending
resignation or termination of employment of any such officer or key employee
that if consummated would have a material adverse effect on the Company; (i)
there has been no labor dispute involving the Company or any of its employees
and, to the knowledge of the Company and none is pending or threatened; (j)
there has been no material and adverse change in the contingent obligation of
the Company (nor in any material contingent obligation of the Company regarding
any director, stockholder or key employee or officer of the Company) by way of
guaranty, endorsement, indemnity, warranty or otherwise; (k) there have been no
loans or guarantees made by the Company to any of its employees, officers or
directors other than travel advances and other advances made in the ordinary
course of business; (l) there has been no waiver by the Company of a valuable
right or of a debt owing to the Company that would have a material adverse
effect on the Company; (m) there has not been any satisfaction or discharge of
any material lien, claim or encumbrance or any payment of any material
obligation by the Company except in the ordinary course of business and that is
not material to the assets, properties, financial condition, operating results
or business of the Company; (n) the Company has not sold or transferred any
patent, service mark, trade name, copyright, trade secret or proprietary right
necessary for its business; and (o) there has been no other event or condition
of any character that would have a material adverse effect on the Company.

     Section 3.25.  Tax Returns.  All federal, state and local tax returns, if
any, required to be filed by the Company have been timely filed, and all
federal, state and local taxes, if any, required to be paid with respect to the
periods covered by such returns have been paid.

     Section 3.26.  Environmental Safety and Laws.  The Company, to the best of
its knowledge, is not in violation of any applicable statute, law or regulation
relating to the environment or occupational health and safety (except where the
<PAGE>

failure to be in compliance would not have a material adverse effect), and,
based on the Company's business as currently conducted and to the best of its
knowledge, no material expenditures are or will be required in order to comply
with any existing statute, law or regulation.

     Section 3.27.  Manufacturing and Marketing Rights.  Except for the
Development, Supply and Distribution Agreement dated as of February 12, 1997
between the Company and SmithKline Beecham Corporation, the Company has not
granted rights to manufacture, produce, license, market or sell its products to
any person and is not bound by any agreement that affects the Company's
exclusive right to develop, manufacture, assemble, distribute, market or sell
its products.

     Section 3.28.  Compliance with ERISA.  The Company has fulfilled its
obligations under the minimum funding standards of the Employee Retirement
Income Security Act of 1974, as amended from time to time ("ERISA"), and the
Internal Revenue Code of 1986, as amended from time to time (the "Code") with
respect to each of its employee pension benefit plan which is covered by Title
IV of ERISA or subject to the minimum funding requirements under Section 412 of
the Code and is in compliance in all material respects with the presently
applicable provisions of ERISA and the Code with respect to each such plan.

                                   ARTICLE 4

                Representations and Warranties of the Purchaser

     The Purchaser hereby severally represents and warrants to the Company that,
as of the date of each Closing at which the Purchaser consummates its purchase
of Shares hereunder,

     Section 4.1.  Preexisting Relationship with Company; Business and Financial
Experience.  It (i) has a prior business and/or personal relationship with the
Company and/or its officers and directors, and (ii) by reason of its business or
financial experience or the business or financial experience of its professional
advisors who are unaffiliated with the Company, and who are not compensated by
the Company, it has the capacity to protect its own interests in connection with
the purchase of the Shares and underlying Conversion Stock.

     Section 4.2.  Blue Sky.  The Purchaser's address set forth in Section
9.03(a) represents the Purchaser's true and correct state of domicile, upon
which
<PAGE>

the Company may rely for the purpose of complying with applicable "Blue Sky"
laws.

     Section 4.3.  Private Placement.  (a) It understands that (i) the offering
and sale of the Shares and the Conversion Stock is intended to be exempt from
registration under the Securities Act pursuant to Section 4(2) of the Securities
Act and (ii) there is no public market or other market for the Preferred Shares
and there can be no assurance that the Purchaser will be able to sell or dispose
of the Preferred Shares.

     (b)  The Shares and the Conversion Stock to be acquired by the Purchaser
pursuant to this Agreement are being acquired for its own account without a view
to the public distribution of such Shares or the Conversion Stock or any
interest therein; provided that the Purchaser shall have the right at all times
to sell or otherwise dispose of all or any part of the Shares or the Conversion
Stock so acquired by the Purchaser pursuant to a registration statement, or
exemption therefrom, under the Securities Act.

     (c)  The Purchaser has sufficient knowledge and experience in financial
and business matters so as to be capable of evaluating the merits and risks of
its investment in the Shares and the underlying Conversion Stock and the
Purchaser is capable of bearing the economic risks of such investment, including
a complete loss of its investment in the Shares and the Conversion Stock.

     Section 4.4.  Rule 144.  It is aware of the provisions of Rule 144
promulgated under the Securities Act which permit limited resale of shares
purchased in a private placement subject to the satisfaction of certain
conditions, including, among other things, the existence of a public market for
the shares, the availability of certain current public information about the
Company, the resale occurring not less than one year after a party has purchased
and paid for the security to be sold, the sale being effected through a
"broker's transaction" or in a transaction directly with a "market maker," and
the number of shares being sold during any three month period not exceeding
specified limitations.

     Section 4.5.  Restrictions on Transfer; Restrictive Legends.  It
understands that the transfer of the Shares and the Conversion Stock is
restricted by applicable state and Federal securities laws and by the provisions
of the Registration Rights Agreement, and that the certificates representing the
Shares and the Conversion Stock will be imprinted with legends restricting
transfer except in compliance therewith.

     Section 4.6.  Access to Data.  The Purchaser has been given the opportunity
to ask questions of, and receive answers from the Company
<PAGE>

concerning the terms and conditions of the Shares and the Conversion Stock and
other related matters. The Purchaser further represents and warrants to the
Company that the Company has made available to Purchaser or its agents all
documents and information relating to an investment in the Shares and the
Conversion Stock requested by or on behalf of Purchaser. In evaluating the
suitability of an investment in the Shares and the Conversion Stock, the
Purchaser has not relied upon any other representations or other information
(whether oral or written) made by or on behalf of the Company other than as
contemplated by the two preceding sentences. It understands that such
discussions, as well as any written information issued by the Company, were
intended to describe certain aspects of the Company's business and prospects but
were not a thorough or exhaustive description.

     Section 4.7.  Organization and Good Standing.  The Purchaser is a
corporation duly organized and validly existing under the laws of the State of
California and is in good standing as a domestic corporation under the laws of
such state, and has the requisite corporate power and authority to own its
properties and carry on its business as now being conducted.

     Section 4.8.  Authorization.  The Purchaser has full right, requisite
corporate power, authority and capacity to enter into this Agreement and the
Registration Rights Agreement, to carry out its obligations hereunder and to
consummate the transactions contemplated hereby.  All action on the part of the
Purchaser's partners, board of directors, and stockholders, as applicable,
necessary for the authorization, execution, delivery and performance of this
Agreement and the Registration Rights Agreement by the Purchaser, the purchase
of and payment for the Shares and the Conversion Stock and the performance of
all of the Purchaser's obligations hereunder and under the Registration Rights
Agreement has been taken or will be taken prior to the First Closing.  This
Agreement and the Registration Rights Agreement, when executed and delivered by
the Purchaser, shall constitute valid and binding obligations of the Purchaser,
enforceable in accordance with their terms, subject to laws of general
application relating to bankruptcy, insolvency and the relief of debtors and
rules of law governing specific performance, injunctive relief or other
equitable remedies.

     Section 4.9.  Brokers or Finders.  Neither the Company nor the Purchaser,
as a result of any action taken by the Purchaser, have incurred or will incur,
directly or indirectly, any liability for brokerage or finders' fees or agents'
commissions or any similar charges in connection with this Agreement or the
transactions contemplated hereby.

                                   ARTICLE 5
<PAGE>

                     Conditions to Closing of the Purchaser

     The Purchaser's obligation to purchase the Shares is, unless waived in
writing by the Purchaser, subject to the fulfillment as of the date of the First
Closing, and each Subsequent Closing, of the following conditions:

     Section 5.1.  Representations and Warranties Correct.  The representations
and warranties made by the Company in Section 3 hereof shall be true and correct
in all material respects as of the date of the Closing at which the Purchaser
consummates its purchase of Shares hereunder and the Purchaser shall have
accepted the exceptions, if any, to the Company's representations and warranties
as updated in Schedule 1 at each Closing.

     Section 5.2.  Covenants.  All covenants, agreements and conditions
contained in this Agreement, the License Agreement and the Registration Rights
Agreement to be performed or complied with by the Company on or prior to the
First Closing Date shall have been performed or complied with in all material
respects.

     Section 5.3.  Consents, Permits and Waivers.  The Company shall have
obtained any and all consents, permits and waivers necessary or appropriate for
consummation of the transactions contemplated by this Agreement, the License
Agreement and the Registration Rights Agreement (except for such as may be
properly obtained subsequent to such Closing).

     Section 5.4.  Opinion of the Company's Counsel.  The Purchaser shall have
received from Morgan, Lewis & Bockius LLP, counsel to the Company, an opinion
addressed to the Purchaser, dated as of the date of the First Closing and each
Subsequent Closing at which the Purchaser consummates its purchase of Shares
hereunder, in a form agreed to by the parties.

     Section 5.5.  Blue Sky.  The Company shall have obtained all necessary Blue
Sky law permits and qualifications, or have the availability of exemptions
therefrom, required by any state for the offer and sale of the Shares and the
underlying Conversion Stock.

     Section 5.6.  Certificate of Designations.  The Certificate of Designations
shall have been filed in the office of the Delaware Secretary of State.

     Section 5.7.  Legal Matters.  All material matters of a legal nature which
pertain to this Agreement and the transactions contemplated hereby shall have
been reasonably approved by counsel to the Purchaser.
<PAGE>

     Section 5.8.  Registration Rights Agreement.  The Company shall have
executed and delivered the Registration Rights Agreement in substantially the
form attached hereto as Exhibit B.

     Section 5.9.  Compliance Certificate.  The Company shall have delivered to
the Purchaser a certificate of the Company executed by the Chief Executive
Officer of the Company, dated as of the date of the Closing at which the
Purchaser consummates its purchase of Shares hereunder in substantially the form
attached hereto as Exhibit C.

     Section 5.10. License Agreement.  The Company and the Purchaser shall have
entered into the License Agreement.

     Section 5.11. Proceedings and Documents.  All corporate and other
proceedings in connection with the transactions contemplated in connection with
the Purchaser's purchase of the Shares and all documents incident thereto shall
be reasonably satisfactory in form and substance to the Purchaser and the
Purchaser's counsel, and they shall have received all such counterpart original
and certified or other copies of such documents as they may reasonably request.

     Section 5.12. Delivery of Stock Certificates.  The Company shall have
caused the delivery to the Purchaser of stock certificates representing the
Purchaser's ownership of the Shares.

                                   ARTICLE 6

                     Conditions To Closing of the Company

     The Company's obligation to sell and issue the Shares at each Closing is,
unless waived in writing by the Company, subject to the fulfillment as of the
date of such Closing of the following conditions:

     Section 6.1.  Representations and Warranties Correct.  The representations
made in Section 4 hereof by the Purchaser purchasing at such Closing shall be
true and correct as of the date of such Closing.

     Section 6.2.  Covenants.  All covenants, agreements, and conditions
contained in this Agreement to be performed or complied with by the Purchaser on
or prior to the date of such Closing shall have been performed or complied with
in all material respects.
<PAGE>

     Section 6.3.  Blue Sky.  The Company shall have obtained all necessary Blue
Sky law permits and qualifications, or have the availability of exemptions
therefrom, required by any state for the offer and sale of the Shares and the
underlying Conversion Stock.

     Section 6.4.  Certificate of Designations.  The Certificate of Designations
shall have been filed in the office of the Delaware Secretary of State.

     Section 6.5.  Legal Matters.  All material matters of a legal nature which
pertain to this Agreement and the transactions contemplated hereby shall have
been reasonably approved by counsel to the Company.

     Section 6.6.  Registration Rights Agreement.  The Purchaser shall have
executed and delivered the Registration Rights Agreement in substantially the
form attached hereto as Exhibit C.

     Section 6.7.  License Agreement.  The Company and the Purchaser shall have
entered into the License Agreement.

                                   ARTICLE 7

     Financing upon Occurrence of A Merger Event or A Capitalization Event

     Section 7.1.  Loans by Purchaser.  Upon the termination of Purchaser's
obligations to purchase Preferred Shares due to the occurrence of a either a
Merger Event or a Capitalization Event, Purchaser shall provide Seller with the
quarterly financing determined by the Joint Steering Committee in the form of
loans (each a "Loan") on each Subsequent Closing that occurs after the
occurrence of a Merger Event or a Capitalization Event (each such Subsequent
Closing, a "Loan Closing").  Seller shall provide Purchaser with a promissory
note substantially in the form attached hereto as Exhibit D to evidence each
Loan.

     Section 7.2.  Closing Conditions for Loans.    The conditions to closing
each Loan are as follows:

     (a)  The representations and warranties made by the Company in Section 3
hereof shall be true and correct in all material respects as of the date of the
Loan Closing at which the Purchaser issues a Loan hereunder and the Purchaser
shall have accepted the exceptions, if any, to the Company's representations and
warranties as updated in Schedule 1 at each Loan Closing;
<PAGE>

     (b)  The Purchaser shall have received from Morgan, Lewis & Bockius LLP,
counsel to the Company, an opinion addressed to the Purchaser, dated as of the
date of each Loan Closing at which the Purchaser issues a Loan hereunder, in a
form agreed to by the parties;

     (c)  The Company shall have performed its obligations under this
Agreement, the Registration Rights Agreement and the License Agreement;

     (d)  The Company shall have delivered to the Purchaser a certificate of
the Company executed by the Chief Executive Officer of the Company, dated as of
the date of the Loan Closing at which the Purchaser issues a Loan hereunder, in
substantially the form attached hereto as Exhibit C;

     (e)  The Company shall have obtained all governmental approvals required
in connection with the lawful sale and issuance of the Note(s);

     (f)  The sale and issuance by the Company, and the purchase by the
Purchaser, of the Note(s) shall be legally permitted by all laws and regulations
to which the Purchaser and the Company are subject; and

     (g)  The Company shall not be in default on any Note(s).

                                   ARTICLE 8

                     Covenants of Purchaser and the Company

     Section 8.1.  Restrictions on Sales of Common Stock During Calculation of
Conversion Price.  Purchaser, as a holder of Preferred Shares, shall comply with
the restrictions on sale of its shares of Common Stock as set forth in
paragraphs 5(a) and 5(d) of the Certificate of Designations.

     Section 8.2.  No Superior or Parity Debt.  At any time that any Note is
outstanding, the Company shall not, without prior written consent of the
Purchaser, enter into any form of indebtedness that will be on parity with, or
superior to, the indebtedness evidenced by the Notes.

     Section 8.3.  HSR Filing.  The Company shall fully cooperate with the
Purchaser to effectuate any filing that may be required at any time under the
Hart-Scott-Rodino Antitrust Improvements Act of 1976 in connection with
Purchaser's investment in the Company.
<PAGE>

                                   ARTICLE 9

                                 Miscellaneous

     Section 9.1.  Governing Law.  This Agreement shall be governed in all
respects by the internal laws of the State of New York without regard to
conflict of laws provisions.

     Section 9.2.  Entire Agreement; Amendment.  This Agreement, including the
exhibits hereto, constitutes the full and entire understanding and agreement
among the parties with regard to the subjects hereof and thereof, and no party
shall be liable or bound to any other party in any manner by any warranties,
representations or covenants except as specifically set forth herein or therein.
Except as expressly provided herein, neither this Agreement nor any term hereof
may be amended, waived, discharged or terminated other than by a written
instrument signed by the party against whom enforcement of any such amendment,
waiver, discharge or termination is sought.

     Section 9.3.  Notices, Etc.  All notices and other communications required
or permitted hereunder shall be in writing and shall be mailed by registered or
certified mail, postage prepaid, or otherwise delivered by facsimile
transmission, by hand or by messenger, addressed:

     (a) if to a Purchaser, to:

           Genentech, Inc.
           1 DNA Way
           South San Francisco, CA 94080
           Attn: Stephan Juelsgaard
           Fax: (650) 952-9881

or at such other address as such Purchaser shall have furnished to the Company,
with a copy to:

           Davis Polk & Wardwell
           1600 El Camino Real
           Menlo Park, CA 94025
           Attn:  Daniel G. Kelly, Jr., Esq.
           Fax:   (650) 752-2113
<PAGE>

     (b) if to the Company, to:

          Magainin Pharmaceuticals Inc.
          5110 Campus Drive
          Plymouth Meeting, PA 19462-1123
          Attn: Michael R. Dougherty
          Fax: (610) 941-5399

or at such other address as the Company shall have furnished to the Purchaser,
with a copy to:

          Morgan, Lewis & Bockius, LLP
          1701 Market Street
          Philadelphia, PA 19103
          Attn: David R. King, Esq.
          Fax: (215) 963-5299

Each such notice or other communication shall for all purposes of this Agreement
be treated as effective or having been given when received if delivered
personally, if sent by facsimile, the first business day after the date of
confirmation that the facsimile has been successfully transmitted to the
facsimile number for the party notified, or, if sent by mail, at the earlier of
its receipt or 72 hours after the same has been deposited in a regularly
maintained receptacle for the deposit of the United States mail, addressed and
mailed as aforesaid.

     Section 9.4.  Delays or Omissions.  Except as expressly provided herein, no
delay or omission to exercise any right, power or remedy accruing to any party,
upon any breach or default of another party under this Agreement, shall impair
any such right, power or remedy of such party nor shall it be construed to be a
waiver of any such breach or default, or an acquiescence therein, or of or in
any similar breach or default thereafter occurring; nor shall any waiver of any
single breach or default be deemed a waiver of any other breach or default
theretofore or thereafter occurring.  Any waiver, permit, consent or approval of
any kind or character on the part of any party of any breach or default under
this Agreement, or any waiver on the part of any party of any provisions or
conditions of this Agreement, must be in writing and shall be effective only to
the extent specifically set forth in such writing.  All remedies, either under
this Agreement or by law or otherwise afforded to any party, shall be cumulative
and not alternative.

     Section 9.5.  Expenses.  The Company and the Purchaser shall bear its own
expenses incurred on its behalf with respect to this Agreement and the
transactions contemplated hereby.
<PAGE>

     Section 9.6.  Counterparts.  This Agreement may be executed in any number
of counterparts, each of which shall be an original, and all of which together
shall constitute one instrument.

     Section 9.7.  Severability.  In the event that any provision of this
Agreement becomes or is declared by a court of competent jurisdiction to be
illegal, unenforceable or void, this Agreement shall continue in full force and
effect without said provision, which shall be replaced with an enforceable
provision closest in intent and economic effect as the severed provision;
provided that no such severability shall be effective if it materially changes
the economic benefit of this Agreement to any party.

     Section 9.8.  Titles and Subtitles.  The titles and subtitles used in this
Agreement are used for convenience only and are not to be considered in
construing or interpreting this Agreement.
<PAGE>

     The foregoing agreement is hereby executed effective as of the date first
set forth above.

"COMPANY"                            "PURCHASER"

Magainin Pharmaceuticals Inc.,       Genentech, Inc.,
a Delaware corporation               a Delaware corporation

By: /s/ Michael R. Dougherty         By: /s/ Arthur D. Levinson
   ------------------------------       ----------------------------
Michael R. Dougherty                 Arthur D. Levinson, Ph.D.
President and Chief Executive        Chairman and Chief Executive
Officer                              Officer

<PAGE>

                                                                      SCHEDULE 1

                            Schedule of Exceptions
                            ----------------------

     The following are the exceptions to the representations and warranties of
Magainin Pharmaceuticals Inc. (the "Company") set forth in Section 3 of the
Series A Preferred Stock Purchase Agreement dated as of April 28, 2000 (the
"Agreement") to which this is an exhibit.  All capitalized terms used and not
otherwise defined herein shall have the meanings given them in the agreement.
With respect to each Subsequent Closing, this Schedule of Exceptions shall be
deemed to have been amended by any supplemental disclosure statements so
designated and delivered to the Purchaser in a Subsequent Closing prior to such
closing.  The section numbers below correspond to the section numbers in the
Agreement.

                                     None
<PAGE>

                                                                      SCHEDULE 2

Schedule of Licenses, Options and Material Agreements Relating to the Subject of
--------------------------------------------------------------------------------
the License Agreement
---------------------

1.  License Agreement between Ludwig Institute for Cancer Research and Magainin
Pharmaceuticals Inc. dated December 20, 1996.
<PAGE>

                                   EXHIBIT A
                                   ---------
                         (To Stock Purchase Agreement)

                          Certificate of Designations
                          ---------------------------

Attached.
<PAGE>

                                   EXHIBIT B
                                   ---------
                         (To Stock Purchase Agreement)

                         Registration Rights Agreement
                         -----------------------------

Attached.
<PAGE>

                                   EXHIBIT C
                                   ---------
                         (To Stock Purchase Agreement)

                           [Compliance Certificate]
                            ----------------------

                         MAGAININ PHARMACEUTICALS INC.

                        Executive Officer's Certificate

     I, ____________________, ______________ of Magainin Pharmaceuticals Inc., a
Delaware corporation ("Seller"), do hereby certify as follows:

       1.   The representations and warranties of Seller contained in the Stock
Purchase Agreement dated as of April 28, 2000 (the "Stock Purchase Agreement")
between Seller and Genentech, Inc., a Delaware corporation ("Buyer"), and in any
certificate or other writing delivered by Seller pursuant to the Stock Purchase
Agreement, are true at and as of the date hereof, as if made at and as of the
date hereof.

       2.  All covenants, agreements and conditions contained in the Stock
Purchase Agreement, the Registration Rights Agreement dated as of April 28, 2000
(the "Registration Rights Agreement") between Seller and Buyer and in the
Collaborative Research and License Agreement dated as of April 28, 2000 (the
"License Agreement") between Seller and Buyer, have been performed or complied
with in all material respects.

       3.   Seller has obtained all consents, permits and waivers necessary or
appropriate for consummation of the transactions contemplated by the Stock
Purchase Agreement, the Registration Right Agreement and the License Agreement.

       4.   Seller has performed in all material respects all of its obligations
under the Stock Purchase Agreement, the Registration Rights Agreement and the
License Agreement required to be performed by it on or prior to the date hereof.

     IN WITNESS WHEREOF, I have signed this certificate.

Dated:  [              ], 2000
<PAGE>

                                   EXHIBIT D
                                   ---------
                         (To Stock Purchase Agreement)

                                [Form of Note]
                                 ------------

THE SECURITIES REPRESENTED BY THIS NOTE HAVE BEEN ACQUIRED FOR INVESTMENT AND
HAVE NOT BEEN REGISTERED UNDER THE SECURITIES ACT OF 1933 OR ANY STATE
SECURITIES LAWS.  SUCH SECURITIES MAY NOT BE SOLD OR TRANSFERRED IN THE ABSENCE
OF SUCH REGISTRATION OR AN EXEMPTION THEREFROM UNDER SAID ACT AND ANY APPLICABLE
STATE SECURITIES LAWS.

                                PROMISSORY NOTE

$_________                                                      __________, ____
                                                      Philadelphia, Pennsylvania

     For Value Received, Magainin Pharmaceuticals Inc., a Delaware corporation
("Borrower"), hereby unconditionally promises to pay to the order of Genentech,
Inc., A Delaware Corporation ("Lender"), in lawful money of the United States of
America and in immediately available funds, the principal sum of [          ]
dollars ($[       ]) (the "Note"), together with accrued and unpaid interest
thereon, payable on the dates and in the manner set forth below.

       (a)   Principal Repayment.  The outstanding principal amount of the Note
shall be payable one year after the date of issuance (the "Maturity Date"),
provided, however, that the Company may at any time prepay in whole or in part
the outstanding principal amount under the Note, plus accrued and unpaid
Interest, without penalty.

       (b)   Interest Rate.  Borrower further promises to pay interest on the
sum of the unpaid principal balance of the Note outstanding on each day, from
the date of this Note until all such principal amounts shall have been repaid in
full, which interest shall be payable at the rate of [2% plus the highest prime
rate of major banking institutions as reported in the Federal Reserve H.15
weekly bulletin in the three (3) month period immediately preceding the date of
issuance of the Note] per annum.  Interest shall be payable at the Maturity Date
and shall be calculated on the basis of a 360-day year for the actual number of
days elapsed.
<PAGE>

       (c)   Place of Payment.  All amounts payable hereunder shall be payable
to Lender at the address it specifies to Borrower in writing.

       (d)   Application of Payments.  All payments on this Note shall be
applied first to accrued interest and thereafter to the outstanding principal
balance hereof.

       (e)   Default.  Borrower's failure to pay timely any of the principal
amount due under this Note on the date the same becomes due and payable or any
accrued interest or other amounts due under this Note on the date the same
becomes due and payable or within ten (10) calendar days after written receipt
of notice of failure to pay shall constitute a default under this Note (an
"Event of Default").  If an Event of Default is not cured within thirty (30)
days of the receipt of notice of failure to pay, all unpaid principal, accrued
interest and other amounts owing thereunder shall, at the option of Lender, be
immediately collectible by Lender pursuant to applicable law.

       (f)   Assignment by Company.  Neither this Note nor any of the rights,
interests or obligations hereunder may be assigned, by operation of law or
otherwise, in whole or in part, by Borrower without the prior written consent of
Lender.

       (g)   Notices.  Any notice, request or other communication required or
permitted hereunder shall be in writing and shall be deemed to have been duly
given if personally delivered or mailed by registered or certified mail, postage
prepaid, or by recognized overnight courier or personal delivery at the
respective addresses of the parties as set forth herein or on the register
maintained by Borrower. Any party hereto may by notice so given change its
address for future notice hereunder. Notice shall conclusively be deemed to have
been given when received.

       (h)   Waiver.  Borrower waives presentment and demand for payment, notice
of dishonor, protest and notice of protest of this Note, and shall pay all costs
of collection when incurred, including, without limitation, reasonable
attorneys' fees, costs and other expenses.  The right to plead any and all
statutes of limitations as a defense to any demands hereunder is hereby waived
to the fullest extent permitted by law.

       (i)   Attorney's Fees.  In the event of default by the Borrower (or its
assignee) in the payment of interest due on this Note, Lender shall be entitled
to receive and Borrower (or its assignee) agrees to pay all costs of collection
incurred by Lender, including, without limitation, reasonable attorney"s fees
for consultation and suit.
<PAGE>

       (j)   Governing Law.  This Note shall be governed by, and construed and
enforced in accordance with, the laws of the State of California, excluding
conflict of laws principles that would cause the application of laws of any
other jurisdiction.

       (k)   Successors and Assigns.  The provisions of this Note shall inure to
the benefit of and be binding on any successor to Borrower and shall extend to
any holder hereof.

     IN WITNESS WHEREOF, the Borrower has executed this Note as of the date
first written above.

                              BORROWER

                              Magainin Pharmaceuticals Inc.

                              By:   _________________________<PAGE>

                                                                    EXHIBIT 10.4

                                GENENTECH, INC.

                        MAGAININ PHARMACEUTICALS  INC.

                         REGISTRATION RIGHTS AGREEMENT

     This Registration Rights Agreement (the "Agreement") is made effective as
of April 28, 2000, by and among Magainin Pharmaceuticals Inc., a Delaware
corporation (the "Company"); and Genentech Inc., a Delaware corporation, as the
purchaser (the "Purchaser") of Series A Preferred Stock and Common Stock of the
Company under the Stock Purchase Agreement of even date herewith (the "Purchase
Agreement").

                                   RECITALS
                                   --------

     The obligations of the Company and the Purchaser under the Purchase
Agreement are conditioned, among other things, upon the execution and delivery
of this Agreement by the Company and the Purchaser.

                                   AGREEMENT
                                   ---------

     NOW, THEREFORE, in consideration of the mutual promises and covenants
hereinafter set forth, the parties hereto agree as follows:

                                   ARTICLE 1

                              Certain Definitions

     As used in this Agreement, the following terms shall have the following
respective meanings:

     "Certificate of Designations" shall mean the Certificate of Designations,
Preferences and Rights of the Company's Series A Preferred Stock.

     "Commission" shall mean the Securities and Exchange Commission or any other
Federal agency at the time administering the Securities Act.

     "Common Shares" shall mean all the shares of Common Stock issued and
transferred to Purchaser pursuant to Section 1.03 of the Purchase Agreement.

     "Common Stock" shall mean the Company's common stock, par value $.002 per
share.
<PAGE>

     "Conversion Stock" shall mean the Common Stock issued or issuable pursuant
to conversion of the Preferred Stock.

     "Exchange Act" shall mean the Securities Exchange Act of 1934, as amended,
or any similar Federal rule or statute and the rules and regulations of the
Commission thereunder, all as the same shall be in effect from time to time.

     "Holder" means the Purchaser holding Registrable Securities, or any person
holding Registrable Securities to whom the rights under this Agreement have been
transferred in accordance with Section 5.10 hereof.

     "Initiating Holders" means any Holder or Holders who, in the aggregate,
hold not less than 50% of the Registrable Securities (including Preferred Stock
then by its terms convertible into Conversion Stock) outstanding.

     "Preferred Stock" shall mean the Series A Preferred Stock of the Company.

     "Registrable Securities" means:

          (i)   the Common Stock issued on conversion of Preferred Stock
          pursuant to paragraph 5(a) of the Certificate of Designations;

          (ii)  the Common Shares;

          (iii) the Common Stock issued on automatic conversion of Preferred
          Stock pursuant to paragraph 5(f) of the Certificate of Designations in
          the First Conversion Period (as defined in the Certificate of
          Designations) at the earlier of (A) the date that either the holders
          of the Preferred Stock or the Company exercise their right to convert
          Preferred Shares into Common Stock in the First Conversion Period
          pursuant to paragraph 5(a) of the Certificate of Designations and (B)
          November 10, 2006;

          (iv)  the Common Stock issued on automatic conversion of Preferred
          Stock pursuant to paragraph 5(f) of the Certificate of Designations in
          the Second Conversion Period (as defined in the Certificate of
          Designations) at the earlier of (A) the date that either the holders
          of the Preferred Stock or the Company exercise their right to convert
          Preferred Shares into Common Stock in the Second Conversion Period
          pursuant to paragraph 5(a) of the Certificate of Designations and (B)
          June 30, 2009;
<PAGE>

          (v) any Common Stock of the Company issued or issuable in respect of
          the foregoing upon any conversion, stock split, stock dividend,
          recapitalization, or similar event;  provided, however, that
          securities listed in (i)-(v) above shall only be treated as
          Registrable Securities if and so long as they have not been registered
          or sold to or through a broker or dealer or underwriter in a public
          distribution or a public securities transaction.

     The terms "register," "registered" and "registration" refer to a
registration effected by preparing and filing a registration statement in
compliance with the Securities Act, and the declaration or ordering of the
effectiveness of such registration statement.

     "Registration Expenses" shall mean all expenses, except as otherwise stated
below, incurred by the Company in complying with Sections 5.01, 5.02 and 5.03
hereof, including without limitation, all registration, qualification and filing
fees, printing expenses, escrow fees, fees and disbursements of counsel for the
Company, blue sky fees and expenses, the expense of any special audits incident
to or required by any such registration (but excluding the compensation of
regular employees of the Company which shall be paid in any event by the
Company).  Registration Expenses shall also include the fees and disbursements
for one special counsel to the selling stockholders.

     "Restricted Securities" shall mean the securities of the Company required
to bear the legends set forth in Article 3 hereof.

     "Rule 144" shall mean Rule 144 as promulgated by the Commission under the
Securities Act, as such Rule may be amended from time to time, or any similar
successor rule that may be promulgated by the Commission.

     "Rule 145" shall mean Rule 145 as promulgated by the Commission under the
Securities Act, as such Rule may be amended from time to time, or any similar
successor rule that may be promulgated by the Commission.

     "Securities Act" shall mean the Securities Act of 1933, as amended, or any
similar Federal rule or statute and the rules and regulations of the Commission
thereunder, all as the same shall be in effect from time to time.

     "Selling Expenses" shall mean all underwriting discounts, selling
commissions and stock transfer taxes applicable to the securities registered by
the Holders and, except as set forth in Registration Expenses, all fees and
disbursements of counsel for any Holder.
<PAGE>

                                   ARTICLE 2

                        Restrictions on Transferability

     The Preferred Stock, the Conversion Stock, the Common Shares and any other
securities of the Company issued in respect of such stock upon any stock split,
stock dividend, recapitalization, merger, or similar event, shall not be sold,
assigned, transferred or pledged except upon the conditions specified in this
Agreement, which conditions are intended to ensure compliance with the
provisions of the Securities Act.  Each Holder or transferee will cause any
proposed purchaser, assignee, transferee, or pledgee of any such shares held by
the Holder or transferee to agree to take and hold such securities subject to
the restrictions and upon the conditions specified in this Agreement, including
without limitation the restrictions set forth in Article 4.

                                   ARTICLE 3

                               Restrictive Legend

     Each certificate representing the Preferred Stock, the Conversion Stock,
the Common Shares or any other securities of the Company issued in respect of
such stock upon any stock split, stock dividend, recapitalization, merger, or
similar event, shall (unless otherwise permitted by the provisions of Article 4
below) be stamped or otherwise imprinted with legends in substantially the
following form (in addition to any legends required by agreement or by
applicable state securities laws):

     THE SHARES REPRESENTED BY THIS CERTIFICATE HAVE NOT BEEN REGISTERED UNDER
     THE SECURITIES ACT OF 1933, AS AMENDED, AND HAVE BEEN ACQUIRED FOR
     INVESTMENT AND NOT WITH A VIEW TO, OR IN CONNECTION WITH, THE SALE OR
     DISTRIBUTION THEREOF.  SUCH SHARES GENERALLY MAY NOT BE SOLD OR TRANSFERRED
     IN THE ABSENCE OF SUCH REGISTRATION UNLESS THE COMPANY RECEIVES AN OPINION
     OF COUNSEL REASONABLY ACCEPTABLE TO IT STATING THAT SUCH SALE OR TRANSFER
     IS EXEMPT FROM THE REGISTRATION AND PROSPECTUS DELIVERY REQUIREMENTS OF
     SAID ACT.

     SUCH SHARES ARE SUBJECT TO RESTRICTIONS ON SALE, ASSIGNMENT OR TRANSFER
     PURSUANT TO THE TERMS OF A REGISTRATION RIGHTS AGREEMENT BETWEEN THE
     COMPANY AND THE STOCKHOLDER, A COPY OF WHICH IS ON FILE WITH
<PAGE>

     THE SECRETARY OF THE COMPANY. SUCH SHARES MAY NOT BE SOLD, TRANSFERRED,
     ASSIGNED, PLEDGED OR HYPOTHECATED OTHER THAN IN COMPLIANCE WITH SUCH
     REGISTRATION RIGHTS AGREEMENT.

     Each Holder consents to the Company making a notation on its records and
giving instructions to any transfer agent of its capital stock in order to
implement the restrictions on transfer established in this Agreement.

                                   ARTICLE 4

                          Notice of Proposed Transfers

     The holder of each certificate representing Restricted Securities by
acceptance thereof agrees to comply in all respects with the provisions of this
Article 4.  Without in any way limiting the immediately preceding sentence, no
sale, assignment, transfer or pledge of Restricted Securities shall be made by
any holder thereof to any person unless such person shall to the extent such
Restricted Securities shall continue to be Restricted Securities after such
sale, assignment, transfer or pledge, agree in writing to be bound by the
limitations of this Article 4.  Prior to any proposed sale, assignment, transfer
or pledge of any Restricted Securities, unless there is in effect a registration
statement under the Securities Act covering the proposed transfer, the holder
thereof shall give written notice to the Company of such holder's intention to
effect such transfer, sale, assignment or pledge.  If requested by the Company,
the holder shall also provide, either (i) a written opinion addressed to the
Company of legal counsel who shall be, and whose legal opinion shall be,
reasonably satisfactory to the Company, to the effect that the proposed transfer
of the Restricted Securities may be effected without registration under the
Securities Act, or (ii) a "no action" letter from the Commission to the effect
that the transfer of such securities without registration will not result in a
recommendation by the staff of the Commission that action be taken with respect
thereto, whereupon the holder of such Restricted Securities shall be entitled to
transfer such Restricted Securities in accordance with the terms of the notice
delivered by the holder to the Company; provided, however, that the Company
shall not request an opinion of counsel or "no action" letter with respect to
(i) a transfer not involving a change in beneficial ownership, (ii)  a
transaction involving the distribution without consideration of Restricted
Securities by a holder that is (A) a partnership to its partners or retired
partners in proportion to their partnership interests, (B) a corporation to its
majority owned subsidiaries or affiliates or (C) a limited liability company to
its members or former members in accordance with their interest in the limited
liability company; or (iii) a transaction involving the transfer without
consideration of Restricted Securities by
<PAGE>

an individual holder during such holder's lifetime by way of gift or on death by
will or intestacy.  Each certificate evidencing the Restricted Securities
transferred as above provided shall bear, except if such transfer is made
pursuant to Rule 144 under the Securities Act, the appropriate restrictive
legend set forth in Article 3 above, except that such certificate shall not bear
such restrictive legend if in the opinion of counsel for such holder and counsel
for the Company such legend is not required in order to ensure compliance with
any provision of the Securities Act.

                                   ARTICLE 5

                                 Registration

     Section 5.1.  Requested Registration.

       (a)  Request for Registration.  In case the Company shall receive from
Initiating Holders a written request that the Company effect any registration
with respect to shares of Registrable Securities, the Company will:

            (i)   promptly give written notice of the proposed registration to
     all other Holders; and

            (ii)  as soon as practicable, use its best efforts to effect such
     registration (including, without limitation, appropriate qualification
     under applicable state securities laws and appropriate compliance with
     applicable regulations issued under the Securities Act and any other
     governmental requirements or regulations) as may be so requested and as
     would permit or facilitate the sale and distribution, though negotiated,
     underwritten or other transactions or through a combination of such methods
     of sale at the election of the Initiating Holders, of all or such portion
     of such Registrable Securities as are specified in such request, together
     with all or such portion of the Registrable Securities of any Holder or
     Holders joining in such request by delivering a written notice to such
     effect to the Company within 20 days after the date of such written notice
     from the Company; provided that the Company may, once in any twelve month
     period, delay such registration for a period not to exceed ninety (90) days
     if the board of directors of the Company determines that it would be
     detrimental to the Company to effect such registration in a timely manner.

     Notwithstanding the foregoing, the Company shall not be obligated to take
any action to effect or complete any such registration pursuant to this Section
5.01:
<PAGE>

                  (A)  During the period starting with the date ninety (90) days
          prior to the Company's estimated date of filing of, and ending on the
          date sixty (60) days immediately following the effective date of, any
          registration statement pertaining to securities of the Company (other
          than a registration of securities in a Rule 145 transaction or with
          respect to an employee benefit plan), provided that the Company gives
          notice of its intention to file such registration statement to the
          Initiating Holders within thirty (30) days of their request for
          registration; and provided further that the Company is actively
          employing in good faith all reasonable efforts to cause such
          registration statement to become effective; however, the Company may
          not delay a requested registration under this paragraph if the
          Company's registration statement will include no equity securities or
          securities convertible into equity securities and the requested
          registration will not be part of an underwritten public offering; or

                  (B)  After the Company has effected two registrations pursuant
          to this subsection 5.01(a); provided that any registration request
          that (i) is delayed by the Company pursuant to the immediately
          preceding paragraph (A) or pursuant to clause 5.01(a)(ii) or (ii) does
          not result in a registration being effected will not count towards the
          two registration limit in this paragraph (B).

     Subject to the foregoing clauses, the Company shall file a registration
statement covering the Registrable Securities so requested to be registered as
soon as practicable after receipt of the request or requests of the Initiating
Holders.

     (b)  Underwriting.  If the registration pursuant to Section 5.01 is
effected through a firm commitment underwritten public offering at the election
of the Initiating Holders, the underwriters selected must be reasonably
acceptable to the Initiating Holders.  The Company shall advise the Holders as
part of the notice given pursuant to Section 5.01(a)(i) that the right of any
Holder to registration pursuant to Section 5.01 shall be conditioned upon such
Holder's participation in the underwriting arrangements required by this Section
5.01, and the inclusion of such Holder's Registrable Securities in the
underwriting to the extent requested shall be limited to the extent provided
herein.

     The Company shall, together with all Holders proposing to distribute their
securities through such underwriting, enter into an underwriting agreement in
customary form with the managing underwriter reasonably acceptable to the
Company and a majority in interest of the Initiating Holders.  Notwithstanding
any other provision of this Section 5.01, if the managing underwriter advises
the
<PAGE>

Company in writing that marketing factors require a limitation of the number
of shares to be underwritten, then the Company shall so advise all Holders
requesting to be included in the registration and underwriting and the number of
shares of Registrable Securities that may be included in the registration and
underwriting shall be allocated among all Holders requesting to be included in
the registration and underwriting in proportion, as nearly as practicable, to
the respective amounts of Registrable Securities held by them at the time of
filing the registration statement, provided, however, that in the event of such
limitation on the number of shares to be underwritten, no shares of stock to be
registered for sale by the Company shall be included unless all shares of
Registrable Securities requested by the Purchaser or any Holder to be included
in such underwriting are so included.  No Registrable Securities excluded from
the underwriting by reason of the underwriter's marketing limitation shall be
included in such registration.  To facilitate the allocation of shares in
accordance with the above provisions, the Company or the underwriters may round
the number of shares allocated to any Holder to the nearest 100 shares.  If any
Holder of Registrable Securities disapproves of the terms of the underwriting,
such person may elect to withdraw therefrom by written notice to the Company.

     Section 5.2.  Company Registration.

       (a)  Notice of Registration.  If at any time or from time to time the
Company shall determine to register any of its equity securities, either for its
own account or the account of a Holder (other than pursuant to this Agreement),
the Company will:

            (i)   promptly give to each Holder written notice thereof; and

            (ii)  include in such registration (and any related qualifications
     including compliance with Blue Sky laws), and in any underwriting involved
     therein, all the Registrable Securities specified in a written request or
     requests, made within 20 days after the date of such written notice from
     the Company, by any Holder.

       (b)  Underwriting.  If the registration of which the Company gives notice
is for a registered public offering involving an underwriting, the Company shall
so advise the Holders as a part of the written notice given pursuant to Section
5.02(a)(i).  In such event, the right of any Holder to registration pursuant to
Section 5.02 shall be conditioned upon such Holder's participation in such
underwriting and the inclusion of Registrable Securities in the underwriting
shall be limited to the extent provided herein.
<PAGE>

     All Holders proposing to distribute their securities through such
underwriting shall (together with the Company and the other holders distributing
their securities through such underwriting) enter into an underwriting agreement
in customary form with the managing underwriter selected for such underwriting
by the Company.  Notwithstanding any other provision of this Section 5.02, if
the managing underwriter determines that marketing factors require a limitation
of the number of shares to be underwritten, the managing underwriter may limit
the Registrable Securities to be included in such registration to an amount no
less than 30% of all shares to be included in such offering.  The Company shall
so advise all Holders requesting to be included in the registration and
underwriting and the number of shares of Registrable Securities that may be
included in the registration and underwriting shall be allocated among all the
Holders requesting to be included in the registration and underwriting in
proportion, as nearly as practicable, to the respective amounts of Registrable
Securities held by them at the time of filing the registration statement.   To
facilitate the allocation of shares in accordance with the above provisions, the
Company or the underwriters may round the number of shares allocated to any
Holder to the nearest 100 shares.  If any Holder disapproves of the terms of any
such underwriting, such person may elect to withdraw therefrom by written notice
to the Company.

     Until the second anniversary of the date of this Agreement, in connection
with any firm commitment underwritten offering of the Company's Common Stock
that includes such Holder's Registrable Securities as provided in the previous
paragraph, each Holder agrees that, upon its receipt of a notice from the
Company or the managing underwriters at least thirty (30) days before the
initiation of such offering, it will not sell, make any short sale of, loan,
grant any option for the purchase of, or otherwise dispose of any shares of
Common Stock beneficially owned by it without the prior written consent of such
managing underwriters during the period of time beginning ten (10) days prior to
the date when such managing underwriters expect to initiate such public offering
and ending at a date not to exceed ninety (90) days from the commencement of
such public offering; provided that (i) this obligation shall not apply to any
Holder unless each of the Company's directors and officers enters into a similar
agreement, and (ii) the Holder and its affiliates at such time beneficially own
1% or more of the Company's then outstanding shares of Common Stock.

     Section 5.3.  Registration on Form S-3.

       (a)  Request for Registration.  In case the Company shall receive from
Holders a written request that the Company file a registration statement on Form
S-3 (or any successor form to Form S-3) for a public offering of shares of
<PAGE>

the Registrable Securities and the Company is a registrant entitled to use Form
S-3 to register the Registrable Securities for such an offering, the Company
shall use its best efforts to cause such Registrable Securities to be registered
for the offering on such form and to cause such Registrable Securities to be
qualified in such jurisdictions as such Holder or Holders may reasonably
request.  If such offer is to be an underwritten offering, the underwriters
shall be reasonably acceptable to the Company and a majority in interest of the
Holders.  The Company shall inform the other Holders of the proposed
registration and offer them upon at least 20 days written notice the opportunity
to participate.  In the event the registration is proposed to be part of a firm
commitment underwritten public offering, the substantive provisions of Section
5.01(b) shall be applicable to each such registration initiated under this
Section 5.03.

       (b)  There shall be no limit on the number of registration requests by
Holders pursuant to Subsection 5.03(a).

     Section 5.4.  Subsequent Registration Rights.  The Company shall not enter
into any agreement granting any holder or prospective holder of any securities
of the Company registration rights superior to, or pari passu with, the rights
granted the Purchaser hereunder without the written consent of the holders of at
least a majority of the Registrable Securities.

     Section 5.5.  Expenses of Registration.  All Registration Expenses shall be
borne by the Company.  All Selling Expenses relating to securities registered on
behalf of the Holders and all other registration expenses shall be borne by the
Holders of such securities pro rata on the basis of the number of shares so
registered or proposed to be so registered.

     Section 5.6.  Registration Procedures.  In the case of each registration
effected by the Company pursuant to this Agreement, the Company will keep each
Holder advised in writing as to the initiation of such registration and as to
the completion thereof.  The Company will:

       (a)  Prepare and file with the Commission a registration statement and
such amendments and supplements as may be necessary and use its best efforts to
cause such registration statement to become and remain effective until the
distribution described in the registration statement has been completed;

       (b)  Furnish to the Holders participating in such registration and to the
underwriters of the securities being registered such reasonable number of copies
of the registration statement, preliminary prospectus, final prospectus and such
other documents as such underwriters may reasonably request in order to
facilitate the public offering of such securities.
<PAGE>

       (c)  Promptly register and qualify the securities covered by such
registration statement under such other securities or Blue Sky laws of such
jurisdictions as shall be reasonably requested by the Holders; provided that the
Company shall not be required in connection therewith or as a condition thereto
to qualify to do business or to file a general consent to service of process in
any such states or jurisdictions.

       (d)  Notify each Holder of Registrable Securities covered by such
registration statement at any time when a prospectus relating thereto is
required to be delivered under the Securities Act of the happening of any event
as a result of which the prospectus included in such registration statement, as
then in effect, includes an untrue statement of a material fact or omits to
state a material fact required to be stated therein or necessary to make the
statements therein not misleading in the light of the circumstances then
existing.

       (e)  Use its best efforts to furnish, on the date that such Registrable
Securities are delivered to the underwriters for sale, if such securities are
being sold through underwriters, (i) an opinion, dated as of such date, of the
counsel representing the Company for the purposes of such registration, in form
and substance as is customarily given to underwriters in an underwritten public
offering, addressed to the underwriters, if any, and (ii) a letter dated as of
such date, from the independent certified public accountants of the Company, in
form and substance as is customarily given by independent certified public
accountants to underwriters in an underwritten public offering addressed to the
underwriters.

       (f)  Promptly inform the Holders when any stop order has been issued with
respect to the Registration Statement and use its best efforts to promptly cause
such stop order to be withdrawn, and in any event, within 45 days fo the
issuance of such stop order, amend the Registration Statement in a manner
reasonably expected to obtain the withdrawal of the stop order or file an
additional Registration Statement covering all of the Registrable Securities and
use its best efforts to cause such Registration Statement to become effective as
soon as practicable thereafter.

       (g)  Cause all such Registrable Securities registered pursuant to this
Agreement to be listed on each securities exchange on which similar securities
issued by the Company are then listed.

       (h)  Provide a transfer agent and registrar for all Registrable
Securities registered pursuant to such registration statement and a CUSIP number
for all such Registrable Securities, in each case not later than the effective
date of such registration.
<PAGE>

       (i)  Use its best efforts to comply with all applicable rules and
regulations of the Commission.

     Section 5.7.  Indemnification.

       (a)  The Company will indemnify each Holder, each of its officers,
directors, partners and former partners, and each person controlling such Holder
within the meaning of Section 15 of the Securities Act (each, a "Holder
Indemnitee"), with respect to which registration has been effected pursuant to
this Agreement, against all expenses, claims, losses, damages or liabilities (or
actions in respect thereof), including any of the foregoing incurred in
settlement of any litigation, commenced or threatened, arising out of or based
on any violation by the Company of its representations to or covenants with the
Holders under this Agreement or any untrue statement (or alleged untrue
statement) of a material fact contained in any registration statement,
prospectus, offering circular or other document, or any amendment or supplement
thereto, incident to any such registration, or based on any omission (or alleged
omission) to state therein a material fact required to be stated therein or
necessary to make the statements therein, in light of the circumstances in which
they were made, not misleading, or any violation by the Company of the
Securities Act, the Exchange Act, state securities laws or any rule or
regulation promulgated under such laws applicable to the Company in connection
with any such registration, and the Company will reimburse each such Holder,
each of its officers, directors, partners and former partners and each person
controlling such Holder within the meaning of Section 15 of the Securities Act,
for any legal and any other expenses reasonably incurred, as such expenses are
incurred, in connection with investigating, preparing or defending any such
claim, loss, damage, liability or action; provided, however, that the Company
shall not be liable in any case to the extent that any such loss, claim, damage
or liability arises out of or is based upon (a) any untrue statement (or alleged
untrue statement) or omission (or alleged omission) made in such registration
statement, prospectus, offering circular or other document, or any amendment or
supplement thereto, in reliance upon and in conformity with information
furnished by any such Holder Indemnitee to the Company for use in the
preparation thereof (which shall include, without limitation, the information
about the Holder set forth in the registration statement and the plan of
distribution section of the registration statement, if any) or (b) a violation
by the Holder Indemnitee of its representations to or covenants with the Company
under this Agreement.

       (b)  Each Holder will, if Registrable Securities held by such Holder are
included in the securities as to which such registration is being effected,
indemnify the Company, each of its directors and officers, each person who
<PAGE>

controls the Company within the meaning of Section 15 of the Securities Act, and
each other holder of the Company's securities covered by such registration
statement, each of such other holder's, officers, directors, partners and former
partners and each person controlling such other holder within the meaning of
Section 15 of the Securities Act, against all claims, losses, damages and
liabilities (or actions in respect thereof) arising out of or based on any
violation by the Holder of its representations to or covenants with the Company
under this Agreement or any untrue statement (or alleged untrue statement) of a
material fact contained in any such registration statement, prospectus, offering
circular or other document, or any omission (or alleged omission) to state
therein a material fact required to be stated therein or necessary to make the
statements therein not misleading, or any violation by the Holder of the
Securities Act, the Exchange Act, state securities laws or any rule or
regulation promulgated under such laws applicable to the Holder, and will
reimburse the Company, such other holders, such directors, officers, partners or
control persons for any legal or any other expenses reasonably incurred, as such
expenses are incurred, in connection with investigating or defending any such
claim, loss, damage, liability or action, but only to the extent that such
untrue statement (or alleged untrue statement) or omission (or alleged omission)
is made in such registration statement, prospectus, offering circular or other
document in reliance upon and in conformity with written information furnished
to the Company by an instrument duly executed by such Holder and stated to be
specifically for use therein (including, without limitation, information about
the Holder set forth in the registration statement and the plan of distribution
section of the registration statement, if any).  Notwithstanding the foregoing,
the liability of each Holder under this Section 5.07(b) shall be limited to an
amount equal to the amount by which the aggregate proceeds from the offering
received by such Holder exceeds the amount paid by such Holder in connection
with such registration.

       (c)  Each party entitled to indemnification under this Section 5.07 (the
"Indemnified Party") shall give notice to the party required to provide
indemnification (the "Indemnifying Party") promptly after such Indemnified Party
has actual knowledge of any claim as to which indemnity may be sought, and shall
permit the Indemnifying Party to assume the defense of any such claim or any
litigation resulting therefrom, provided that counsel for the Indemnifying
Party, who shall conduct the defense of such claim or litigation, shall be
approved by the Indemnified Party (whose approval shall not unreasonably be
withheld), and the Indemnified Party may participate in such defense at such
party's expense, and provided further that the failure of any Indemnified Party
to give notice as provided herein shall not relieve the Indemnifying Party of
its obligations under this Agreement except to the extent the failure to give
such notice is materially prejudicial to an Indemnifying Party's ability to
defend such action and provided further, that the Indemnifying Party shall not
assume the defense for matters as to
<PAGE>

which there is a conflict of interest.  No Indemnifying Party, in the defense of
any such claim or litigation, shall, except with the consent of each Indemnified
Party (whose consent shall not be unreasonably withheld), consent to entry of
any judgment or enter into any settlement which does not include as an
unconditional term thereof the giving by the claimant or plaintiff to such
Indemnified Party of a release from all liability in respect to such claim or
litigation.

       (d)  If the indemnification provided for in this Section 5.07 is
applicable by its terms but is held by a court of competent jurisdiction to be
unavailable to an Indemnified Party with respect to any expense, claim, loss,
damage or liability referred to herein, then the Indemnifying Party, in lieu of
indemnifying such Indemnified Party hereunder, shall contribute to the amount
paid or payable by such Indemnified Party as a result of such expense, claim,
loss, damage or liability in such proportion as is appropriate to reflect the
relative fault of the Indemnifying Party on the one hand and of the Indemnified
Party on the other in connection with the statements or omissions that resulted
in such expense, claim, loss, damage or liability as well as any other relevant
equitable considerations.   The relative fault of the Indemnifying Party and of
the Indemnified Party shall be determined by reference to, among other things,
whether the untrue or alleged untrue statement of a material fact or the
omission or alleged omission to state a material fact that resulted in such
expense, claim, loss, damage or liability relates to information supplied by the
Indemnifying Party or by the Indemnified Party and the parties' relative intent,
knowledge, access to information and opportunity to correct or prevent such
statement or omission; provided that in no event shall any indemnity
contribution by a Holder under this Section 5.07(d) exceed the gross proceeds
from the offering received by the Holder.

       (e)  The obligations of the Company and Holders under this Section 5.07
shall survive completion of any offering of Registrable Securities in a
registration statement and the termination of this Agreement.

     Section 5.8.  Information by Holder.  The Holders of Registrable Securities
included in any registration shall furnish to the Company such information
regarding such Holders, the Registrable Securities held by them and the
distribution proposed by such Holders as the Company may request in writing and
as shall be required in connection with any registration referred to in this
Agreement.  Such Holder further agrees to notify the Company promptly (i) of the
sale of all of such Holder's Registrable Securities and (ii) in writing of any
material changes in the information set forth in the Registration Statement
relating to such Holder or its proposed distribution, or of any supplemental
information required to be included in the Registration Statement relating to
the Holder or its proposed distribution.
<PAGE>

     Section 5.9.  Rule 144 Reporting.  With a view to making available the
benefits of certain rules and regulations of the Commission which may at any
time permit the sale of the Restricted Securities to the public without
registration, the Company agrees to use its best efforts to:

       (a)  Make and keep public information available, as those terms are
understood and defined in Rule 144 under the Securities Act, at all times (the
Company being currently subject to the reporting requirements of the Securities
Act and the Exchange Act);

       (b)  File with the Commission in a timely manner all reports and other
documents required of the Company under the Securities Act and the Exchange Act;
and

       (c)  So long as a Holder owns any Restricted Securities, to furnish to
the Holder forthwith upon request a written statement by the Company as to its
compliance with the reporting requirements of said Rule 144, a copy of the most
recent annual or quarterly report of the Company, and such other reports and
documents of the Company and other information in the possession of or
reasonably obtainable by the Company as the Holder may reasonably request in
availing itself of any rule or regulation of the Commission allowing the Holder
to sell any such securities without registration.

     Section 5.10.  Transfer of Registration Rights.  The rights granted Holders
under this Article 5 may be assigned to a transferee or assignee, in connection
with any transfer or assignment of Registrable Securities (including Preferred
Stock convertible into Registrable Securities) by the Holder provided that: (i)
such transfer is otherwise effected in accordance with applicable securities
laws and the terms of this Agreement, (ii) such assignee or transferee acquires
at least 50,000 shares of Registrable Securities from the transferor, (iii)
written notice is promptly given to the Company stating the name and address of
the transferee or assignee and identifying the securities with respect to which
such rights are being transferred or assigned and (iv) such assignee or
transferee agrees to be bound by the provisions of this Agreement.

     Section 5.11.  Termination of Registration Rights.  The right of any Holder
to inclusion in any registration pursuant to Article 5 shall terminate on such
date as all shares of Registrable Securities held by such Holder may immediately
be sold under Rule 144 during any 90-day period.

     Section 5.12.  Disposition of Registrable Securities.  Each Holder agrees
not to, directly or indirectly, offer, sell (including sell short), pledge,
transfer or otherwise dispose of (or solicit any offers to buy, purchase or
otherwise acquire or
<PAGE>

take a pledge of) any Registrable Securities that have been registered except in
compliance with the Securities Act, and the rules and regulations promulgated
thereunder. Without limitation of the foregoing, each Holder agrees not to make
any sale of Registrable Securities under the registration statement without
effectively causing the prospectus delivery requirements under the Securities
Act to be satisfied.

                                   ARTICLE 6

                         Financial Information Rights

       (a)  If the Company should no longer be subject to the reporting
requirements of the Exchange Act, the Company will provide the following reports
to each Holder:

            (i)   As soon as practicable after the end of each fiscal year, and
     in any event within 120 days after the end of each such fiscal year,
     consolidated balance sheets of the Company and its subsidiaries, if any, as
     of the end of such fiscal year, and consolidated statements of operations
     and consolidated statements of cash flows and stockholders' equity of the
     Company and its subsidiaries, if any, for such year, prepared in accordance
     with generally accepted accounting principles, all in reasonable detail and
     audited by independent public accountants of national standing selected by
     the Company, and a capitalization table in reasonable detail for such
     fiscal year; and

            (ii)  As soon as practicable after the end of the first, second and
     third quarterly accounting periods in each fiscal year of the Company and
     in any event within 45 days thereafter, a consolidated balance sheet of the
     Company and its subsidiaries, if any, as of the end of each such quarterly
     period, and consolidated statements of operations and consolidated
     statements of cash flows of the Company and its subsidiaries, if any, for
     such period and for the current fiscal year to date, prepared in accordance
     with generally accepted accounting principles (other than accompanying
     notes), subject to changes resulting from year-end audit adjustments.

       (b)  If the Company should no longer be subject to the reporting
requirements of the Exchange Act, the Company will provide the following
information to each Holder:
<PAGE>

            (i)   At least 30 days prior to the beginning of each fiscal year, a
     budget as adopted by the Company's Board of Directors for the fiscal year;
     and

            (ii)  As soon as practicable after the end of the first and second
     month of each quarterly accounting period, a consolidated balance sheet of
     the Company and its subsidiaries (if any), as of the end of each such
     monthly period, and consolidated statements of operations and consolidated
     statements of cash flows of the Company and its subsidiaries (if any), for
     such periods and for the current quarter to date, prepared in accordance
     with generally accepted accounting principles (other than accompanying
     notes), subject to changes resulting from quarter-end and year-end
     adjustments.

            (iii) The Company shall permit each Holder, at such Holder's
     expense, to visit and inspect the Company's properties, to examine its
     books and records and to discuss the Company's affairs, finances and
     accounts with the Company's management, all at such reasonable times as may
     be requested by such Holder.

       (c)  The rights granted pursuant to paragraph (b) of Article 6 may be
assigned to any transferee who acquires at least 50,000 shares of Registrable
Securities, so long as such transferee agrees in writing to be bound by the
provisions of paragraph (d) of Article 6.

       (d)  The Purchaser or transferee of rights under this Article 6
acknowledges and agrees that any information obtained pursuant to this Article 6
which may be considered nonpublic information will be maintained in confidence
by the Purchaser or transferee and will not be utilized by the Purchaser or
transferee in connection with purchases or sales of the Company's securities
except in compliance with applicable state and Federal securities laws.

                                   ARTICLE 7

                             Amendment and Waiver

     Except as otherwise provided above, additional parties may be added to this
Agreement, any provision of this Agreement may be amended or the observance
thereof may be waived (either generally or in a particular instance and either
retroactively or prospectively), only with the written consent of the Company
and the Holders of a majority of the Registrable Securities (including Preferred
Stock convertible into Registered Securities) then outstanding.  Any
<PAGE>

amendment or waiver effected in accordance with Article 7, shall be binding upon
the Purchaser, each Holder of Registrable Securities at the time outstanding,
each future holder of any of such securities, and the Company.

                                   ARTICLE 8

                                 Miscellaneous

     Section 8.1.  Governing Law.  This Agreement shall be governed in all
respects by the internal laws of the State of New York without regard to
conflict of laws provisions.

     Section 8.2.  Entire Agreement.  This Agreement constitutes the full and
entire understanding and Agreement among the parties regarding the matters set
forth herein.  Except as otherwise expressly provided herein, the provisions
hereof shall inure to the benefit of, and be binding upon the successors,
assigns, heirs, executors and administrators of the parties hereto.

     Section 8.3.  Notices, Etc..  All notices and other communications required
or permitted hereunder shall be in writing and shall be mailed by registered or
certified mail, postage prepaid, or otherwise delivered by facsimile
transmission, by hand or by messenger, addressed:

       (a)   if to the Company, to:

               Magainin Pharmaceuticals Inc.
               5110 Campus Drive
               Plymouth Meeting, PA 19462
               Attn: Michael R. Dougherty
               Fax:  (610) 941-5399

     with a copy to:

               Morgan, Lewis & Bockius LLP
               1701 Market Street
               Philadelphia, PA 19103
               Attn: David R. King, Esq.
               Fax: (215) 963-5299
<PAGE>

       (b)   if to the Purchaser, to:

               Genentech, Inc.
               1 DNA Way
               South San Francisco, CA 94080
               Attn: Stephan Juelsgaard
               Fax:  (650) 952-9881

     with a copy to:

               Davis Polk & Wardwell
               1600 El Camino Real
               Menlo Park, CA 94025
               Attn: Daniel G. Kelly, Jr., Esq.
               Fax: (650) 752-2133

     Each such notice or other communication shall for all purposes of this
Agreement be treated as effective or having been given when delivered if
delivered personally, if sent by facsimile, the first business day after the
date of confirmation that the facsimile has been successfully transmitted to the
facsimile number for the party notified, or, if sent by mail, at the earlier of
its receipt or 72 hours after the same has been deposited in a regularly
maintained receptacle for the deposit of the United States mail, addressed and
mailed as aforesaid.

     Section 8.4.  Delays or Omissions.  No delay or omission to exercise any
right, power or remedy accruing to any Holder, upon any breach or default of the
Company under this Agreement shall impair any such right, power or remedy of
such Holder nor shall it be construed to be a waiver of any such breach or
default, or an acquiescence therein, or of or in any similar breach or default
thereafter occurring; nor shall any waiver of any single breach or default be
deemed a waiver of any other breach or default therefore or thereafter
occurring.  All remedies, either under this Agreement or by law or otherwise
afforded to any Holder, shall be cumulative and not alternative.

     Section 8.5.  Rights.  Unless otherwise expressly provided herein, a
Holder's rights hereunder are several rights, not rights jointly held with any
of the other Holders, if any.

     Section 8.6.  Severability of this Agreement.  In the event that any
provision of this Agreement becomes or is declared by a court of competent
jurisdiction to be illegal, unenforceable or void, this Agreement shall continue
in full force and effect without said provision and the parties agree to replace
such
<PAGE>

provision with a valid and enforceable provision that will achieve, to the
extent possible, the economic, business and other purposes of such provisions;
provided that no such severability shall be effective against a party if it
materially and adversely changes the economic benefits of this Agreement to such
party.

     Section 8.7.  Headings, Etc.  The headings of the Sections of this
Agreement have been inserted for convenience of reference only, are not to be
considered a part hereof, and shall in no way modify or restrict any of the
terms and provisions hereof.

     Section 8.8.  Counterparts; Facsimile.  This Agreement may be executed in
any number of counterparts, and by facsimile, each of which shall be enforceable
against the party or parties actually executing such counterparts, and all of
which together shall constitute one instrument.

                 [Remainder of Page Intentionally Left Blank]
<PAGE>

     IN WITNESS WHEREOF, the parties hereto have executed this Agreement as of
the date first set forth above.

"THE COMPANY"

MAGAININ PHARMACEUTICALS INC.
a Delaware corporation

By:  /s/ Michael R. Dougherty
   -----------------------------------
   Name: Michael R. Dougherty
   Title: President and Chief Executive Officer

"THE PURCHASER"

GENENTECH, INC.
a Delaware Corporation

By:  /s/ Arthur D. Levinson
   ------------------------------------
   Name:  Arthur D. Levinson, Ph.D.
   Title:  Chairman and Chief Executive Officer

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