Function at 0x18000ad0b
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rcx, qword gs:[0x60]
push qword [rcx + 0x18]
pop rcx
push qword [rcx + 0x20]
pop rcx
xor rsi, rsi
push 0x18
mov rax, qword [rcx + 0x50]
pop rdi
xor rdx, rdx
mov dl, byte [rax]
cmp edx, 0x61
jb 0x18000ac01
sub edx, 0x20
sub esi, edx
add esi, 0x5299c000
ror esi, 8
xor esi, edx
ror esi, 0x19
add esi, edx
ror esi, 0x1f
sub esi, edx
ror esi, 9
sub esi, edx
ror esi, 6
dec rdi
add rax, 1
cmp rdi, 0
ja 0x18000abf4
push qword [rcx + 0x20]
pop rdx
push qword [rcx]
pop rcx
cmp esi, 0xb3bde4e3
jne 0x18000abe7
mov qword [rbp - 8], rdx
mov rsi, qword [rbp - 8]
mov rdx, rsi
mov qword [rbp - 0x18], rsi
mov edx, dword [rsi + 0x3c]
add rdx, rsi
mov edx, dword [rdx + 0x88]
add rdx, rsi
mov ebx, dword [rdx + 0x1c]
add rbx, rsi
mov qword [rbp - 0x10], rbx
mov ebx, dword [rdx + 0x20]
add rbx, rsi
mov qword [rbp - 0x38], rbx
mov ebx, dword [rdx + 0x24]
add rbx, rsi
mov qword [rbp - 0x20], rbx
mov rsi, qword [rbp - 0x38]
mov esi, dword [rsi]
add rsi, qword [rbp - 0x18]
mov rdx, 0xf
xor rbx, rbx
xor rax, rax
mov al, byte [rsi]
add ebx, eax
ror ebx, 0xe
sub ebx, eax
rol ebx, 0xe
xor ebx, eax
ror ebx, 0x1c
sub ebx, eax
ror ebx, 8
add ebx, eax
add ebx, 0xbee45000
ror ebx, 0x13
add rsi, 1
dec rdx
cmp rdx, 0
ja 0x18000ac8f
mov rsi, qword [rbp - 0x20]
mov esi, dword [rsi]
and rsi, 0xffff
add qword [rbp - 0x38], 4
add qword [rbp - 0x20], 2
cmp ebx, 0x42143591
jne 0x18000ac7b
imul rsi, rsi, 4
add rsi, qword [rbp - 0x10]
mov esi, dword [rsi]
add rsi, qword [rbp - 0x18]
mov qword [rbp - 0x30], rsi
call 0x18000ad0b
adc eax, 0x2f984ad8
cmp edi, dword [r8 - 0x2ebc61e4]
pop rcx
sub rcx, 0xacff
mov qword [rbp], rcx
sub rsp, 0x40
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp]
push 0xe000
add rcx, 0x9e5c8
mov r8, 0x40
pop rdx
lea r9, [rbp - 0x18]
call rax
add rsp, 0x40
mov rdi, qword [rbp]
push 0xe000
pop rbx
add rdi, 0x9e5c8
push 0xffffffff8fc3bc5e
pop rcx
mov edx, dword [rdi]
sub edx, ecx
add edx, ebx
add edx, ecx
add edx, ecx
xor edx, ecx
mov dword [rdi], edx
add rdi, 4
sub rbx, 4
cmp ebx, 0
ja 0x18000ad5e
mov rbx, qword [rbp]
add rbx, 0x9e5c8
call rbx
jl 0x18000adb2
push 0x708d8d48
add eax, dword [rax]
add byte [rbp + rcx*4 + 0x42], al
push rsp
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [rsp + 0x60], 0x54
mov qword [rbp + 0x280], rax
mov qword [rbp + 0x288], rax
mov qword [rbp + 0x290], rax
test dword [rax + 0x48000002], ecx
mov dword [rbp + 0x290], eax
mov qword [rbp + 0x298], rax
mov qword [rbp + 0x2a0], rax
mov qword [rbp + 0x2a8], rax
mov qword [rbp + 0x2b0], rax
mov qword [rbp + 0x2b8], rax
mov dword [rbp + 0x2c0], eax
mov rax, qword gs:[0x30]
cmp dword [rax + 0x179c], r15d
jne 0x18001d78c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov ebx, eax
test eax, eax
js 0x18000ae61
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea r8, [rbp + 0x370]
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov ebx, eax
test eax, eax
js 0x18000ae61
mov r8, qword [rbp + 0x370]
lea rdx, [rbp + 0x280]
mov ecx, 0x44
call qword [sym.imp.ntdll.dll_RtlCopySid]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18000ae71
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
js 0x18001d835
mov rcx, qword [0x180096308]
call qword [sym.imp.ntdll.dll_RtlValidSid]
test al, al
je 0x18001d835
lea rcx, [rbp + 0x280]
call qword [sym.imp.ntdll.dll_RtlValidSid]
test al, al
je 0x18001d835
mov rdx, qword [0x180096308]
lea rcx, [rbp + 0x280]
call qword [sym.imp.ntdll.dll_RtlEqualSid]
test al, al
je 0x18001d835
lea rax, [rbp - 0x58]
mov qword [rbp - 0x58], r15
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x80], r15d
lea rdx, [0x18006fde0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ecx, eax
cmp eax, 0x3fa
je 0x18000af5d
add eax, 0xfffffffe
cmp eax, 1
jbe 0x18000af5d
cmp ecx, 0x490
je 0x18000af5d
test ecx, ecx
jne 0x18001d7ae
mov rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x80]
mov r9d, 0x208
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x5e0]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov rcx, qword [rbp - 0x58]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
js 0x18000af99
lea rdx, [rbp + 0x5e0]
lea rcx, [0x180096080]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x18001d835
lea rax, [rbp - 0x70]
mov qword [rbp - 0x70], r15
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x7c], r15d
lea rdx, [0x18006fde0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x18001d7ba
mov rdi, r15
test r12d, r12d
je 0x18000b358
mov eax, dword [r13]
cmp eax, 0xb0
jne 0x18000b2da
mov ebx, r15d
test r12d, r12d
je 0x18000b358
movaps xmm6, xmmword [rbp + 0x1b0]
mov r14d, ebx
mov eax, ebx
lea r9, [rbp - 0x30]
imul rcx, rax, 0xb0
lea rax, [rsp + 0x58]
add rcx, r13
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x44]
call fcn.18000a600
mov esi, eax
test eax, eax
js 0x18001d864
mov eax, dword [rsp + 0x58]
test rdi, rdi
jne 0x18001d85a
movaps xmm6, xmmword [rbp - 0x30]
mov r9d, ebx
mov rdi, qword [rbp - 0x48]
mov r14d, eax
movaps xmmword [rbp + 0x1b0], xmm6
mov dword [rsp + 0x40], ebx
inc ebx
cmp ebx, r12d
jb 0x18000afca
test rdi, rdi
je 0x18000b358
mov r14d, 3
mov rax, qword [0x18006fdc8]
movq rdx, xmm6
mov rcx, qword [rbp + 0x1b8]
sub rax, rdx
jne 0x18000b05a
mov rax, qword [0x18006fdd0]
sub rax, rcx
test rax, rax
jne 0x18001d91d
mov rdx, qword [0x1800960e8]
test rdx, rdx
jne 0x18001d8c4
mov rax, qword [0x180096088]
test rax, rax
jne 0x18001d8cf
mov r8d, 1
mov dword [rsp + 0x4c], r8d
test r13, r13
je 0x18001d8e3
test r12d, r12d
je 0x18001d8e3
mov eax, r9d
imul rcx, rax, 0xb0
mov rsi, qword [rcx + r13 + 8]
mov r14d, dword [0x180096078]
test rdx, rdx
jne 0x18001d8eb
lea eax, [r8 - 1]
cmp eax, 1
ja 0x18001d8ff
lea rdx, [rbp - 0x78]
lea rcx, [0x180096100]
call qword [sym.imp.ntdll.dll_RtlAllocateHandle]
mov rbx, rax
test rax, rax
je 0x18001d909
mov rcx, qword [rsp + 0x70]
xor edx, edx
mov eax, dword [rbp - 0x78]
mov r8d, 0x240
inc dword [0x1800962fc]
or rax, 0x74000000
mov qword [rcx], rax
mov rcx, rbx
call sub.msvcrt.dll_memset
mov r9d, dword [rsp + 0x44]
mov dword [rbx], 1
mov eax, dword [rdi]
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x4c]
mov dword [rbx + 0xc], eax
mov eax, dword [0x180095010]
mov dword [rbx + 0x22c], eax
mov dword [rbx + 0x228], r14d
mov dword [rbx + 0x230], r9d
mov dword [rbx + 0x234], r15d
movups xmmword [rbx + 0x10], xmm6
test rsi, rsi
je 0x18001d913
mov r9d, 0x103
lea rcx, [rbx + 0x20]
mov r8, rsi
lea edx, [r9 + 1]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
mov esi, r15d
mov r14d, dword [rsp + 0x40]
lea r12, str.default
test esi, esi
js 0x18000b185
mov r15d, 1
mov eax, dword [rdi]
cmp eax, 0x40000
jne 0x18001dac6
lea rdx, str.Unrestricted
mov eax, r14d
imul rcx, rax, 0xb0
mov rax, qword [rcx + r13 + 8]
test rax, rax
je 0x18001db1b
lea r9, [rbp + 0x1b0]
mov r8, r12
mov rcx, rax
call fcn.18000beb0
mov rbx, qword [rsp + 0xb28]
movaps xmm6, xmmword [rsp + 0xb10]
lea rcx, [0x180096140]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test r15d, r15d
je 0x18001d4d9
mov eax, r15d
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.180017170
add rsp, 0xb30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp eax, 0x88
jne 0x18000b358
mov ebx, r15d
test r12d, r12d
je 0x18000b358
movaps xmm6, xmmword [rbp + 0x1b0]
mov r14d, ebx
mov eax, ebx
lea r9, [rbp - 0x20]
imul rcx, rax, 0x88
lea rax, [rsp + 0x58]
add rcx, r13
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x44]
call fcn.18000a600
mov esi, eax
test eax, eax
js 0x18001d883
mov eax, dword [rsp + 0x58]
test rdi, rdi
jne 0x18001d879
movaps xmm6, xmmword [rbp - 0x20]
mov r14d, eax
mov rdi, qword [rbp - 0x40]
mov r9d, ebx
movaps xmmword [rbp + 0x1b0], xmm6
mov dword [rsp + 0x40], ebx
inc ebx
cmp ebx, r12d
jae 0x18000b029
jmp 0x18000b2f3
mov esi, 0xc0000225
jmp 0x18000b1c3
mov ecx, esi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x18000b1e9
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
lea r9, [rsp + 0x68]
mov r8b, 1
mov rcx, rax
mov edx, 8
call qword [sym.imp.ntdll.dll_NtOpenThreadToken]
nop
jmp 0x18000ae16
call qword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
nop
jmp 0x18000af99
cmp ecx, 0x3fa
je 0x18000af99
cmp ecx, 0x490
je 0x18000af99
test ecx, ecx
je 0x18001d7e2
call qword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
nop
jmp 0x18000af99
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x7c]
mov r9d, 0x208
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x7f0]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov rcx, qword [rbp - 0x70]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
js 0x18000af99
lea rdx, [rbp + 0x7f0]
lea rcx, [0x180096080]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x18000af99
call fcn.18001220c
call fcn.180012254
mov byte [0x1800961c8], 1
call fcn.1800063f0
mov esi, eax
test eax, eax
js 0x18000b1c3
jmp 0x18000af99
cmp eax, r14d
jae 0x18001d86f
jmp 0x18000b009
cmp eax, 0xc0000225
jne 0x18000b1c3
mov r9d, dword [rsp + 0x40]
jmp 0x18000b022
cmp eax, r14d
jae 0x18001d88e
jmp 0x18000b332
cmp eax, 0xc0000225
jne 0x18000b1c3
mov r9d, dword [rsp + 0x40]
jmp 0x18000b34b
mov r8d, 3
jmp 0x18000b08e
mov r8d, 2
cmp rax, rdi
je 0x18000b089
jmp 0x18000b083
mov rsi, r15
jmp 0x18000b0af
cmp r8d, 3
je 0x18000b0cc
mov esi, 0xc0000030
jmp 0x18000b16f
mov esi, 0xc0000030
jmp 0x18000b16f
mov esi, 0xc000009a
jmp 0x18000b16f
mov word [rbx + 0x20], r15w
jmp 0x18000b16c
mov rax, qword [0x18007c308]
sub rax, rdx
jne 0x18001d933
mov rax, qword [0x18007c310]
sub rax, rcx
test rax, rax
jne 0x18001d980
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x1b0]
mov r9d, dword [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rcx, rdi
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea edx, [r8 + 1]
mov dword [rsp + 0x20], 4
call fcn.18002b6f8
mov r14d, dword [rsp + 0x40]
lea r12, str.certificate
jmp 0x18001daa9
mov rax, qword [str.5Te]
sub rax, rdx
jne 0x18001d996
mov rax, qword [0x18007c300]
sub rax, rcx
test rax, rax
jne 0x18001d9ec
cmp qword [0x1800960e8], r15
lea rax, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x70]
mov edx, 1
mov r9d, dword [rsp + 0x44]
cmovne edx, r14d
mov qword [rsp + 0x38], rcx
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
call fcn.18002b6f8
mov r14d, dword [rsp + 0x40]
lea r12, str.SRPv2
jmp 0x18001daa9
lea rdx, [rbp + 0x1c0]
mov ebx, r15d
lea rcx, [0x1800960a0]
mov esi, r15d
movups xmmword [rbp + 0x1c0], xmm6
call qword [sym.imp.ntdll.dll_RtlLookupElementGenericTable]
mov rdx, rax
test rax, rax
je 0x18001dab0
mov ecx, dword [rax + 0x10]
sub ecx, 1
je 0x18001da4e
sub ecx, 1
je 0x18001da3a
cmp ecx, 1
jne 0x18001da5f
mov ebx, dword [rax + 0x24]
lea r12, str.zone
mov esi, r14d
jmp 0x18001da66
mov ebx, dword [rax + 0xb0]
lea r12, str.hash
mov esi, 2
jmp 0x18001da66
mov ebx, dword [rax + 0x38]
lea r12, str.path
mov esi, 1
jmp 0x18001da66
lea r12, str.default
mov rcx, qword [rsp + 0x70]
mov r8d, ebx
mov r14d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov edx, dword [rdx + 0x18]
mov qword [rsp + 0x38], rcx
mov rcx, rdi
imul rax, r14, 0xb0
mov rax, qword [rax + r13 + 8]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
call fcn.18002b6f8
mov esi, eax
jmp 0x18000b17b
mov r14d, dword [rsp + 0x40]
lea r12, str.default
mov esi, 0xc0000022
jmp 0x18000b185
test eax, eax
je 0x18001db03
cmp eax, 0x1000
je 0x18001daf7
cmp eax, 0x10000
je 0x18001daeb
cmp eax, 0x20000
jne 0x18001db0f
lea rdx, str.Basic_User
jmp 0x18000b199
lea rdx, str.Restricted
jmp 0x18000b199
lea rdx, str.Untrusted
jmp 0x18000b199
lea rdx, str.Disallowed
jmp 0x18000b199
lea rdx, str._default_
jmp 0x18000b199
lea rax, str.Default
jmp 0x18000b1b1