Function at 0x140016645
Capabilities:
Set registry value

Disassembly:
jmp 0x14003aae0
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 [0x140074400]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x14007eb67]
call fcn.140016b68
nop
mov dword [rbp + 4], 0
cmp qword [rbp + 0x2c0], 0
je 0x14003ab56
mov dword [rbp + 0x274], 1
jmp 0x14003ab60
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 0x14003aba0
jmp 0x14003ada4
cmp qword [rbp + 0x2b8], 0
jne 0x14003abaf
jmp 0x14003ada4
cmp qword [rbp + 0x2a0], 0
jne 0x14003abc9
lea rax, str.Environment
mov qword [rbp + 0x88], rax
jmp 0x14003abd7
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 0x14003abf2
jmp 0x14003ada4
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 0x14003ac63
jmp 0x14003ada4
mov rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x168]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
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 0x14003acbb
jmp 0x14003ada4
mov rdx, qword [rbp + 0x2a8]
lea rcx, [rbp + 0x198]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
cmp dword [rbp + 0x24], 0
je 0x14003ad18
mov dword [rbp + 0x44], 0
mov rax, qword [0x140074d18]
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
nop
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 0x14003ad9a
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]
nop
xor eax, eax
test eax, eax
jne 0x14003ab91
cmp qword [rbp + 0xc8], 0
je 0x14003adbc
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rbp + 0xa8], 0
je 0x14003add4
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp dword [rbp + 4], 0
je 0x14003ade8
lea rcx, [rbp + 0x138]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop
cmp dword [rbp + 0x64], 0
jl 0x14003adfa
mov dword [rbp + 0x274], 1
jmp 0x14003ae04
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