Function at 0x140009570
Capabilities:
Delete file
Delete registry value
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x81c0]
mov eax, 0x82c0
call fcn.14000bd90
sub rsp, rax
mov rax, qword [0x140016010]
xor rax, rsp
mov qword [rbp + 0x81b0], rax
mov esi, edx
lea rbx, [0x140016f48]
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x140011188]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x1400095d0
lea rax, [rsp + 0x68]
xor r14d, r14d
mov r9d, 0xf003f
mov qword [rsp + 0x68], r14
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlClass015B6041_DC1B_4e42_BE13_185FFF3494C5
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009847
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140009847
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x70]
mov dword [rbp - 0x74], operator
mov qword [rsp + 0x58], rax
lea r8, [rbp - 0x74]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x78], r14d
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x60]
lea rax, [rsp + 0x70]
mov dword [rbp - 0x7c], r14d
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x7c]
mov dword [rbp - 0x80], r14d
mov qword [rsp + 0x40], rax
mov rcx, rbx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x78], r14d
mov qword [rbp - 0x70], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000983c
mov ebx, dword [rsp + 0x60]
test ebx, ebx
je 0x14000983c
cmp dword [rsp + 0x70], r14d
je 0x14000983c
mov qword [rsp + 0x82f0], r12
lea rcx, [rbp + 0x1b0]
mov qword [rsp + 0x82f8], r13
xor edx, edx
mov r8d, 0x8000
mov qword [rsp + 0x8300], r15
call sub.VCRUNTIME140.dll_memset
lea r15d, [r14 + 0x2d]
lea r13, [0x140010250]
lea r12, [0x140016f48]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x74]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x1b0]
mov qword [rsp + 0x30], r14
dec ebx
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x74], 0x4000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140009803
cmp dword [rsp + 0x74], r14d
je 0x140009803
mov edx, r15d
mov dword [rsp + 0x64], r14d
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x140009803
lea r8, [rsp + 0x64]
mov word [rax], r14w
lea rdx, str.Eu__ld
lea rcx, [rbp + 0x1b0]
call fcn.140009270
cmp eax, 1
jb 0x140009803
cmp dword [rsp + 0x64], 0xd
ja 0x140009803
cmp esi, 0xd
ja 0x140009803
mov word [rbx], r15w
mov eax, dword [rsp + 0x64]
mov eax, dword [r13 + rax*4]
cmp dword [r13 + rsi*4], eax
jbe 0x140009803
mov eax, edi
lea r8, [rbp + 0x1b0]
mov edx, 0x104
mov rcx, r12
mov word [r12 + rax*2], r14w
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [rsp + 0x60]
test ebx, ebx
jne 0x140009720
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x60], 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x8300]
mov r13, qword [rsp + 0x82f8]
mov r12, qword [rsp + 0x82f0]
jmp 0x140009847
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x81b0]
xor rcx, rsp
call fcn.14000ac90
add rsp, 0x82c0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret