You might check out this thread for the Samsung HW-FM45C Soundbar:
the code it found that worked for the HW-FM45C was 32660
I do not believe the RC65 Remote is an actual "Learning" Remote.
I believe that some Set-top Boxes simply send five-digit Codes to the Remote, so you do not have to manually enter the Code.
The Code simply tells the Remote what set of 'signals' [that are already in the Remote's firmware] to send to the Device when a specific key/button is pressed.