Originally posted by romulotjf
modify the number of souls in memory ....
I'm still not clear since that could be either (1) or (2) depending on how you mean "memory" (soul memory or game memory).
Short answer is this:
If you mean the number of souls you have ever had (soul memory), then no, that is hard-coded. As far as I can recall attempts at modifying that have just made very unstable save files.
If you mean the number of souls you currently have, try searching for them in Advanced Mode. Use a hex converter (they are free online) to convert the number you are seeing on the screen to hexadecimal. Note that in any Souls game including Dark Souls II, it will appear kind of backwards, because it is written in Little Endian, but Save Wizard searches in Little Endian so can find it just fine and you don't have to worry about it. To give you an example, 990000 souls in hex is F1B30, but in the game's files that would be written as 0F 1B 30. Again, just trust that Save Wizard will find it. Search for F1B30 and Save Wizard will find it. Whatever you're searching for (I doubt you have exactly 990000 souls), find it and change it to whatever lower value you want. Change it using hex, and again, make sure it is in Little Endian. So if you want to change it to 500,000 souls, in hex that is 7A120, so you would write that 20 A1 07. Just read it from right to left, and look online if you have trouble changing it in your head. Make sure you back up your save before making any changes.
Note that I haven't modified soul values in any Souls game, not using that method.
A more manual method, but would take longer: Die. That would obviously drop your souls to 0. To get it up to whatever number you want, use soul items, the sort that say "grants ___ souls when used", such as Soul of a Proud Knight. Use Save Wizard's Quick Codes to max out your numbers of those items to 99, all of the ones you have. Back in the game use 98 - not 99, but 98 - at a time. You can only use 1 boss soul at a time so skip those because it takes too long. So just spam 98 soul items at a time, making sure you leave 1 of each in your possession. If you still want more, go back into Save Wizard, crank each one that you have back to 99 (this is why you left 1 -- if you don't have it you can't increase it again). Then rinse and repeat until you get to your desired number of souls.
Again though, if you meant the number of souls you have ever had in your possession, which the game does remember and which Souls players refer to as "soul memory", as far as I know that cannot be changed.