I'm not quite satisfied with this solution, but it's the best I can come up with. All my approaches ultimately depend on finding initial values like $f(2), f(3), f(4)$, for which I had no motivating approach other than trying numerous cases and hoping it eventually works out.
The following 2 equations are the most important that we'd use:
Calculating powers of 2 from smaller powers of 2:
$$f(2^{k+1} ) + f(2^k) = 2 f(3\times 2^{k-1}) + 2 f( 2^{k-1} ) = 4 f(2^k) + 4 f( 2^{k-1} )$$
Calculating multiples of $2^{k-a}$ from multiples of $2^{k-a+1}$:
Where $O$ is an odd number,
$$f( \frac{O+1}{2} \times 2^{k-a+1}) + f( \frac{O-1}{2} \times 2^{k-a+1}) =2 f( O \times 2^{k-a} ) + f( 2^{k-a} ).$$
Claim 1: Let $ f(2) = a, f(4) = b$. Then, the rest of the values could be determined from these unknowns.
Proof of claim 1: We do so by induction, showing that we can determine the values from $f(2^k+1)$ to $f(2^{k+1})$.
We use the first equation to get $2^{k+2}$, then use the second equation to calculate the odd multiples of $2^{k}$ less than $2^{k+2}$, then calculate the odd multiples of $2^{k-1}$ less than $2^{k+2}$, then calculate the odd multiples of $2^{k-2}$ less than $2^{k+2}$, so on and so forth. $_\square$
Note: While we have determined these values through the equations, we still have to ensure that the all of the equations hold in general. It is by verifying these equations that we get more information.
Claim 2: We can show that $f(4) = 3f(2) + 4$, and that $f(2) = 4$.
Corollary: With $f(1) = 1, f(2) = 4, f(4) = 16$, we can repeat the induction at the start (once again working with the powers of 2 then multiples of $2^{k-a}$) and prove that $f(n) = n^2$.
Finally, verify that with $ f(n) = n^2$, both equations hold in all generality. So this is indeed a solution.
Proof of Claim 2: We can list out some of the these values, with the sequence obtained via the above algorithm:
$f(1) = 1$
$f(2) = a$
$f(4) = b$
$f(3) = (a+b-2) / 2 $
$f(8) = 4a+3b$
$f(6) = a+2b$
$f(5) = (a+3b-2) /2$
$f(7) = (5a+5b-2)/2$
With $ f(8) + f(2) = 2f(5) + 2f(3)$, we get that $ b = 3a + 4$. Rewriting the above list, we have
$f(1) = 1$
$f(2) = a$
$f(3) = 2a+1$
$f(4) = 3a + 4$
$f(5) = 5a + 5$
$f(6) = 7a+8$
$f(7) = 10a + 9$
$f(8) = 13a + 12$
There seems to be nothing further we can do, so let's generate more values.
$f(16) = 51a+52$
$f(12) = 29a + 28$
$f(10) = 20a+20$
$f(9) = (33a+30) / 2$
(I skipped listing out the rest)
With $f(16) + f(2) = 2 f(9) + 2 f(7) $, we get that $ a = 4$.
(With this value, you can check that the listed ones work out to $f(n) = n^2$.)$_\square$