The EV-9D9 droid was torturing others for sadistic pleasure. "She" was a droid that was unique in manufacture, a freak of a mistake in construction that allowed her to experience pleasure from others' pain. This following large sample, excerpted from a pdf form of the story, shows how "Ninedenine" experienced the torture.
Given a year or two or five or ten within this dark domain, even the
best of them [prisoners in Jabba's Palace] would succumb to ravaging their own tentacles or clawing at their own light sensors.
To Ninedenine, such actions were the addictively elegant expressions of
a higher-dimensional logic pathway which only she among droids had the
gift to comprehend--first by an accident of manufacture, it had seemed,
but now augmented by her own deliberate and ongoing modifications. To
organics, such acts of self-inflicted, physical alteration were second
nature, a state which Ninedenine yearned to achieve and often felt
maddeningly close to experiencing. Indeed, there was much within the
organic mind which Ninedenine felt certain was comparable to her own.
Not in quality of intellect--she was positive she had no equal among
cellular-based processors in that regard.
But in appreciation of sensation--that was how Ninedenine preferred to
characterize her avocation.
The savoring of the sine waves of discomfort. Plunging into the
algorithms of despair. Racing through the oscillating peaks and valleys
emitted by circuits strained far past their design and logic loads.
True, for now, her internal receptors allowed her only the binary nature
of droids to work with, but once she had accessed enough datastorage
space and enough coprocessors at sufficiently wide bandwidths, there
would be no limit to the sensations she would be able to induce, record,
digitize, and play back to the nth repetition, all exactingly coaxed
from her mechanistic brethren.
Simply put, and Ninedenine did cherish simplicity, she knew that what
she did was an act of creation--an art form. Though trying to explain
to an organic that a droid such as she could appreciate art was like
trying to explain that a droid could feel pain.
Droids could feel pain, of course. One of the two new prisoners coming
her way was proof of that--a golden protocol droid from the looks of it,
buffed to a courtly gleam, completely out of place in this warren of
dank tunnels, decaying power conduits, and scurrying, fur-covered,
organic scavengers.
"Ah, good," Ninedenine said as the prisoners approached, "new
acquisitions." She fixed her inner optic scanner on the golden droid.
She knew how unnerving it could be to other droids when they noticed
that she--a humanoid model--possessed that third optic scanner, just in
from the standard left unit.
It was not in the design specs of EVs or any other model. Some called
it a design flaw. Proof that she had been put together the wrong way,
as if that might explain her ambitions and her most undroidlike
appetites.
But Ninedenine understood that third scanner for what it truly was-the
gift that allowed her to sense beyond what any other droid could sense,
to never-before-quantified dimensions of experience, completely
bypassing the signal-to-noise ratio of ordinary droid sensation.
Ninedenine made her third optic scanner blink deliberately out of sync
with her main scanning cycle.
"You are a protocol droid, are you not?"
The new prisoner did not even have to begin to speak for Ninedenine to
know the answer to that question.
His supercilious pose and posturing proclaimed him to be a protocol
droid of the highest, most irritatingly officious order.
"I am See-Threepio," the droid began, redundantly.
Already Ninedenine was growing tired of it.
"Human-cyborg--"
"Yes or no will do," Ninedenine said sharply.
Give a protocol droid its way and half the shift would be taken up with
meaningless gabble. Binary was best in dealing with such units.
"Well, yes," the golden droid replied more satisfactorily.
"How many languages do you speak?" Ninedenine called up the household's
duty roster on her command console. She hoped there would be no opening
for a protocol droid. She would enjoy showing this one the wonders of
her workshop . . .
"I am fluent in over six million forms of communication, and can
readily--"
"Splendid," Ninedenine snapped, cutting off the droid again as she saw
an opening did exist. "We have been without an interpreter since our
master got angry with our last protocol droid and disintegrated him."
Ninedenine tried to detect any reaction to that news on the droid's
part, but was momentarily distracted by the snorting guffaw from the
second Gamorrean guard sitting behind her, and then by the transmission
of circuit-shivering pain from the silver courier droid on the
traction-test bed, whose right-side appendages suddenly failed with twin
bursts of live current.
"Disintegrated . . . ?" the golden droid repeated, trying to make
sense of what was going on.
Ninedenine wondered if it too had picked up the pain transmission from
the dismembered droid, and was experiencing the first touch of
disturbance. Pain-simulator buttons were supposedly restricted
technology, typically installed only in those droids who had to interact
with organics at the most personal level. Strike a protocol droid on
the head, for instance, and it would respond that the blow had hurt.
Such empathy toward potentially damaging physical sensation was supposed
to give them deeper understanding of organics. But as far as Ninedenine
was concerned, it just made protocol droids better subjects for her
experiments.
And Ninedenine did like to experiment.