{
	"id": "e8afc572-95ae-4394-ab42-e361f9a1315b",
	"created_at": "2023-01-12T15:08:57.441877Z",
	"updated_at": "2026-11-16T08:48:15.778683Z",
	"deleted_at": null,
	"sha1_hash": "0adf7bbf3b024e874629fbb1a903e53bd4f5e1c9",
	"title": "2022-01-08 - Unpacking Hancitor malware",
	"llm_title": "2022-01-08 - Unpacking Hancitor malware",
	"authors": "",
	"file_creation_date": "2022-05-27T18:58:08Z",
	"file_modification_date": "2022-05-27T18:58:08Z",
	"file_size": 1302373,
	"plain_text": "1/4\r\nJanuary 8, 2022\r\nUnpacking Hancitor malware\r\nmuha2xmad.github.io/unpacking/hancitor/\r\nMuhammad Hasan Ali\r\nMalware Analysis learner\r\n1 minute read\r\nAs-salamu Alaykum\r\nIntroduction\r\nHancitor is an information stealer and malware downloader used by a threat actor\r\ndesignated as MAN1, Moskalvzapoe or TA511. In a threat brief from 2018, we noted Hancitor\r\nwas relatively unsophisticated, but it would remain a threat for years to come. Approximately\r\nthree years later, Hancitor remains a threat and has evolved to use tools like Cobalt Strike. In\r\nrecent months, this actor began using a network ping tool to help enumerate the Active\r\nDirectory (AD) environment of infected hosts. This blog illustrates how the threat actor\r\nbehind Hancitor uses the network ping tool, so security professionals can better identify and\r\nblock its use. 1\r\nMD5: FF9D0327538AB33468A8AD2142EFF416\r\nPacked indicators\n\n2/4\r\nIf we open it in DiE or pestudio we will notice that it’s Not packed.\r\nAnother way to detect packing is to open it in IDA and if you see less number of functions\r\nthen It’s packed.\r\nFigure(1):\r\n \r\nUnpacking process\r\nHow unpacking works? well, packing process depands on the packer. So each packer has\r\ndifferent unpacking routine.\r\nSo in this sample we will begin by setting two breakpoints in VirtualAlloc and\r\nVirtualProtect . Then run f9 to hit the first breakpoint and then run again to hit the 2nd\r\none which is VirtualAlloc . Then step over f8 to the call of virtualalloc. Then dump\r\nEAX .\n\n3/4\r\nFigure(2):\r\n \r\nThen run again to get to virtualalloc to the 2nd time and see what dump has.\r\nFigure(3):\r\n \r\nWe keep pressing run to hit the breakpoint of VirtualAlloc 7 times. After that we we hit\r\nrun again.\r\nFigure(4):\r\n \r\nWe will see our unpacked exe in the dump. Then we Follow in Memory map and save\r\nto file. And Image base is 230000 .\n\n4/4\r\nFigure(5):\r\n \r\nUnmap the unpacked file\r\nTo get improts of the unpacked file. We need to repair the section headers see my article\r\nHere. After unmapping you can see Imports and libraries .\r\nArticle quote\r\nوماذا یهم إذا لم تكن الحیاة على ما یُرام؟\r\nREF\r\n1- https://unit42.paloaltonetworks.com/hancitor-infections-cobalt-strike/\r\n2- VirtualAlloc\r\n3- VirtualProtect",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"VXUG"
	],
	"origins": [
		"pdf"
	],
	"references": [
		"https://papers.vx-underground.org/papers/Malware Defense/Malware Analysis 2022/2022-01-08 - Unpacking Hancitor malware.pdf"
	],
	"report_names": [
		"2022-01-08 - Unpacking Hancitor malware.pdf"
	],
	"threat_actors": [
		{
			"id": "542cf9d0-9c68-428c-aff8-81b6f59dc985",
			"created_at": "2023-02-15T02:01:49.554105Z",
			"updated_at": "2026-11-16T02:00:25.98589Z",
			"deleted_at": null,
			"main_name": "Moskalvzapoe",
			"aliases": [
				"MAN1",
				"TA511"
			],
			"source_name": "MISPGALAXY:Moskalvzapoe",
			"tools": [],
			"source_id": "MISPGALAXY",
			"reports": null
		},
		{
			"id": "1f6ae238-765f-4495-9d54-6a7883d7a319",
			"created_at": "2022-10-25T16:07:24.573456Z",
			"updated_at": "2026-11-16T02:00:28.605331Z",
			"deleted_at": null,
			"main_name": "TA511",
			"aliases": [
				"MAN1",
				"Moskalvzapoe"
			],
			"source_name": "ETDA:TA511",
			"tools": [
				"Agentemis",
				"Chanitor",
				"Cobalt Strike",
				"CobaltStrike",
				"Ficker Stealer",
				"Hancitor",
				"NetSupport",
				"NetSupport Manager",
				"NetSupport Manager RAT",
				"NetSupport RAT",
				"NetSupportManager RAT",
				"cobeacon"
			],
			"source_id": "ETDA",
			"reports": null
		}
	],
	"ts_created_at": 1673536137,
	"ts_updated_at": 1794818895,
	"ts_creation_date": 1653677888,
	"ts_modification_date": 1653677888,
	"files": {
		"pdf": "https://archive.orkl.eu/0adf7bbf3b024e874629fbb1a903e53bd4f5e1c9.pdf",
		"text": "https://archive.orkl.eu/0adf7bbf3b024e874629fbb1a903e53bd4f5e1c9.txt",
		"img": "https://archive.orkl.eu/0adf7bbf3b024e874629fbb1a903e53bd4f5e1c9.jpg"
	}
}