Function at 0x4624a0
Capabilities:
Check processdebugport

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x48]
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push esi
push edi
mov dword [esp + 0x28], ebx
cmp dword [ebx + 0x10], 0
mov dword [ebx + 0x14], eax
mov eax, dword [edx + 0x50]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
je 0x462530
movzx eax, word [edx + 0x38]
test ax, ax
jne 0x4624f1
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov edx, eax
jmp 0x462562
push dword [0x5b1d70]
mov edi, dword [edx + 0x3c]
mov esi, eax
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edx, eax
xor ecx, ecx
mov dword [esp + 0x10], edx
lea eax, [edx + 8]
mov dword [edx], esi
mov dword [edx + 4], eax
mov word [eax + esi], cx
test edi, edi
je 0x462562
push esi
push edi
push dword [edx + 4]
call fcn.00521a30
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x462562
push dword [0x5b1d70]
push 0x30
call sym.ProcessHacker.exe_PhCreateObject
mov edx, eax
xor ecx, ecx
lea eax, [edx + 8]
mov esi, str.System_Idle_Process
mov dword [edx + 4], eax
mov dword [edx], 0x26
mov word [eax + 0x26], cx
mov ecx, 9
mov edi, dword [edx + 4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebx + 0x18], edx
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x4625e5
push 0xa
lea eax, [ebx + 0x8c]
push eax
push ecx
call fcn.00522341
add esp, 0xc
lea eax, [ebx + 0xa6]
push 0xa
push eax
push dword [ebx + 0x14]
call fcn.00522341
add esp, 0xc
lea eax, [ebx + 0xc0]
push 0xa
push eax
push dword [ebx + 0x1c]
call fcn.00522341
mov ecx, dword [ebx + 0x10]
add esp, 0xc
test ecx, ecx
jle 0x4625e5
push ecx
mov edx, 0x400
lea ecx, [ebx + 0x28]
call fcn.004c3180
lea ecx, [ecx]
test eax, eax
js 0x4625cb
or dword [ebx + 0x74], 0x80
cmp dword [ebx + 0x28], 0
jne 0x4625e5
push dword ds:[ebx + 0x10]
mov edx, 0x1000
lea ecx, [ebx + 0x28]
call fcn.004c3180
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x462630
push 0
push 0x20
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0x20
push ecx
push 0
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x462630
mov eax, dword [esp + 0x48]
mov ecx, eax
and ecx, 1
and eax, 0x182
shl ecx, 6
or ecx, eax
mov eax, dword [ebx + 0x74]
or ecx, 8
and eax, 0xfffe3dff
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x74], ecx
mov eax, dword [ebx + 0x10]
cmp eax, 4
je 0x462756
lea esp, [esp]
test eax, eax
jle 0x46276b
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push eax
xor esi, esi
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
lea ecx, [ecx]
test eax, eax
js 0x46266b
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x462706
test dword ds:[ebx + 0x74], 0x10000
jne 0x462706
lea eax, [esp + 0x10]
mov edx, 0x2b
push eax
call fcn.004c3640
test eax, eax
js 0x462706
mov edi, dword [esp + 0x10]
movzx eax, word [edi]
test ax, ax
jne 0x4626ae
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x4626f1
push dword [0x5b1d70]
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
add eax, 0xa
push eax
mov dword [esp + 0x20], ecx
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [esp + 0x10]
mov esi, eax
lea eax, [esi + 8]
xor edx, edx
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4626f1
push ecx
push eax
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebx + 0x30]
or edi, 0xffffffff
test eax, eax
je 0x46272e
cmp dword [eax], 0
jne 0x46272e
lea ecx, [eax - 8]
mov dword [ebx + 0x30], 0
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x46272e
call fcn.004b3960
test esi, esi
je 0x462748
cmp dword [esi], 0
jne 0x462751
lea ecx, ds:[esi - 8]
lock xadd dword [ecx + 4], edi
dec edi
jne 0x462748
call fcn.004b3960
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x46276b
jmp 0x462762
mov dword [ebx + 0x2c], esi
jmp 0x46276b
call sym.ProcessHacker.exe_PhGetKernelFileName
test eax, eax
je 0x46276b
mov dword [ebx + 0x30], eax
push eax
call sym.ProcessHacker.exe_PhGetFileName
mov dword [ebx + 0x2c], eax
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x4628ad
cmp dword ds:[ebx + 0x10], 4
je 0x4628ad
cmp byte [0x5b18bb], 0
lea eax, [esp + 0x18]
mov edi, 8
push eax
jne 0x4627bf
push edi
push esi
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x4627c8
cmp byte [0x5b18bb], 0
je 0x46291c
lea eax, [esp + 0x18]
push eax
mov edx, edi
mov ecx, esi
call fcn.004cbfa0
test eax, eax
js 0x46291c
mov ecx, dword ds:[esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov edx, 1
call fcn.004c4b80
test eax, eax
js 0x462843
mov ebx, dword [esp + 0x10]
push dword [ebx]
call dword [sym.imp.ntdll.dll_RtlLengthSid]
mov ebx, dword [ebx]
mov edi, eax
push edi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.00521a30
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov dword [edi + 0x50], esi
mov ecx, dword [ebx]
call fcn.00461cb0
push ebx
push 0
push dword [0x5b1dac]
mov dword [edi + 0x2a4], eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, edi
mov edi, 8
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push 0x12
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x462879
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, 2
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x74]
cmove ecx, edi
and eax, 0xfffffff7
or ecx, eax
mov dword [ebx + 0x74], ecx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhGetTokenIntegrityLevel
test eax, eax
js 0x46289e
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x5c], eax
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x46291c
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4628b9
cmp eax, 4
jne 0x46291c
push 0x5acb1c
mov edi, edi
call dword [sym.imp.ntdll.dll_RtlLengthSid]
mov edi, eax
push edi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push 0x5acb1c
push esi
call fcn.00521a30
mov dword [ebx + 0x50], esi
add esp, 0xc
mov eax, dword [0x5b29ec]
test eax, eax
je 0x462914
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x5acb1c
push ecx
push eax
call sym.ProcessHacker.exe_PhFindEntryHashtable
test eax, eax
je 0x462914
mov eax, dword [eax + 4]
lock inc dword [eax - 4]
jmp 0x462916
xor eax, eax
mov dword [ebx + 0x2a4], eax
push dword [ebx + 0x2c]
push dword [ebx + 0x10]
call sym.ProcessHacker.exe__PhGetProcessKnownTypeEx_8
mov dword [ebx + 0x2b0], eax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x46297a
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jb 0x46295f
push 0
push 1
lea ecx, [esp + 0x2f]
push ecx
push 0x3d
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x462981
mov al, byte [esp + 0x27]
mov byte [ebx + 0x2b4], al
jmp 0x462981
test dword [ebx + 0x74], 0x4000
je 0x462981
mov al, byte [ebx + 0x2b4]
and al, 0xfa
or al, 2
mov byte [ebx + 0x2b4], al
jmp 0x462981
mov byte [ebx + 0x2b4], 0xff
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jb 0x4629c8
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4629c8
push 0
push 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 7
push ecx
push 0x34
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x4629c8
mov al, byte [esp + 0x20]
and al, 1
movzx ecx, al
mov eax, dword [ebx + 0x74]
shl ecx, 0x11
and eax, 0xfffdffff
or ecx, eax
mov dword [ebx + 0x74], ecx
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x6d
jb 0x462a0f
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x462a0f
push 0
push 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0xf
push ecx
push 0x34
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x462a0f
mov al, byte [esp + 0x20]
and al, 1
movzx ecx, al
mov eax, dword [ebx + 0x74]
shl ecx, 0x12
and eax, 0xfffbffff
or ecx, eax
mov dword [ebx + 0x74], ecx
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0
jne 0x462a32
mov eax, dword ds:[ebx + 0x28]
test eax, eax
je 0x462a32
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx + 0x28], 0
mov ecx, dword ds:[esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret