Background functions, I assert, are observations. Foreground functions are inferences. The background of your psyche is what's going on around you; the foreground is what you're going to do about it. You observe your background, and you reach conclusions about it with your foreground.
In your background you observe two kinds of things happening: good things (those which you and those close to you stand to benefit from) and bad things. (which are such because they are disadvantageous to you.) We tend to think of the advantageous things -- when we reach a majoritarian agreement on them -- as good, and the disadvantageous observations as indicative of evil. This forms the moral background for our relationship to the world, and we take combative or exploitive stances depending on what we see. That which is problematic/disadvantageous, we seek to solve (or confront it if a solution is unavailable; that which is advantageous, we seek to exploit.
(this is why duality is so effective: it is very easy is exploit your dual, and for their benefit. Notice that I mean exploit from a systemic vantagepoint; I do not mean to imply that we deliberately take advantage of that which is advantageous to us at the advantage's detriment.