Function at 0x1800d6e40
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 0x1800d6eb6
mov rcx, qword [rsp + 0x100]
call fcn.1800f9644
test rax, rax
je 0x1800d6eb6
cmp qword [rsp + 0x108], 0
je 0x1800d6eb6
mov rcx, qword [rsp + 0x108]
call fcn.1800f9644
test rax, rax
je 0x1800d6eb6
cmp qword [rsp + 0x110], 0
je 0x1800d6eb6
cmp dword [rsp + 0x118], 0
jne 0x1800d6ebd
xor eax, eax
jmp 0x1800d7642
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov rax, qword [0x1801cd028]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x108]
lea rdx, str.SYSTEMCurrentControlSetControlClass_s
lea rcx, [rsp + 0x88]
call fcn.1800e6ce0
mov dword [rsp + 0x70], 0
mov rax, qword [0x1801cd028]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x88]
lea rdx, str._sProperties
lea rcx, [rsp + 0x78]
call fcn.1800e6ce0
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 0x1800d7152
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, [0x1801ca108]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800d7138
mov eax, dword [rsp + 0x118]
cmp dword [rsp + 0x90], eax
jne 0x1800d7138
cmp dword [rsp + 0x94], 3
jne 0x1800d7138
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800f8d24
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1800d7138
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.1800f8b90
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, [0x1801ca108]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800d710f
mov eax, dword [rsp + 0x118]
cmp dword [rsp + 0x90], eax
jne 0x1800d70f9
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x98]
call fcn.1800fb360
test eax, eax
jne 0x1800d70f9
mov dword [rsp + 0xe8], 1
jmp 0x1800d7104
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.1800f8dc8
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 0x1800d7176
lea rcx, [rsp + 0x78]
call fcn.1800e5c00
nop
lea rcx, [rsp + 0x88]
call fcn.1800e5c00
jmp 0x1800d75ff
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 0x1800d7256
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800d7239
lea rcx, [rsp + 0xa0]
call fcn.1800e5040
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.1800db240
nop
lea rcx, [rsp + 0xa0]
call fcn.1800e5070
nop
lea rcx, [rsp + 0x78]
call fcn.1800e5c00
nop
lea rcx, [rsp + 0x88]
call fcn.1800e5c00
jmp 0x1800d75ff
mov rcx, qword [rsp + 0x100]
call fcn.1800f9644
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 0x1800d72f2
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800d72f2
lea rcx, [rsp + 0xa4]
call fcn.1800e5040
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.1800db240
nop
lea rcx, [rsp + 0xa4]
call fcn.1800e5070
mov eax, dword [0x1801c9fd0]
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 0x1800d7387
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800d7387
lea rcx, [rsp + 0xa8]
call fcn.1800e5040
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.1800db240
nop
lea rcx, [rsp + 0xa8]
call fcn.1800e5070
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 0x1800d7412
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800d7412
lea rcx, [rsp + 0xac]
call fcn.1800e5040
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.1800db240
nop
lea rcx, [rsp + 0xac]
call fcn.1800e5070
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 0x1800d74d2
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800d74b5
lea rcx, [rsp + 0xb0]
call fcn.1800e5040
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.1800db240
nop
lea rcx, [rsp + 0xb0]
call fcn.1800e5070
nop
lea rcx, [rsp + 0x78]
call fcn.1800e5c00
nop
lea rcx, [rsp + 0x88]
call fcn.1800e5c00
jmp 0x1800d75ff
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, [0x1801ca108]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800d7589
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800d756f
lea rcx, [rsp + 0xb4]
call fcn.1800e5040
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.1800db240
nop
lea rcx, [rsp + 0xb4]
call fcn.1800e5070
nop
lea rcx, [rsp + 0x78]
call fcn.1800e5c00
nop
lea rcx, [rsp + 0x88]
call fcn.1800e5c00
jmp 0x1800d75ff
mov dword [rsp + 0x58], 1
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800d75dd
lea rcx, [rsp + 0xb8]
call fcn.1800e5040
nop
lea r9, str.CSetDeviceSDDL::SetDevSDDL_succeed_
lea r8, str.SDDL
mov edx, 1
lea rcx, [0x1802386e8]
call fcn.1800db240
nop
lea rcx, [rsp + 0xb8]
call fcn.1800e5070
nop
lea rcx, [rsp + 0x78]
call fcn.1800e5c00
nop
lea rcx, [rsp + 0x88]
call fcn.1800e5c00
xor eax, eax
test eax, eax
jne 0x1800d6edf
cmp qword [rsp + 0x50], 0
je 0x1800d7612
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x60], 0
je 0x1800d7625
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x120], 0
je 0x1800d763e
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x68]
mov dword [rax], ecx
mov eax, dword [rsp + 0x58]
add rsp, 0xf8
ret