Function at 0x100146cac
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov r15, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x128]
mov r14d, r9d
mov r13b, r8b
mov sil, dl
mov rbx, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100146d25
test byte [rcx + 0x1c], 0x20
je 0x100146d25
cmp byte [rcx + 0x19], 4
jb 0x100146d25
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002c20]
mov edx, 0x2d
call fcn.10001c7b8
xor edi, edi
cmp rbp, rdi
jne 0x100146d44
lea r8, [0x100015928]
lea rcx, [0x1000157f8]
mov edx, 0x2a4
call fcn.100099ad8
mov r12, rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x80], edi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x68], rdi
mov edi, 0x10
lea rcx, [rsp + 0x88]
xor edx, edx
mov r8, rdi
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x98]
mov r8, rdi
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x88]
lea edx, [rdi - 0xf]
lea rcx, [0x100005f10]
call fcn.1000a53c0
mov edi, eax
test eax, eax
js 0x100147130
lea r8, [rsp + 0x98]
lea rcx, [0x100005f38]
mov edx, 1
call fcn.1000a53c0
mov edi, eax
test eax, eax
js 0x100147130
lea r8, [rsp + 0x78]
lea rdx, [0x100015950]
mov rcx, rbx
call fcn.10009b5b0
mov r12, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x100147130
lea rdx, [0x100015998]
mov r8, r12
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x100146e4b
lea rax, [rsp + 0x50]
mov edi, 0xf003f
lea rdx, [0x100015998]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100146e5e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100147130
test sil, sil
jne 0x100146f10
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
lea rdx, [0x1000159c0]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100146ed4
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x100146f17
test byte [rcx + 0x1c], 0x20
je 0x100146f17
cmp byte [rcx + 0x19], 3
jb 0x100146f17
mov edx, 0x2e
mov rcx, qword [rcx + 0x10]
movzx r9d, ax
lea r8, [0x100002c20]
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
call fcn.10001c7dc
jmp 0x100146f17
mov rcx, qword [rsp + 0x70]
lea rdx, [0x100015a20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100146f10
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x100146f17
test byte [rcx + 0x1c], 0x20
je 0x100146f17
cmp byte [rcx + 0x19], 3
jb 0x100146f17
mov edx, 0x2f
jmp 0x100146eb1
lea rbx, [0x1001653b8]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x80]
lea rdx, [0x1000158a0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], edi
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100146f95
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147130
test byte [rcx + 0x1c], 0x20
je 0x100147130
cmp byte [rcx + 0x19], 2
jb 0x100147130
mov edx, 0x30
jmp 0x1001470d3
mov rcx, qword [rsp + 0x60]
lea rdx, [0x100015a40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100146fec
cmp eax, 2
je 0x100146fec
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147130
test byte [rcx + 0x1c], 0x20
je 0x100147130
cmp byte [rcx + 0x19], 2
jb 0x100147130
mov edx, 0x31
jmp 0x1001470d3
mov r9, qword [rsp + 0x60]
mov r8, r15
mov edx, r14d
mov cl, r13b
call fcn.100147400
mov edi, eax
test eax, eax
jns 0x100147036
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147130
test byte [rcx + 0x1c], 0x20
je 0x100147130
cmp byte [rcx + 0x19], 2
jb 0x100147130
mov edx, 0x32
mov r9d, eax
jmp 0x1001470d6
lea rcx, [rsp + 0xa8]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x10014705f
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x100147069
mov edi, 0x80004005
jmp 0x100147130
mov r8, qword [rsp + 0x68]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
lea rdx, [0x100015a40]
mov r9d, 1
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1001470e8
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147130
test byte [rcx + 0x1c], 0x20
je 0x100147130
cmp byte [rcx + 0x19], 2
jb 0x100147130
mov edx, 0x33
mov r9d, edi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002c20]
call fcn.10001c7dc
jmp 0x100147130
mov rdx, qword [rsp + 0x50]
mov r8b, 1
mov rcx, rbp
call fcn.100145c38
mov edi, eax
test eax, eax
jns 0x100147130
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10014712e
test byte [rcx + 0x1c], 1
je 0x10014712e
cmp byte [rcx + 0x19], 2
jb 0x10014712e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002c20]
mov edx, 0x34
mov r9d, eax
call fcn.10001c7dc
xor edi, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x58], 0
je 0x10014716c
lea rdx, [0x100015998]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
cmp dword [rsp + 0x88], 0
je 0x100147199
lea rcx, [rsp + 0x88]
call fcn.1000a5480
test eax, eax
jns 0x100147199
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [rsp + 0x98], 0
je 0x1001471c6
lea rcx, [rsp + 0x98]
call fcn.1000a5480
test eax, eax
jns 0x1001471c6
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x68]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rsp + 0x68], 0
test r12, r12
je 0x1001471e5
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100147219
test byte [rcx + 0x1c], 0x20
je 0x100147219
cmp byte [rcx + 0x19], 4
jb 0x100147219
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002c20]
mov edx, 0x35
call fcn.10001c7b8
mov eax, edi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret