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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rdx
mov qword [rsp + 0x70], rdx
mov r15, rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rdx
xor edi, edi
mov r12d, edi
mov dword [rsp + 0x60], edi
mov qword [rbp - 0x68], rdi
mov dword [rbp - 0x5c], 0x104
mov dword [rbp - 0x60], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.14022eb00
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 9]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r14d, [rdi - 1]
test eax, eax
jne 0x1400647d2
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400647d2
mov eax, dword [rbp - 0x60]
test eax, eax
je 0x1400647cd
nop dword [rax]
nop dword [rax + rax]
mov dword [rbp - 0x5c], 0x104
lea edx, [rax - 1]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x5c]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400647d2
cmp dword [rbp - 0x5c], eax
jbe 0x1400647d2
lea rax, [rsp + 0x78]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x68], rdi
mov rax, qword [rsi]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x140064670
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
jne 0x140064691
call fcn.140019590
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
je 0x140064846
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
or r12d, 1
mov dword [rsp + 0x60], r12d
mov r15, qword [rsi]
movsxd r13, dword [r15 - 0x10]
lea r14d, [r13 + 1]
test r14d, r14d
js 0x140064851
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, r14d
or eax, ecx
jge 0x1400646e8
mov edx, r14d
lea rcx, [rsp + 0x68]
call fcn.140018ea0
mov rbx, qword [rsp + 0x68]
lea rsi, [r13*2]
test rsi, rsi
je 0x140064726
test rbx, rbx
je 0x140064716
mov r8, rsi
mov rcx, rbx
test r15, r15
je 0x14006470f
mov rdx, r15
call fcn.14022e460
jmp 0x140064726
xor edx, edx
call fcn.14022eb00
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
lea rax, [rsi + rbx]
test rax, rax
jne 0x140064741
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x140064746
mov word [rax], 0x5c
cmp r14d, dword [rbx - 0xc]
jg 0x140064851
mov dword [rbx - 0x10], r14d
mov word [rbx + r13*2 + 2], di
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.1400179b0
nop
mov rdx, rax
mov r15, qword [rbp - 0x80]
mov rcx, r15
call fcn.140064510
mov esi, eax
and r12d, 0xfffffffe
mov dword [rsp + 0x60], r12d
lea rdx, [rbx - 0x18]
mov r14d, 0xffffffff
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400647af
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test esi, esi
je 0x1400647d2
mov eax, dword [rbp - 0x60]
add eax, 0xffffffff
mov dword [rbp - 0x60], eax
je 0x1400647cd
mov r12d, dword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
jmp 0x140064600
mov edi, 1
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400647e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
test edi, edi
je 0x1400647f7
mov rdx, qword [rbx]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14006481a
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140019300
int3
mov ecx, 0x80070057
call fcn.140019300
int3