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

Disassembly:
push rbp
push rbx
push rsi
push rdi
sub rsp, 0x318
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x2a0], 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 + 0x300]
mov dword [rbp + 0x68], ecx
mov rcx, rax
call fcn.1400045e4
mov edi, eax
mov dword [rbp], eax
test eax, eax
js 0x140005031
cmp word [rsi], 0x7d
je 0x14000502e
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, [0x1400108e0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x14000482f
test edi, edi
je 0x1400048f3
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400045e4
mov edi, eax
xor edx, edx
test eax, eax
js 0x14000502e
cmp dword [rbp + 0x18], edx
je 0x1400048f3
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004876
cmp ax, 0x5c
je 0x14000487d
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 0x140004864
jmp 0x140004886
test rcx, rcx
jne 0x140004ffa
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 0x1400048c1
add rdi, 8
lea rax, [0x140010940]
cmp rdi, rax
jl 0x14000488d
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x50], rax
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.1400042e8
xor eax, eax
cmp dword [rbp], eax
je 0x1400048f3
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400045e4
mov edi, eax
test eax, eax
js 0x140004ffc
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004528
mov edi, eax
xor edx, edx
jmp 0x140004f8d
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 0x140004922
mov dword [rbp + 0x48], ecx
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400045e4
mov edi, eax
test eax, eax
js 0x14000502e
lea rdx, [0x1400108d8]
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 0x140004a3e
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 8]
call fcn.1400045e4
mov edi, eax
test eax, eax
js 0x14000502e
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400045e4
mov edi, eax
xor edx, edx
test eax, eax
js 0x14000502e
cmp word [rsi], 0x3d
jne 0x140005029
cmp dword [rbp + 0x18], edx
je 0x1400049b9
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 + 0x90]
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.140003a3c
mov edi, eax
xor edx, edx
test eax, eax
js 0x140004ffe
jmp 0x140004f95
cmp dword [rbp + 0x300], edx
jne 0x140004a2d
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 0x140005003
mov eax, edx
mov rdi, qword [rbp]
mov qword [rbp + 0x10], rdi
test eax, eax
jne 0x140005003
lea rdx, [rbp + 0x90]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140005003
test rdi, rdi
je 0x140004a2d
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.140004528
jmp 0x140004fef
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004a5a
cmp ax, 0x5c
je 0x140004a61
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 0x140004a46
jmp 0x140004a6a
test rcx, rcx
jne 0x140005029
cmp dword [rbp + 0x18], edx
je 0x140004bf2
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 0x140004ac6
mov ecx, edx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140004ab4
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 0x140004b79
jmp 0x140004aca
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 0x140004b11
mov eax, edx
test rdi, rdi
je 0x140004b05
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 0x140004b79
mov qword [rbp + 0x10], rdx
lea rax, [rbp + 0x78]
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 0x140005029
mov ecx, edx
test rdi, rdi
je 0x140004b69
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 0x140005029
mov dil, dl
mov dword [rbp], edi
movzx eax, word [rsi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x140004bb1
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.1400045e4
mov edi, eax
xor edx, edx
test eax, eax
js 0x14000502e
cmp word [rsi], 0x3d
jne 0x140004f95
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.140003a3c
jmp 0x140004f89
mov edi, dword [rbp + 0x300]
test edi, edi
jne 0x140004c54
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 0x140004c47
mov ecx, edx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140004c3b
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 0x140004c54
mov eax, 1
mov edi, eax
mov dword [rbp + 0x300], eax
mov rcx, qword [rbp + 0x28]
test rcx, rcx
jne 0x140004cb4
mov ecx, 0x208
call fcn.140004270
test al, al
je 0x140004c7f
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rcx, [rsp + 0x60]
mov eax, dword [rcx]
jmp 0x140004ca7
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
test rax, rax
jne 0x140004c99
mov ecx, edx
mov qword [rbp + 0x28], rdx
jmp 0x140004cab
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 0x140005022
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 0x140004df5
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 0x140004d27
mov eax, ecx
cmp dword [rbp], ecx
seta al
test eax, eax
jne 0x140004df5
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 0x140004f27
mov ecx, dword [rbp]
lea eax, [rdx + 1]
cmp ecx, eax
jne 0x140004de6
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 0x140004f27
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 0x140004dd6
cmp word [rdi], cx
je 0x140004dd6
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140004df5
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor edx, edx
jmp 0x140004f27
mov eax, edx
test ecx, ecx
setne al
test eax, eax
je 0x140004f27
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400045e4
mov edi, eax
test eax, eax
js 0x14000502e
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004528
mov edi, eax
xor edx, edx
test eax, eax
js 0x14000502e
cmp word [rsi], 0x7b
jne 0x140004e7e
mov eax, dword [rbp + 0x300]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004770
mov edi, eax
xor edx, edx
test eax, eax
js 0x14000502e
cmp dword [rbp + 0x300], edx
je 0x140004e8a
mov eax, dword [rbp + 0x68]
mov dword [rbp + 0x300], eax
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400045e4
mov edi, eax
test eax, eax
js 0x14000502e
jmp 0x140004a2d
cmp dword [rbp + 0x300], edx
jne 0x1400047ec
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 0x140004f1b
mov eax, edx
cmp dword [rbp], edx
seta al
test eax, eax
je 0x140004f1b
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 0x140004fe3
add rdi, 8
lea rax, [0x140010940]
cmp rdi, rax
jl 0x140004ee4
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x30]
call fcn.1400042e8
jmp 0x140004fe3
cmp dword [rbp + 0x300], edx
jne 0x1400047ec
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140004f44
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 0x140005029
cmp dword [rbp + 0x48], edx
je 0x140004f67
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.140004458
nop
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400045e4
mov edi, eax
test eax, eax
js 0x14000502e
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004528
xor edx, edx
mov edi, eax
test eax, eax
js 0x14000502e
mov ecx, dword [rbp + 0x18]
test ecx, ecx
je 0x1400047ec
cmp word [rsi], 0x7b
jne 0x1400047ec
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], dx
jne 0x140004fae
mov r8d, 1
cmp rax, r8
jne 0x1400047ec
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8, qword [rbp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.140004770
mov edi, eax
test eax, eax
js 0x14000502e
mov rdx, rsi
mov rcx, qword [rbp + 8]
call fcn.1400045e4
test eax, eax
mov edi, eax
js 0x14000502e
jmp 0x1400047ec
jmp 0x140005029
jmp 0x14000502e
mov dword [rbp], eax
jmp 0x140005031
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14000502e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14000502e
mov edi, 0x8007000e
jmp 0x14000502e
mov edi, 0x80020009
mov dword [rbp], edi
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140005044
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x14000505d
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140005049
mov edi, dword [rbp]
mov eax, edi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rbp
call fcn.14000d6c0
lea rsp, [rbp + 0x2b8]
pop rdi
pop rsi
pop rbx
pop rbp
ret