Not super helpful to say throw it out and get something else.
I would guess the red goes to battery: that's pretty much standard everywhere. It will then need ground, switched +12V power in, and field coil power out wires (and you have four mystery wires! coincidence?).
See if black and red have diode continuity to the white wires - consistent readings to all white wires, low resistance with meter leads one way and high the other way (or around 0.5 one way and ERROR the other way if you have a diode test meter). If they do, very good bet that these are ground (black) and battery (red). Honda uses black as the switched power wire, but other brands often use black for ground.
The other two wires are a bit harder to figure. My guess is brown for switched power and yellow for field coil but no certainty and offhand I don't know of a test. If one has diode-like continuity and the other doesn't ... I think probably the one that does will be the switched power input.
At least try it... if you burn it out then BM650's suggestion sounds OK.