Function at 0x4682e0
Capabilities:
Check processdebugport
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5c7004]
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 0x468370
movzx eax, word [edx + 0x38]
test ax, ax
jne 0x468331
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov edx, eax
jmp 0x4683a2
push dword [0x5cd4f8]
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 0x4683a2
push esi
push edi
push dword [edx + 4]
call fcn.00537fe0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4683a2
push dword [0x5cd4f8]
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 0x468425
push 0xa
lea eax, [ebx + 0x8c]
push eax
push ecx
call fcn.005388ed
add esp, 0xc
lea eax, [ebx + 0xa6]
push 0xa
push eax
push dword [ebx + 0x14]
call fcn.005388ed
add esp, 0xc
lea eax, [ebx + 0xc0]
push 0xa
push eax
push dword [ebx + 0x1c]
call fcn.005388ed
mov ecx, dword [ebx + 0x10]
add esp, 0xc
test ecx, ecx
jle 0x468425
push ecx
mov edx, 0x400
lea ecx, [ebx + 0x28]
call fcn.004d3720
lea ecx, [ecx]
test eax, eax
js 0x46840b
or dword [ebx + 0x74], 0x80
cmp dword [ebx + 0x28], 0
jne 0x468425
push dword ds:[ebx + 0x10]
mov edx, 0x1000
lea ecx, [ebx + 0x28]
call fcn.004d3720
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x468470
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 0x468470
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 0x468602
lea esp, [esp]
test eax, eax
jle 0x468617
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push eax
xor edi, edi
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
lea ecx, [ecx]
test eax, eax
js 0x4684ab
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4685b0
test dword [ebx + 0x74], 0x10000
jne 0x4685b0
push 0x10c
push 4
push dword [0x5cd55c]
mov dword [esp + 0x24], edi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x10c
push esi
push 0x2b
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
cmp eax, 0xc0000004
jne 0x468546
push esi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword ds:[esp + 0x18]
push esi
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword ds:[esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push esi
mov esi, dword [esp + 0x24]
push esi
push 0x2b
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x4685a1
cmp word [esi], di
jne 0x468558
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov edi, eax
jmp 0x4685a1
lfence
movzx eax, word [esi]
push dword [0x5cd4f8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], eax
add eax, 0xa
push eax
mov dword [esp + 0x18], ecx
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [edi + 8]
xor edx, edx
mov dword [edi + 4], eax
mov dword [edi], ecx
mov word [eax + ecx], dx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4685a1
push ecx
push eax
push dword [edi + 4]
call fcn.00537fe0
add esp, 0xc
push esi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebx + 0x30]
or esi, 0xffffffff
test eax, eax
je 0x4685d8
cmp dword [eax], 0
jne 0x4685d8
lea ecx, [eax - 8]
mov dword [ebx + 0x30], 0
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4685d8
call fcn.004c1f60
test edi, edi
je 0x4685f2
cmp dword ds:[edi], 0
jne 0x4685fb
lea ecx, [edi - 8]
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4685f2
call fcn.004c1f60
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x468617
jmp 0x46860e
mov dword ds:[ebx + 0x2c], edi
jmp 0x468617
call sym.ProcessHacker.exe_PhGetKernelFileName
test eax, eax
je 0x468617
mov dword [ebx + 0x30], eax
push eax
call sym.ProcessHacker.exe_PhGetFileName
mov dword [ebx + 0x2c], eax
mov esi, dword ds:[ebx + 0x28]
test esi, esi
je 0x468755
cmp dword [ebx + 0x10], 4
je 0x468755
cmp byte [0x5cd02b], 0
lea eax, [esp + 0x18]
mov edi, 8
push eax
jne 0x46866b
push edi
push esi
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x468674
cmp byte [0x5cd02b], 0
jmp 0x468660
je 0x4687cc
lea eax, [esp + 0x18]
push eax
mov edx, edi
mov ecx, esi
call fcn.004dd120
test eax, eax
js 0x4687cc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov edx, 1
call fcn.004d54e0
test eax, eax
js 0x4686ed
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 [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.00537fe0
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov dword [edi + 0x50], esi
mov ecx, dword [ebx]
call fcn.00467930
push ebx
push 0
push dword [0x5cd55c]
mov dword [edi + 0x2a4], eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, edi
mov edi, 8
lea eax, ds:[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 0x468724
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 0x468749
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 0x4687cc
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x468765
lea esp, [esp]
cmp eax, 4
jne 0x4687cc
push 0x5c7c40
call dword [sym.imp.ntdll.dll_RtlLengthSid]
mov edi, eax
push edi
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push 0x5c7c40
push esi
call fcn.00537fe0
mov dword ds:[ebx + 0x50], esi
add esp, 0xc
mov eax, dword [0x5ce1a8]
test eax, eax
je 0x4687c4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x5c7c40
push ecx
push eax
call sym.ProcessHacker.exe_PhFindEntryHashtable
test eax, eax
je 0x4687c4
mov eax, dword [eax + 4]
lock inc dword [eax - 4]
jmp 0x4687c6
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 0x46882b
cmp dword [0x5c7aa8], 0x3f
jb 0x468810
push 0
push 1
lea ecx, [esp + 0x2f]
push ecx
push 0x3d
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop
test eax, eax
js 0x468832
mov al, byte [esp + 0x27]
mov byte [ebx + 0x2b4], al
jmp 0x468832
test dword [ebx + 0x74], 0x4000
je 0x468832
mov al, byte [ebx + 0x2b4]
and al, 0xfa
or al, 2
mov byte [ebx + 0x2b4], al
jmp 0x468832
mov byte [ebx + 0x2b4], 0xff
cmp dword [0x5c7aa8], 0x3f
jb 0x46887d
mov eax, dword ds:[ebx + 0x28]
test eax, eax
je 0x46887d
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]
mov edi, edi
test eax, eax
js 0x46887d
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 [0x5c7aa8], 0x6d
jb 0x4688fd
cmp dword [ebx + 0x10], 4
jne 0x4688be
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0xdd
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x4688fd
mov eax, dword [esp + 0x1c]
shl eax, 0xa
xor eax, dword [ebx + 0x74]
and eax, 0x40000
xor dword [ebx + 0x74], eax
jmp 0x4688fd
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4688fd
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]
nop
test eax, eax
js 0x4688fd
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 0x46891c
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x46891c
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx + 0x28], 0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret