joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3bc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [0x5cd02b], 0
push ebx
push edi
mov edi, edx
mov ebx, ecx
je 0x4d3c4d
push esi
push 0
push 0
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 0x9999200b
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], edi
push eax
push 0
push 0x4dd440
push 0
push dword [0x5cd6d4]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0x4dd5e0
mov dword [ebp - 0x14], 0xc0000001
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtTestAlert]
mov eax, dword [ebp - 0x14]
test esi, esi
cmovs eax, esi
pop esi
cmp eax, 0xc00000db
jne 0x4d3c46
push edi
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
cmp eax, 0xc00000bb
jne 0x4d3c55
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3ec0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
jne 0x4d3edd
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x18], ecx
mov eax, 0x100
mov dword [ebp - 0x14], 0x1000000
lea esp, [esp]
movzx eax, ax
push eax
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4d4023
push 0
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x58
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
jns 0x4d3f3d
push dword [ebp - 0x10]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea ecx, [ecx]
cmp esi, 0xc0000004
jne 0x4d3f4e
mov ax, word [ebp - 0x12]
jmp 0x4d3ef0
lfence
test esi, esi
js 0x4d4015
movzx ebx, word [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push 0
push 0x5c
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
cmp eax, 0xffffffff
jne 0x4d3fbb
mov ax, word ds:[ebp - 0x14]
test ax, ax
jne 0x4d3f8e
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov edi, eax
jmp 0x4d3fff
push dword [0x5cd4f8]
movzx ebx, ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebx + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], ebx
mov word [eax + ebx], cx
mov eax, dword [ebp - 8]
jmp 0x4d3fee
add eax, eax
lea ecx, [edi + 2]
add ecx, eax
sub ebx, eax
mov dword [ebp - 8], ecx
add ebx, 0xfffffffe
je 0x4d3f85
push dword [0x5cd4f8]
lea eax, [ebx + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], ebx
mov word [eax + ebx], cx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d3fff
push ebx
push eax
push dword [edi + 4]
call fcn.00537fe0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], edi
push dword [ebp - 0x10]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc0000017
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d4040
Capabilities:
Check processdebugport

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5cd02b], 0
lea eax, [ebp - 4]
push edi
mov edi, edx
je 0x4d4094
push esi
push 0
push 4
push eax
push 0x1e
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
test esi, esi
js 0x4d4081
push dword [ebp - 4]
mov byte [edi], 1
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
cmp esi, 0xc0000022
jne 0x4d407a
pop esi
mov byte [edi], 1
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 4
push eax
push 7
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x4d407b
cmp dword [ebp - 4], 0
setne cl
mov byte [edi], cl
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4d4fe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
xor esi, esi
cmp dword [0x5c7aa8], 0x3e
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], esi
jae 0x4d503f
mov eax, dword [ebp + 0xc]
mov edx, 0x4d6f20
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0xc0000135
mov dword [esp + 0x24], 1
call fcn.004d6b20
test eax, eax
js 0x4d5033
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x4d503f
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x584d10
call fcn.004c05e0
test eax, eax
jne 0x4d5051
xor ebx, ebx
jmp 0x4d5061
push 0
mov edx, 0x598f20
mov ecx, eax
call fcn.004c0760
mov ebx, eax
cmp dword [0x5c7aa8], 0x3e
jb 0x4d507d
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.004dc5a0
test eax, eax
js 0x4d5033
mov esi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
js 0x4d5033
push dword [ebp + 0x10]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test edi, edi
jne 0x4d50cf
push eax
push 0x1c
lea eax, [esp + 0x2c]
push eax
push edi
push dword [esp + 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov edi, eax
test edi, edi
cmovns edi, dword [esp + 0x24]
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x4d510f
xor eax, eax
mov dword [esp + 0x14], esi
push eax
push eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x24], al
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push 0x10
push eax
push 0x2c
mov dword [esp + 0x2c], 3
call dword [sym.imp.ntdll.dll_NtPowerInformation]
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d5a20
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, 0x200
mov dword [ebp - 8], ecx
push edi
push 4
push dword [0x5cd55c]
mov esi, edx
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, 0x80000005
je 0x4d5a78
cmp esi, 0xc0000023
je 0x4d5a78
cmp esi, 0xc0000004
jne 0x4d5a9d
push ebx
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp - 0xc]
jmp 0x4d5a46
lea ecx, [ecx]
test esi, esi
js 0x4d5ab4
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d5ae0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [ebp + 0xc]
push 5
push 0x18
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x4d5b21
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8

Function at 0x4d5b40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push 0x14
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8

Function at 0x4d5b70
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push 0xe
push 8
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
lfence
test esi, esi
js 0x4d5ba5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4d5bc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
test eax, eax
je 0x4d5bd4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4d5bd8
xor ecx, ecx
xor eax, eax
push 0xe
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8
Function at 0x4d5c00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push 0x13
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8

Function at 0x4d5c40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x5c7aa8], 0x6a
push esi
mov esi, ecx
jb 0x4d5c73
push 0x40
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x11
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x4d5c8a
lfence
push 0xd
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 1
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d5ca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov ebx, 0x100
call fcn.004de800
test eax, eax
jne 0x4d5ccc
mov eax, 0xc00000bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x100
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], edi
test byte [0x5cb70c], 1
mov esi, 0x5a4d
mov eax, 0x5cb70c
jne 0x4d5e65
lock bts dword [eax], 0x1f
jb 0x4d5e52
mov ecx, 0x584d10
call fcn.004c05e0
test eax, eax
jne 0x4d5d48
push 0x800
push eax
push 0x584d10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x4d5d48
push 0xa00
push eax
push 0x584d10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4d5d40
test eax, eax
je 0x4d5dfd
cmp word [eax], si
jne 0x4d5dfd
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4d5dfd
lea esp, [esp]
cmp ecx, 0x7fffffff
jae 0x4d5dfd
cmp dword [ecx + eax], 0x4550
jne 0x4d5dfd
lea edx, [ecx + 0x78]
mov ecx, dword [edx + eax]
add edx, eax
test ecx, ecx
je 0x4d5dfd
cmp dword [edx + 4], 0
je 0x4d5dfd
push 0
add ecx, eax
push str.NtQueryInformationTransactionManager
push ecx
mov ecx, eax
call fcn.004c0900
mov dword [esp + 0x10], eax
test eax, eax
je 0x4d5dfd
mov eax, dword [0x7ffe0324]
mov edi, dword [0x7ffe0320]
cmp eax, dword [0x7ffe0328]
je 0x4d5dd0
mov ecx, 0x7ffe0324
mov edx, 0x7ffe0320
mov esi, 0x7ffe0328
pause
mov eax, dword [ecx]
mov edi, dword [edx]
cmp eax, dword [esi]
jne 0x4d5dc6
mov ecx, dword [0x7ffe0004]
mul ecx
mov esi, eax
mov eax, edi
mov edi, dword [esp + 0xc]
shld edx, esi, 8
mul ecx
shl esi, 8
shrd eax, edx, 0x18
add eax, esi
mov dword [0x5cf208], eax
xor eax, dword [esp + 0x10]
mov dword [0x5cf2ec], eax
mov eax, 0x5cb70c
lock bts dword [eax], 0
jb 0x4d5e65
mov esi, dword [0x5cb710]
test esi, esi
je 0x4d5e1c
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x5cb70c
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4d5e65
test esi, esi
je 0x4d5e65
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5cb710], 0
jmp 0x4d5e65
test byte [0x5cb70c], 1
jne 0x4d5e65
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov esi, dword [0x5cf2ec]
test esi, esi
je 0x4d5e7c
mov eax, dword [0x5cf208]
test eax, eax
je 0x4d5e7c
xor esi, eax
jmp 0x4d5e7e
xor esi, esi
push 0
push ebx
push edi
push 2
push dword [esp + 0x24]
mov ecx, esi
call dword [0x55890c]
call esi
mov esi, eax
cmp esi, 0x80000005
jne 0x4d5ee3
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x100000
ja 0x4d5ed2
push ebx
push 4
lfence
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], eax
jmp 0x4d5ce5
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esi, esi
js 0x4d5ef7
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d5f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov ebx, 0x100
call fcn.004de6a0
test eax, eax
jne 0x4d5f4c
mov eax, 0xc00000bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x100
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], edi
test byte [0x5cb6c4], 1
mov esi, 0x5a4d
mov eax, 0x5cb6c4
jne 0x4d60e5
lock bts dword [eax], 0x1f
jb 0x4d60d2
mov ecx, 0x584d10
call fcn.004c05e0
test eax, eax
jne 0x4d5fc8
push 0x800
push eax
push 0x584d10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x4d5fc8
push 0xa00
push eax
push 0x584d10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4d5fc0
test eax, eax
je 0x4d607d
cmp word [eax], si
jne 0x4d607d
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4d607d
lea esp, [esp]
cmp ecx, 0x7fffffff
jae 0x4d607d
cmp dword [ecx + eax], 0x4550
jne 0x4d607d
lea edx, [ecx + 0x78]
mov ecx, dword [edx + eax]
add edx, eax
test ecx, ecx
je 0x4d607d
cmp dword [edx + 4], 0
je 0x4d607d
push 0
add ecx, eax
push str.NtQueryInformationTransaction
push ecx
mov ecx, eax
call fcn.004c0900
mov dword [esp + 0x10], eax
test eax, eax
je 0x4d607d
mov eax, dword [0x7ffe0324]
mov edi, dword [0x7ffe0320]
cmp eax, dword [0x7ffe0328]
je 0x4d6050
mov ecx, 0x7ffe0324
mov edx, 0x7ffe0320
mov esi, 0x7ffe0328
pause
mov eax, dword [ecx]
mov edi, dword [edx]
cmp eax, dword [esi]
jne 0x4d6046
mov ecx, dword [0x7ffe0004]
mul ecx
mov esi, eax
mov eax, edi
mov edi, dword [esp + 0xc]
shld edx, esi, 8
mul ecx
shl esi, 8
shrd eax, edx, 0x18
add eax, esi
mov dword [0x5cf298], eax
xor eax, dword [esp + 0x10]
mov dword [0x5cf230], eax
mov eax, 0x5cb6c4
lock bts dword [eax], 0
jb 0x4d60e5
mov esi, dword [0x5cb6c8]
test esi, esi
je 0x4d609c
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x5cb6c4
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4d60e5
test esi, esi
je 0x4d60e5
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5cb6c8], 0
jmp 0x4d60e5
test byte [0x5cb6c4], 1
jne 0x4d60e5
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov esi, dword [0x5cf230]
test esi, esi
je 0x4d60fc
mov eax, dword [0x5cf298]
test eax, eax
je 0x4d60fc
xor esi, eax
jmp 0x4d60fe
xor esi, esi
push 0
push ebx
push edi
push 1
push dword [esp + 0x24]
mov ecx, esi
call dword [0x55890c]
call esi
mov esi, eax
cmp esi, 0x80000005
jne 0x4d6163
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x100000
ja 0x4d6152
push ebx
push 4
lfence
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], eax
jmp 0x4d5f65
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esi, esi
js 0x4d6177
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d61a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov ebx, 0x100
call fcn.004de540
test eax, eax
jne 0x4d61cc
mov eax, 0xc00000bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x100
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], edi
test byte [0x5cb6dc], 1
mov esi, 0x5a4d
mov eax, 0x5cb6dc
jne 0x4d6365
lock bts dword [eax], 0x1f
jb 0x4d6352
mov ecx, 0x584d10
call fcn.004c05e0
test eax, eax
jne 0x4d6248
push 0x800
push eax
push 0x584d10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x4d6248
push 0xa00
push eax
push 0x584d10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4d6240
test eax, eax
je 0x4d62fd
cmp word [eax], si
jne 0x4d62fd
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4d62fd
lea esp, [esp]
cmp ecx, 0x7fffffff
jae 0x4d62fd
cmp dword [ecx + eax], 0x4550
jne 0x4d62fd
lea edx, [ecx + 0x78]
mov ecx, dword [edx + eax]
add edx, eax
test ecx, ecx
je 0x4d62fd
cmp dword [edx + 4], 0
je 0x4d62fd
push 0
add ecx, eax
push str.NtQueryInformationResourceManager
push ecx
mov ecx, eax
call fcn.004c0900
mov dword [esp + 0x10], eax
test eax, eax
je 0x4d62fd
mov eax, dword [0x7ffe0324]
mov edi, dword [0x7ffe0320]
cmp eax, dword [0x7ffe0328]
je 0x4d62d0
mov ecx, 0x7ffe0324
mov edx, 0x7ffe0320
mov esi, 0x7ffe0328
pause
mov eax, dword [ecx]
mov edi, dword [edx]
cmp eax, dword [esi]
jne 0x4d62c6
mov ecx, dword [0x7ffe0004]
mul ecx
mov esi, eax
mov eax, edi
mov edi, dword [esp + 0xc]
shld edx, esi, 8
mul ecx
shl esi, 8
shrd eax, edx, 0x18
add eax, esi
mov dword [0x5cf284], eax
xor eax, dword [esp + 0x10]
mov dword [0x5cf2d4], eax
mov eax, 0x5cb6dc
lock bts dword [eax], 0
jb 0x4d6365
mov esi, dword [0x5cb6e0]
test esi, esi
je 0x4d631c
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x5cb6dc
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4d6365
test esi, esi
je 0x4d6365
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5cb6e0], 0
jmp 0x4d6365
test byte [0x5cb6dc], 1
jne 0x4d6365
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov esi, dword [0x5cf2d4]
test esi, esi
je 0x4d637c
mov eax, dword [0x5cf284]
test eax, eax
je 0x4d637c
xor esi, eax
jmp 0x4d637e
xor esi, esi
push 0
push ebx
push edi
push 0
push dword [esp + 0x24]
mov ecx, esi
call dword [0x55890c]
call esi
mov esi, eax
cmp esi, 0x80000005
jne 0x4d63e3
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x100000
ja 0x4d63d2
push ebx
push 4
lfence
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], eax
jmp 0x4d61e5
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esi, esi
js 0x4d63f7
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d66c0
Capabilities:
Delete registry key
Persist via windows service
Set registry value
Unload driver

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [0x5cd4f8]
mov edi, ecx
mov esi, dword [edi]
add esi, dword [0x5cb5a8]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx + 4], ecx
mov dword [ebx], esi
mov word [ecx + esi], ax
push dword [0x5cb5a8]
push dword [0x5cb5ac]
push dword [ebx + 4]
call fcn.00537fe0
mov eax, dword ds:[ebx + 4]
add esp, 0xc
add eax, dword [0x5cb5a8]
push dword [edi]
push dword [edi + 4]
push eax
call fcn.00537fe0
movzx eax, word [ebx]
add esp, 0xc
mov word [ebp - 0x1c], ax
movzx eax, word [ebx]
add ax, 2
mov word [ebp - 0x1a], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], eax
cmp dword [ebx], 0xfffe
jbe 0x4d6767
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4d675b
call fcn.004c1f60
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, ds:[ebp - 0xc]
push eax
push 0
push 0
push ebx
push 0
push 0x30006
lea eax, [ebp - 4]
push eax
call sym.ProcessHacker.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x4d6866
cmp dword [ebp - 0xc], 1
jne 0x4d683e
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1a0018
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], str.ErrorControl
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0xc000a
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x5990a8
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0xa0008
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.Type
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov eax, dword [0x5cb5c8]
add eax, 2
mov dword [ebp - 0x14], 0x140012
push eax
push dword [0x5cb5cc]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.ImagePath
push 1
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtUnloadDriver]
cmp dword [ebp - 0xc], 1
mov esi, eax
jne 0x4d6859
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword ds:[ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4d6879
call fcn.004c1f60
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret