From what I can tell. Green wire is Green, blue wire is blue, yellow wire is red. Assuming they kept the same color coding through the amp you can assume those color wires on the vga port are the same.
The brown and red single wires from the 5 pin din port I believe are going to be your right and left audio.
The red and orange wire combo is going to be 5v.
Purple wire is composite video, where you would get your sync signal for the video.
The yellow and orange wire combination I think is ground.
It's really hard to tell from the pictures where everything runs to and from.
I would focus on making your connection from the blue, green, yellow wires that come from the amp and the purple wire for sync.
Then the brown and red wire for your left and right audio.
The 5v and ground rails you shouldn't need to worry about on an external cable unless the equipment you are using needs it.
The brown and red single wires from the 5 pin din port I believe are going to be your right and left audio.
The red and orange wire combo is going to be 5v.
Purple wire is composite video, where you would get your sync signal for the video.
The yellow and orange wire combination I think is ground.
It's really hard to tell from the pictures where everything runs to and from.
I would focus on making your connection from the blue, green, yellow wires that come from the amp and the purple wire for sync.
Then the brown and red wire for your left and right audio.
The 5v and ground rails you shouldn't need to worry about on an external cable unless the equipment you are using needs it.