Function at 0x180020a90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x180059e80]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov edx, 1
lea rcx, [rsp + 0xa8]
call fcn.180014b40
lea rcx, [rsp + 0xa8]
call fcn.180006980
nop
cmp qword [rsp + 0xe8], 0
je 0x180020b34
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x88]
call fcn.180006930
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xa8]
call fcn.1800111f0
nop
lea rcx, [rsp + 0x88]
call fcn.180011170
lea rcx, [rsp + 0xa8]
call fcn.1800072d0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x100]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x54], eax
mov byte [rsp + 0x50], 0
cmp dword [rsp + 0x54], 0
jne 0x180020cce
mov rcx, qword [rsp + 0xf8]
call fcn.18000a210
shl rax, 1
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1800072c0
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x180020c02
mov dword [rsp + 0x58], 1
jmp 0x180020c0a
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x50], al
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x180020c78
cmp qword [rsp + 0xf0], 0
jne 0x180020c43
lea rax, [0x1800419a8]
mov qword [rsp + 0x60], rax
jmp 0x180020c50
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xa8]
call fcn.1800072c0
mov r9, qword [rsp + 0x60]
mov r8, rax
lea rdx, str.mini::__registry_class_mini::extended_mini_string_wchar_t___::WriteRegistryBinary:___s__s_:_OK
mov ecx, 2
call fcn.1800284e0
jmp 0x180020ccc
cmp qword [rsp + 0xf0], 0
jne 0x180020c91
lea rax, [0x1800419a8]
mov qword [rsp + 0x70], rax
jmp 0x180020c9e
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xa8]
call fcn.1800072c0
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x70]
mov r8, rax
lea rdx, str.mini::__registry_class_mini::extended_mini_string_wchar_t___::WriteRegistryBinary:___s__s_:_E:_d_setting_value
mov ecx, 3
call fcn.1800284e0
jmp 0x180020d22
cmp qword [rsp + 0xf0], 0
jne 0x180020ce7
lea rax, [0x1800419a8]
mov qword [rsp + 0x68], rax
jmp 0x180020cf4
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xa8]
call fcn.1800072c0
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x68]
mov r8, rax
lea rdx, str.mini::__registry_class_mini::extended_mini_string_wchar_t___::WriteRegistryBinary:___s__s_:_E:_d_open_key
mov ecx, 4
call fcn.1800284e0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x51], al
lea rcx, [rsp + 0xa8]
call fcn.180011170
movzx eax, byte [rsp + 0x51]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800326e0
add rsp, 0xd8
ret