Function at 0x1400152b0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x108
mov qword [rsp + 0x90], 0xfffffffffffffffe
xor r13d, r13d
mov qword [rax + 0x20], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
lea rax, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [0x14005b2b8]
xor edx, edx
lea r8d, [r13 + 0x17]
lea rcx, [0x14005ae90]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp eax, r13d
jl 0x140016366
mov esi, 1
cmp qword [rsp + 0x158], r13
je 0x140015400
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rcx, qword [rsp + 0x158]
mov rax, qword [rcx]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x70]
call qword [rax + 0x50]
mov edi, eax
cmp eax, r13d
jl 0x14001637e
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp edi, r13d
jl 0x14001561b
or ebp, 0xffffffff
cmp qword [rsp + 0x158], r13
je 0x140015462
mov edx, ebp
lea rcx, str.MicrosoftWindowsMedia_Center
call fcn.14001567c
mov rbx, rax
mov qword [rsp + 0x140], rax
cmp rax, r13
je 0x140016395
mov rcx, qword [rsp + 0x158]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov rdx, rbx
call qword [rax + 0x38]
mov edi, eax
cmp eax, r13d
jl 0x1400163a5
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, r13d
jl 0x14001561b
cmp qword [rsp + 0x38], r13
je 0x1400154bb
mov edx, ebp
lea rcx, str.ehDRMInit
call fcn.14001567c
mov rbx, rax
mov qword [rsp + 0x140], rax
cmp rax, r13
je 0x1400163bc
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov rdx, rbx
call qword [rax + 0x68]
mov edi, eax
cmp eax, r13d
jl 0x1400163cc
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, r13d
jl 0x14001561b
cmp qword [rsp + 0x40], r13
je 0x140015522
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
call qword [rax + 0x60]
mov edi, eax
cmp eax, r13d
jl 0x1400163e3
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp edi, r13d
jl 0x14001561b
cmp qword [rsp + 0x48], r13
je 0x14001561b
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionMedia_CenterServiceehPrivJob
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, r13d
jne 0x14001647f
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x14001647f
mov ebp, r13d
mov dword [rsp + 0x140], r13d
mov dword [rsp + 0x150], r13d
mov dword [rsp + 0x148], 4
lea rax, [rsp + 0x148]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x150]
xor r8d, r8d
lea rdx, str.DRMInitResult
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, r13d
jne 0x1400163fa
mov r8d, dword [rsp + 0x140]
lea rdx, str.::InitWMDRM:WaitForActivationComplete:_got_hResult_0x_x.
mov ecx, 8
call fcn.140001110
mov edi, dword [rsp + 0x140]
lea rdx, str.DRMInitResult
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14001560a
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x14001561b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x48]
cmp rcx, r13
je 0x14001562c
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x14001563d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x14001564e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x158]
cmp rcx, r13
je 0x140015661
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
add rsp, 0x108
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8d, eax
lea rdx, str.::InitWMDRM:_SetOCURProductKey_CoCreateInstance_CLSID_TaskScheduler__failed__0x_x.
lea ecx, [r13 + 1]
call fcn.140001110
jmp 0x14001561b
mov r8d, eax
lea rdx, str.::InitWMDRM:_SetOCURProductKey_Connect_failed__0x_x.
mov ecx, esi
call fcn.140001110
nop
jmp 0x1400153f5
mov ecx, 0x8007000e
call fcn.140029690
nop
jmp 0x140024ed0
mov r8d, eax
lea rdx, str.::InitWMDRM:_SetOCURProductKey_GetFolder_failed__0x_x.
mov ecx, esi
call fcn.140001110
nop
jmp 0x140015459
mov ecx, 0x8007000e
call fcn.140029690
nop
jmp 0x140024ed1
mov r8d, eax
lea rdx, str.::InitWMDRM:_SetOCURProductKey_GetTask_failed__0x_x.
mov ecx, esi
call fcn.140001110
nop
jmp 0x1400154b2
mov r8d, eax
lea rdx, str.::InitWMDRM:_SetOCURProductKey_Run_failed__0x_x.
mov ecx, esi
call fcn.140001110
nop
jmp 0x140015517
lea r12d, [rbp + 1]
cmp r12d, 0xf0
jae 0x140016467
cmp eax, 2
jne 0x140016442
mov r8d, ebp
lea rdx, str.::InitWMDRM:WaitForActivationComplete:_Key_not_found__strike__d.
mov ecx, esi
call fcn.140001110
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, r12d
cmp r12d, 0xf0
jae 0x14001560a
mov rcx, qword [rsp + 0x30]
jmp 0x14001557e
mov r8d, eax
lea rdx, str.::InitWMDRM:WaitForActivationComplete:_RegQueryValueEx_failed_with_lRet___d.
mov ecx, esi
call fcn.140001110
movzx edi, bx
or edi, 0x80070000
cmp ebx, r13d
cmovle edi, ebx
jmp 0x14001560a
lea rdx, str.::InitWMDRM:WaitForActivationComplete:_Timed_out.
mov ecx, esi
call fcn.140001110
mov edi, 0x80004005
jmp 0x14001560a
mov r8d, eax
lea rdx, str.::InitWMDRM:WaitForActivationComplete:_Open_RegKey_failed_with_lRet___d.
mov ecx, esi
call fcn.140001110
movzx edi, bx
or edi, 0x80070000
cmp ebx, r13d
cmovle edi, ebx
jmp 0x14001560a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop