Function at 0x14000d010
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14006ee08]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r15, rcx
mov qword [r11 - 0x170], rcx
lea rcx, [rsp + 0x58]
call fcn.14001e78c
nop
lea rcx, [rsp + 0x90]
call fcn.14001e78c
nop
call fcn.1400197c4
mov rdx, rax
xor esi, esi
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x14000d091
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
or r14, 0xffffffffffffffff
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14001e89c
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.14001e89c
lea r8, [rsp + 0x50]
lea rdx, str.Enum
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14000d392
mov r13d, esi
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000d392
nop word [rax + rax]
inc r13d
xor eax, eax
mov rcx, r14
lea rdi, str.Enum_
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14000d1b5
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rdx - 0x18]
cmp dword [rdx - 0x10], eax
je 0x14000d240
cmp dword [rdx - 8], eax
jge 0x14000d182
cmp dword [rdx - 0xc], eax
jl 0x14000d35b
mov dword [rdx - 0x10], esi
mov rax, qword [rsp + 0x40]
mov byte [rax], cl
mov rdx, qword [rsp + 0x40]
jmp 0x14000d240
mov eax, r14d
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x14000d19e
mov rcx, qword [rdx - 0x18]
mov rax, qword [rcx]
add rdx, 0xffffffffffffffe8
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [rax + 0x18]
mov qword [rsp + 0x40], rdx
jmp 0x14000d240
mov rcx, qword [rsp + 0x40]
mov ebx, dword [rcx - 0x10]
lea rsi, str.Enum_
sub rsi, rcx
mov edx, 1
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edi
or eax, edx
jge 0x14000d1e9
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400013b0
mov rcx, qword [rsp + 0x40]
cmp rsi, rbx
ja 0x14000d203
movsxd rbx, edi
lea r8, [rsi + rcx]
movsxd rdx, dword [rcx - 0xc]
mov r9, rbx
call fcn.140037828
jmp 0x14000d219
movsxd rbx, edi
movsxd rdx, dword [rcx - 0xc]
mov r9, rbx
lea r8, str.Enum_
call fcn.140037128
test edi, edi
js 0x14000d387
mov rax, qword [rsp + 0x40]
cmp edi, dword [rax - 0xc]
jg 0x14000d387
mov dword [rax - 0x10], edi
mov rax, qword [rsp + 0x40]
mov byte [rbx + rax], 0
mov rdx, qword [rsp + 0x40]
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0xc0]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rsi, rcx
lea r12, [rsp + 0xc0]
lea rbx, [rsp + 0xc0]
sub rbx, rdx
mov ebp, dword [rdx - 0x10]
test ecx, ecx
setns al
test eax, eax
je 0x14000d37c
cmp ecx, ecx
cmovg esi, esi
mov eax, 0x7fffffff
sub eax, esi
xor ecx, ecx
cmp eax, ebp
setge cl
test ecx, ecx
je 0x14000d371
lea edi, [rbp + rsi]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000d2bc
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400013b0
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
cmp rbx, rbp
ja 0x14000d2c8
lea r12, [rbx + rdx]
movsxd rax, esi
add rcx, rdx
mov r9, rax
mov r8, r12
mov rdx, rax
call fcn.140037128
test edi, edi
js 0x14000d366
mov rax, qword [rsp + 0x40]
cmp edi, dword [rax - 0xc]
jg 0x14000d366
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rsp + 0x40]
mov byte [rcx + rax], 0
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14001eae4
mov byte [rsp + 0xc0], 0
mov dword [rsp + 0x48], 0x100
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0xc0]
mov edx, r13d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000d392
jmp 0x14000d130
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, esi
mov rbx, rsi
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jle 0x14000d53b
test rbx, rbx
js 0x14000d535
cmp rbx, rdx
jge 0x14000d535
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + rbx*8]
lea rcx, [r9 - 0x18]
mov rdi, qword [rsp + 0x40]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14000d435
cmp dword [rdi + 0x10], 0
jl 0x14000d41f
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14000d41f
call fcn.1400018e0
mov rsi, rax
mov ecx, r14d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14000d40d
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x68]
xor esi, esi
jmp 0x14000d435
mov r8d, dword [r9 - 0x10]
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.140001c30
mov rdx, qword [rsp + 0x68]
cmp rbx, rdx
jge 0x14000d52f
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rdx, qword [rax + rbx*8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14000d50c
mov edi, esi
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000d50c
nop dword [rax]
inc edi
lea rdx, [rsp + 0xc0]
mov rcx, qword [r15]
call fcn.1400388c8
test rax, rax
je 0x14000d4ca
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov byte [rsp + 0xc0], 0
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0xc0]
mov edx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14000d4a0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
inc rbx
movsxd rax, ebp
mov rdx, qword [rsp + 0x68]
cmp rax, rdx
jl 0x14000d3b0
jmp 0x14000d53b
call fcn.140010574
int3
call fcn.140010574
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000d55c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
lea rcx, [rsp + 0x90]
call fcn.14001ea50
nop
lea rcx, [rsp + 0x58]
call fcn.14001ea50
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r14d
dec r14d
test r14d, r14d
jg 0x14000d593
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400383f0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret