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

Disassembly:
mov qword ss:[rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0xf0], rax
xor r14d, r14d
mov rsi, rcx
test byte [0x14023aaf8], 1
jne 0x14005d45c
lock bts qword [0x14023aaf8], 0x1f
jae 0x14005d3b2
test byte [0x14023aaf8], 1
jne 0x14005d45c
xor edx, edx
lea rcx, [0x14023aaf8]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x14005d45c
mov rdx, qword [0x140241890]
mov ecx, 0x40
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, 1
mov ecx, ebx
mov word [rax], r14w
lock xadd dword [0x14024185c], ecx
movzx edx, cl
lea rdi, [0x140245840]
lea rcx, [0x14005da40]
mov byte [rax + 2], dl
mov qword [rax + 8], rcx
lea rcx, str.ModuleProvider
mov qword [rax + 0x10], rcx
lea ecx, [rbx + 0x3f]
mov qword [rdi + rdx*8], rax
mov rdx, qword [0x140241890]
mov dword [rax + 4], r14d
mov qword [0x140240e58], rax
call sym.ProcessHacker.exe_PhCreateObject
mov word [rax], r14w
lock xadd dword [0x14024185c], ebx
movzx ebx, bl
lea rdx, [0x14005dc20]
mov qword [rax + 8], rdx
lea rcx, [0x14023aaf8]
lea rdx, str.ModuleItem
mov byte [rax + 2], bl
mov qword [rax + 0x10], rdx
mov qword [rdi + rbx*8], rax
mov dword [rax + 4], r14d
mov qword [0x140240e50], rax
call sym.ProcessHacker.exe_PhfSetEvent
mov rcx, qword [0x140240d88]
mov rdx, qword [0x140240e58]
add rcx, 0xe0
mov qword [0x140240d80], 0xe0
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
mov rdi, rax
call fcn.1401868c0
mov rdx, qword [0x1402418d0]
mov ecx, 0x48
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [0x140241998]
mov rbx, rax
mov edx, 4
mov dword [rax], 8
lea rax, [0x14005dce0]
mov qword [rbx + 8], rax
lea rax, [0x14005dcf0]
lea r8d, [rdx + 0x7c]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], 0x20
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rbx + 0x18]
mov edx, 0xff
shl r8, 2
mov rcx, rax
mov qword [rbx + 0x20], rax
call fcn.1401868c0
mov r8d, dword [rbx + 0x18]
mov edx, 4
mov rcx, qword [0x140241998]
mov dword [rbx + 0x28], r8d
shl r8, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp byte [0x140240e3f], r14b
mov qword [rbx + 0x30], rax
lea rax, [rdi + 0x20]
mov dword [rbx + 0x38], r14d
mov dword [rbx + 0x3c], 0xffffffff
mov dword [rbx + 0x40], r14d
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
lea rax, [rdi + 0x40]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
lea rax, [rdi + 0x60]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
lea rax, [rdi + 0x80]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov dword [rdi + 8], r14d
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov qword [rdi], rbx
lea rbx, [rdi + 0xa8]
mov qword [rdi + 0xa0], rsi
mov qword [rbx], r14
mov qword [rdi + 0xb8], r14
mov dword [rdi + 0xd0], r14d
mov qword [rdi + 0xb0], r14
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
je 0x14005d60e
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rbx
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x80], 0x410
mov dword [rbp - 0x70], r14d
call fcn.14011f9e0
mov dword [rsp + 0x48], r14d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x58]
jmp 0x14005d698
xorps xmm0, xmm0
mov dword [rbp - 8], 0x30
lea r9, [rsp + 0x58]
mov qword [rbp], r14
lea r8, [rbp - 8]
mov dword [rbp + 0x10], r14d
mov edx, 0x410
mov qword [rbp + 8], r14
mov rcx, rbx
movdqu xmmword [rbp + 0x18], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x14005d6ba
movzx eax, byte [0x140240e3f]
test al, al
je 0x14005d6cf
lea rax, [rsp + 0x58]
mov qword [rbp - 0x68], rbx
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x60], 0x410
mov dword [rbp - 0x50], r14d
call fcn.14011f9e0
mov dword [rsp + 0x48], r14d
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x68]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
nop word [rax + rax]
test eax, eax
jns 0x14005d7f2
movzx eax, byte [0x140240e3f]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r14
test al, al
je 0x14005d725
lea rax, [rsp + 0x68]
mov qword [rbp - 0x48], rbx
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x40], 0x1010
mov dword [rbp - 0x30], r14d
call fcn.14011f9e0
mov dword ss:[rsp + 0x48], r14d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x78]
jmp 0x14005d7b3
lfence
xorps xmm0, xmm0
mov dword [rbp + 0x28], 0x30
lea r9, [rsp + 0x68]
mov qword [rbp + 0x30], r14
lea r8, [rbp + 0x28]
mov dword [rbp + 0x40], r14d
mov edx, 0x1010
mov qword [rbp + 0x38], r14
mov rcx, rbx
movdqu xmmword [rbp + 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
nop word [rax + rax]
cmp eax, 0xc0000022
jne 0x14005d7d5
cmp byte [0x140240e3f], r14b
je 0x14005d7d5
lea rax, [rsp + 0x68]
mov qword [rbp - 0x28], rbx
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 0x1010
mov dword [rbp - 0x10], r14d
call fcn.14011f9e0
mov dword [rsp + 0x48], r14d
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x88]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jns 0x14005d7ec
lfence
mov r8, rsi
mov edx, 0x1000
mov rcx, rbx
call fcn.140110fc0
mov dword [rdi + 0xd0], eax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
nop
test eax, eax
js 0x14005d834
mov rcx, qword [rdi + 0xb0]
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0xb0], rax
test rcx, rcx
je 0x14005d834
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005d834
call fcn.1400fbcc0
cmp dword [0x140237d34], 0x3e
jb 0x14005d8a2
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005d8a2
call fcn.140129160
cmp dword [0x140237d34], 0x3f
mov qword [rdi + 0xb8], rax
jb 0x14005d8a2
mov rcx, qword ds:[rbx]
lea r8, [rbp + 0xa8]
mov r9d, 8
mov dword [rbp + 0xa8], 7
mov qword [rsp + 0x20], r14
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14005d8a2
movzx eax, byte [rbp + 0xac]
and byte [rdi + 0xd4], 0xfd
and al, 1
add al, al
or byte [rdi + 0xd4], al
cmp dword [0x140237d34], 0x64
jb 0x14005d9b3
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005d9b3
mov r9d, 0x40
mov qword [rbp + 0xb0], 0x40
lea r8, [rbp + 0xb0]
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14005d905
mov eax, dword [rbp + 0xe8]
and byte [rdi + 0xd4], 0xfb
shr eax, 8
and al, 1
shl al, 2
or byte [rdi + 0xd4], al
cmp dword [0x140237d34], 0x6d
jb 0x14005d9b3
cmp qword [rdi + 0xa0], 4
jne 0x14005d958
xor r9d, r9d
lea rdx, [rbp + 0x98]
mov ecx, 0xdd
lea r8d, [r9 + 4]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x14005d9b3
mov eax, dword [rbp + 0x98]
and byte [rdi + 0xd4], 0xf7
shr eax, 8
and al, 1
or al, 2
shl al, 3
or byte [rdi + 0xd4], al
jmp 0x14005d9b3
mov rcx, qword ds:[rbx]
lea r8, [rbp + 0xa0]
mov r9d, 8
mov dword [rbp + 0xa0], 0xf
mov qword [rsp + 0x20], r14
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14005d9b3
mov ecx, dword [rbp + 0xa4]
movzx eax, byte [rbp + 0xa4]
and byte [rdi + 0xd4], 0xe7
and al, 1
shr ecx, 4
and cl, 1
add cl, cl
or cl, al
shl cl, 3
or byte [rdi + 0xd4], cl
mov eax, dword [0x140246168]
sub eax, 1
je 0x14005d9d7
nop
cmp eax, 1
je 0x14005d9ce
mov byte [rdi + 0xd5], 2
jmp 0x14005d9de
mov byte [rdi + 0xd5], 1
jmp 0x14005d9de
mov byte [rdi + 0xd5], r14b
lea rcx, [rdi + 0xc0]
call qword [sym.imp.ntdll.dll_RtlInitializeSListHead]
xor r8d, r8d
mov rdx, rdi
lea ecx, [r8 + 0x10]
call fcn.140021240
mov rax, rdi
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1401848a0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret