Function at 0x14004c9a0
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xe0
mov qword [rax + 8], rbp
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
xor edi, edi
mov qword [rax - 0x28], r13
mov r13d, r8d
mov r12, rdx
mov rbx, rcx
test r8d, r8d
jne 0x14004ca0c
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14004cae9
mov esi, edi
test eax, eax
je 0x14004cae9
nop word [rax + rax]
mov r8d, 0x403
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
inc esi
cmp esi, ebp
jb 0x14004c9f0
jmp 0x14004cae9
cmp r8d, 1
jne 0x14004ca6d
mov rax, qword [rdx]
cmp qword [rax + 0x10], rdi
jge 0x14004cae9
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14004ca49
mov esi, edi
test eax, eax
je 0x14004ca49
mov r8d, 0x403
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
inc esi
cmp esi, ebp
jb 0x14004ca32
xor r8d, r8d
mov edx, 0x9c46
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9c7c
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x14004cae9
mov dword [rsp + 0x60], 0x9c47
mov dword [rsp + 0x64], 0x9c48
mov dword [rsp + 0x68], 0x9c49
mov dword [rsp + 0x6c], 0x9c61
mov dword [rsp + 0x70], 0x9d0a
mov dword [rsp + 0x74], 0x9d02
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14004cac7
mov esi, edi
test eax, eax
je 0x14004cac7
mov r8d, 0x403
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
inc esi
cmp esi, ebp
jb 0x14004cab0
lea rsi, [rsp + 0x60]
mov ebp, 6
mov edx, dword [rsi]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
add rsi, 4
sub rbp, 1
jne 0x14004cad1
cmp dword [0x1400d8fc0], 0x3c
jae 0x14004cb14
mov edx, 0xc
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetSubMenu]
mov edx, 4
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.USER32.dll_DeleteMenu]
cmp r13d, 1
jne 0x14004cf15
mov r8, qword [r12]
mov edx, dword [0x1400d8fbc]
lea rcx, [rsp + 0x58]
mov r8, qword [r8 + 0x10]
xor bpl, bpl
xor sil, sil
call sym.ProcessHacker.exe_PhOpenProcess
test eax, eax
js 0x14004cc90
mov rcx, qword [0x1400d62b8]
test rcx, rcx
je 0x14004cbc9
mov rax, qword [rsp + 0x58]
mov dword [rsp + 0x48], 8
xor r9d, r9d
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x108]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x10
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x28], 0x999920cc
mov dword [rsp + 0xb8], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmovns rcx, qword [rsp + 0x108]
mov qword [rsp + 0x50], rcx
jmp 0x14004cbe3
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
mov edx, 8
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov rcx, qword [rsp + 0x50]
test eax, eax
js 0x14004cc66
mov r9d, 4
lea rax, [rsp + 0x108]
lea r8, [rsp + 0x100]
lea edx, [r9 + 0x13]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x14004cc1b
cmp dword [rsp + 0x100], edi
setne bpl
mov rcx, qword [rsp + 0x50]
mov r9d, 4
lea rax, [rsp + 0x108]
lea edx, [r9 + 0x14]
lea r8, [rsp + 0x100]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x14004cc54
cmp dword [rsp + 0x100], edi
setne sil
mov rcx, qword [rsp + 0x50]
mov byte [0x1400d5813], sil
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
test bpl, bpl
je 0x14004cc90
neg sil
mov edx, 0x9c62
mov rcx, rbx
sbb r8d, r8d
and r8d, 8
call qword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x14004cca4
mov edx, 0x9c62
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rdx, qword [r12]
mov r9b, 1
mov rcx, rbx
movzx r8d, r9b
call fcn.14004c790
xor edx, edx
lea rcx, [rsp + 0x64]
lea r8d, [rdx + 0x28]
mov dword [rsp + 0x60], 0x2c
call fcn.14009e740
mov rax, qword [r12]
lea rcx, [0x14004c6e0]
mov edx, dword [rax + 0x10]
mov qword [0x1400d5d68], rdi
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [0x1400d5d68], rdi
jne 0x14004cdd6
mov rax, qword [r12]
lea rdx, [0x14004c740]
xor ecx, ecx
mov r8d, dword [rax + 0x10]
call qword [sym.imp.USER32.dll_EnumDesktopWindows]
cmp qword [0x1400d5d68], rdi
je 0x14004cdbd
mov edx, 0xe
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9d6c
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9d6d
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9c77
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9c78
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9c79
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9c7a
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9c7b
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x14004cf29
mov edx, 0xe
mov r8d, 0x403
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x14004cf29
mov edx, 0xe
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0xe
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9d6c
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9d6d
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9c77
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9c78
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9c79
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9c7a
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
mov edx, 0x9c7b
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [0x1400d5d68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov edx, 0xe
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetSubMenu]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, eax
cmp eax, 0xffffffff
je 0x14004cec7
test eax, eax
je 0x14004cec7
nop dword [rax]
mov r8d, 0x400
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableMenuItem]
inc edi
cmp edi, esi
jb 0x14004ceb0
mov eax, dword [rsp + 0x68]
cmp eax, 6
jne 0x14004cee4
lea r8d, [rax - 3]
mov edx, 0x9c79
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x14004cf29
cmp eax, 3
jne 0x14004cefc
mov edx, 0x9c7a
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x14004cf29
cmp eax, 1
jne 0x14004cf29
lea r8d, [rax + 2]
mov edx, 0x9c78
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x14004cf29
mov edx, 0xe
mov r8d, 0x403
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
cmp byte [0x1400d64a5], 0
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0xf0]
je 0x14004d030
cmp r13d, 1
jne 0x14004cfeb
mov rax, qword [r12]
mov rcx, qword [rax + 0x10]
test rcx, rcx
jle 0x14004cfd5
call sym.ProcessHacker.exe_PhFindProcessNode
test rax, rax
je 0x14004d030
mov rax, qword [rax + 0x310]
test rax, rax
je 0x14004d030
bt dword [rax + 0x4c], 0xd
jae 0x14004d030
lea r8d, [r13 + 0x4b]
lea rcx, [rsp + 0x64]
xor edx, edx
mov dword [rsp + 0x60], 0x50
call fcn.14009e740
lea rax, str.Mark_as_Unsafe
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x9d0a
mov rcx, rbx
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x64], 0x40
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
jmp 0x14004d030
mov edx, 0x9d0a
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x14004d030
xor edx, edx
lea rcx, [rsp + 0x64]
mov dword [rsp + 0x60], 0x50
lea r8d, [rdx + 0x4c]
call fcn.14009e740
lea rax, str.Toggle_Safe
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x9d0a
mov rcx, rbx
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x64], 0x40
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
cmp dword [0x1400d8fc0], 0x3c
mov r13, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
jae 0x14004d05a
xor r8d, r8d
mov edx, 0x9c62
mov rcx, rbx
call qword [sym.imp.USER32.dll_DeleteMenu]
cmp byte [0x1400d64a5], 0
jne 0x14004d074
xor r8d, r8d
mov edx, 0x9d0a
mov rcx, rbx
call qword [sym.imp.USER32.dll_DeleteMenu]
add rsp, 0xe0
pop rbx
ret