I have tried to find the final ranking rules for the FIFA World Cup 2014.
What are the rules to rank teams after the tournament finished?
read this http://en.wikipedia.org/wiki/FIFA_World_Rankings It explains the system FIFA uses to asses points. There are many different multipliers, but if you read the section titled Match status you'll see that the the points of World Cup matches are multiplied by 4, where Continental cup matches are multiplied by 3, cup qualifiers match points are multiplied by 2 and friendly matched have multiplier 1.
There are two parts to the final World Cup standings; first, how the teams are grouped together, and second, how they're ranked within their groups.
Teams knocked out in the same phase of the tournament are grouped together and ranked against each other. In practice, this could mean that a team eliminated at an earlier stage will be ranked lower than a team that advanced to a later stage, despite having more points. (For example, see the 2006 final standings, where Spain (9 points, 9th place) ended with more points than Ukraine (7 points, 8th place).) Thus there are four groups of teams:
The tiebreakers (for teams 17-32, 9-16, and 5-8) are the same as are used to determine which teams advanced from the group stage:
Teams still tied after the sixth tiebreaker would be listed as sharing the given rank. See the 2006 final standings, where Iran and the United States are listed as tied for 25th.
Teams 1-4 are ranked based on the results of the final and third-place game.