Function at 0x100054064
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x100
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1000730b0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, rcx
lea rdx, [rsp + 0x60]
call fcn.100054b14
nop
lea rdx, [0x100062c88]
mov rcx, rax
call fcn.10004f64c
mov bl, al
cmp qword [rsp + 0x80], 8
jb 0x1000540d0
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
mov esi, 7
xor edi, edi
cmp bl, dil
je 0x100054179
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xa8], rdi
mov word [rsp + 0x98], di
lea rcx, [rsp + 0xe0]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
cmp eax, edi
jne 0x10005415a
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
cmp eax, edi
jne 0x10005415a
mov r8d, 0xff
mov rdx, qword [rsp + 0x50]
mov rcx, rbp
call fcn.10001b608
lea rcx, [rsp + 0x50]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop
cmp qword [rsp + 0xb0], 8
jb 0x100054179
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
jmp 0x100054179
cmp qword [rsp + 0xb0], 8
jb 0x100054172
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1000544f9
lea r8, [rbp + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [rsp + 0x60]
call fcn.100053558
nop
lea r8, str.Recovery_
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.100056f90
nop
cmp qword [rsp + 0x80], 8
jb 0x1000541bc
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbp
lea rcx, [rsp + 0xb8]
call fcn.10004f198
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdx, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
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]
cmp eax, edi
jne 0x1000544df
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xa8], rdi
mov word [rsp + 0x98], di
mov r8d, 0xe
lea rdx, str.SaveSystimeLow
lea rcx, [rsp + 0x90]
call fcn.10001b608
nop
lea rdx, [rsp + 0x90]
lea rcx, [rbp + 0x78]
call fcn.10005500c
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
cmp qword [rsp + 0xb0], 8
jb 0x1000542b5
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xa8], rdi
mov word [rsp + 0x98], di
mov r8d, 0xf
lea rdx, str.SaveSystimeHigh
lea rcx, [rsp + 0x90]
call fcn.10001b608
nop
lea rdx, [rsp + 0x90]
lea rcx, [rbp + 0x78]
call fcn.10005500c
mov ecx, dword [rsp + 0x54]
mov dword [rax], ecx
cmp qword [rsp + 0xb0], 8
jb 0x100054317
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x80]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1000543d9
mov r13d, 4
lea rdx, [rbx + 0x18]
cmp qword [rdx + 0x20], 8
jb 0x100054341
mov rsi, qword [rdx + 8]
jmp 0x100054345
lea rsi, [rdx + 8]
lea rcx, [rbp + 0x78]
call fcn.10005500c
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [rbx + 0x49], dil
je 0x100054388
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10005d1c0
jmp 0x1000543cc
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x49], dil
jne 0x1000543ac
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x49], dil
jne 0x1000543cc
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x49], dil
je 0x10005439e
jmp 0x1000543cc
mov rax, qword [rbx + 8]
cmp byte [rax + 0x49], dil
jne 0x1000543c9
cmp rbx, qword [rax + 0x10]
jne 0x1000543c9
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x49], dil
je 0x1000543b6
mov rbx, rax
cmp rbx, qword [rbp + 0x80]
jne 0x100054330
mov rax, qword [rbp + 0x68]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1000544cf
lea rsi, [rbx + 0x18]
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.100054de4
cmp qword [rax + 0x20], 8
jb 0x100054406
mov r13, qword [rax + 8]
jmp 0x10005440a
lea r13, [rax + 8]
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.100054de4
cmp qword [rax + 0x20], 8
jb 0x100054423
mov r12, qword [rax + 8]
jmp 0x100054427
lea r12, [rax + 8]
cmp qword [rsi + 0x20], 8
jb 0x100054434
mov rsi, qword [rsi + 8]
jmp 0x100054438
add rsi, 8
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [rbx + 0x69], dil
je 0x100054481
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10005d1c0
jmp 0x1000544c5
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x69], dil
jne 0x1000544a5
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], dil
jne 0x1000544c5
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], dil
je 0x100054497
jmp 0x1000544c5
mov rax, qword [rbx + 8]
cmp byte [rax + 0x69], dil
jne 0x1000544c2
cmp rbx, qword [rax + 0x10]
jne 0x1000544c2
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x69], dil
je 0x1000544af
mov rbx, rax
cmp rbx, qword [rbp + 0x68]
jne 0x1000543e9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
cmp qword [rsp + 0xd8], 8
jb 0x1000544f7
mov rcx, qword [rsp + 0xc0]
call sub.msvcrt.dll_free
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.100001c30
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret