Function at 0x140068430
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r15d, r8d
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0x68], r14
test rdx, rdx
je 0x14006898e
mov eax, dword [0x14028cbe8]
cmp dword [rcx], eax
jne 0x1400684a5
mov eax, dword [0x14028cbec]
cmp dword [rcx + 4], eax
jne 0x1400684a5
mov eax, dword [0x14028cbf0]
cmp dword [rcx + 8], eax
jne 0x1400684a5
mov eax, dword [0x14028cbf4]
cmp dword [rcx + 0xc], eax
je 0x14006898e
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x140273410]
mov esi, 1
mov r8d, esi
xor edx, edx
lea rcx, [0x14028cc08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14006898e
mov ecx, dword [rbx]
test ecx, ecx
je 0x140068536
nop dword [rax + rax]
mov rax, qword [rbx + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
lea r9, [rbp - 0x70]
mov r8d, esi
mov rdx, rdi
test r15d, r15d
je 0x140068518
cmp ecx, esi
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jne 0x14006850b
call qword [rax + 0x28]
jmp 0x14006850e
call qword [rax + 0x38]
test eax, eax
js 0x140068991
jmp 0x14006852c
cmp ecx, esi
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jne 0x140068529
call qword [rax + 0x30]
jmp 0x14006852c
call qword [rax + 0x40]
add rbx, 0x10
mov ecx, dword [rbx]
test ecx, ecx
jne 0x1400684e0
test r15d, r15d
jne 0x140068994
lea r8d, [r15 + 0x40]
lea rdx, [rbp + 0xa0]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x140068560
lea eax, [r15 + 0xd]
jmp 0x140068991
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x14006859e
cmp eax, 0xc
je 0x1400689ce
cmp eax, 0x16
je 0x1400689e4
cmp eax, 0x22
je 0x1400689e4
cmp eax, 0x50
jne 0x1400689d9
lea r8, [rbp + 0xa0]
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x1400685dc
cmp eax, 0xc
je 0x1400689ce
cmp eax, 0x16
je 0x1400689e4
cmp eax, 0x22
je 0x1400689e4
cmp eax, 0x50
jne 0x1400689d9
lea r8, str.Required_Categories
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x14006861a
cmp eax, 0xc
je 0x1400689ce
cmp eax, 0x16
je 0x1400689e4
cmp eax, 0x22
je 0x1400689e4
cmp eax, 0x50
jne 0x1400689d9
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r14d
mov qword [rbp - 0x78], r14
mov dword [rsp + 0x60], r14d
mov r9d, 0x20019
lea r8, [rbp - 0x60]
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x78]
call fcn.140054a30
mov rbx, qword [rsp + 0x78]
test eax, eax
jne 0x140068725
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x1400686a6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r14
test rdi, rdi
jne 0x140068725
cmp dword [rsp + 0x60], r14d
jne 0x140068725
cmp byte [0x1403754e0], dil
jne 0x1400686fd
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400686ed
lea rdx, [0x14026fb30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403754d8], rax
mov byte [0x1403754e0], 1
jmp 0x140068704
mov rax, qword [0x1403754d8]
mov byte [0x1403754e0], 1
jmp 0x140068704
mov rax, qword [0x1403754d8]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x14006871e
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140068725
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x140068763
cmp eax, 0xc
je 0x1400689ce
cmp eax, 0x16
je 0x1400689e4
cmp eax, 0x22
je 0x1400689e4
cmp eax, 0x50
jne 0x1400689d9
lea r8, [rbp + 0xa0]
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x1400687a1
cmp eax, 0xc
je 0x1400689ce
cmp eax, 0x16
je 0x1400689e4
cmp eax, 0x22
je 0x1400689e4
cmp eax, 0x50
jne 0x1400689d9
lea r8, str.Implemented_Categories
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x1400687df
cmp eax, 0xc
je 0x1400689ce
cmp eax, 0x16
je 0x1400689e4
cmp eax, 0x22
je 0x1400689e4
cmp eax, 0x50
jne 0x1400689d9
mov qword [rsp + 0x70], r14
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x140068857
cmp qword [rdi], 0
je 0x140068851
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140068899
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x14006887d
mov qword [rsp + 0x30], r14
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
call r10
jmp 0x14006887b
cmp dword [rdi + 8], 0
je 0x14006887d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x140068899
mov esi, r14d
test rbx, rbx
je 0x140068894
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov rbx, qword [rsp + 0x70]
test esi, esi
jne 0x140068971
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x1400688f3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r14
test rdi, rdi
jne 0x140068971
cmp dword [rsp + 0x60], edi
jne 0x140068971
cmp byte [0x1403754e0], dil
jne 0x140068949
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140068939
lea rdx, [0x14026fb30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403754d8], rax
mov byte [0x1403754e0], 1
jmp 0x140068950
mov rax, qword [0x1403754d8]
mov byte [0x1403754e0], 1
jmp 0x140068950
mov rax, qword [0x1403754d8]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x14006896a
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140068971
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test rbx, rbx
je 0x14006897f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140068994
mov eax, r14d
mov r14d, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400689a5
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov eax, r14d
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400e6b50
mov rbx, qword [rsp + 0x270]
add rsp, 0x230
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140052c30
int3
mov ecx, 0x80004005
call fcn.140052c30
int3
mov ecx, 0x80070057
call fcn.140052c30
int3