Function at 0x140097440
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rdi, rdx
mov r12, rcx
lea r13, section..data
mov rcx, qword [section..data]
cmp rcx, r13
je 0x14009749f
test byte [rcx + 0x1c], 1
je 0x14009749f
cmp byte [rcx + 0x19], 5
jb 0x14009749f
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov dword [rsp + 0x20], 1
mov r9, rdi
mov rcx, qword [rcx + 0x10]
call fcn.140099f6c
xor r15d, r15d
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x7f], rbx
mov esi, r15d
mov dword [rsp + 0x20], r15d
or r14, 0xffffffffffffffff
mov r9d, r14d
mov r8, rdi
mov edx, r14d
lea rcx, str.00_00_00_00_00_00
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
je 0x14009795a
test rdi, rdi
jne 0x140097513
mov eax, r15d
jmp 0x140097520
mov rax, r14
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140097516
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp + 0x7f]
call fcn.140005cf4
lea rcx, [rbp + 0x7f]
call fcn.1400304d8
xor r8d, r8d
lea rdx, [rbp - 0x11]
mov rcx, r12
call fcn.1400965e4
mov esi, eax
mov r10, qword [section..data]
cmp r10, r13
je 0x140097582
test byte [r10 + 0x1c], 2
je 0x140097582
cmp byte [r10 + 0x19], 4
jb 0x140097582
mov edx, 0x1c
mov r9d, eax
lea r8, [0x1400bd8b8]
mov rcx, qword [r10 + 0x10]
call fcn.14000ad20
mov r10, qword [section..data]
mov rbx, qword [rbp + 0x7f]
test esi, esi
jne 0x140097961
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140091164
mov r14d, eax
mov r10, qword [section..data]
cmp r10, r13
je 0x1400975d8
test byte [r10 + 0x1c], 2
je 0x1400975d8
cmp byte [r10 + 0x19], 4
jb 0x1400975d8
lea edx, [rsi + 0x1d]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400bd8b8]
mov rcx, qword [r10 + 0x10]
call fcn.14000b098
mov r10, qword [section..data]
cmp r14d, 2
jne 0x14009760a
mov esi, 0x490
cmp r10, r13
je 0x14009799b
test byte [r10 + 0x1c], r14b
je 0x140097961
cmp byte [r10 + 0x19], 4
jb 0x140097961
lea edx, [r14 + 0x1c]
jmp 0x14009794a
mov esi, r14d
test r14d, r14d
jne 0x140097961
mov rdx, rbx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [section..data]
cmp rcx, r13
je 0x14009765c
test byte [rcx + 0x1c], 2
je 0x14009765c
cmp byte [rcx + 0x19], 4
jb 0x14009765c
lea edx, [r14 + 0x1f]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400bd8b8]
mov rcx, qword [rcx + 0x10]
call fcn.14000b098
mov rax, qword [r12]
movabs r10, 0x8ba916ea3852e270
mov rcx, r12
mov rax, qword [rax + 0x58]
call qword [case.0x140071786.0]
test rax, rax
je 0x1400978fb
mov rax, qword [r12]
movabs r10, 0x8ba916ea3852e270
mov rcx, r12
mov rax, qword [rax + 0x58]
call qword [case.0x140071786.0]
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140005058
mov r13, r15
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x39], r15
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rdi, qword [rbp - 0x29]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov r15d, eax
test eax, eax
jne 0x1400976fd
mov r13, qword [rbp - 0x39]
mov qword [rbp + 7], r13
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x140097739
test byte [rcx + 0x1c], 2
je 0x140097739
cmp byte [rcx + 0x19], 4
jb 0x140097739
mov edx, 0x20
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x1400bd8b8]
mov rcx, qword [rcx + 0x10]
call fcn.14000b098
test r15d, r15d
jne 0x1400978a8
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 7]
call fcn.14009154c
mov r15d, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140097789
test byte [rcx + 0x1c], 2
je 0x140097789
cmp byte [rcx + 0x19], 4
jb 0x140097789
mov edx, 0x21
mov r9d, r15d
lea r8, [0x1400bd8b8]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
test r15d, r15d
jne 0x1400978a8
cmp dword [rbp - 0x19], r15d
jbe 0x1400978a8
xor r14d, r14d
test r15d, r15d
js 0x1400979fa
cmp r15d, dword [rbp - 0x19]
jge 0x1400979fa
movsxd rax, r15d
and qword [rbp - 0x31], r14
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2011f
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
mov rdx, qword [rcx + rax*8]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov r12d, eax
test eax, eax
jne 0x1400977ed
mov r14, qword [rbp - 0x31]
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140097831
test byte [rcx + 0x1c], 2
je 0x140097831
cmp byte [rcx + 0x19], 4
jb 0x140097831
mov edx, 0x22
mov dword [rsp + 0x20], r12d
movsxd r9, r15d
mov rax, qword [rbp - 0x21]
mov r9, qword [rax + r9*8]
lea r8, [0x1400bd8b8]
mov rcx, qword [rcx + 0x10]
call fcn.14000b098
test r12d, r12d
jne 0x140097883
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x140097883
test byte [rcx + 0x1c], 2
je 0x140097883
cmp byte [rcx + 0x19], 4
jb 0x140097883
lea edx, [r12 + 0x23]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400bd8b8]
mov rcx, qword [rcx + 0x10]
call fcn.14000b098
test r14, r14
je 0x140097897
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
inc r15d
cmp r15d, dword [rbp - 0x19]
jb 0x14009779c
mov r12, qword [rbp + 0x67]
lea rcx, [rbp - 0x21]
call fcn.140015550
test r13, r13
je 0x1400978c5
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400978f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
lea r13, section..data
mov rbx, qword [rbp + 0x7f]
mov rax, qword [r12]
movabs r10, 0x9eac3e3734559970
mov edx, 0x3ea
mov rcx, r12
mov rax, qword [rax + 0x48]
call qword [case.0x140071786.0]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov ecx, eax
call fcn.14009b05c
mov r10, qword [section..data]
cmp r10, r13
je 0x14009799b
test byte [r10 + 0x1c], 2
je 0x140097961
cmp byte [r10 + 0x19], 4
jb 0x140097961
mov edx, 0x24
lea r8, [0x1400bd8b8]
mov rcx, qword [r10 + 0x10]
call fcn.1400062b0
mov r10, qword [section..data]
cmp r10, r13
je 0x14009799b
test byte [r10 + 0x1c], 1
je 0x14009799b
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x14009799b
mov edx, 0x25
mov r9d, esi
lea r8, [0x1400bd8b8]
mov rcx, qword [r10 + 0x10]
call fcn.14000ad20
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400979c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400979dc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, esi
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0xc000008c
call fcn.140006108
int3