Function at 0x14002a160
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
call fcn.140069504
mov r13, qword [rax + 8]
mov qword [rsp + 0x60], r13
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x78], eax
mov word [rsp + 0x7c], ax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [r13 + 0x600]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002a20c
xor eax, eax
jmp 0x14002a6d5
xor r14d, r14d
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], 3
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r12d, [r14 + 1]
test eax, eax
jne 0x14002a2fc
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002a2f7
mov ecx, r14d
movzx r8d, byte [rsp + 0x44]
mov eax, 0x66666667
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
test edx, edx
je 0x14002a2ae
add dx, 0x30
mov word [rsp + 0x78], dx
mov ecx, r12d
add r8w, 0x30
movsxd rax, ecx
mov word [rsp + rax*2 + 0x78], r8w
lea rdx, str.Printer
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov r15d, r12d
jmp 0x14002a2ff
mov r15d, r14d
jmp 0x14002a2ff
mov r15d, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r15d, r12d
jne 0x14002a6d2
call fcn.1400696cc
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002a333
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
call fcn.1400696cc
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002a365
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
call fcn.1400696cc
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002a397
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x80]
lea rax, [rsp + 0x80]
or rbp, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14002a3ed
movzx edi, cx
mov ecx, edi
call fcn.1400696b8
test rax, rax
je 0x14002a4fd
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140003a40
jmp 0x14002a4fd
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14002a46f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002a4fd
cmp dword [rdx + 0x10], eax
jge 0x14002a43c
cmp dword [rbx - 0xc], eax
jge 0x14002a430
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x14002a4fd
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002a453
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0x38]
jmp 0x14002a4fd
mov r14d, dword [rbx - 0x10]
lea r13, [rsp + 0x80]
sub r13, rbx
sar r13, 1
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ecx
or eax, r12d
jge 0x14002a4a0
mov edx, ecx
lea rcx, [rsp + 0x30]
call fcn.140003180
mov rbx, qword [rsp + 0x30]
cmp r13, r14
ja 0x14002a4c0
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbx
call fcn.140081c40
jmp 0x14002a4dd
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x80]
mov rdx, r12
mov rcx, rbx
call fcn.140080540
test edi, edi
js 0x14002a6c7
cmp edi, dword [rbx - 0xc]
jg 0x14002a6c7
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], 0
mov r13, qword [rsp + 0x60]
lea rdx, [r13 + 0x5f8]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.140003ec0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x14002a56e
cmp dword [rsi + 0x10], 0
jl 0x14002a55f
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14002a55f
call fcn.1400031e0
mov rdi, rax
mov ecx, ebp
lock xadd dword [rsi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x14002a554
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x14002a56e
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140003c40
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002a58f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002a5af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r13 + 0x600]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x58]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x14002a616
cmp dword [rdi + 0x10], 0
jl 0x14002a603
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002a603
call fcn.1400031e0
mov rbx, rax
mov ecx, ebp
lock xadd dword [rdi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x14002a5f8
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x58], rbx
jmp 0x14002a616
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140003c40
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.1400222b0
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.1400223e0
cmp eax, 1
jne 0x14002a68b
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000002
call fcn.1400223e0
cmp eax, 1
jne 0x14002a68b
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002a6a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14002a6d2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002a6d2
mov ecx, 0x80070057
call fcn.140001000
nop
mov eax, r15d
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140081050
lea r11, [rsp + 0xb0]
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