Function at 0x14008db04
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rsi, rcx
mov rcx, qword [0x14017d3a8]
lea rbp, [0x14017d3a8]
cmp rcx, rbp
je 0x14008db4c
test byte [rcx + 0x1c], 1
je 0x14008db4c
cmp byte [rcx + 0x19], 4
jb 0x14008db4c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
mov edx, 0xa
call fcn.14001dd24
xor edi, edi
test rsi, rsi
jne 0x14008db69
lea r8, [0x1400081e8]
lea edx, [rdi + 0x53]
lea rcx, [0x140008200]
call fcn.1400a8be8
mov ecx, dword [rsi + 4]
mov ebx, edi
mov qword [rsp + 0xa8], rdi
shl rcx, 3
mov r12, rdi
mov qword [rsp + 0xa0], rdi
mov r13d, edi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, dword [rsi + 4]
shl rcx, 2
mov r15, rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
mov qword [rsp + 0x30], rax
test r15, r15
je 0x14008e0ba
test rax, rax
je 0x14008e0ba
mov r8d, dword [rsi + 4]
xor edx, edx
mov rcx, r15
shl r8, 3
call sub.msvcrt.dll_memset
mov r8d, dword [rsi + 4]
xor edx, edx
shl r8, 2
mov rcx, r14
call sub.msvcrt.dll_memset
mov rcx, qword [0x14017d3a8]
cmp rcx, rbp
je 0x14008dc18
test byte [rcx + 0x1c], 1
je 0x14008dc18
cmp byte [rcx + 0x19], 4
jb 0x14008dc18
mov eax, dword [rsi + 4]
mov r9d, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
mov edx, reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov dword [rsp + 0x20], eax
call fcn.1400285b4
lea rax, [rsp + 0xa8]
mov edi, 2
lea rdx, [0x140008240]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
xor eax, eax
test ebp, ebp
je 0x14008dc91
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008dc7e
test byte [rcx + 0x1c], 1
je 0x14008dc7e
cmp byte [rcx + 0x19], dil
jb 0x14008dc7e
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xb]
lea r8, [0x140008828]
call fcn.14001dd24
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
jmp 0x14008e107
mov ebp, eax
cmp dword [rsi + 4], eax
jbe 0x14008dd86
mov r14, rax
mov ecx, ebp
lea rdx, [rsp + 0x90]
shl rcx, 4
add rcx, qword [rsi + 8]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x14008de70
mov rax, qword [rsi + 0x10]
cmp dword [r14 + rax], 1
je 0x14008dce8
cmp dword [r14 + rax], edi
je 0x14008dce8
lea r8, [0x1400082d0]
lea rcx, [0x140008200]
mov edx, 0x85
call fcn.1400a8be8
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsp + 0x90]
lea rcx, [0x140008378]
mov r8d, dword [r14 + rax]
call qword [sym.imp.msvcrt.dll__scwprintf]
mov r12d, eax
inc eax
movsxd rbx, eax
lea rcx, [rbx + rbx]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [r15], rax
test rax, rax
je 0x14008de32
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r11, qword [rsi + 0x10]
mov r9, qword [rsp + 0x90]
mov eax, dword [r14 + r11]
mov rcx, qword [r15]
lea r8, [0x140008378]
mov rdx, rbx
mov dword [rsp + 0x20], eax
call fcn.1400284c0
mov ebx, eax
test eax, eax
js 0x14008dded
mov rax, qword [rsp + 0x30]
inc r13d
inc ebp
mov dword [r14 + rax], r12d
add r14, 4
add r13d, r12d
add r15, 8
cmp ebp, dword [rsi + 4]
jb 0x14008dc9f
mov r14, rax
inc r13d
lea r12, [r13*2]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x14008de96
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008dde0
test byte [rcx + 0x1c], 1
je 0x14008dde0
cmp byte [rcx + 0x19], dil
jb 0x14008dde0
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x11]
lea r8, [0x140008828]
call fcn.14001dd24
mov ebx, 0x8007000e
mov r12, rbp
jmp 0x14008e107
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008e0ff
test byte [rcx + 0x1c], 1
je 0x14008e0ff
cmp byte [rcx + 0x19], dil
jb 0x14008e0ff
mov edx, CoRevokeClassObject
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
call fcn.14001dd24
jmp 0x14008e0ff
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008de66
test byte [rcx + 0x1c], 1
je 0x14008de66
cmp byte [rcx + 0x19], dil
jb 0x14008de66
mov edx, reloc.ADVAPI32.dll_RegisterTraceGuidsW
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
call fcn.14001dd24
mov ebx, 0x8007000e
jmp 0x14008e0ff
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008de66
test byte [rcx + 0x1c], 1
je 0x14008de66
cmp byte [rcx + 0x19], dil
jb 0x14008de66
mov edx, reloc.ADVAPI32.dll_GetTraceEnableFlags
jmp 0x14008de56
mov r8, r12
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor eax, eax
mov r15, rbp
mov dword [rsp + 0x90], eax
cmp dword [rsi + 4], eax
jbe 0x14008df44
mov rbp, qword [rsp + 0x38]
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14008defc
test byte [rcx + 0x1c], 1
je 0x14008defc
cmp byte [rcx + 0x19], 4
jb 0x14008defc
mov eax, dword [r14]
mov r9, qword [rbp]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
mov edx, CoDisconnectObject
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov edx, dword [r14]
mov r8, qword [rbp]
mov rcx, r15
inc rdx
call fcn.140052508
test eax, eax
js 0x14008dfe8
mov eax, dword [r14]
add rbp, 8
add r14, 4
inc eax
lea r15, [r15 + rax*2]
mov eax, dword [rsp + 0x90]
inc eax
mov dword [rsp + 0x90], eax
cmp eax, dword [rsi + 4]
jb 0x14008debd
mov rbp, qword [rsp + 0xa0]
lea rax, [rbp - 2]
add rax, r12
cmp r15, rax
je 0x14008df68
lea r8, [0x140008390]
lea rcx, [0x140008200]
mov edx, 0xbe
call fcn.1400a8be8
xor r14d, r14d
lea eax, [r13*2]
lea rdx, [0x1400083f8]
mov word [r15], r14w
mov rcx, qword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
lea r9d, [r14 + 7]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
je 0x14008e01d
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008dfd5
test byte [rcx + 0x1c], 1
je 0x14008dfd5
cmp byte [rcx + 0x19], dil
jb 0x14008dfd5
lea edx, [r14 + 0x14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
call fcn.14001dd24
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
jmp 0x14008e0ff
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008e0ff
test byte [rcx + 0x1c], 1
je 0x14008e0ff
cmp byte [rcx + 0x19], dil
jb 0x14008e0ff
mov edx, reloc.ole32.dll_CoDisconnectObject
jmp 0x14008de1d
mov eax, dword [rsi]
mov rcx, qword [rsp + 0xa8]
lea rdx, [0x140008430]
mov dword [rsp + 0x98], eax
lea rax, [rsp + 0x98]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rsi], 1
mov ebp, eax
je 0x14008e081
cmp dword [rsi], edi
je 0x14008e081
cmp dword [rsi], 3
je 0x14008e081
lea r8, [0x140008470]
lea rcx, [0x140008200]
mov edx, 0xde
call fcn.1400a8be8
test ebp, ebp
je 0x14008e0f8
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008dfd5
test byte [rcx + 0x1c], 1
je 0x14008dfd5
cmp byte [rcx + 0x19], dil
jb 0x14008dfd5
mov edx, 0x15
jmp 0x14008dfc5
mov rcx, qword [0x14017d3a8]
mov edi, 2
cmp rcx, rbp
je 0x14008e0ea
test byte [rcx + 0x1c], 1
je 0x14008e0ea
cmp byte [rcx + 0x19], dil
jb 0x14008e0ea
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
lea r8, [0x140008828]
call fcn.14001dd24
mov ebx, 0x8007000e
lea r13, [0x14017d3a8]
jmp 0x14008e107
lea r13, [0x14017d3a8]
mov r12, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x38]
xor ebp, ebp
test r15, r15
je 0x14008e13c
xor eax, eax
cmp dword [rsi + 4], eax
jbe 0x14008e131
mov r14, r15
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
inc ebp
add r14, 8
cmp ebp, dword [rsi + 4]
jb 0x14008e11d
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebp, ebp
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14008e19b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test eax, eax
je 0x14008e193
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14008e185
test byte [rcx + 0x1c], 1
je 0x14008e185
cmp byte [rcx + 0x19], dil
jb 0x14008e185
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
mov edx, 0x16
mov r9d, eax
call fcn.14001de24
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
mov qword [rsp + 0xa8], rbp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x14008e1e3
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14008e210
test byte [rcx + 0x1c], 1
je 0x14008e1ea
cmp byte [rcx + 0x19], dil
jb 0x14008e1ea
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
mov edx, 0x17
mov r9d, ebx
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14008e210
test byte [rcx + 0x1c], 1
je 0x14008e210
cmp byte [rcx + 0x19], 4
jb 0x14008e210
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008828]
mov edx, 0x18
call fcn.14001dd24
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret