In this ranking system all matches count whether it’s friendlies or not. Nevertheless, in a major tournament if a country wins a match they get more points toward their ranking than friendly match does.
“A team ranking 3 in world should be able to reach semifinals in World cup and Euro cup”
From your theory, Greece should be # 2 behind Brazil: how come they are not even in the top ten?