Function at 0x1400160c8
Capabilities:
Delete registry value
Set registry value

Disassembly:
jmp 0x14003b460
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x6a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2c8]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x258], rax
lea rcx, [0x14007fb67]
call fcn.140016b68
mov dword [rbp + 4], 0
mov dword [rbp + 0x44], 0xc0000001
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0x120], 0
cmp qword [rbp + 0x290], 0
jne 0x14003b4f4
jmp 0x14003b6ce
cmp qword [rbp + 0x298], 0
jne 0x14003b50c
cmp dword [rbp + 0x280], 0
jne 0x14003b50c
jmp 0x14003b6ce
cmp qword [rbp + 0x288], 0
jne 0x14003b523
lea rax, str.Environment
mov qword [rbp + 0x68], rax
jmp 0x14003b52e
mov rax, qword [rbp + 0x288]
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x118]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003b549
jmp 0x14003b6ce
mov dword [rbp + 4], 1
mov dword [rbp + 0xc8], 0x30
mov qword [rbp + 0xd0], 0
mov dword [rbp + 0xe0], 0x40
lea rax, [rbp + 0x118]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xf0], 0
lea r8, [rbp + 0xc8]
mov edx, 0x2000000
lea rcx, [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003b5ba
jmp 0x14003b6ce
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0xd0], rax
lea rax, [rbp + 0x148]
mov qword [rbp + 0xd8], rax
lea r8, [rbp + 0xc8]
mov edx, 0x2000000
lea rcx, [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003b60e
jmp 0x14003b6ce
mov rdx, qword [rbp + 0x290]
lea rcx, [rbp + 0x178]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [rbp + 0x280], 0
je 0x14003b644
lea rdx, [rbp + 0x178]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [rbp + 0x44], eax
jmp 0x14003b68b
mov rcx, qword [rbp + 0x298]
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x298]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x178]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x14003b6c4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x3e8
mov dword [rsp + 0x20], 1
mov r9, qword [rbp + 0x290]
xor r8d, r8d
mov edx, 0x1a
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor eax, eax
test eax, eax
jne 0x14003b4e5
cmp qword [rbp + 0xa8], 0
je 0x14003b6e5
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x88], 0
je 0x14003b6fc
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 4], 0
je 0x14003b70f
lea rcx, [rbp + 0x118]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp dword [rbp + 0x44], 0
jl 0x14003b721
mov dword [rbp + 0x254], 1
jmp 0x14003b72b
mov dword [rbp + 0x254], 0
mov eax, dword [rbp + 0x254]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x258]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x268]
pop rdi
pop rbp
ret