Function at 0x140062470
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 [0x1402fa010]
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.1401f6840
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 0x140062732
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 0x140062732
mov eax, dword [rbp - 0x60]
test eax, eax
je 0x14006272d
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 0x140062732
cmp dword [rbp - 0x5c], eax
jbe 0x140062732
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 0x1400625d0
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038716.0]
mov rcx, rax
test rax, rax
jne 0x1400625f1
call fcn.1400195b0
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
call qword [case.0x140038716.0]
mov rcx, rax
test rax, rax
je 0x1400627a6
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.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 0x1400627b1
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, r14d
or eax, ecx
jge 0x140062648
mov edx, r14d
lea rcx, [rsp + 0x68]
call fcn.140018ec0
mov rbx, qword [rsp + 0x68]
lea rsi, [r13*2]
test rsi, rsi
je 0x140062686
test rbx, rbx
je 0x140062676
mov r8, rsi
mov rcx, rbx
test r15, r15
je 0x14006266f
mov rdx, r15
call fcn.1401f61a0
jmp 0x140062686
xor edx, edx
call fcn.1401f6840
call fcn.1401fae4c
mov dword [rax], 0x16
call fcn.1401facac
lea rax, [rsi + rbx]
test rax, rax
jne 0x1400626a1
call fcn.1401fae4c
mov dword [rax], 0x16
call fcn.1401facac
jmp 0x1400626a6
mov word [rax], 0x5c
cmp r14d, dword [rbx - 0xc]
jg 0x1400627b1
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.1400179d0
nop
mov rdx, rax
mov r15, qword [rbp - 0x80]
mov rcx, r15
call fcn.140062470
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 0x14006270f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
test esi, esi
je 0x140062732
mov eax, dword [rbp - 0x60]
add eax, 0xffffffff
mov dword [rbp - 0x60], eax
je 0x14006272d
mov r12d, dword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
jmp 0x140062560
mov edi, 1
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140062741
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
test edi, edi
je 0x140062757
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 0x14006277a
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038716.0]
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401f3bf0
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.140019320
int3
mov ecx, 0x80070057
call fcn.140019320
int3