To find out which contacts control the "up" function, you need to:
1. Consult a wiring diagram: A wiring diagram specific to your 1998 Chevy Malibu is the best and safest way to determine this. You can usually find these diagrams online (through sites specializing in car repair information) or in a repair manual specific to your vehicle.
2. Use a multimeter (carefully): With the power OFF to the window system, you can carefully use a multimeter to test continuity between different contacts on the switch while operating the switch. This is risky if you're not experienced with automotive electrical systems, as you could accidentally short-circuit something. Never attempt this with the power ON.
3. Trace the wires: Carefully follow the wires from the switch to the motor. This is a time-consuming process and is not recommended unless you're experienced with automotive electrical systems.
Warning: Working with automotive electrical systems can be dangerous. If you're not comfortable working with electricity, it's best to consult a professional mechanic. Incorrectly connecting wires can damage your car's electrical system or even cause a fire.