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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x2318
call fcn.00478be0
sub rsp, rax
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x004bf230]
xor rax, rsp
mov qword [rsp + 0x2300], rax
mov dword [rsp + 0x80], r9d
mov qword [rsp + 0x88], r8
mov rbp, rdx
mov rax, rcx
mov qword [rsp + 0x78], rcx
xor esi, esi
mov rdi, rsi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], esi
mov ecx, dword [rsp + 0x2360]
mov dword [rsp + 0xc0], ecx
mov rcx, rax
call fcn.00438078
mov ebx, eax
cmp eax, esi
jge 0x43827e
jmp 0x438d13
cmp word [rbp], 0x7d
je 0x438d41
mov eax, 1
mov dword [rsp + 0x84], eax
lea rdx, str.Delete
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
cmp eax, ebx
sete sil
lea rdx, str.ForceRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
je 0x4382c9
cmp esi, ebx
je 0x4383db
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.00438078
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438d3b
xor ebx, ebx
cmp dword [rsp + 0x80], ebx
je 0x4383db
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x98], ebx
mov rcx, rbp
movzx eax, word [rbp]
cmp ax, bx
je 0x43832e
cmp ax, 0x5c
je 0x438325
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
cmp ax, bx
jne 0x43830c
jmp 0x43832e
cmp rcx, rbx
jne 0x438ba0
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x43838f
add rbx, 8
lea rax, str.HKCR
cmp rbx, rax
jl 0x438335
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
xor ebx, ebx
mov dword [rsp + 0x98], ebx
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.00437e00
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x98], ebx
jmp 0x438391
xor ebx, ebx
cmp esi, ebx
je 0x4383d4
mov rdx, rbp
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call fcn.00438078
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438bd4
mov rdx, rbp
mov rcx, rsi
call fcn.00437d58
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438bc6
mov dword [rsp + 0x98], eax
jmp 0x438b12
mov dword [rsp + 0x98], ebx
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x438413
mov esi, ebx
mov dword [rsp + 0x84], ebx
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.00438078
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438d37
jmp 0x43841c
mov esi, dword [rsp + 0x84]
jmp 0x43841e
xor ebx, ebx
lea rdx, [0x004a0578]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x4385c6
lea rdx, [rsp + 0x300]
mov rcx, qword [rsp + 0x78]
call fcn.00438078
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438d33
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.00438078
mov ebx, eax
xor ecx, ecx
cmp eax, ecx
jl 0x438d2f
cmp word [rbp], 0x3d
jne 0x438c4f
cmp dword [rsp + 0x80], ecx
je 0x4384ee
mov qword [rsp + 0xb0], rcx
mov dword [rsp + 0xb8], ecx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], ecx
mov r9, rbp
lea r8, [rsp + 0x300]
lea rdx, [rsp + 0xb0]
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call fcn.004378a0
mov ebx, eax
xor eax, eax
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], eax
cmp ebx, eax
jl 0x438be2
mov dword [rsp + 0xb8], eax
jmp 0x438b12
cmp dword [rsp + 0x2360], ecx
jne 0x4385a8
cmp esi, ecx
je 0x4385a4
xor esi, esi
mov qword [rsp + 0xa0], rsi
mov dword [rsp + 0xa8], esi
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x438c3a
mov dword [rsp + 0xa8], esi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0xa0], rsi
xor ebx, ebx
mov dword [rsp + 0xa8], ebx
lea rdx, [rsp + 0x300]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x43857f
cmp eax, 2
jne 0x438c07
cmp rsi, rbx
je 0x438599
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov qword [rsp + 0xa0], rsi
jmp 0x43859b
xor esi, esi
mov dword [rsp + 0xa8], esi
jmp 0x4385aa
xor esi, esi
jmp 0x4385aa
xor esi, esi
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.00437d58
mov ebx, eax
cmp eax, esi
jl 0x438d41
jmp 0x438b8b
mov rcx, rbp
movzx eax, word [rbp]
xor esi, esi
cmp ax, si
je 0x4385f6
cmp ax, 0x5c
je 0x4385ed
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
cmp ax, si
jne 0x4385d4
jmp 0x4385f6
cmp rcx, rsi
jne 0x438c6e
cmp dword [rsp + 0x80], esi
je 0x43877b
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbp
mov rbx, qword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x438662
mov eax, esi
cmp rdi, rsi
je 0x438648
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], esi
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], esi
cmp eax, esi
je 0x43872b
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4386b5
mov eax, esi
cmp rdi, rsi
je 0x43869f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], esi
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], esi
cmp eax, esi
je 0x43872b
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x438c97
mov eax, esi
cmp rdi, rsi
je 0x438711
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], esi
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], esi
cmp eax, esi
jne 0x438c97
mov rdx, rbp
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call fcn.00438078
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438d2b
cmp word [rbp], 0x3d
jne 0x438b12
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.004378a0
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438c8b
mov rdi, qword [rsp + 0x68]
jmp 0x438b12
mov ebx, dword [rsp + 0x2360]
cmp ebx, esi
jne 0x4387e4
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x4387eb
mov esi, eax
cmp rdi, rax
je 0x4387d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor eax, eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], eax
jmp 0x4387eb
mov esi, 2
xor eax, eax
cmp esi, eax
mov eax, 1
cmovne ebx, eax
mov dword [rsp + 0x2360], ebx
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call fcn.004461fc
xor ecx, ecx
cmp eax, ecx
je 0x43883f
cmp eax, 0xc
je 0x438ccb
cmp eax, 0x16
je 0x438cc0
cmp eax, 0x22
je 0x438cc0
cmp eax, 0x50
jne 0x438cb5
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.00438078
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438d27
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.00437d58
mov ebx, eax
xor ecx, ecx
cmp eax, ecx
jl 0x438d23
cmp word [rbp], 0x7b
jne 0x4388d6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4388d4
mov eax, dword [rsp + 0x2360]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.00438204
mov ebx, eax
xor eax, eax
cmp ebx, eax
jge 0x4388b9
cmp dword [rsp + 0x2360], eax
je 0x438d1f
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.00438078
mov ebx, eax
xor ecx, ecx
cmp eax, ecx
jl 0x438d1b
jmp 0x4388d6
xor ecx, ecx
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x2360], eax
cmp esi, 2
je 0x438b7d
cmp esi, ecx
je 0x438900
cmp eax, ecx
je 0x438cd6
xor esi, esi
jmp 0x438b8b
xor esi, esi
cmp eax, esi
je 0x4389bc
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
jne 0x4389bc
mov eax, esi
cmp dword [rsp + 0x60], esi
seta al
cmp eax, esi
je 0x4389bc
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
cmp eax, ecx
je 0x438b71
add rsi, 8
lea rax, str.HKCR
cmp rsi, rax
jl 0x438964
mov eax, dword [rsp + 0x84]
xor esi, esi
cmp eax, esi
je 0x438b8b
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x68]
call fcn.00437e00
mov rdi, qword [rsp + 0x68]
jmp 0x438b8b
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
je 0x438a06
xor ecx, ecx
jmp 0x438a10
xor ecx, ecx
cmp dword [rsp + 0x60], ecx
seta sil
mov eax, ecx
cmp rdi, rcx
je 0x438a2a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], ecx
cmp eax, ecx
jne 0x438cf5
mov eax, dword [rsp + 0x84]
cmp eax, ecx
je 0x438b79
cmp esi, ecx
jne 0x438b75
xor esi, esi
mov qword [rsp + 0xc8], rsi
mov dword [rsp + 0xd0], esi
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0xc8], rcx
mov dword [rsp + 0xd0], esi
cmp byte [0x004c57e8], sil
jne 0x438ac1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rax, rsi
je 0x438aa9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x004c57f0], rax
jmp 0x438ab0
mov rax, qword [0x004c57f0]
mov byte [0x004c57e8], 1
mov rcx, qword [rsp + 0x88]
jmp 0x438ac8
mov rax, qword [0x004c57f0]
cmp rax, rsi
je 0x438adf
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xf0]
call rax
jmp 0x438aed
lea rdx, [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 0xc8], rsi
mov dword [rsp + 0xd0], esi
cmp eax, esi
jne 0x438ce3
mov dword [rsp + 0xd0], esi
mov rsi, qword [rsp + 0x78]
xor eax, eax
cmp dword [rsp + 0x80], eax
je 0x438b81
cmp word [rbp], 0x7b
jne 0x438b89
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x438b85
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x80]
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.00438204
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x438d3f
mov rdx, rbp
mov rcx, rsi
call fcn.00438078
mov ebx, eax
xor esi, esi
cmp eax, esi
jl 0x438d41
jmp 0x438b8b
xor esi, esi
jmp 0x438b8b
xor esi, esi
jmp 0x438b8b
xor esi, esi
jmp 0x438b8b
xor esi, esi
jmp 0x438b8b
xor esi, esi
jmp 0x438b8b
xor esi, esi
jmp 0x438b8b
xor esi, esi
cmp word [rbp], 0x7d
je 0x438d41
mov eax, 1
jmp 0x43828e
xor esi, esi
mov dword [rsp + 0x98], esi
cmp rdi, rsi
je 0x438bbc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov ebx, 0x80020009
jmp 0x438d13
xor esi, esi
mov dword [rsp + 0x98], esi
jmp 0x438d41
xor esi, esi
mov dword [rsp + 0x98], esi
jmp 0x438d41
xor esi, esi
mov dword [rsp + 0xb8], esi
cmp rdi, rsi
je 0x438d13
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
jmp 0x438d13
mov ecx, eax
call fcn.00438064
mov ebx, eax
xor eax, eax
cmp rsi, rax
je 0x438c2c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov qword [rsp + 0xa0], rsi
jmp 0x438c2e
xor esi, esi
mov dword [rsp + 0xa8], esi
jmp 0x438d41
mov ecx, eax
call fcn.00438064
mov ebx, eax
mov dword [rsp + 0xa8], esi
jmp 0x438d41
xor esi, esi
cmp rdi, rsi
je 0x438c64
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov ebx, 0x80020009
jmp 0x438d13
cmp rdi, rsi
je 0x438c81
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov ebx, 0x80020009
jmp 0x438d13
mov rdi, qword [rsp + 0x68]
xor esi, esi
jmp 0x438d41
mov ecx, eax
call fcn.00438064
mov ebx, eax
cmp rdi, rsi
je 0x438d13
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
jmp 0x438d13
mov ecx, 0x80004005
call fcn.004066bc
int3
mov ecx, 0x80070057
call fcn.004066bc
int3
mov ecx, 0x8007000e
call fcn.004066bc
int3
mov ecx, esi
call fcn.00438064
mov ebx, eax
xor esi, esi
jmp 0x438d41
mov ecx, eax
call fcn.00438064
mov ebx, eax
mov dword [rsp + 0xd0], esi
jmp 0x438d41
mov ecx, eax
call fcn.00438064
mov ebx, eax
xor esi, esi
cmp rdi, rsi
je 0x438d13
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], esi
mov eax, ebx
jmp 0x438d5a
xor esi, esi
jmp 0x438d41
xor esi, esi
jmp 0x438d41
xor esi, esi
jmp 0x438d41
xor esi, esi
jmp 0x438d41
xor esi, esi
jmp 0x438d41
xor esi, esi
jmp 0x438d41
xor esi, esi
jmp 0x438d41
xor esi, esi
jmp 0x438d41
xor esi, esi
jmp 0x438d41
xor esi, esi
cmp rdi, rsi
je 0x438d54
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], esi
mov eax, ebx
mov rcx, qword [rsp + 0x2300]
xor rcx, rsp
call fcn.00443d60
add rsp, 0x2318
pop rdi
pop rsi
pop rbp
pop rbx
ret