Function at 0x140004254
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 [0x1400143a0]
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.1400040b0
mov edi, eax
mov dword [rbp], eax
test eax, eax
js 0x140004ac9
cmp word [rsi], 0x7d
je 0x140004ac6
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, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x140004310
test edi, edi
je 0x1400043d4
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400040b0
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ac6
cmp dword [rbp + 0x18], edx
je 0x1400043d4
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004357
cmp ax, 0x5c
je 0x14000435e
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 0x140004345
jmp 0x140004367
test rcx, rcx
jne 0x140004ac1
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 0x1400043a2
add rdi, 8
lea rax, [0x14000e600]
cmp rdi, rax
jl 0x14000436e
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x50], rax
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.140003dd8
xor eax, eax
cmp dword [rbp], eax
je 0x1400043d4
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400040b0
mov edi, eax
test eax, eax
js 0x140004b12
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140003ff4
mov edi, eax
xor edx, edx
jmp 0x140004a58
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 0x140004403
mov dword [rbp + 0x48], ecx
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400040b0
mov edi, eax
test eax, eax
js 0x140004ac6
lea rdx, [0x14000eff0]
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 0x140004522
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 8]
call fcn.1400040b0
mov edi, eax
test eax, eax
js 0x140004ac6
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400040b0
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ac6
cmp word [rsi], 0x3d
jne 0x140004ac1
cmp dword [rbp + 0x18], edx
je 0x14000449d
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.140003618
mov edi, eax
xor edx, edx
test eax, eax
jns 0x140004a5c
mov dword [rbp], eax
jmp 0x140004ac9
cmp dword [rbp + 0x2f0], edx
jne 0x140004511
mov rdi, rdx
mov qword [rbp + 0x10], rdx
mov dword [rbp + 0x10], edx
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 0x140004b14
mov eax, edx
mov rdi, qword [rbp]
mov qword [rbp + 0x10], rdi
test eax, eax
jne 0x140004b14
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 0x140004b14
test rdi, rdi
je 0x140004511
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.140003ff4
jmp 0x140004ab6
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x14000453e
cmp ax, 0x5c
je 0x140004545
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 0x14000452a
jmp 0x14000454e
test rcx, rcx
jne 0x140004ac1
cmp dword [rbp + 0x18], edx
je 0x1400046d6
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 0x1400045aa
mov ecx, edx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140004598
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 0x14000465d
jmp 0x1400045ae
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 0x1400045f5
mov eax, edx
test rdi, rdi
je 0x1400045e9
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 0x14000465d
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 0x140004ac1
mov ecx, edx
test rdi, rdi
je 0x14000464d
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 0x140004ac1
mov dil, dl
mov dword [rbp], edi
movzx eax, word [rsi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x140004695
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.1400040b0
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ac6
cmp word [rsi], 0x3d
jne 0x140004a5c
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.140003618
jmp 0x140004a54
mov edi, dword [rbp + 0x2f0]
test edi, edi
jne 0x140004738
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 0x14000472b
mov ecx, edx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x14000471f
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 0x140004738
mov eax, 1
mov edi, eax
mov dword [rbp + 0x2f0], eax
mov rcx, qword [rbp + 0x28]
test rcx, rcx
jne 0x140004798
mov ecx, 0x208
call fcn.140003d68
test al, al
je 0x140004763
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rcx, [rsp + 0x60]
mov eax, dword [rcx]
jmp 0x14000478b
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
test rax, rax
jne 0x14000477d
mov ecx, edx
mov qword [rbp + 0x28], rdx
jmp 0x14000478f
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 0x140004b33
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 0x1400048cb
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 0x140004804
cmp dword [rbp], ecx
ja 0x1400048cb
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 0x1400049f6
mov eax, dword [rbp]
lea ecx, [rdx + 1]
cmp eax, ecx
jne 0x1400048c3
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 0x1400049f6
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 0x1400048b3
cmp word [rdi], cx
je 0x1400048b3
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x1400048cb
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor edx, edx
jmp 0x1400049f6
test eax, eax
je 0x1400049f6
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400040b0
mov edi, eax
test eax, eax
js 0x140004ac6
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140003ff4
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ac6
cmp word [rsi], 0x7b
jne 0x140004954
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.140004254
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ac6
cmp dword [rbp + 0x2f0], edx
je 0x140004960
mov eax, dword [rbp + 0x68]
mov dword [rbp + 0x2f0], eax
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400040b0
mov edi, eax
test eax, eax
js 0x140004ac6
jmp 0x140004511
cmp dword [rbp + 0x2f0], edx
jne 0x1400042cd
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 0x1400049ea
cmp dword [rbp], edx
jbe 0x1400049ea
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 0x140004aaa
add rdi, 8
lea rax, [0x14000e600]
cmp rdi, rax
jl 0x1400049b3
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x30]
call fcn.140003dd8
jmp 0x140004aaa
cmp dword [rbp + 0x2f0], edx
jne 0x1400042cd
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140004a13
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 0x140004ac1
cmp dword [rbp + 0x48], edx
je 0x140004a36
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.140003f3c
nop
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400040b0
mov edi, eax
test eax, eax
js 0x140004ac6
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140003ff4
xor edx, edx
mov edi, eax
test eax, eax
js 0x140004ac6
mov ecx, dword [rbp + 0x18]
test ecx, ecx
je 0x1400042cd
cmp word [rsi], 0x7b
jne 0x1400042cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], dx
jne 0x140004a75
mov r8d, 1
cmp rax, r8
jne 0x1400042cd
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8, qword [rbp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004254
mov edi, eax
test eax, eax
js 0x140004ac6
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400040b0
test eax, eax
mov edi, eax
js 0x140004ac6
jmp 0x1400042cd
mov edi, 0x80020009
mov dword [rbp], edi
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140004adc
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x140004af5
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140004ae1
mov edi, dword [rbp]
mov eax, edi
mov rcx, qword [rbp + 0x290]
xor rcx, rbp
call fcn.14000c6d0
lea rsp, [rbp + 0x2a8]
pop rdi
pop rsi
pop rbx
pop rbp
ret
jmp 0x140004ac6
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140004ac6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140004ac6
mov edi, 0x8007000e
jmp 0x140004ac6