joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5540
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.004f30a0
test eax, eax
jne 0x4c556c
mov eax, 0xc00000bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x100
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], edi
test byte [0x5b036c], 1
mov esi, 0x5a4d
mov eax, 0x5b036c
jne 0x4c56f4
lock bts dword [eax], 0x1f
jb 0x4c56e2
mov ecx, 0x56c3b8
call fcn.004b2780
mov ecx, eax
test ecx, ecx
jne 0x4c55d0
push 0x56c3b8
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
test ecx, ecx
je 0x4c5691
cmp word [ecx], si
jne 0x4c5691
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x4c5691
cmp eax, 0x7fffffff
jae 0x4c5691
cmp dword ds:[eax + ecx], 0x4550
jne 0x4c5691
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x4c5691
cmp dword [edx + 4], 0
je 0x4c5691
push 0
push str.NtQueryInformationTransaction
add eax, ecx
push eax
push edx
call fcn.004b2920
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c5691
mov eax, dword ds:[0x7ffe0324]
mov edi, dword [0x7ffe0320]
cmp eax, dword [0x7ffe0328]
je 0x4c5664
mov ecx, 0x7ffe0324
mov edx, 0x7ffe0320
mov esi, 0x7ffe0328
pause
mov eax, dword [ecx]
mov edi, dword [edx]
cmp eax, dword [esi]
jne 0x4c5657
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 [0x5b3f58], eax
xor eax, dword [esp + 0x10]
mov dword [0x5b3f00], eax
mov eax, 0x5b036c
lock bts dword [eax], 0
jb 0x4c56f4
mov esi, dword [0x5b0370]
test esi, esi
je 0x4c56b0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x5b036c
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4c56f4
test esi, esi
je 0x4c56f4
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5b0370], 0
nop
jmp 0x4c56f4
test byte [0x5b036c], 1
jne 0x4c56f4
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov esi, dword [0x5b3f00]
test esi, esi
je 0x4c570b
mov eax, dword [0x5b3f58]
test eax, eax
je 0x4c570b
xor esi, eax
jmp 0x4c570d
xor esi, esi
push 0
push ebx
push edi
push 1
push dword [esp + 0x24]
mov ecx, esi
call dword [0x5404bc]
nop
call esi
mov esi, eax
cmp esi, 0x80000005
jne 0x4c5773
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x100000
ja 0x4c5765
push ebx
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], eax
jmp 0x4c5585
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esi, esi
js 0x4c5787
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 [0x5b1dac]
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 0x4c57c0
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.004f2f60
test eax, eax
jne 0x4c57ec
mov eax, 0xc00000bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x100
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], edi
test byte [0x5b037c], 1
mov esi, 0x5a4d
mov eax, 0x5b037c
jne 0x4c5974
lock bts dword [eax], 0x1f
jb 0x4c5962
mov ecx, 0x56c3b8
call fcn.004b2780
mov ecx, eax
test ecx, ecx
jne 0x4c5850
push 0x56c3b8
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
test ecx, ecx
je 0x4c5911
cmp word [ecx], si
jne 0x4c5911
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x4c5911
cmp eax, 0x7fffffff
jae 0x4c5911
cmp dword ds:[eax + ecx], 0x4550
jne 0x4c5911
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x4c5911
cmp dword [edx + 4], 0
je 0x4c5911
push 0
push str.NtQueryInformationResourceManager
add eax, ecx
push eax
push edx
call fcn.004b2920
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c5911
mov eax, dword ds:[0x7ffe0324]
mov edi, dword [0x7ffe0320]
cmp eax, dword [0x7ffe0328]
je 0x4c58e4
mov ecx, 0x7ffe0324
mov edx, 0x7ffe0320
mov esi, 0x7ffe0328
pause
mov eax, dword [ecx]
mov edi, dword [edx]
cmp eax, dword [esi]
jne 0x4c58d7
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 [0x5b3f48], eax
xor eax, dword [esp + 0x10]
mov dword [0x5b3f8c], eax
mov eax, 0x5b037c
lock bts dword [eax], 0
jb 0x4c5974
mov esi, dword [0x5b0380]
test esi, esi
je 0x4c5930
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x5b037c
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4c5974
test esi, esi
je 0x4c5974
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5b0380], 0
nop
jmp 0x4c5974
test byte [0x5b037c], 1
jne 0x4c5974
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov esi, dword [0x5b3f8c]
test esi, esi
je 0x4c598b
mov eax, dword [0x5b3f48]
test eax, eax
je 0x4c598b
xor esi, eax
jmp 0x4c598d
xor esi, esi
push 0
push ebx
push edi
push 0
push dword [esp + 0x24]
mov ecx, esi
call dword [0x5404bc]
nop
call esi
mov esi, eax
cmp esi, 0x80000005
jne 0x4c59f3
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x100000
ja 0x4c59e5
push ebx
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], eax
jmp 0x4c5805
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esi, esi
js 0x4c5a07
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 [0x5b1dac]
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 0x4c5ce0
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 [0x5b1d70]
mov edi, ecx
mov esi, dword [edi]
add esi, dword [0x5aff20]
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 [0x5aff20]
push dword [0x5aff24]
push dword [ebx + 4]
call fcn.00521a30
mov eax, dword ds:[ebx + 4]
add esp, 0xc
add eax, dword [0x5aff20]
push dword [edi]
push dword [edi + 4]
push eax
call fcn.00521a30
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 0x4c5d87
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4c5d7b
call fcn.004b3960
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 0x4c5e86
cmp dword [ebp - 0xc], 1
jne 0x4c5e5e
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], 0x57f028
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 [0x5aff30]
add eax, 2
mov dword [ebp - 0x14], 0x140012
push eax
push dword [0x5aff34]
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 0x4c5e79
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 0x4c5e99
call fcn.004b3960
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4c6bd7
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4c6bd7
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x4c6bd7
cmp dword [eax + ecx], 0x4550
jne 0x4c6bd7
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4c6bd7
cmp dword ds:[edx + 4], 0
je 0x4c6bd7
push dword [ebp + 0x10]
add eax, ecx
push dword [ebp + 0xc]
push eax
push edx
call fcn.004b2920
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c6e00
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x800
push 4
push dword [0x5b1dac]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
cmp ecx, 0xc0000004
jne 0x4c6e6f
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
lfence
test ecx, ecx
js 0x4c6e7b
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c7240
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x5aff78]
push edi
push esi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x4c72be
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x4c72dd
push esi
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x4c7273
lfence
test ebx, ebx
jns 0x4c72e9
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
pop ebp
ret 4
mov eax, dword [0x5aff78]
cmp esi, 0x100000
cmovbe eax, esi
mov dword [0x5aff78], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4c7320
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x5afe94]
push edi
push esi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x4c739e
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x4c73bd
push esi
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x4c7353
lfence
test ebx, ebx
jns 0x4c73c9
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
pop ebp
ret 4
mov eax, dword [0x5afe94]
cmp esi, 0x200000
cmovbe eax, esi
mov dword [0x5afe94], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4c74e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x200
push esi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x12
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x4c755e
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x4c757d
push esi
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x12
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x4c7512
lfence
test ebx, ebx
jns 0x4c7589
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4c75a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, 0x200
mov dword [ebp - 4], ecx
push esi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x90
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x4c7628
lea esp, [esp]
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x4c7647
push esi
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x90
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x4c75e0
lfence
test ebx, ebx
jns 0x4c7653
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c7680
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x100
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 8]
mov edi, eax
push 0
push 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push 0x58
mov dword [ebp - 0x10], 0x1000000
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, 0xc0000004
jne 0x4c7701
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [ebp - 0xe]
push eax
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
mov edi, eax
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x58
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
lfence
test esi, esi
jns 0x4c7723
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ax, word [ebp - 0x10]
push ebx
test ax, ax
jne 0x4c7736
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ebx, eax
jmp 0x4c7778
push dword [0x5b1d70]
mov ecx, dword [ebp - 0xc]
movzx eax, ax
mov dword [ebp - 4], eax
add eax, 0xa
push eax
mov dword [ebp - 8], ecx
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [ebp - 4]
mov ebx, eax
lea eax, [ebx + 8]
xor edx, edx
mov dword [ebx + 4], eax
mov dword [ebx], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4c7778
push ecx
push eax
push dword [ebx + 4]
call fcn.00521a30
add esp, 0xc
mov eax, dword [ebp + 0xc]
push edi
push 0
push dword [0x5b1dac]
mov dword [eax], ebx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4c80e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, 0x400
mov dword [esp + 0x1c], edx
push ebx
push 4
push dword [0x5b1dac]
mov esi, ecx
mov byte [esp + 0x20], 1
mov dword [esp + 0x18], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x28]
push ebx
push edi
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x4c8154
push 0
push 0
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x20]
cmp esi, 0x80000005
je 0x4c8168
lea esp, [esp]
cmp esi, 0xc0000004
jne 0x4c818e
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0xc]
jmp 0x4c810f
mov dword [esp + 0x18], ebx
cmp esi, 0x80000006
je 0x4c8205
test esi, esi
js 0x4c8207
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, edi
push edi
mov dword [esp + 0x18], 0
call dword [0x5404bc]
call dword [ebp + 0x10]
test al, al
je 0x4c8207
lea esp, [esp]
mov eax, dword [ebx]
test eax, eax
je 0x4c81ef
mov ecx, dword ds:[esp + 0x10]
push dword [ebp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
lea ebx, [ecx + edi]
mov ecx, dword [ebp + 0x10]
push ebx
call dword [0x5404bc]
call dword [ebp + 0x10]
test al, al
jne 0x4c81c0
jmp 0x4c8207
mov ebx, dword ds:[esp + 0x18]
mov esi, dword [esp + 0xc]
mov byte [esp + 0x14], 0
jmp 0x4c8111
xor esi, esi
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c9c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
mov ebx, 0x10
push esi
push edi
test ecx, ecx
je 0x4c9ca5
movzx eax, word [ecx]
mov word [esp + 0x10], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 0x12], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
jbe 0x4c9cb3
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
push 0x100
push 4
push dword [0x5b1dac]
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x4c9d25
push edi
push 0
cmp esi, 0x80000005
jne 0x4c9d35
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
jne 0x4c9cd0
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4c9d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
test ecx, ecx
je 0x4c9d94
movzx eax, word [ecx]
mov word [ebp - 0xc], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [ebp - 0xa], ax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
jbe 0x4c9da0
mov eax, 0xc0000106
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4ca8c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4ca8e3
mov eax, dword [esi + 4]
jmp 0x4ca8e5
xor eax, eax
push 0x21
push 1
push 5
push 0x10
push 0x130089
push eax
lea eax, [esp + 0x2c]
push eax
call sym.ProcessHacker.exe_PhCreateFileWin32
mov ebx, eax
test ebx, ebx
js 0x4ca95c
mov edi, dword [esp + 0x14]
mov edx, 1
push esi
push 0x4ca700
push 0
push 0
mov ecx, edi
call fcn.004c80e0
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x6a
mov ebx, eax
jb 0x4ca93b
push 0x40
mov dword [esp + 0x18], 0x11
lea eax, [esp + 0x18]
push 4
jmp 0x4ca948
push 0xd
mov byte [esp + 0x17], 1
lea eax, [esp + 0x17]
push 1
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push edi
call dword [sym.imp.ntdll.dll_NtClose]
lea esp, [esp]
test esi, esi
je 0x4ca969
mov ecx, dword [esi + 4]
jmp 0x4ca96b
xor ecx, ecx
lea edx, [esp + 0x20]
call fcn.004ca2c0
test eax, eax
jns 0x4ca99d
cmp eax, 0xc0000043
je 0x4ca99d
nop
cmp eax, 0xc0000022
je 0x4ca99d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4
Function at 0x4cac00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x10], 0
push str.DeviceNamedPipe_
call sym.ProcessHacker.exe_PhConcatStrings2
mov edi, eax
lea eax, [esp + 0x18]
movzx ecx, word [edi]
mov word [esp + 0x18], cx
movzx ecx, word [edi]
add cx, 2
mov word [esp + 0x1a], cx
mov ecx, dword [edi + 4]
mov dword [esp + 0x50], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call fcn.004f36e0
mov esi, eax
mov ecx, eax
call dword [0x5404bc]
call esi
test eax, eax
js 0x4cacb4
push 1
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
push 0
push dword [esp + 0x10]
lea eax, [esp + 0x3c]
push 1
push eax
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
lea eax, [esp + 0x34]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff676980
push eax
push 0x1000
push 0x1000
push 0xff
push 0
push 1
push 1
push 0x22
push 3
push 3
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
push eax
lea eax, [esp + 0x74]
push eax
push 0x12019f
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.ntdll.dll_NtCreateNamedPipeFile]
mov esi, eax
test esi, esi
js 0x4cad0d
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [edx], ecx
cmp dword [esp + 0xc], 0
je 0x4cad2c
mov eax, dword fs:[0x18]
push dword [esp + 0xc]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4cad3f
call fcn.004b3960
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8