Paul did not have a dislike for the law of Moses. Though his reputation was often attacked, Paul realized the main purpose of that Law. It is “to bring us to Christ” (cf. Galatians 3:24). It was good. But, it had to be used correctly. It had to be obeyed. The law of Moses is not where redemption is found, it was given to prepare and lead to redemption.
The law is abused by the disobedient. He includes in this passage a sampling of that. He references the unholy and profane. Individuals like murderers, fornicators, sodomites, kidnappers, liars, perjurers. These are not exclusive, they are representative of all types of sin.
But, the law is contrasted with what Paul refers to as “the glorious gospel of the blessed God which was committed to my trust” (11). The abuse of the law does teach an important truth, such sins are “contrary to sound doctrine, according to the glorious gospel” as well, and worthy of judgment, (cf. Romans 1:28-32). The law also is not the end all. The glorious gospel of God, committed to Paul, is.