Function at 0x441840
Capabilities:
Check processdebugport

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x30], eax
test byte [0x5ae3b4], 1
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
jne 0x441969
mov edi, 0x5ae3b4
lock bts dword [edi], 0x1f
jae 0x441894
test byte [0x5ae3b4], 1
jmp 0x441880
jne 0x441969
xor edx, edx
mov ecx, edi
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x441969
push dword [0x5b1d58]
push 0x28
call sym.ProcessHacker.exe_PhCreateObject
mov edx, eax
mov ebx, 1
xor eax, eax
mov ecx, ebx
mov word [edx], ax
lock xadd dword [0x5b1d60], ecx
inc ecx
push dword [0x5b1d58]
dec cl
mov dword [edx + 4], eax
movzx eax, cl
push 0x28
mov byte [edx + 2], cl
mov dword [edx + 8], 0x441ca0
mov dword [edx + 0xc], str.ModuleProvider
mov dword [eax*4 + 0x5b4040], edx
mov dword [0x5b182c], edx
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lock xadd dword [0x5b1d60], ebx
inc ebx
dec bl
mov dword [ecx + 4], eax
movzx eax, bl
mov byte [ecx + 2], bl
mov dword [ecx + 8], 0x441e20
mov dword [ecx + 0xc], str.ModuleItem
mov dword [eax*4 + 0x5b4040], ecx
mov dword [0x5b1828], ecx
lock bts dword [edi], 0
jb 0x441969
mov esi, dword [0x5ae3b8]
test esi, esi
je 0x44193f
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [edi], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x441969
test esi, esi
je 0x441969
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5ae3b8], 0
mov eax, dword [0x5b17c4]
push dword [0x5b182c]
add eax, 0x70
mov dword [0x5b17c0], 0x70
push eax
call sym.ProcessHacker.exe_PhCreateObject
push 0x70
mov edi, eax
push 0
push edi
call fcn.0051fd40
add esp, 0xc
push dword [0x5b1d64]
push 0x28
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
push 0x80
push 4
push dword [0x5b1dac]
mov dword [esi], 4
mov dword [esi + 4], 0x441ea0
mov dword [esi + 8], 0x441ec0
mov dword [esi + 0xc], 0x20
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [esi + 0x10], eax
call fcn.0051fd40
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x14], eax
lea eax, [eax + eax*2]
shl eax, 2
push eax
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp byte [0x5b18bb], 0
mov dword [esi + 0x18], eax
lea eax, [edi + 0x10]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
lea eax, [edi + 0x20]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
lea eax, [edi + 0x30]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
lea eax, [edi + 0x40]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [esp + 0x10]
mov dword [edi], esi
lea esi, [edi + 0x54]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x50], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esi], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x68], 0
mov dword [esp + 0x18], 0
push eax
jne 0x441b24
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x18
push eax
push 0x410
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x441b30
cmp byte [0x5b18bb], 0
je 0x441b34
lea eax, [esp + 0x14]
push eax
mov edx, 0x410
mov ecx, esi
call fcn.004cbf00
test eax, eax
jns 0x441b4d
lfence
mov ebx, dword [esp + 0x10]
mov edx, 0x1010
push ebx
mov ecx, esi
call fcn.004c3180
mov dword [edi + 0x68], eax
jmp 0x441b51
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push ebx
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
lea esp, [esp]
test eax, eax
js 0x441b8a
push dword [esp + 0x10]
call sym.ProcessHacker.exe_PhGetFileName
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x58], eax
test ecx, ecx
je 0x441b8a
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x441b8a
call fcn.004b3960
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jb 0x441bd8
mov ecx, dword [esi]
test ecx, ecx
je 0x441bd8
call fcn.004f2ce0
mov dword [edi + 0x5c], eax
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jb 0x441bd8
push 0
push 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 7
push eax
push 0x34
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x441bd8
mov al, byte [esp + 0x18]
add al, al
xor al, byte [edi + 0x6c]
and al, 2
xor byte [edi + 0x6c], al
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x64
nop
jb 0x441c59
mov eax, dword [esi]
test eax, eax
je 0x441c59
push 0
push 0x20
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x20
push ecx
push 0
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x441c20
mov eax, dword [esp + 0x38]
shr eax, 8
shl al, 2
xor al, byte [edi + 0x6c]
and al, 4
xor byte [edi + 0x6c], al
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x6d
jb 0x441c59
push 0
push 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xf
push eax
push 0x34
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x441c59
mov al, byte [esp + 0x18]
shl al, 3
xor al, byte [edi + 0x6c]
and al, 8
xor byte [edi + 0x6c], al
lea eax, ds:[edi + 0x60]
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeSListHead]
push 0
mov edx, edi
mov ecx, 0x10
call fcn.00413fa0
mov ecx, dword ds:[esp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret