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

Disassembly:
jmp 0x14003bc60
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 [0x140074400]
xor rax, rbp
mov qword [rbp + 0x258], rax
lea rcx, [0x14007eb67]
call fcn.140016b68
nop
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 0x14003bcf5
jmp 0x14003bed2
cmp qword [rbp + 0x298], 0
jne 0x14003bd0d
cmp dword [rbp + 0x280], 0
jne 0x14003bd0d
jmp 0x14003bed2
cmp qword [rbp + 0x288], 0
jne 0x14003bd24
lea rax, str.Environment
mov qword [rbp + 0x68], rax
jmp 0x14003bd2f
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 0x14003bd4a
jmp 0x14003bed2
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 0x14003bdbb
jmp 0x14003bed2
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
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 0x14003be10
jmp 0x14003bed2
mov rdx, qword [rbp + 0x290]
lea rcx, [rbp + 0x178]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
cmp dword [rbp + 0x280], 0
je 0x14003be47
lea rdx, [rbp + 0x178]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [rbp + 0x44], eax
jmp 0x14003be8e
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 0x14003bec8
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]
nop
xor eax, eax
test eax, eax
jne 0x14003bce6
cmp qword [rbp + 0xa8], 0
je 0x14003beea
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rbp + 0x88], 0
je 0x14003bf02
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp dword [rbp + 4], 0
je 0x14003bf16
lea rcx, [rbp + 0x118]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop
cmp dword [rbp + 0x44], 0
jl 0x14003bf28
mov dword [rbp + 0x254], 1
jmp 0x14003bf32
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