Function at 0x180085620
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2238]
mov eax, 0x2338
call fcn.1800b8ad0
sub rsp, rax
mov qword [rbp + 8], 0xfffffffffffffffe
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x2220], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x70], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov qword [rbp - 0x78], 0
mov ecx, dword [rbp + 0x2280]
mov dword [rbp - 0x48], ecx
mov rcx, rax
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085e4f
cmp word [rsi], 0x7d
je 0x180085e4f
mov dword [rsp + 0x68], 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800856e0
test edi, edi
je 0x1800857ee
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085e4f
cmp dword [rsp + 0x70], 0
je 0x1800857ee
xor edx, edx
mov qword [rbp - 0x60], rdx
mov dword [rbp - 0x58], edx
mov qword [rbp - 0x50], rdx
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180085742
nop word [rax + rax]
cmp ax, 0x5c
je 0x180085739
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180085720
jmp 0x180085742
test rcx, rcx
jne 0x180085db7
lea rbx, str.AppID
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800857aa
add rbx, 8
lea rax, str.CLSID
cmp rbx, rax
jl 0x180085750
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.180085030
mov qword [rbp - 0x60], 0
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
test edi, edi
je 0x1800857e7
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085dc0
mov rdx, rsi
mov rcx, rdi
call fcn.180087b50
mov ebx, eax
test eax, eax
js 0x180085dc0
xor ecx, ecx
mov dword [rbp - 0x58], ecx
jmp 0x180085b35
mov dword [rbp - 0x58], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180085821
xor edi, edi
mov dword [rsp + 0x68], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085e4f
jmp 0x180085825
mov edi, dword [rsp + 0x68]
lea rdx, [0x180100da0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180085966
lea rdx, [rbp + 0x220]
mov rcx, qword [rsp + 0x60]
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085e4f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085e4f
cmp word [rsi], 0x3d
jne 0x180085e08
cmp dword [rsp + 0x70], 0
je 0x1800858d6
xor ecx, ecx
mov qword [rbp - 0x40], rcx
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x30], rcx
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x30], rcx
mov r9, rsi
lea r8, [rbp + 0x220]
lea rdx, [rbp - 0x40]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.180072060
mov ebx, eax
xor ecx, ecx
mov qword [rbp - 0x40], rcx
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x38], ecx
test eax, eax
js 0x180085e4f
jmp 0x180085b35
cmp dword [rbp + 0x2280], 0
jne 0x180085954
test edi, edi
je 0x180085954
mov qword [rbp - 0x10], 0
mov dword [rbp - 8], 0
mov qword [rbp], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x10]
call fcn.180030a40
test eax, eax
jne 0x180085ddf
lea rdx, [rbp + 0x220]
mov rdi, qword [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x180085dcc
test rdi, rdi
je 0x18008594d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x10], 0
mov dword [rbp - 8], 0
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180087b50
jmp 0x180085690
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180085993
cmp ax, 0x5c
je 0x18008598a
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180085971
jmp 0x180085993
test rcx, rcx
jne 0x180085e08
cmp dword [rsp + 0x70], 0
je 0x180085b85
mov r9d, 0x2001f
mov r8, rsi
mov rdi, qword [rbp - 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.180030a40
test eax, eax
je 0x180085af6
mov r9d, 0x20019
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.180030a40
test eax, eax
je 0x180085af6
mov qword [rsp + 0x68], 0
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x180085a87
cmp qword [rbx], 0
je 0x180085a78
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x180085a18
mov eax, 1
xor ebx, ebx
jmp 0x180085abf
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x180085a7e
mov qword [rsp + 0x50], 0
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call r10
jmp 0x180085abf
cmp dword [rbx + 8], 0
jne 0x180085a87
mov eax, 1
xor ebx, ebx
jmp 0x180085abf
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180085e46
mov eax, ebx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180085ade
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x78], rdi
mov dword [rbp - 0x80], ebx
test eax, eax
jne 0x180085e46
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085e4f
cmp word [rsi], 0x3d
jne 0x180085b33
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.180072060
mov ebx, eax
test eax, eax
js 0x180085e4f
xor ecx, ecx
cmp word [rsi], 0x7b
jne 0x18008569a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x180085b43
cmp rax, 1
jne 0x18008569a
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, rdi
call fcn.180085620
mov ebx, eax
test eax, eax
js 0x180085e4f
mov rdx, rsi
mov rcx, rdi
jmp 0x18008568b
cmp dword [rbp + 0x2280], 0
jne 0x180085bad
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.180030a40
mov edi, eax
test eax, eax
jne 0x180085bb2
jmp 0x180085bbc
mov edi, 2
mov dword [rbp + 0x2280], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.1800b779c
test eax, eax
je 0x180085bf9
cmp eax, 0xc
je 0x180085e25
cmp eax, 0x16
je 0x180085e1a
cmp eax, 0x22
je 0x180085e1a
cmp eax, 0x50
jne 0x180085e0f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085e4f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180087b50
mov ebx, eax
test eax, eax
js 0x180085e4f
cmp word [rsi], 0x7b
jne 0x180085c8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x180085c31
cmp rax, 1
jne 0x180085c8a
mov eax, dword [rbp + 0x2280]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180085620
mov ebx, eax
test eax, eax
jns 0x180085c73
cmp dword [rbp + 0x2280], 0
je 0x180085e4f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180082120
mov ebx, eax
test eax, eax
js 0x180085e4f
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x2280], eax
cmp edi, 2
je 0x18008569a
test edi, edi
je 0x180085cad
test eax, eax
je 0x180085e30
jmp 0x18008569a
test eax, eax
je 0x180085d14
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.18007d800
test eax, eax
je 0x180085d14
lea rdi, str.AppID
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18008569a
add rdi, 8
lea rax, str.CLSID
cmp rdi, rax
jl 0x180085cd0
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18008569a
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.180085030
jmp 0x18008569a
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.18007d800
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180085d3e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], 0
test eax, eax
jne 0x180085e46
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18008569a
test edi, edi
jne 0x18008569a
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], 0
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], 0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x28]
call fcn.180073a90
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], 0
test eax, eax
jne 0x180085e34
mov dword [rbp - 0x20], eax
jmp 0x18008569a
mov dword [rbp - 0x58], 0
jmp 0x180085e08
mov dword [rbp - 0x58], 0
jmp 0x180085e4f
mov ecx, eax
call fcn.1800729c0
mov ebx, eax
test rdi, rdi
je 0x180085dff
mov rcx, rdi
jmp 0x180085df1
mov ecx, eax
call fcn.1800729c0
mov ebx, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180085dff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x10], 0
mov dword [rbp - 8], 0
jmp 0x180085e4f
mov ebx, 0x80020009
jmp 0x180085e4f
mov ecx, 0x80004005
call fcn.180044800
int3
mov ecx, 0x80070057
call fcn.180044800
int3
mov ecx, 0x8007000e
call fcn.180044800
int3
mov ecx, edi
jmp 0x180085e48
mov ecx, eax
call fcn.1800729c0
mov ebx, eax
mov dword [rbp - 0x20], 0
jmp 0x180085e4f
mov ecx, eax
call fcn.1800729c0
mov ebx, eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180085e6b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov eax, ebx
mov rcx, qword [rbp + 0x2220]
xor rcx, rsp
call fcn.1800b6c40
add rsp, 0x2338
pop rdi
pop rsi
pop rbx
pop rbp
ret