Function at 0x14000b050
Capabilities:
Delete registry key
Set registry value

Disassembly:
push rbp
push rsi
push r12
sub rsp, 0x60
cmp byte [0x140021dd4], 0
mov rsi, r8
mov rbp, rdx
mov r12, rcx
jne 0x14000b076
xor eax, eax
add rsp, 0x60
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x58], r13
xor r13d, r13d
mov edx, 0x104
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x98], r13
call fcn.14000b540
lea rcx, str.SOFTWAREMCAFEESYSTEMCOREAPILOGCALLBACK
mov rdi, rax
call fcn.14000b4a0
mov r14, 0xffffffffffffffff
lea rdi, [rdi + rax + 2]
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.14000a810
test rax, rax
mov rbx, rax
jne 0x14000b0e4
lea eax, [rbx + 0xe]
jmp 0x14000b2bf
lea rdx, str.SOFTWAREMCAFEESYSTEMCOREAPILOGCALLBACK
mov r8, rdi
mov rcx, rax
call fcn.14000b5e0
lea r8, [0x140019494]
mov rdx, rdi
mov rcx, rbx
call fcn.14000b640
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call fcn.14000b640
mov rcx, qword [0x14001d128]
lea r12, [0x14001d128]
cmp rcx, r12
je 0x14000b156
test byte [rcx + 0x1c], 1
je 0x14000b156
cmp byte [rcx + 0x19], 4
jb 0x14000b156
mov rcx, qword [rcx + 0x10]
lea r8, [0x14001a7c0]
mov r9, rbx
mov dx, 0xd
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbp
call fcn.14000abb0
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edi, eax
jne 0x14000b23a
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
lea r9d, [rax + 1]
xor r8d, r8d
not rcx
mov rdx, rbp
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edi, eax
je 0x14000b223
mov rcx, qword [0x14001d128]
cmp rcx, r12
je 0x14000b223
test byte [rcx + 0x1c], 1
je 0x14000b223
cmp byte [rcx + 0x19], 4
jb 0x14000b223
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [0x14001a7c0]
mov r9d, eax
mov dx, 0xe
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
call fcn.14000ad20
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x14001d128]
jmp 0x14000b27f
mov rcx, qword [0x14001d128]
cmp rcx, r12
je 0x14000b27f
test byte [rcx + 0x1c], 1
je 0x14000b27f
cmp byte [rcx + 0x19], 4
jb 0x14000b27f
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [0x14001a7c0]
mov r9d, eax
mov dx, 0xf
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
call fcn.14000ad20
mov rcx, qword [0x14001d128]
test edi, edi
jne 0x14000b2b5
cmp rcx, r12
je 0x14000b2b5
test byte [rcx + 0x1c], 1
je 0x14000b2b5
cmp byte [rcx + 0x19], 4
jb 0x14000b2b5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14001a7c0]
mov r9, rbx
mov dx, 0x10
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbp
call fcn.14000abb0
mov rcx, rbx
call fcn.14000a820
mov eax, edi
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
add rsp, 0x60
pop r12
pop rsi
pop rbp
ret