Seems like your requirement is design an amplifier . You can check out the PGA(programmable gain amplifier ) for this purpose. Kindly check the component datasheet and device code examples(File -> Code example -> search PGA). This should give you a good starting point. If you want to attenuate the signal you can check our using the CTB(Opamp) with fractional gains.