Function at 0x100146e04
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 0x100146e7d
test byte [rcx + 0x1c], 0x20
je 0x100146e7d
cmp byte [rcx + 0x19], 4
jb 0x100146e7d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002be0]
mov edx, 0x2d
call fcn.10001c854
xor edi, edi
cmp rbp, rdi
jne 0x100146e9c
lea r8, [0x100015988]
lea rcx, [0x100015858]
mov edx, 0x2a4
call fcn.10009a050
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, [0x100005ea0]
call fcn.1000a5794
mov edi, eax
test eax, eax
js 0x100147288
lea r8, [rsp + 0x98]
lea rcx, [0x100005ec8]
mov edx, 1
call fcn.1000a5794
mov edi, eax
test eax, eax
js 0x100147288
lea r8, [rsp + 0x78]
lea rdx, [0x1000159b0]
mov rcx, rbx
call fcn.10009bb88
mov r12, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x100147288
lea rdx, [0x1000159f8]
mov r8, r12
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x100146fa3
lea rax, [rsp + 0x50]
mov edi, 0xf003f
lea rdx, [0x1000159f8]
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 0x100146fb6
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100147288
test sil, sil
jne 0x100147068
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
lea rdx, [0x100015a20]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10014702c
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10014706f
test byte [rcx + 0x1c], 0x20
je 0x10014706f
cmp byte [rcx + 0x19], 3
jb 0x10014706f
mov edx, 0x2e
mov rcx, qword [rcx + 0x10]
movzx r9d, ax
lea r8, [0x100002be0]
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
call fcn.10001c878
jmp 0x10014706f
mov rcx, qword [rsp + 0x70]
lea rdx, [0x100015a80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100147068
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10014706f
test byte [rcx + 0x1c], 0x20
je 0x10014706f
cmp byte [rcx + 0x19], 3
jb 0x10014706f
mov edx, 0x2f
jmp 0x100147009
lea rbx, [0x1001653b8]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x80]
lea rdx, [0x100015900]
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 0x1001470ed
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147288
test byte [rcx + 0x1c], 0x20
je 0x100147288
cmp byte [rcx + 0x19], 2
jb 0x100147288
mov edx, 0x30
jmp 0x10014722b
mov rcx, qword [rsp + 0x60]
lea rdx, [0x100015aa0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100147144
cmp eax, 2
je 0x100147144
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147288
test byte [rcx + 0x1c], 0x20
je 0x100147288
cmp byte [rcx + 0x19], 2
jb 0x100147288
mov edx, 0x31
jmp 0x10014722b
mov r9, qword [rsp + 0x60]
mov r8, r15
mov edx, r14d
mov cl, r13b
call fcn.100147558
mov edi, eax
test eax, eax
jns 0x10014718e
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147288
test byte [rcx + 0x1c], 0x20
je 0x100147288
cmp byte [rcx + 0x19], 2
jb 0x100147288
mov edx, 0x32
mov r9d, eax
jmp 0x10014722e
lea rcx, [rsp + 0xa8]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x1001471b7
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x1001471c1
mov edi, 0x80004005
jmp 0x100147288
mov r8, qword [rsp + 0x68]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
lea rdx, [0x100015aa0]
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 0x100147240
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147288
test byte [rcx + 0x1c], 0x20
je 0x100147288
cmp byte [rcx + 0x19], 2
jb 0x100147288
mov edx, 0x33
mov r9d, edi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002be0]
call fcn.10001c878
jmp 0x100147288
mov rdx, qword [rsp + 0x50]
mov r8b, 1
mov rcx, rbp
call fcn.100145d90
mov edi, eax
test eax, eax
jns 0x100147288
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x100147286
test byte [rcx + 0x1c], 1
je 0x100147286
cmp byte [rcx + 0x19], 2
jb 0x100147286
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002be0]
mov edx, 0x34
mov r9d, eax
call fcn.10001c878
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 0x1001472c4
lea rdx, [0x1000159f8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
cmp dword [rsp + 0x88], 0
je 0x1001472f1
lea rcx, [rsp + 0x88]
call fcn.1000a5854
test eax, eax
jns 0x1001472f1
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 0x10014731e
lea rcx, [rsp + 0x98]
call fcn.1000a5854
test eax, eax
jns 0x10014731e
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 0x10014733d
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100147371
test byte [rcx + 0x1c], 0x20
je 0x100147371
cmp byte [rcx + 0x19], 4
jb 0x100147371
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002be0]
mov edx, 0x35
call fcn.10001c854
mov eax, edi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret