This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

ANNAPOLIS, Maryland — Within hours after a Maryland shooter killed five staffers at an Annapolis newspaper Thursday, a picture began to emerge of the suspect: an unhinged loner consumed by a years-long vendetta, with a long history of menacing behavior.

Jarrod Ramos, now 38, began cyberstalking a former high school classmate who barely knew him in 2009, her lawyer said. According to a complaint the classmate filed in 2011, Ramos relentlessly sent her aggressive private messages, harassed her therapist for information and contacted her employer to tell them she was “a bipolar drunkard leading a double life,” which she said cost her her job. At one point, he went silent for months — then, she wrote, “reinitiated contact and shared with me the information he has been collecting about me during the past year, contained in a Microsoft Excel file with computer screenshots from Facebook.”

“This is the singularly, obviously the worst case of harassment and stalking I have ever encountered,” the woman’s lawyer, Brennan McCarthy, told CNN on Friday. CNN is not naming the woman. McCarthy said his client was so scared by the harassment that she bought a gun and eventually moved from the state.

In 2011, partway through what would ultimately be six years of Ramos harassing the woman, he was charged with harassment and pleaded guilty. Then-staff writer Eric Hartley wrote about the case in a column in The Capital — which left Ramos in a seething rage that lasted all the way up to the massacre this week.

He sued Hartley, editor and publisher Tom Marquardt, and Capital Gazette Communications for defamation in 2012, and then, after a judge threw out the case, appealed. In 2015, the court of special appeals judge upheld the ruling.

Interviews, legal documents and his online trail show how obsessed Ramos was with the case. But his personal troubles extended beyond it as well.

He was fired in 2014 from his federal government contract job as a help desk specialist for the Bureau of Labor Statistics because he posed “security suitability concerns,” according to court documents obtained by CNN. The concerns were so dire that the federal agency decided that “in order to mitigate potential security risk, Mr. Ramos will not be permitted back on BLS premises,” read one email from an agency employee.

Former classmates at Arundel High School described him as a weird kid who kept to himself — but still made them uneasy. “He was always really quiet,” said one alumna, who goes by Jenny Johnson and saw him in the hallways in the 1990s, on a Facebook group for Arundel graduates.

Carla Altbright, who also attended high school with Ramos, told CNN she “knew of him and that he was a loner and had a dark side to him.”

Then there was his menacing presence on social media. In a now-suspended Twitter feed called @EricHartleyFrnd, named after the Capital columnist who wrote about him in 2011, Ramos tweeted hundreds of times from 2011 to 2016 about the journalists and lawyers he felt had been responsible for defaming him. He coined epithets for them — “Evil Tom,” he called Marquardt, the paper’s former editor and publisher — and kept up a concentrated barrage of insults, vague threats and rants about their journalism and legal work.

This online record of his grudge was also populated with references to Nosferatu Zodd, a “beast swordsman” and killer of thousands in the dark fantasy manga and film series “Berserk.” The Twitter account’s avatar was a photo of journalist Hartley with a symbol pasted on his forehead. In the Berserk universe, that symbol is known as the “Brand of Sacrifice,” and marks its bearers for ritualistic murder.

There are no tweets on the @EricHartleyFrnd account from January 2016 until this week, when Ramos tweeted, “F*** you, leave me alone @judgemoylanfrnd.” That account also appears to have been run by Ramos, and referred to Charles Moylan, the Maryland Court of Special Appeals judge who upheld the lower court’s ruling to throw out his defamation case. That account used as an avatar a photo of the judge, his face marked with the same threatening symbol.

In the lawsuit he filed himself against the newspaper in 2012, Ramos sprinkled violent innuendo throughout the legal document. Sections were titled, “”Metaphysical Assault with a Deadly Weapon,” “Attempted First-Degree Murder of the Spirit,” “Blood on Their Hands” and “Wages of Sin.” Ramos laid out his wish to harm the newspaper columnist who wrote about him, speaking in the third person and saying that “if not illegal, he would kill the living body of Hartley.”

Ramos was never charged for the threats he made to the newspaper employees. According to a 2013 police report obtained by CNN, staffers decided that pursuing any charges against him would be equivalent to “putting a stick in a beehive.” During a conference call with newspaper employees on May 24, 2013, Anne Arudel County Police officer Michael Praley told them he “did not believe that Mr. Ramos was a threat to employees for the Capital. … He has not attempted to enter the Capital Newspaper building or sent direct threatening correspondence.” The report also noted Ramos had not registered any firearms in Maryland.

Still, he was free to legally purchase a weapon. In the 2011 case, he pleaded guilty to a crime of misdemeanor harassment, not stalking or domestic violence, which might have barred him from owning a firearm. Ramos received a suspended 90-day prison sentence. Last year, he purchased the pump-action shotgun that he used in the massacre, according to Anne Arundel county police.

“Harassment is not considered a crime of violence under Maryland law, so a conviction of harassment didn’t disqualify him from purchasing the shotgun,” said Lindsay Nichols, federal policy director of the Giffords Law Center to Prevent Gun Violence.

Somewhat paradoxically, the fact that Ramos was harassing almost complete strangers also left them vulnerable.

“If he had been dating (the harassment victim) or someone at the newspaper, there could have been the opportunity to do more — emergency protective orders or other means,” said Ruth Glenn, chief executive of the National Coalition Against Domestic Violence.

Nichols, of the Giffords Law Center, noted that Maryland Gov. Larry Hogan just signed a so-called “red flag law” to address these very types of cases. The state has adopted a new policy that allows police to seek temporary removal of guns from someone who exhibits an “extreme risk.” The law doesn’t go into effect until October.

Other details of Ramos’ background are still emerging. CNN was able to confirm that he attended Capitol College (now known as Capitol Technology University), where he graduated in 2006 with a Bachelor of Science in computer engineering.

While Anne Arundel County Police Chief Timothy Altomare on Friday told reporters that law enforcement agents “did not find a written manifesto,” Ramos did leave a screed online starting in 2011 that seemed to be aimed at the public.

“Dear Reader,” it began, “If you’re here now, you probably just Googled my name.” Ramos linked to the newspaper story that he claims ruined his reputation. In 2012, he wrote that “Jarrod wants to be your end” and made a hunting reference by declaring it “open season.”

“Even kings must answer to God,” he wrote. “As this search for Truth commences, a crusader they could not kill approaches.”

Read more here.