You needs to make sure if that software is safe because you install the game from the advertisement that we don't know for sure. I don't know if that is safe or not so that is why you need to search for the other information about the game.
There are crash games that you can play online directly on the gambling site and there is no need to download any software on your system. Yes, it may take a bit of time to load the game, but that is not a big problem if you have even half a decent internet connection speed. Of course you will visit a trusted site to play crash game and chances of getting a malware/virus will be close to none. However, seeing an ad on Facebook and and downloading the application on the system can be too much risky and should be avoided.