Function at 0x14004a924
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
lea rdx, [rbp - 0x29]
call fcn.14004b27c
nop
lea rdx, [0x140063788]
mov rcx, rax
call fcn.14000fd60
mov bl, al
cmp qword [rbp - 9], 8
jb 0x14004a986
mov rcx, qword [rbp - 0x21]
call sub.msvcrt.dll_free
xor edi, edi
lea r15d, [rdi + 7]
test bl, bl
je 0x14004a9f1
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], rdi
mov word [rbp - 0x59], di
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x14004ac7b
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x14004ac7b
mov r8d, 0xff
mov rdx, qword [rbp - 0x79]
mov rcx, rsi
call fcn.14000e404
lea rcx, [rbp - 0x79]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop
cmp qword [rbp - 0x41], 8
jb 0x14004a9f1
mov rcx, qword [rbp - 0x59]
call sub.msvcrt.dll_free
lea r8, [rsi + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [rbp - 0x29]
call fcn.140049ca0
nop
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14004d0ec
nop
cmp qword [rbp - 9], 8
jb 0x14004aa23
mov rcx, qword [rbp - 0x21]
call sub.msvcrt.dll_free
mov qword [rbp - 9], r15
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 1]
call fcn.14000ef94
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdx, qword [rbp + 7]
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x71]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004ac41
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rbp - 0x79]
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], rdi
mov word [rbp - 0x59], di
mov r8d, 0xe
lea rdx, str.SaveSystimeLow
lea rcx, [rbp - 0x61]
call fcn.14000e404
nop
lea r14, [rsi + 0x78]
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.14004b828
mov ecx, dword [rbp - 0x79]
mov dword [rax], ecx
cmp qword [rbp - 0x41], 8
jb 0x14004aaea
mov rcx, qword [rbp - 0x59]
call sub.msvcrt.dll_free
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], rdi
mov word [rbp - 0x59], di
mov r8d, 0xf
lea rdx, str.SaveSystimeHigh
lea rcx, [rbp - 0x61]
call fcn.14000e404
nop
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.14004b828
mov ecx, dword [rbp - 0x75]
mov dword [rax], ecx
cmp qword [rbp - 0x41], 8
jb 0x14004ab2e
mov rcx, qword [rbp - 0x59]
call sub.msvcrt.dll_free
mov rcx, qword [rsi + 0x80]
mov rax, qword [rcx]
mov qword [rbp - 0x39], rax
cmp rax, rcx
je 0x14004ab92
mov edi, 4
lea rdx, [rax + 0x18]
lea rbx, [rdx + 8]
cmp qword [rdx + 0x20], 8
jb 0x14004ab58
mov rbx, qword [rbx]
mov rcx, r14
call fcn.14004b828
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rbp - 0x39]
call fcn.14004bd88
mov rax, qword [rbp - 0x39]
cmp rax, qword [rsi + 0x80]
jne 0x14004ab46
mov rcx, qword [rsi + 0x68]
mov rax, qword [rcx]
mov qword [rbp - 0x39], rax
cmp rax, rcx
je 0x14004ac32
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.14004b9c8
lea r15, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x14004abc4
mov r15, qword [r15]
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.14004b9c8
lea r14, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x14004abde
mov r14, qword [r14]
lea rdi, [rbx + 8]
cmp qword [rbx + 0x20], 8
jb 0x14004abec
mov rdi, qword [rdi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rbp - 0x39]
call fcn.14004bff8
mov rax, qword [rbp - 0x39]
cmp rax, qword [rsi + 0x68]
jne 0x14004aba6
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
cmp qword [rbp + 0x1f], 8
jb 0x14004ac51
mov rcx, qword [rbp + 7]
call sub.msvcrt.dll_free
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14005d960
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp qword [rbp - 0x41], 8
jb 0x14004ac8b
mov rcx, qword [rbp - 0x59]
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x14004ac53