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

Disassembly:
mov qword [rsp + 0x20], 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 [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r12, r8
mov r14, rdx
mov r15, rcx
test rdx, rdx
jne 0x14005d6f6
lea rcx, str.RegDelnodeRecurse_null_param_n
call fcn.14005cb30
xor eax, eax
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400625f0
mov rbx, qword [rsp + 0x328]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x70]
call fcn.140020ab0
nop
mov rax, qword [rbp - 0x60]
test al, al
je 0x14005d71c
lea rcx, str.RegDelnodeRecurse_could_not_determine_the_app_and_os_arch_n
call fcn.14005cb30
xor ebx, ebx
jmp 0x14005d7a8
mov r13d, 0x14c
cmp word [rsp + 0x72], r13w
je 0x14005d747
test r12, r12
je 0x14005d7a3
xor r9d, r9d
lea r8d, [r13 - 0x4c]
mov rdx, r14
mov rcx, r15
mov rax, r12
call qword [0x1400926f0]
jmp 0x14005d753
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14005d7a3
cmp byte [rbp - 0x60], 0
jne 0x14005d96e
lea rax, [rsp + 0x58]
xor r8d, r8d
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
cmp word [rsp + 0x72], r13w
mov r9d, 0x20119
jne 0x14005d788
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005d7c9
cmp eax, 2
jne 0x14005d7b9
lea rcx, str.Key_not_found._n
call fcn.14005cb30
mov ebx, 1
lea rcx, [rsp + 0x70]
call fcn.1400216c0
mov eax, ebx
jmp 0x14005d6cc
lea rcx, str.Error_opening_key._n
call fcn.14005cb30
xor ebx, ebx
jmp 0x14005d7a8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rsi, [r14 + rcx*2]
xor ebx, ebx
cmp word [rsi - 2], 0x5c
je 0x14005d7f1
mov eax, 0x5c
mov word [rsi], ax
add rsi, 2
mov word [rsi], bx
mov dword [rsp + 0x60], 0x104
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14005d8d3
lea rdi, [rbp - 0x50]
sub rdi, rsi
nop word [rax + rax]
mov edx, 0x208
mov rax, rsi
nop dword [rax + rax]
lea rcx, [rdx + 0x7ffffdf6]
test rcx, rcx
je 0x14005d872
movzx ecx, word [rdi + rax]
test cx, cx
je 0x14005d872
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x14005d850
lea rcx, [rax - 2]
test rdx, rdx
cmovne rcx, rax
mov word [rcx], bx
mov r8, r12
mov rdx, r14
mov rcx, r15
call fcn.14005d680
test eax, eax
je 0x14005d8e5
mov dword [rsp + 0x60], 0x104
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14005d840
jmp 0x14005d8e5
mov r8d, eax
mov rdx, r14
lea rcx, str.RegEnumKeyEx_lpSubKey__s_error__ld_n
call fcn.14005cb30
mov word [rsi - 2], bx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rbp - 0x60], bl
jne 0x14005d943
mov rdx, r14
mov rcx, r15
cmp word [rsp + 0x72], r13w
je 0x14005d91b
xor r9d, r9d
mov r8d, 0x100
mov rax, r12
call qword [0x1400926f0]
jmp 0x14005d921
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, 0xfffffffd
je 0x14005d7a3
mov r8d, eax
mov rdx, r14
lea rcx, str.regDeleteKeyEx_lpSubKey__s_error__ld_n
call fcn.14005cb30
jmp 0x14005d7a8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.140013500
lea rdx, [0x1400c34b0]
lea rcx, [rsp + 0x40]
call fcn.14006517c
int3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.140013500
lea rdx, [0x1400c34b0]
lea rcx, [rsp + 0x40]
call fcn.14006517c
int3