Function at 0x18001a720
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
xor r15d, r15d
lea rdx, str.SystemCurrentControlSetControlLsaSspiCache
xor eax, eax
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], rax
xor r9d, r9d
lea rax, [rbp + 0x77]
mov dword [rbp + 0x7f], r15d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rbp - 0x31]
mov qword [rbp + 0x1f], r15
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x18001a7a8
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x18001ad50
cmp dword [rbp + 0x77], 2
jne 0x18001a7ef
mov rcx, qword [rbp - 0x31]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x29]
lea rax, [rbp - 0x21]
mov dword [rbp + 0x6f], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Time
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x18001a7ef
cmp dword [rbp - 0x29], 3
je 0x18001a7f3
mov qword [rbp - 0x21], r15
lea r9, [rbp + 0xf]
lea r8, [rbp + 0x1f]
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x7f]
call fcn.18000917c
mov ecx, eax
mov ebx, eax
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
jne 0x18001a82e
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
jmp 0x18001ad50
mov r14d, r15d
mov rsi, qword [rbp + 7]
cmp dword [rbp + 0x7f], r15d
jbe 0x18001ad15
mov ebx, r14d
mov rcx, qword [rsi + rbx*8]
call fcn.180008750
mov rcx, qword [rsi + rbx*8]
mov r12, rax
call fcn.18000346c
mov rbx, rax
test rax, rax
je 0x18001a959
mov rcx, rax
mov dword [rax], r15d
call fcn.180019dd8
test eax, eax
js 0x18001a951
mov rcx, qword [rbp - 0x31]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rdx, r12
mov qword [rsp + 0x30], r15
mov edi, r15d
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18001a951
mov rax, qword [rbp + 0xf]
cmp qword [rbp - 0x21], rax
jle 0x18001a9a2
mov rcx, qword [rbp - 0x39]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x29]
lea rax, [rbp + 0x17]
mov qword [rbp + 0x17], r15
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Time
mov dword [rbp + 0x6f], 8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 5]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x18001a96e
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rbx
call fcn.180009118
inc r14d
cmp r14d, dword [rbp + 0x7f]
jae 0x18001ad15
xor r15d, r15d
jmp 0x18001a83f
lea r9, [rbp - 1]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileTime]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rbp - 1]
xor r15d, r15d
cmp qword [rbp + 0x17], rax
jge 0x18001a9a7
mov edi, 1
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x18001a951
lea r8, [rbp - 9]
mov rcx, rbx
lea rdx, [rbp - 0x19]
call fcn.18001a030
mov rcx, qword [rbp - 0x31]
xor r8d, r8d
mov rdx, r12
test eax, eax
jns 0x18001a9ed
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
jmp 0x18001a951
lea rax, [rbp + 0x77]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18001acd2
cmp dword [rbp - 9], 1
jne 0x18001acc2
mov rdi, qword [rbp - 0x19]
lea rax, [rbp - 0x19]
cmp qword [rdi + 8], rax
jne 0x18001ad0e
mov rax, qword [rdi]
cmp qword [rax + 8], rdi
jne 0x18001ad0e
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
mov qword [rax + 8], rcx
lea rdx, str.Name
movzx eax, word [rdi + 0x60]
mov r9d, 1
mov rcx, qword [rbp - 0x39]
add eax, 2
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rdi + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx eax, word [rdi + 0x70]
lea rdx, str.Comment
mov rcx, qword [rbp - 0x39]
add eax, 2
mov dword [rsp + 0x28], eax
mov r9d, 1
mov rax, qword [rdi + 0x78]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x39]
lea rax, [rdi + 0x50]
mov r12d, 4
lea rdx, str.Capabilities
mov dword [rsp + 0x28], r12d
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx eax, word [rdi + 0x56]
lea rdx, str.RpcId
mov rcx, qword [rbp - 0x39]
mov r9d, r12d
mov dword [rbp + 0x67], eax
xor r8d, r8d
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx eax, word [rdi + 0x54]
lea rdx, str.Version
mov rcx, qword [rbp - 0x39]
mov r9d, r12d
mov dword [rbp + 0x67], eax
xor r8d, r8d
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov eax, dword [rdi + 0x58]
lea rdx, str.TokenSize
mov rcx, qword [rbp - 0x39]
mov r9d, r12d
mov dword [rbp + 0x67], eax
xor r8d, r8d
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
lea r8d, [r12 + 1]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x18001abf0
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rbx
call fcn.180009118
lea edx, [r12 - 3]
mov rcx, rdi
call fcn.180009028
jmp 0x18001a959
lea r9, [rbp - 1]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileTime]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 1]
mov r15d, 8
lea rdx, str.Time
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea r9d, [r15 - 5]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov eax, dword [rdi + 0x10]
lea rdx, str.Type
mov rcx, qword [rbp - 0x39]
mov r9d, r12d
mov dword [rbp + 0x67], eax
xor r8d, r8d
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
lea edx, [r15 - 7]
mov rcx, rdi
call fcn.180009028
lea rcx, [rbp - 0x21]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x21]
mov dword [rsp + 0x28], r15d
lea r9d, [r15 - 5]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Time
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x19]
lea rax, [rbp - 0x19]
cmp rcx, rax
je 0x18001a951
lea rax, [rbp - 0x19]
cmp qword [rcx + 8], rax
jne 0x18001ad0e
mov rax, qword [rcx]
cmp qword [rax + 8], rcx
jne 0x18001ad0e
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x19], rax
mov qword [rax + 8], rdx
mov edx, 1
call fcn.180009028
jmp 0x18001acd2
mov ecx, 3
int 0x29
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x18001ad3a
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
test rsi, rsi
je 0x18001ad4e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor eax, eax
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret