Sentence:  And if it is more characteristic of a friend to <WSD>do well</WSD> by another than to be well done by, and to confer benefits is characteristic of the good man and of excellence, and it is nobler to <WSD>do well</WSD> by friends than by strangers, the good man will need people to <WSD>do well</WSD> by. 
Meaning of the word marked with <WSD> tags:  To benefit, to favour