Function at 0x1800d6910
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xe0], 0xfffffffffffffffe
cmp qword [rsp + 0x100], 0
je 0x1800d6986
mov rcx, qword [rsp + 0x100]
call fcn.1800f9114
test rax, rax
je 0x1800d6986
cmp qword [rsp + 0x108], 0
je 0x1800d6986
mov rcx, qword [rsp + 0x108]
call fcn.1800f9114
test rax, rax
je 0x1800d6986
cmp qword [rsp + 0x110], 0
je 0x1800d6986
cmp dword [rsp + 0x118], 0
jne 0x1800d698d
xor eax, eax
jmp 0x1800d7112
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov rax, qword [0x1801cced8]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x108]
lea rdx, str.SYSTEMCurrentControlSetControlClass_s
lea rcx, [rsp + 0x88]
call fcn.1800e67b0
mov dword [rsp + 0x70], 0
mov rax, qword [0x1801cced8]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x88]
lea rdx, str._sProperties
lea rcx, [rsp + 0x78]
call fcn.1800e67b0
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800d6c22
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x94], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
xor r8d, r8d
lea rdx, [0x1801c9fb8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800d6c08
mov eax, dword [rsp + 0x118]
cmp dword [rsp + 0x90], eax
jne 0x1800d6c08
cmp dword [rsp + 0x94], 3
jne 0x1800d6c08
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800f87f4
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1800d6c08
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.1800f8660
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x94]
xor r8d, r8d
lea rdx, [0x1801c9fb8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800d6bdf
mov eax, dword [rsp + 0x118]
cmp dword [rsp + 0x90], eax
jne 0x1800d6bc9
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x98]
call fcn.1800fae30
test eax, eax
jne 0x1800d6bc9
mov dword [rsp + 0xe8], 1
jmp 0x1800d6bd4
mov dword [rsp + 0xe8], 0
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.1800f8898
mov qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x80], 0
cmp dword [rsp + 0x70], 0
je 0x1800d6c46
lea rcx, [rsp + 0x78]
call fcn.1800e56d0
nop
lea rcx, [rsp + 0x88]
call fcn.1800e56d0
jmp 0x1800d70cf
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d6d26
lea rcx, [0x1802386e0]
call fcn.1800d48a0
test eax, eax
je 0x1800d6d09
lea rcx, [rsp + 0xa0]
call fcn.1800e4b10
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey__s__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x1802386e8]
call fcn.1800dad10
nop
lea rcx, [rsp + 0xa0]
call fcn.1800e4b40
nop
lea rcx, [rsp + 0x78]
call fcn.1800e56d0
nop
lea rcx, [rsp + 0x88]
call fcn.1800e56d0
jmp 0x1800d70cf
mov rcx, qword [rsp + 0x100]
call fcn.1800f9114
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Class
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d6dc2
lea rcx, [0x1802386e0]
call fcn.1800d48a0
test eax, eax
je 0x1800d6dc2
lea rcx, [rsp + 0xa4]
call fcn.1800e4b10
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Class_Fail__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x1802386e8]
call fcn.1800dad10
nop
lea rcx, [rsp + 0xa4]
call fcn.1800e4b40
mov eax, dword [0x1801c9e80]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.NoDisplayClass
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d6e57
lea rcx, [0x1802386e0]
call fcn.1800d48a0
test eax, eax
je 0x1800d6e57
lea rcx, [rsp + 0xa8]
call fcn.1800e4b10
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoDisplayClass_Fail__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x1802386e8]
call fcn.1800dad10
nop
lea rcx, [rsp + 0xa8]
call fcn.1800e4b40
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.NoUseClass
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d6ee2
lea rcx, [0x1802386e0]
call fcn.1800d48a0
test eax, eax
je 0x1800d6ee2
lea rcx, [rsp + 0xac]
call fcn.1800e4b10
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoUseClass_Fail__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x1802386e8]
call fcn.1800dad10
nop
lea rcx, [rsp + 0xac]
call fcn.1800e4b40
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Properties
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d6fa2
lea rcx, [0x1802386e0]
call fcn.1800d48a0
test eax, eax
je 0x1800d6f85
lea rcx, [rsp + 0xb0]
call fcn.1800e4b10
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey_Properties__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x1802386e8]
call fcn.1800dad10
nop
lea rcx, [rsp + 0xb0]
call fcn.1800e4b40
nop
lea rcx, [rsp + 0x78]
call fcn.1800e56d0
nop
lea rcx, [rsp + 0x88]
call fcn.1800e56d0
jmp 0x1800d70cf
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [0x1801c9fb8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d7059
lea rcx, [0x1802386e0]
call fcn.1800d48a0
test eax, eax
je 0x1800d703f
lea rcx, [rsp + 0xb4]
call fcn.1800e4b10
nop
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x20], eax
lea r9, str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Security_Fail__ulSize__lu__err__lu_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x1802386e8]
call fcn.1800dad10
nop
lea rcx, [rsp + 0xb4]
call fcn.1800e4b40
nop
lea rcx, [rsp + 0x78]
call fcn.1800e56d0
nop
lea rcx, [rsp + 0x88]
call fcn.1800e56d0
jmp 0x1800d70cf
mov dword [rsp + 0x58], 1
lea rcx, [0x1802386e0]
call fcn.1800d48a0
test eax, eax
je 0x1800d70ad
lea rcx, [rsp + 0xb8]
call fcn.1800e4b10
nop
lea r9, str.CSetDeviceSDDL::SetDevSDDL_succeed_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x1802386e8]
call fcn.1800dad10
nop
lea rcx, [rsp + 0xb8]
call fcn.1800e4b40
nop
lea rcx, [rsp + 0x78]
call fcn.1800e56d0
nop
lea rcx, [rsp + 0x88]
call fcn.1800e56d0
xor eax, eax
test eax, eax
jne 0x1800d69af
cmp qword [rsp + 0x50], 0
je 0x1800d70e2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x60], 0
je 0x1800d70f5
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x120], 0
je 0x1800d710e
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x68]
mov dword [rax], ecx
mov eax, dword [rsp + 0x58]
add rsp, 0xf8
ret