Function at 0x140072e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push r14
lea rbp, [r11 - 0x5f]
sub rsp, 0xd8
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [r11 + 8], rbx
xor r14b, r14b
mov rbx, qword [0x14023b0d0]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x28], r15
xor r15d, r15d
test rbx, rbx
jne 0x140072ecf
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rdi, rax
jmp 0x140072f0d
mov rdx, qword [0x1402418e8]
lea rcx, [rbx + 0x12]
mov rsi, qword [str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_taskmgr.exe]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rax], rbx
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + rbx], r15w
test rsi, rsi
je 0x140072f0d
mov rcx, qword [rdi + 8]
mov r8, rbx
mov rdx, rsi
call fcn.140188690
xor eax, eax
lock cmpxchg qword [0x1402447c8], r15
mov rbx, rax
je 0x140072f23
lock inc dword [rax - 8]
jmp 0x140072f46
mov rcx, qword [0x140241948]
xor edx, edx
call sym.ProcessHacker.exe_PhGetDllFileName
mov rbx, rax
xor eax, eax
lock cmpxchg qword [0x1402447c8], rbx
jne 0x140072f46
lock inc dword [rbx - 8]
mov rcx, rdi
call sym.ProcessHacker.exe_PhGetBaseDirectory
mov r15, rax
mov rsi, 0xffffffffffffffff
test rdi, rdi
je 0x140072f72
lea rcx, [rdi - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140072f72
call fcn.1400fbcc0
mov rcx, rbx
call sym.ProcessHacker.exe_PhGetBaseName
mov rdi, rax
test rbx, rbx
je 0x140072f9a
lea rcx, [rbx - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140072f9a
call fcn.1400fbcc0
mov r9, qword [rdi + 8]
lea r8, [0x1401b84cc]
mov rdx, qword [r15 + 8]
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov r12, rax
lea rcx, [rdi - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140072fcb
call fcn.1400fbcc0
lea rcx, [r15 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140072fe5
nop dword [rax + rax]
call fcn.1400fbcc0
movzx eax, word [r12]
mov word [rbp - 0x41], ax
add ax, 2
cmp qword [r12], 0xfffe
mov word [rbp - 0x3f], ax
mov rax, qword [r12 + 8]
mov qword [rbp - 0x39], rax
ja 0x1400731c7
xor r8d, r8d
lea rax, [rbp - 0x51]
lea r9, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x41]
lea rcx, [r8 - 3]
call fcn.14011ab40
test eax, eax
js 0x1400731c7
lea r8, ds:[rbp - 0x11]
mov edx, 0x20019
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x51]
mov ebx, eax
test rcx, rcx
je 0x140073057
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x1400731c7
mov rcx, qword [0x140241998]
lea rax, str.MitigationOptions
mov r14d, 0x10
mov qword [rsp + 0xc8], r13
mov r13, qword [rbp + 0x1f]
mov r8d, 0x100
mov r15, rsi
mov dword [rbp - 0x31], 0x240022
mov qword [rbp - 0x29], rax
lea edx, [r14 - 0xc]
mov dword [rbp - 0x55], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
nop dword [rax]
mov ecx, dword [rbp - 0x55]
lea rax, [rbp - 0x55]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x31]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, r13
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test eax, eax
jns 0x140073115
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, 0x80000005
jne 0x140073151
mov r8d, dword [rbp - 0x55]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
add r14d, 0xffffffff
jne 0x1400730b0
test edi, edi
js 0x140073151
mov eax, dword ds:[rbx + 4]
cmp eax, 4
jne 0x140073130
cmp dword [rbx + 8], eax
jne 0x14007313f
mov r15d, dword [rbx + 0xc]
jmp 0x14007313f
cmp eax, 0xb
jne 0x14007313f
cmp dword [rbx + 8], 8
jne 0x14007313f
mov r15, qword [rbx + 0xc]
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword ds:[rbp + 0x1f]
lea rax, str.MitigationOptions
cmp r15, rsi
mov qword [rbp - 0x21], 0x22
lea r9, [rbp - 0x49]
mov qword [rbp - 0x19], rax
mov r8d, 2
lea rdx, [rbp - 0x21]
setne r14b
call sym.ProcessHacker.exe_PhQueryValueKey
mov r13, qword [rsp + 0xc8]
test eax, eax
js 0x1400731bd
mov r8, qword [rbp - 0x49]
cmp dword [r8 + 4], 3
jne 0x1400731ae
cmp dword [r8 + 8], 0
mov eax, 1
movzx r14d, r14b
cmovne r14d, eax
mov rcx, qword [0x140241998]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], esi
mov r15, qword [rsp + 0xc0]
cmp esi, 1
mov rsi, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf0]
jne 0x140073205
nop
call fcn.1400fbcc0
movzx eax, r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0xd8
pop r14
pop rbp
ret