Function at 0x14001560e
Capabilities:
Set registry value

Disassembly:
jmp 0x140037490
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 [0x140070328]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x140079a23]
call fcn.140015b09
mov dword [rbp + 4], 0
cmp qword [rbp + 0x2c0], 0
je 0x140037505
mov dword [rbp + 0x274], 1
jmp 0x14003750f
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 0x14003754f
jmp 0x14003774f
cmp qword [rbp + 0x2b8], 0
jne 0x14003755e
jmp 0x14003774f
cmp qword [rbp + 0x2a0], 0
jne 0x140037578
lea rax, str.Environment
mov qword [rbp + 0x88], rax
jmp 0x140037586
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 0x1400375a1
jmp 0x14003774f
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 0x140037612
jmp 0x14003774f
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 0x140037669
jmp 0x14003774f
mov rdx, qword [rbp + 0x2a8]
lea rcx, [rbp + 0x198]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [rbp + 0x24], 0
je 0x1400376c4
mov dword [rbp + 0x44], 0
mov rax, qword [0x140070bf8]
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.14001577b
mov rcx, qword [rbp + 0x2b8]
call fcn.14001528a
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 0x140037745
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 0x140037540
cmp qword [rbp + 0xc8], 0
je 0x140037766
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0xa8], 0
je 0x14003777d
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 4], 0
je 0x140037790
lea rcx, [rbp + 0x138]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp dword [rbp + 0x64], 0
jl 0x1400377a2
mov dword [rbp + 0x274], 1
jmp 0x1400377ac
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.14001595b
mov eax, edi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.140015582
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret