Function at 0x140016645
Capabilities:
Set registry value

Disassembly:
jmp 0x14003a120
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x72
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x140073348]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x14007db67]
call fcn.140016b68
mov dword [rbp + 4], 0
cmp qword [rbp + 0x2c0], 0
je 0x14003a195
mov dword [rbp + 0x274], 1
jmp 0x14003a19f
mov dword [rbp + 0x274], 0
mov eax, dword [rbp + 0x274]
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x64], 0xc0000001
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0x140], 0
cmp qword [rbp + 0x2a8], 0
jne 0x14003a1df
jmp 0x14003a3df
cmp qword [rbp + 0x2b8], 0
jne 0x14003a1ee
jmp 0x14003a3df
cmp qword [rbp + 0x2a0], 0
jne 0x14003a208
lea rax, str.Environment
mov qword [rbp + 0x88], rax
jmp 0x14003a216
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x138]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x14003a231
jmp 0x14003a3df
mov dword [rbp + 4], 1
mov dword [rbp + 0xe8], 0x30
mov qword [rbp + 0xf0], 0
mov dword [rbp + 0x100], 0x40
lea rax, [rbp + 0x138]
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x108], 0
mov qword [rbp + 0x110], 0
lea r8, [rbp + 0xe8]
mov edx, 0x2000000
lea rcx, [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x14003a2a2
jmp 0x14003a3df
mov rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x168]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xf0], rax
lea rax, [rbp + 0x168]
mov qword [rbp + 0xf8], rax
lea r8, [rbp + 0xe8]
mov edx, 0x2000000
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x14003a2f9
jmp 0x14003a3df
mov rdx, qword [rbp + 0x2a8]
lea rcx, [rbp + 0x198]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [rbp + 0x24], 0
je 0x14003a354
mov dword [rbp + 0x44], 0
mov rax, qword [0x140073c18]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x2c0]
mov r8d, dword [rbp + 0x2b0]
mov rdx, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0xc8]
call fcn.1400167b7
mov rcx, qword [rbp + 0x2b8]
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x2b8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x2b0]
xor r8d, r8d
lea rdx, [rbp + 0x198]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jl 0x14003a3d5
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x3e8
mov dword [rsp + 0x20], 1
mov r9, qword [rbp + 0x2a8]
xor r8d, r8d
mov edx, 0x1a
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor eax, eax
test eax, eax
jne 0x14003a1d0
cmp qword [rbp + 0xc8], 0
je 0x14003a3f6
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0xa8], 0
je 0x14003a40d
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 4], 0
je 0x14003a420
lea rcx, [rbp + 0x138]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp dword [rbp + 0x64], 0
jl 0x14003a432
mov dword [rbp + 0x274], 1
jmp 0x14003a43c
mov dword [rbp + 0x274], 0
mov eax, dword [rbp + 0x274]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_VariantInit
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret