Function at 0x18000193d
Capabilities:
Delete registry key
Delete registry value

Disassembly:
jmp 0x18002d520
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21f8]
mov eax, 0x22f8
call fcn.180040690
sub rsp, rax
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x1800998c0]
xor rax, rsp
mov qword [rbp + 0x21e0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x78], ecx
mov qword [rbp - 0x70], rcx
mov ecx, dword [rbp + 0x2240]
mov dword [rbp - 0x48], ecx
mov rcx, rax
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
cmp word [rsi], 0x7d
je 0x18002dc5d
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 0x18002d5d6
test edi, edi
je 0x18002d6b2
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
cmp dword [rsp + 0x70], 0
je 0x18002d6b2
xor eax, eax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x18002d632
cmp ax, 0x5c
je 0x18002d629
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x18002d610
jmp 0x18002d632
test rcx, rcx
jne 0x18002dc28
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 0x18002d684
add rbx, 8
lea rax, [0x1800702d0]
cmp rbx, rax
jl 0x18002d640
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.1800016a4
test edi, edi
je 0x18002d6b2
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
mov rdx, rsi
mov rcx, rdi
call fcn.180002d7e
jmp 0x18002d9ac
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18002d6e5
xor edi, edi
mov dword [rsp + 0x68], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
jmp 0x18002d6e9
mov edi, dword [rsp + 0x68]
lea rdx, [0x180070888]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18002d7f0
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rsp + 0x60]
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
cmp word [rsi], 0x3d
jne 0x18002dc28
cmp dword [rsp + 0x70], 0
je 0x18002d778
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x60], rax
xor eax, eax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
mov r9, rsi
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x60]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.18000245a
mov ebx, eax
jmp 0x18002d9ae
cmp dword [rbp + 0x2240], 0
jne 0x18002d7de
test edi, edi
je 0x18002d7de
xor eax, eax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.180002982
test eax, eax
jne 0x18002dc0e
lea rdx, [rbp + 0x1e0]
mov rdi, qword [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x18002dbf5
test rdi, rdi
je 0x18002d7de
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180002d7e
jmp 0x18002d586
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x18002d822
nop dword [rax + rax]
cmp ax, 0x5c
je 0x18002d819
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x18002d800
jmp 0x18002d822
test rcx, rcx
jne 0x18002dc28
cmp dword [rsp + 0x70], 0
je 0x18002da09
mov r9d, 0x2001f
mov r8, rsi
mov rdi, qword [rsp + 0x78]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.180002982
test eax, eax
je 0x18002d97a
mov r9d, 0x20019
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.180002982
test eax, eax
je 0x18002d97a
mov qword [rsp + 0x68], 0
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x18002d915
cmp qword [rbx], 0
je 0x18002d906
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x18002d8a6
mov eax, 1
xor ebx, ebx
jmp 0x18002d94d
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x18002d90c
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 0x18002d94d
cmp dword [rbx + 8], 0
jne 0x18002d915
mov eax, 1
xor ebx, ebx
jmp 0x18002d94d
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 0x18002dc54
mov eax, ebx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18002d966
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x78], ebx
mov rdi, qword [rsp + 0x68]
mov qword [rbp - 0x80], rdi
test eax, eax
jne 0x18002dc54
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
cmp word [rsi], 0x3d
jne 0x18002d9b6
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.18000245a
mov ebx, eax
test eax, eax
js 0x18002dc5d
cmp word [rsi], 0x7b
jne 0x18002d590
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x18002d9c4
cmp rax, 1
jne 0x18002d590
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rdx, rsi
mov rcx, rdi
call fcn.18000193d
mov ebx, eax
test eax, eax
js 0x18002dc5d
mov rdx, rsi
mov rcx, rdi
jmp 0x18002d581
cmp dword [rbp + 0x2240], 0
jne 0x18002da31
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.180002982
mov edi, eax
test eax, eax
jne 0x18002da36
jmp 0x18002da40
mov edi, 2
mov dword [rbp + 0x2240], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.180040bd4
test eax, eax
je 0x18002da7d
cmp eax, 0xc
je 0x18002dc45
cmp eax, 0x16
je 0x18002dc3a
cmp eax, 0x22
je 0x18002dc3a
cmp eax, 0x50
jne 0x18002dc2f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180002d7e
mov ebx, eax
test eax, eax
js 0x18002dc5d
cmp word [rsi], 0x7b
jne 0x18002db0d
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x18002dab5
cmp rax, 1
jne 0x18002db0d
mov eax, dword [rbp + 0x2240]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp - 0x80]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.18000193d
mov ebx, eax
test eax, eax
jns 0x18002daf6
cmp dword [rbp + 0x2240], 0
je 0x18002dc5d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180002f2c
mov ebx, eax
test eax, eax
js 0x18002dc5d
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x2240], eax
cmp edi, 2
je 0x18002d590
test edi, edi
je 0x18002db30
test eax, eax
je 0x18002dc50
jmp 0x18002d590
test eax, eax
je 0x18002db93
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.180002bd0
test eax, eax
je 0x18002db93
lea rdi, str.AppID
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18002d590
add rdi, 8
lea rax, [0x1800702d0]
cmp rdi, rax
jl 0x18002db50
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18002d590
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call fcn.1800016a4
jmp 0x18002d590
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.180002bd0
mov edi, eax
xor eax, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18002dbba
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x78], 0
test eax, eax
jne 0x18002dc54
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18002d590
test edi, edi
jne 0x18002d590
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x18002dc54
jmp 0x18002d590
mov ecx, eax
call fcn.1800021da
mov ebx, eax
test rdi, rdi
je 0x18002dc5d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18002dc5d
mov ecx, eax
call fcn.1800021da
mov ebx, eax
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18002dc5d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18002dc5d
mov ebx, 0x80020009
jmp 0x18002dc5d
mov ecx, 0x80004005
call fcn.180003c79
int3
mov ecx, 0x80070057
call fcn.180003c79
int3
mov ecx, 0x8007000e
call fcn.180003c79
int3
mov ecx, edi
jmp 0x18002dc56
mov ecx, eax
call fcn.1800021da
mov ebx, eax
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x18002dc6f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21e0]
xor rcx, rsp
call fcn.18003f5a0
add rsp, 0x22f8
pop rdi
pop rsi
pop rbx
pop rbp
ret