From Wikipedia:

"The ethanol molecule has a hydrophilic OH group that helps it dissolve polar molecules and ionic substances. Additionally, ethanol's short, hydrophobic hydrocarbon chain can attract non-polar molecules. Thus ethanol can dissolve both polar and non-polar substances."

It can function as a nonpolar solvent even though it is in fact slightly polar.