Function at 0x180021b9c
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov edi, edx
xor esi, esi
mov rcx, rsi
lea rax, str.GlobalSBWPROCEXIT
movzx eax, word [rcx + rax]
mov word [rsp + rcx + 0xa0], ax
add rcx, 2
cmp ax, si
jne 0x180021be0
lea r8, [rsp + 0xa0]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
cmp rax, rsi
je 0x180021c2b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x78]
lea rbp, [0x180162940]
mov rcx, rbp
call fcn.18001b638
lea r14, [0x18015f6e0]
mov r8, r14
mov rdx, qword [rax]
mov r12, 0xffffffff80000001
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
sete bl
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff4
lea r15, [0x18015f758]
or r13d, 0xffffffff
cmp rcx, r15
je 0x180021c96
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
cmp eax, esi
jg 0x180021c96
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
cmp bl, sil
je 0x180021d2f
lea rdx, [rsp + 0x68]
mov rcx, rbp
call fcn.18001b638
nop
lea r8, str.Entries
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800084fc
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x180021cec
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
cmp eax, esi
jg 0x180021cec
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
mov rdx, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov r11, qword [rsp + 0x50]
add r11, 0xfffffffffffffff4
cmp r11, r15
je 0x180021da9
mov eax, r13d
lock xadd dword [r11], eax
add eax, r13d
cmp eax, esi
jg 0x180021da9
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
jmp 0x180021da9
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.18001b638
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
setne bl
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x180021da0
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
cmp eax, esi
jg 0x180021da0
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
cmp bl, sil
jne 0x1800221c3
lea rbx, [0x180162138]
mov r12d, 1
test r12b, dil
je 0x180021de3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x1801620f0], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x1801620f0]
mov rcx, rbp
call fcn.180005644
test dil, 2
je 0x180021e11
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x1801620ec], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x1801620ec]
mov rcx, rbp
call fcn.180005644
mov rax, qword [0x18015f768]
mov qword [rsp + 0x58], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x18016211c], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x18016211c]
mov rcx, rbp
call fcn.180005644
mov r8d, r12d
mov edx, edi
lea r14, vtable.CEntryInstaller.0
mov rcx, r14
call fcn.18002341c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x18016211c], esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x18016211c]
mov rcx, rbp
call fcn.180005644
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162130], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162130]
mov rcx, rbp
call fcn.180005644
lea rcx, [0x18015f6e8]
call fcn.18001bf24
lea rdx, [0x18015f6e8]
mov rcx, r14
call fcn.1800225c4
cmp eax, esi
je 0x180021f36
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162118], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162118]
mov rcx, rbp
call fcn.180005644
mov r8d, r12d
mov edx, edi
mov rcx, r14
call fcn.1800234a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x18016212c], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x18016212c]
mov rcx, rbp
call fcn.180005644
mov r8d, r12d
mov edx, 2
mov rcx, rbp
call fcn.180006fb8
jmp 0x180021f5d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x18016212c], esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x18016212c]
mov rcx, rbp
call fcn.180005644
lea rcx, [rsp + 0x58]
call fcn.18001bf24
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.180022dac
cmp eax, esi
je 0x180021ffe
lea rdx, str.Installing_Chrome_Entries...
lea rcx, [0x18015f578]
call fcn.1800098e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162114], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162114]
mov rcx, rbp
call fcn.180005644
mov r8d, r12d
mov edx, edi
mov rcx, r14
call fcn.1800235bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162128], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162128]
mov rcx, rbp
call fcn.180005644
mov r8d, r12d
mov edx, 3
mov rcx, rbp
call fcn.180006fb8
jmp 0x180022038
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162128], esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162128]
mov rcx, rbp
call fcn.180005644
lea rdx, str.Chrome_is_NOT_installed...
lea rcx, [0x18015f578]
call fcn.1800098e8
lea rcx, [0x18015f6f0]
call fcn.18001bf24
lea rdx, [0x18015f6f0]
mov rcx, r14
call fcn.180022ac4
cmp eax, esi
je 0x1800220c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162110], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162110]
mov rcx, rbp
call fcn.180005644
mov r8d, r12d
mov edx, edi
mov rcx, r14
call fcn.1800236e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162124], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162124]
mov rcx, rbp
call fcn.180005644
mov r8d, r12d
mov edx, 4
mov rcx, rbp
call fcn.180006fb8
jmp 0x1800220ed
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162124], esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162124]
mov rcx, rbp
call fcn.180005644
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
lea rdx, str.SOFTWARESpeedbitSBUpdate
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x18002216e
lea rdx, [0x18010dc3c]
lea rcx, [rsp + 0x98]
call fcn.1800041c0
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x180163340]
call fcn.18000b3b4
lea rdx, [0x18010e0a8]
lea rcx, [rsp + 0x90]
call fcn.1800041c0
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x180163340]
call fcn.18000b3b4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x180162134], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x180162134]
mov rcx, rbp
call fcn.180005644
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x1800221c3
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
cmp eax, esi
jg 0x1800221c3
call fcn.1800d1434
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800d12b0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret