Function at 0x1400043e8
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.140004258
mov edi, eax
mov dword [rbp], eax
test eax, eax
js 0x140004ca6
cmp word [rsi], 0x7d
je 0x140004ca3
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, [0x14000eef0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x1400044a4
test edi, edi
je 0x140004568
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004258
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ca3
cmp dword [rbp + 0x18], edx
je 0x140004568
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x1400044eb
cmp ax, 0x5c
je 0x1400044f2
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 0x1400044d9
jmp 0x1400044fb
test rcx, rcx
jne 0x140004c6f
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 0x140004536
add rdi, 8
lea rax, [0x14000e5d0]
cmp rdi, rax
jl 0x140004502
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x50], rax
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.140003f80
xor eax, eax
cmp dword [rbp], eax
je 0x140004568
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004258
mov edi, eax
test eax, eax
js 0x140004c71
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.14000419c
mov edi, eax
xor edx, edx
jmp 0x140004c02
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 0x140004597
mov dword [rbp + 0x48], ecx
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004258
mov edi, eax
test eax, eax
js 0x140004ca3
lea rdx, [0x14000eee8]
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 0x1400046b3
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 8]
call fcn.140004258
mov edi, eax
test eax, eax
js 0x140004ca3
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004258
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ca3
cmp word [rsi], 0x3d
jne 0x140004c9e
cmp dword [rbp + 0x18], edx
je 0x14000462e
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.1400036e8
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004c73
jmp 0x140004c0a
cmp dword [rbp + 0x2f0], edx
jne 0x1400046a2
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 0x140004c78
mov eax, edx
mov rdi, qword [rbp]
mov qword [rbp + 0x10], rdi
test eax, eax
jne 0x140004c78
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 0x140004c78
test rdi, rdi
je 0x1400046a2
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.14000419c
jmp 0x140004c64
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x1400046cf
cmp ax, 0x5c
je 0x1400046d6
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 0x1400046bb
jmp 0x1400046df
test rcx, rcx
jne 0x140004c9e
cmp dword [rbp + 0x18], edx
je 0x140004867
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 0x14000473b
mov ecx, edx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140004729
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 0x1400047ee
jmp 0x14000473f
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 0x140004786
mov eax, edx
test rdi, rdi
je 0x14000477a
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 0x1400047ee
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 0x140004c9e
mov ecx, edx
test rdi, rdi
je 0x1400047de
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 0x140004c9e
mov dil, dl
mov dword [rbp], edi
movzx eax, word [rsi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x140004826
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.140004258
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ca3
cmp word [rsi], 0x3d
jne 0x140004c0a
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.1400036e8
jmp 0x140004bfe
mov edi, dword [rbp + 0x2f0]
test edi, edi
jne 0x1400048c9
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 0x1400048bc
mov ecx, edx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x1400048b0
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 0x1400048c9
mov eax, 1
mov edi, eax
mov dword [rbp + 0x2f0], eax
mov rcx, qword [rbp + 0x28]
test rcx, rcx
jne 0x140004929
mov ecx, 0x208
call fcn.140003f10
test al, al
je 0x1400048f4
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rcx, [rsp + 0x60]
mov eax, dword [rcx]
jmp 0x14000491c
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
test rax, rax
jne 0x14000490e
mov ecx, edx
mov qword [rbp + 0x28], rdx
jmp 0x140004920
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 0x140004c97
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 0x140004a6a
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 0x14000499c
mov eax, ecx
cmp dword [rbp], ecx
seta al
test eax, eax
jne 0x140004a6a
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 0x140004b9c
mov ecx, dword [rbp]
lea eax, [rdx + 1]
cmp ecx, eax
jne 0x140004a5b
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 0x140004b9c
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 0x140004a4b
cmp word [rdi], cx
je 0x140004a4b
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140004a6a
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor edx, edx
jmp 0x140004b9c
mov eax, edx
test ecx, ecx
setne al
test eax, eax
je 0x140004b9c
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004258
mov edi, eax
test eax, eax
js 0x140004ca3
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.14000419c
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ca3
cmp word [rsi], 0x7b
jne 0x140004af3
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.1400043e8
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ca3
cmp dword [rbp + 0x2f0], edx
je 0x140004aff
mov eax, dword [rbp + 0x68]
mov dword [rbp + 0x2f0], eax
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004258
mov edi, eax
test eax, eax
js 0x140004ca3
jmp 0x1400046a2
cmp dword [rbp + 0x2f0], edx
jne 0x140004461
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 0x140004b90
mov eax, edx
cmp dword [rbp], edx
seta al
test eax, eax
je 0x140004b90
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 0x140004c58
add rdi, 8
lea rax, [0x14000e5d0]
cmp rdi, rax
jl 0x140004b59
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x30]
call fcn.140003f80
jmp 0x140004c58
cmp dword [rbp + 0x2f0], edx
jne 0x140004461
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140004bb9
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 0x140004c9e
cmp dword [rbp + 0x48], edx
je 0x140004bdc
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.1400040e4
nop
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004258
mov edi, eax
test eax, eax
js 0x140004ca3
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.14000419c
xor edx, edx
mov edi, eax
test eax, eax
js 0x140004ca3
mov ecx, dword [rbp + 0x18]
test ecx, ecx
je 0x140004461
cmp word [rsi], 0x7b
jne 0x140004461
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], dx
jne 0x140004c23
mov r8d, 1
cmp rax, r8
jne 0x140004461
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8, qword [rbp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400043e8
mov edi, eax
test eax, eax
js 0x140004ca3
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004258
test eax, eax
mov edi, eax
js 0x140004ca3
jmp 0x140004461
jmp 0x140004c9e
jmp 0x140004ca3
mov dword [rbp], eax
jmp 0x140004ca6
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140004ca3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140004ca3
mov edi, 0x8007000e
jmp 0x140004ca3
mov edi, 0x80020009
mov dword [rbp], edi
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140004cb9
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x140004cd2
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140004cbe
mov edi, dword [rbp]
mov eax, edi
mov rcx, qword [rbp + 0x290]
xor rcx, rbp
call fcn.14000c8f0
lea rsp, [rbp + 0x2a8]
pop rdi
pop rsi
pop rbx
pop rbp
ret