Function at 0x1400167fd
Capabilities:
Set registry value

Disassembly:
jmp 0x14003aaf0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3d8
lea rbp, [rsp + 0x40]
mov rdi, rsp
mov ecx, 0xf6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3f8]
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x14006d245]
call fcn.140016276
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x44], 0xc0000001
mov eax, 0x22
mov word [rbp + 0x118], ax
mov eax, 0x24
mov word [rbp + 0x11a], ax
lea rax, str.SymbolicLinkValue
mov qword [rbp + 0x120], rax
call fcn.1400168b1
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x188], 0
mov qword [rbp + 0x1a8], 0
mov dword [rbp + 0x1c4], 0x20
lea rcx, [rbp + 0x68]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003abcd
mov eax, dword [rbp + 0x44]
jmp 0x14003af2d
movzx eax, word [rbp + 0x6a]
mov ecx, dword [rbp + 0x1c4]
lea rax, [rax + rcx + 2]
mov qword [rbp + 0x168], rax
mov r8, qword [rbp + 0x168]
mov edx, 8
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0x188], rax
cmp qword [rbp + 0x188], 0
jne 0x14003ac12
jmp 0x14003aecf
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0xa0], rax
xor eax, eax
mov word [rbp + 0x98], ax
movzx eax, word [rbp + 0x168]
mov word [rbp + 0x9a], ax
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x98]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003ac56
jmp 0x14003aecf
lea rdx, str.SoftwareKureND
lea rcx, [rbp + 0x98]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003ac78
jmp 0x14003aecf
mov dword [rbp + 0xc8], 0x30
mov qword [rbp + 0xd0], 0
mov dword [rbp + 0xe0], 0x40
lea rax, [rbp + 0x98]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xf0], 0
lea rax, [rbp + 0x1e4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0xc8]
mov edx, 0xf003f
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000035
jne 0x14003ad26
mov eax, dword [rbp + 0xe0]
bts eax, 8
mov dword [rbp + 0xe0], eax
lea r8, [rbp + 0xc8]
mov edx, 0xf003f
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003ad31
jmp 0x14003aecf
movzx eax, word [rbp + 0x6a]
mov qword [rbp + 0x378], rax
mov rcx, qword [rbp + 0x3b0]
call fcn.14001680c
mov rcx, qword [rbp + 0x378]
lea rax, [rcx + rax*2 + 4]
mov qword [rbp + 0x168], rax
mov r8, qword [rbp + 0x168]
mov edx, 8
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0x1a8], rax
cmp qword [rbp + 0x1a8], 0
jne 0x14003ad8a
jmp 0x14003aecf
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x1a8]
call fcn.14001616d
lea rdx, [0x140048324]
mov rcx, qword [rbp + 0x1a8]
call fcn.1400165e1
mov rdx, qword [rbp + 0x3b0]
mov rcx, qword [rbp + 0x1a8]
call fcn.1400165e1
mov rcx, qword [rbp + 0x1a8]
call fcn.14001680c
shl rax, 1
mov qword [rbp + 0x168], rax
mov eax, dword [rbp + 0x168]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x1a8]
mov qword [rsp + 0x20], rax
mov r9d, 6
xor r8d, r8d
lea rdx, [rbp + 0x118]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x28], 0
cmp dword [rbp + 0x44], 0
jge 0x14003ae26
jmp 0x14003aecf
mov dword [rbp + 0xe0], 0x40
lea r8, [rbp + 0xc8]
mov edx, 0xf003f
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x14003aec5
cmp qword [rbp + 0x3b8], 0
jne 0x14003ae6c
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp + 0x98]
call fcn.140016c2b
jmp 0x14003ae80
mov rdx, qword [rbp + 0x3b8]
lea rcx, [rbp + 0x98]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rbp + 0x3c8]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x3c0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x98]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x28], 0
cmp dword [rbp + 4], 0
jne 0x14003abcd
cmp qword [rbp + 0x188], 0
je 0x14003aeef
mov r8, qword [rbp + 0x188]
xor edx, edx
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rbp + 0x1a8], 0
je 0x14003af0f
mov r8, qword [rbp + 0x1a8]
xor edx, edx
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rbp + 0x28], 0
je 0x14003af20
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp + 0x68]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.140016b90
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret