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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x62b748], 1
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
jne 0x45e916
mov edi, 0x62b748
lock bts dword [edi], 0x1f
setb al
test al, al
jne 0x45e904
push dword [0x630eec]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov ebx, 1
xor eax, eax
mov ecx, ebx
mov word [edx], ax
lock xadd dword [0x630ee8], ecx
inc ecx
push dword [0x630eec]
dec cl
mov dword [edx + 4], eax
movzx eax, cl
push 0x28
mov byte [edx + 2], cl
mov dword [edx + 8], 0x45ec00
mov dword [edx + 0xc], str.ModuleProvider
mov dword [eax*4 + 0x6334a0], edx
mov dword [0x630508], edx
call sym.SystemInformer.exe_PhCreateObject
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lock xadd dword [0x630ee8], ebx
inc ebx
dec bl
mov dword [ecx + 4], eax
cmp dword [0x62abb0], 0x64
movzx eax, bl
mov byte [ecx + 2], bl
mov dword [ecx + 8], 0x45ed80
mov dword [ecx + 0xc], str.ModuleItem
mov dword [eax*4 + 0x6334a0], ecx
mov dword [0x630504], ecx
jb 0x45e8f8
push 0x632b20
lea ebx, [ebx]
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x45e835
lock dec dword [0x632b28]
jmp 0x45e84e
mov eax, dword [0x632b30]
add eax, 8
push eax
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [esi + 8], 0x460360
lea ecx, [esi + 8]
mov dword [ecx + 4], 0
lea eax, [ebp - 0x34]
push eax
push ecx
push 0x4fa980
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0x28
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ntdll.dll_TpSimpleTryPost]
test eax, eax
jns 0x45e8f8
mov eax, dword [0x632b28]
cmp eax, dword [0x632b2c]
push esi
lfence
jae 0x45e8ea
push 0x632b20
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x632b28]
mov ecx, edi
call sym.SystemInformer.exe_PhfEndInitOnce
mov ebx, dword [ebp - 8]
jmp 0x45e916
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, edi
call sym.SystemInformer.exe_PhfEndInitOnce
mov ebx, dword [ebp - 8]
jmp 0x45e916
test byte [0x62b748], 1
jne 0x45e916
xor edx, edx
mov ecx, edi
call sym.SystemInformer.exe_PhfWaitForEvent
mov eax, dword [0x630464]
push dword [0x630508]
add eax, 0x70
mov dword [0x630460], 0x70
push eax
call sym.SystemInformer.exe_PhCreateObject
push 0x70
mov esi, eax
push 0
push esi
call fcn.0057e450
add esp, 0xc
push 0x14
push 0x45ee60
push 0x45ee00
push 4
call sym.SystemInformer.exe_PhCreateHashtable
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi], eax
lea eax, [esi + 0x10]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [esi + 0x20]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
lea eax, [esi + 0x30]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
lea eax, [esi + 0x40]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
lea eax, [esi + 0x54]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x50], ebx
mov dword [eax], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x68], 0
test ebx, ebx
jle 0x45ea1d
lfence
xor edi, edi
push ebx
push dword [edi + 0x5d08bc]
push eax
call sym.SystemInformer.exe_PhOpenProcess
mov dword [esi + 0x68], eax
test eax, eax
jns 0x45ea19
add edi, 4
lea eax, [esi + 0x54]
cmp edi, 0xc
jb 0x45e9f4
jmp 0x45ea1d
or byte [esi + 0x6c], 2
mov edx, 5
mov ecx, 0x630c1c
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x45ea36
call sym.SystemInformer.exe_PhfAcquireQueuedLockShared
mov ecx, ebx
call fcn.00488f50
mov edi, eax
test edi, edi
je 0x45ea48
lock inc dword [edi - 4]
xor edx, edx
mov eax, 5
mov ecx, 0x630c1c
lock cmpxchg dword [ecx], edx
cmp eax, 5
je 0x45ea65
lea ecx, [ecx]
call sym.SystemInformer.exe_PhfReleaseQueuedLockShared
test edi, edi
je 0x45eaaf
mov eax, dword [edi + 0x38]
mov dword [esi + 0x58], eax
test eax, eax
je 0x45ea77
lock inc dword [eax - 4]
mov eax, dword [edi + 0x2d0]
mov dword [esi + 0x5c], eax
test eax, eax
je 0x45ea88
lock inc dword [eax - 4]
mov ecx, dword [edi + 0x7c]
mov eax, 0xffffffff
shr ecx, 0xf
shl cl, 2
xor cl, byte [esi + 0x6c]
and cl, 4
xor byte [esi + 0x6c], cl
lea ecx, [edi - 8]
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45eaaf
call fcn.004f9e40
cmp dword [0x62abb0], 0x3f
jb 0x45eaee
mov eax, dword [esi + 0x54]
test eax, eax
je 0x45eaee
push 0
push 8
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 7
push ecx
push 0x34
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x45eaee
mov cl, byte [ebp - 8]
mov al, byte [esi + 0x6c]
and cl, 1
shl cl, 3
and al, 0xf7
or cl, al
mov byte [esi + 0x6c], cl
cmp dword [0x62abb0], 0x6d
jb 0x45eb7a
mov eax, dword ds:[esi + 0x54]
test eax, eax
je 0x45eb7a
cmp dword [esi + 0x50], 4
push 0
jne 0x45eb3e
push 4
lea eax, [ebp - 8]
push eax
push 0xdd
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
lea ecx, [ecx]
test eax, eax
js 0x45eb7a
mov ecx, dword [ebp - 8]
shr ecx, 8
shl cl, 4
xor cl, byte [esi + 0x6c]
and cl, 0x10
xor cl, byte [esi + 0x6c]
or cl, 0x20
mov byte [esi + 0x6c], cl
jmp 0x45eb7a
push 8
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0xf
push ecx
push 0x34
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x45eb7a
mov ecx, dword [ebp - 8]
mov edx, ecx
mov al, byte [esi + 0x6c]
and cl, 1
shr edx, 4
and al, 0xef
shl cl, 4
shl dl, 5
or cl, al
xor dl, cl
and dl, 0x20
xor dl, cl
mov byte [esi + 0x6c], dl
mov eax, dword [0x633930]
dec eax
cmp eax, 3
ja case.0x45eb85.3
jmp dword [eax*4 + 0x45ebdc]
mov byte [esi + 0x6d], 0
jmp 0x45eba2
mov byte [esi + 0x6d], 1
jmp 0x45eba2
mov byte [esi + 0x6d], 3
jmp 0x45eba2
mov byte [esi + 0x6d], 2
lea eax, [esi + 0x60]
test al, 7
jne 0x45ebd0
xor ecx, ecx
mov edx, esi
mov dword [eax], ecx
mov dword [eax + 4], ecx
push ecx
mov ecx, 0x10
call fcn.004210d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
push 0x80000002
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
mov ebx, gs
inc ebp
add byte [edx - 0x61ffba15], dl
jmp 0x45ec2c
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x24]
cmp esi, edx
jae 0x45ec55
and al, 0x3b
bnd jae 0x45ec55
mov edi, dword [ecx]
add edi, 8
mov eax, edi
imul eax, esi
add eax, dword [ecx + 0x18]
mov edi, edi
mov ecx, eax
inc esi
add eax, edi
cmp dword [ecx], 0xffffffff
jne 0x45ed45
cmp esi, edx
jb 0x45ec40
or edi, 0xffffffff
lea ecx, [ebx + 4]
call sym.SystemInformer.exe_PhfReleaseFastLockExclusive
mov ecx, dword [ebx]
mov eax, edi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45ec71
call fcn.004f9e40
mov eax, dword [ebx + 8]
test eax, eax
je 0x45ec86
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x45ec9b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx + 0xc], 0
lea eax, ds:[ebx + 0x60]
push eax
call dword [sym.imp.ntdll.dll_RtlInterlockedFlushSList]
mov esi, eax
test esi, esi
je 0x45ecfe
or ebx, 0xffffffff
nop
mov edi, esi
mov esi, dword [esi]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x45eccd
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45eccd
call fcn.004f9e40
mov ecx, dword [edi + 8]
mov eax, ebx
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45ece5
lea ecx, [ecx]
call fcn.004f9e40
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
jne 0x45ecb0
mov ebx, dword [ebp + 8]
or edi, 0xffffffff
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x45ed17
lea ecx, [eax - 8]
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45ed17
call fcn.004f9e40
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x45ed2e
lea ecx, [eax - 8]
lock xadd dword [ecx + 4], edi
dec edi
jne 0x45ed2e
call fcn.004f9e40
mov eax, dword [ebx + 0x54]
pop edi
pop esi
pop ebx
test eax, eax
je 0x45ed3f
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ecx + 8]
or edi, 0xffffffff
add ecx, 0xfffffff8
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45ec28
lea esp, [esp]
call fcn.004f9e40
jmp 0x45ec28