Done LOTS of work on my 06X and have now learned a thing or two about the wiring/PCM control and some options available. (just finished a 5speed manual swap in mine)
At minimum.... in addition to swapping the transmission (one with a 4x4 compatible tail housing on it), you will need AT LEAST the following (from the AWD/4x4 model):
1) the PCM
2) 4x4 module
3) likely totally different wiring harnesses so get that too
4) the dash controls/buttons and any other wiring/buttons etc (maybe the plastic cover assembly for the radio/ac controls)
5) 4x4 tcase (need transfer case motor as well). Check that the frame mounts are the same... might need those too
6) front driveshaft
7) front differential, axles, .... and not sure what else here. Hopefully the control arms are the same and you do not need to change random stuff like that....
In all honesty... if you can buy a "wreck"... I've rebuilt a few trucks (salvage trucks) and it might be easier to use your truck as the doner and swap all the panels/etc that are smashed on the "wrecked 4x4. LOL.
On the other hand... if you wanted to swap a manual into it... that would be a breeze for you since you have no 4x4

Not what you want but I was just thinking about how that 4x4 is SUCH a pain in the ass..... here's a few other things to think about....
...Vehicle speed sensors. The new one might be different. Check that cause your speed could be halfed on your speedo. You may need professional tuner software to adjust.
...AdvanceTrac traction control. Since you need the new PCM to operate the new tcase you also need to make sure you have the same ABS system and transmission/engine control signals (all part of the traction system).
...the fun is just beginning...
I'm a believer that you can totally pull this off. Just expect your truck to be on blocks for ~4 months while you work through all the details (research, part sourcing, etc). Just not sure if the effort warrants the reward.
EDIT. It may actually be easier to do a manual swap at the same time.... then do a MANUAL t-case. If you have advanceTrac... just turn it off in the tune (not free). Only thing is with open diffs front and rear ... if you slip it will spin freely... so you could swap TrueTRAC or Torsen LSD into the diffs and you would have a pretty sick setup

I would probably not get started on any of this unless you had around $2-4 k to get started and LOTS of time on your hands WITHOUT the vehicle.... I bought a honda civic and have been driving it off and on whenever my EX is on blocks
