Function at 0x1400108d0
Capabilities:
Delete registry key

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140054100]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor r13d, r13d
mov r12d, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], r13
test rdx, rdx
je 0x140010971
mov eax, dword [0x140041870]
cmp dword [rcx], eax
jne 0x140010939
mov eax, dword [0x140041874]
cmp dword [rcx + 4], eax
jne 0x140010939
mov eax, dword [0x140041878]
cmp dword [rcx + 8], eax
jne 0x140010939
mov eax, dword [0x14004187c]
cmp dword [rcx + 0xc], eax
je 0x140010971
xor edx, edx
lea rax, [rsp + 0x68]
lea r9, [0x140046008]
lea r8d, [rdx + 1]
lea rcx, [0x140041890]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140010978
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140010971
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x140010e3a
mov qword [rsp + 0x270], rsi
cmp dword [rbx], r13d
je 0x140010a05
nop dword [rax]
mov rcx, qword [rbx + 8]
lea r9, [rbp - 0x78]
mov r8d, 1
mov eax, dword [rcx]
mov rdx, rdi
mov dword [rbp - 0x78], eax
mov eax, dword [rcx + 4]
mov dword [rbp - 0x74], eax
mov eax, dword [rcx + 8]
mov dword [rbp - 0x70], eax
mov eax, dword [rcx + 0xc]
mov rcx, qword [rsp + 0x68]
mov dword [rbp - 0x6c], eax
mov rax, qword [rcx]
test r12d, r12d
je 0x1400109ef
cmp dword [rbx], r8d
jne 0x1400109cf
call qword [rax + 0x28]
jmp 0x1400109d2
call qword [rax + 0x38]
mov esi, eax
test eax, eax
jns 0x1400109fc
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400109e8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, esi
jmp 0x140010e32
cmp dword [rbx], 1
jne 0x1400109f9
call qword [rax + 0x30]
jmp 0x1400109fc
call qword [rax + 0x40]
add rbx, 0x10
cmp dword [rbx], r13d
jne 0x140010990
test r12d, r12d
jne 0x140010e20
lea r8d, [r12 + 0x40]
lea rdx, [rbp + 0xa0]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, str.CLSID_
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.140027f94
test eax, eax
je 0x140010a71
cmp eax, 0xc
je 0x140010a66
cmp eax, 0x16
je 0x140010a5b
cmp eax, 0x22
je 0x140010a5b
cmp eax, 0x50
je 0x140010a71
mov ecx, 0x80004005
call fcn.1400040f0
int3
mov ecx, 0x80070057
call fcn.1400040f0
int3
mov ecx, 0x8007000e
call fcn.1400040f0
int3
lea r8, [rbp + 0xa0]
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.140027f0c
test eax, eax
je 0x140010abf
cmp eax, 0xc
je 0x140010ab4
cmp eax, 0x16
je 0x140010aa9
cmp eax, 0x22
je 0x140010aa9
cmp eax, 0x50
je 0x140010abf
mov ecx, 0x80004005
call fcn.1400040f0
int3
mov ecx, 0x80070057
call fcn.1400040f0
int3
mov ecx, 0x8007000e
call fcn.1400040f0
int3
lea r8, str.Required_Categories
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.140027f0c
test eax, eax
je 0x140010b0d
cmp eax, 0xc
je 0x140010b02
cmp eax, 0x16
je 0x140010af7
cmp eax, 0x22
je 0x140010af7
cmp eax, 0x50
je 0x140010b0d
mov ecx, 0x80004005
call fcn.1400040f0
int3
mov ecx, 0x80070057
call fcn.1400040f0
int3
mov ecx, 0x8007000e
call fcn.1400040f0
int3
lea r8, [rbp - 0x60]
lea rcx, [rsp + 0x70]
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x80], r13
mov dword [rsp + 0x60], r13d
call fcn.1400045b0
test eax, eax
jne 0x140010c1f
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r13
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x140010b9c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
test rdi, rdi
jne 0x140010c1f
cmp dword [rsp + 0x60], r13d
jne 0x140010c1f
cmp byte [0x1400597c8], r13b
jne 0x140010bf8
lea rcx, [0x1400441c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010be8
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1400597c8], 1
mov qword [0x1400597d0], rax
jmp 0x140010bff
mov rax, qword [0x1400597d0]
mov byte [0x1400597c8], 1
jmp 0x140010bff
mov rax, qword [0x1400597d0]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x140010c19
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140010c1f
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.140027f94
test eax, eax
je 0x140010c6d
cmp eax, 0xc
je 0x140010c62
cmp eax, 0x16
je 0x140010c57
cmp eax, 0x22
je 0x140010c57
cmp eax, 0x50
je 0x140010c6d
mov ecx, 0x80004005
call fcn.1400040f0
int3
mov ecx, 0x80070057
call fcn.1400040f0
int3
mov ecx, 0x8007000e
call fcn.1400040f0
int3
lea r8, [rbp + 0xa0]
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.140027f0c
test eax, eax
je 0x140010cbb
cmp eax, 0xc
je 0x140010cb0
cmp eax, 0x16
je 0x140010ca5
cmp eax, 0x22
je 0x140010ca5
cmp eax, 0x50
je 0x140010cbb
mov ecx, 0x80004005
call fcn.1400040f0
int3
mov ecx, 0x80070057
call fcn.1400040f0
int3
mov ecx, 0x8007000e
call fcn.1400040f0
int3
lea r8, str.Implemented_Categories
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.140027f0c
test eax, eax
je 0x140010d09
cmp eax, 0xc
je 0x140010cfe
cmp eax, 0x16
je 0x140010cf3
cmp eax, 0x22
je 0x140010cf3
cmp eax, 0x50
je 0x140010d09
mov ecx, 0x80004005
call fcn.1400040f0
int3
mov ecx, 0x80070057
call fcn.1400040f0
int3
mov ecx, 0x8007000e
call fcn.1400040f0
int3
lea r8, [rbp - 0x60]
lea rcx, [rsp + 0x70]
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
call fcn.1400045b0
mov rbx, qword [rsp + 0x70]
test eax, eax
jne 0x140010e01
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x140010d83
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
test rdi, rdi
jne 0x140010e01
cmp dword [rsp + 0x60], r13d
jne 0x140010e01
cmp byte [0x1400597c8], r13b
jne 0x140010dda
lea rcx, [0x1400441c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010dca
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1400597c8], 1
mov qword [0x1400597d0], rax
jmp 0x140010de1
mov rax, qword [0x1400597d0]
mov byte [0x1400597c8], 1
jmp 0x140010de1
mov rax, qword [0x1400597d0]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x140010dfb
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140010e01
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x140010e0f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140010e30
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140026aa0
add rsp, 0x230
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret