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

Disassembly:
push rbp
push rbx
push rsi
push rdi
sub rsp, 0x308
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400153a0]
xor rax, rbp
mov qword [rbp + 0x290], rax
mov dword [rbp + 0x18], r9d
mov qword [rbp + 0x20], r8
mov rsi, rdx
mov rax, rcx
mov qword [rbp + 8], rcx
xor ecx, ecx
mov ebx, ecx
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x28], rcx
mov dword [rbp + 0x48], 1
mov ecx, dword [rbp + 0x2f0]
mov dword [rbp + 0x68], ecx
mov rcx, rax
call fcn.1400044b0
mov edi, eax
mov dword [rbp], eax
test eax, eax
js 0x140004efa
cmp word [rsi], 0x7d
je 0x140004ef7
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
xor ecx, ecx
mov edi, ecx
test eax, eax
sete dil
mov dword [rbp], edi
lea rdx, [0x14000ff50]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x1400046f8
test edi, edi
je 0x1400047bc
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ef7
cmp dword [rbp + 0x18], edx
je 0x1400047bc
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x14000473f
cmp ax, 0x5c
je 0x140004746
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000472d
jmp 0x14000474f
test rcx, rcx
jne 0x140004ec3
lea rdi, str.CLSID
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x14000478a
add rdi, 8
lea rax, [0x14000f040]
cmp rdi, rax
jl 0x140004756
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x50], rax
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.1400041c8
xor eax, eax
cmp dword [rbp], eax
je 0x1400047bc
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
test eax, eax
js 0x140004ec5
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400043f4
mov edi, eax
xor edx, edx
jmp 0x140004e56
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
jne 0x1400047eb
mov dword [rbp + 0x48], ecx
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
test eax, eax
js 0x140004ef7
lea rdx, [0x14000ff48]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x140004907
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
test eax, eax
js 0x140004ef7
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ef7
cmp word [rsi], 0x3d
jne 0x140004ef2
cmp dword [rbp + 0x18], edx
je 0x140004882
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x50], rax
mov byte [rsp + 0x20], dl
mov r9, rsi
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.140003924
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ec7
jmp 0x140004e5e
cmp dword [rbp + 0x2f0], edx
jne 0x1400048f6
mov rdi, rdx
mov qword [rbp + 0x10], rdx
mov qword [rbp], rdx
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
jne 0x140004ecc
mov eax, edx
mov rdi, qword [rbp]
mov qword [rbp + 0x10], rdi
test eax, eax
jne 0x140004ecc
lea rdx, [rbp + 0x80]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140004ecc
test rdi, rdi
je 0x1400048f6
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400043f4
jmp 0x140004eb8
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004923
cmp ax, 0x5c
je 0x14000492a
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x14000490f
jmp 0x140004933
test rcx, rcx
jne 0x140004ef2
cmp dword [rbp + 0x18], edx
je 0x140004abb
mov qword [rbp + 0x10], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
jne 0x14000498f
mov ecx, edx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x14000497d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, eax
xor edx, edx
mov rdi, qword [rbp + 0x10]
mov qword [rbp + 0x30], rdi
test ecx, ecx
je 0x140004a42
jmp 0x140004993
mov rdi, qword [rbp + 0x30]
mov qword [rbp + 0x10], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
jne 0x1400049da
mov eax, edx
test rdi, rdi
je 0x1400049ce
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor edx, edx
mov rdi, qword [rbp + 0x10]
mov qword [rbp + 0x30], rdi
test eax, eax
je 0x140004a42
mov qword [rbp + 0x10], rdx
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x140004ef2
mov ecx, edx
test rdi, rdi
je 0x140004a32
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, eax
xor edx, edx
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x30], rax
test ecx, ecx
jne 0x140004ef2
mov dil, dl
mov dword [rbp], edi
movzx eax, word [rsi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x140004a7a
lea rdx, str.LocalServer32
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
movzx edi, dil
test eax, eax
mov eax, 1
cmove edi, eax
mov dword [rbp], edi
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ef7
cmp word [rsi], 0x3d
jne 0x140004e5e
mov eax, dword [rbp]
mov byte [rsp + 0x20], al
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140003924
jmp 0x140004e52
mov edi, dword [rbp + 0x2f0]
test edi, edi
jne 0x140004b1d
mov qword [rbp + 0x10], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
jne 0x140004b10
mov ecx, edx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140004b04
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x30], rax
test ecx, ecx
je 0x140004b1d
mov eax, 1
mov edi, eax
mov dword [rbp + 0x2f0], eax
mov rcx, qword [rbp + 0x28]
test rcx, rcx
jne 0x140004b7d
mov ecx, 0x208
call fcn.140004150
test al, al
je 0x140004b48
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rcx, [rsp + 0x60]
mov eax, dword [rcx]
jmp 0x140004b70
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
test rax, rax
jne 0x140004b62
mov ecx, edx
mov qword [rbp + 0x28], rdx
jmp 0x140004b74
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 0x70], rax
lea rcx, [rax + 0x10]
mov qword [rbp + 0x28], rcx
test rcx, rcx
je 0x140004eeb
mov r8d, 0x104
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
xor eax, eax
test edi, edi
jne 0x140004cbe
mov dword [rbp], eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rdi, qword [rbp + 0x30]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
xor ecx, ecx
test eax, eax
js 0x140004bf0
mov eax, ecx
cmp dword [rbp], ecx
seta al
test eax, eax
jne 0x140004cbe
mov dword [rbp], ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x140004df0
mov ecx, dword [rbp]
lea eax, [rdx + 1]
cmp ecx, eax
jne 0x140004caf
mov dword [rbp + 0x10], 0x1000
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
xor edx, edx
test rax, rax
je 0x140004df0
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x10]
mov r8, rax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
xor ecx, ecx
test eax, eax
jne 0x140004c9f
cmp word [rdi], cx
je 0x140004c9f
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140004cbe
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor edx, edx
jmp 0x140004df0
mov eax, edx
test ecx, ecx
setne al
test eax, eax
je 0x140004df0
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
test eax, eax
js 0x140004ef7
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400043f4
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ef7
cmp word [rsi], 0x7b
jne 0x140004d47
mov eax, dword [rbp + 0x2f0]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.14000463c
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ef7
cmp dword [rbp + 0x2f0], edx
je 0x140004d53
mov eax, dword [rbp + 0x68]
mov dword [rbp + 0x2f0], eax
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
test eax, eax
js 0x140004ef7
jmp 0x1400048f6
cmp dword [rbp + 0x2f0], edx
jne 0x1400046b5
mov dword [rbp], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
js 0x140004de4
mov eax, edx
cmp dword [rbp], edx
seta al
test eax, eax
je 0x140004de4
lea rdi, str.CLSID
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x140004eac
add rdi, 8
lea rax, [0x14000f040]
cmp rdi, rax
jl 0x140004dad
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x30]
call fcn.1400041c8
jmp 0x140004eac
cmp dword [rbp + 0x2f0], edx
jne 0x1400046b5
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140004e0d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor edx, edx
mov qword [rbp + 0x30], rdx
test eax, eax
jne 0x140004ef2
cmp dword [rbp + 0x48], edx
je 0x140004e30
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x50], rax
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x50]
call fcn.140004338
nop
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
mov edi, eax
test eax, eax
js 0x140004ef7
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400043f4
xor edx, edx
mov edi, eax
test eax, eax
js 0x140004ef7
mov ecx, dword [rbp + 0x18]
test ecx, ecx
je 0x1400046b5
cmp word [rsi], 0x7b
jne 0x1400046b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], dx
jne 0x140004e77
mov r8d, 1
cmp rax, r8
jne 0x1400046b5
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8, qword [rbp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.14000463c
mov edi, eax
test eax, eax
js 0x140004ef7
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400044b0
test eax, eax
mov edi, eax
js 0x140004ef7
jmp 0x1400046b5
jmp 0x140004ef2
jmp 0x140004ef7
mov dword [rbp], eax
jmp 0x140004efa
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140004ef7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140004ef7
mov edi, 0x8007000e
jmp 0x140004ef7
mov edi, 0x80020009
mov dword [rbp], edi
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140004f0d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x140004f26
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140004f12
mov edi, dword [rbp]
mov eax, edi
mov rcx, qword [rbp + 0x290]
xor rcx, rbp
call fcn.14000cf30
lea rsp, [rbp + 0x2a8]
pop rdi
pop rsi
pop rbx
pop rbp
ret