There are several types of repair rings, one would work. You'd need to drill some holes (a carbide bit would be needed for the cement) to anchor it. It can be installed either over or in place of the original.
If it is a 4" ID pipe, you could probably install one inside of the pipe. The height may be too high, though. the flange must sit on top of the finished floor and be anchored to it if you want your toilet to sit properly and be able to seal.
Another alternative is to just drill a hole in the concrete and install a hanger bolt at the proper location. The hole would need to be big enough to install a lead anchor, then you'd screw the hanger bolt in there (wood screw on one end, machine screw threads for the bolt on the other).