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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x22c8
call fcn.100009f90
sub rsp, rax
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x10000c168]
xor rax, rsp
mov qword [rsp + 0x22b0], rax
mov dword [rsp + 0x7c], r9d
mov qword [rsp + 0x80], r8
mov rbp, rdx
mov rax, rcx
mov qword [rsp + 0x70], rcx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov ecx, dword [rsp + 0x2310]
mov dword [rsp + 0x90], ecx
mov rcx, rax
call fcn.100003990
mov esi, eax
test eax, eax
jns 0x10000462c
jmp 0x100004e40
cmp word [rbp], 0x7d
je 0x100004e30
mov eax, 1
mov dword [rsp + 0x78], eax
lea rdx, [0x1000016e8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
test eax, eax
sete dil
mov dword [rsp + 0x68], edi
lea rdx, [0x100001710]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100004678
test edi, edi
je 0x100004754
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
cmp dword [rsp + 0x7c], 0
je 0x100004759
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x1000046cb
cmp ax, 0x5c
je 0x1000046c2
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x1000046a9
jmp 0x1000046cb
test rcx, rcx
jne 0x100004d47
lea rdi, [0x100001770]
mov rdx, qword [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100004712
add rdi, 8
lea rax, [0x1000017d0]
cmp rdi, rax
jl 0x1000046d2
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, rbp
lea rcx, [rsp + 0x88]
call fcn.100002e14
cmp dword [rsp + 0x68], 0
je 0x10000474d
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
mov rdx, rbp
mov rcx, rdi
call fcn.10000402c
mov esi, eax
test eax, eax
js 0x100004e30
jmp 0x100004a27
mov rdi, qword [rsp + 0x70]
jmp 0x100004759
mov rdi, qword [rsp + 0x70]
lea rdx, [0x1000016f8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100004786
and dword [rsp + 0x78], eax
mov rdx, rbp
mov rcx, rdi
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
lea rdx, [0x100001728]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000048b0
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
mov rdx, rbp
mov rcx, rdi
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
cmp word [rbp], 0x3d
jne 0x100004da2
xor esi, esi
cmp dword [rsp + 0x7c], esi
je 0x10000481a
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov r9, rbp
lea r8, [rsp + 0x2b0]
lea rdx, [rsp + 0x88]
mov rcx, rdi
call fcn.100003b08
mov esi, eax
test eax, eax
js 0x100004d5f
jmp 0x100004a27
cmp dword [rsp + 0x2310], esi
jne 0x100004896
cmp dword [rsp + 0x78], esi
je 0x100004896
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100004d94
mov rdi, qword [rsp + 0x68]
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x10000487c
cmp eax, 2
jne 0x100004d74
cmp rdi, rsi
je 0x100004891
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x70]
jmp 0x100004896
mov rdi, qword [rsp + 0x70]
mov rdx, rbp
mov rcx, rdi
call fcn.10000402c
mov esi, eax
test eax, eax
js 0x100004e30
jmp 0x100004d32
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x1000048de
cmp ax, 0x5c
je 0x1000048d5
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x1000048bc
jmp 0x1000048de
test rcx, rcx
jne 0x100004dba
cmp dword [rsp + 0x7c], 0
je 0x100004a84
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbp
mov rsi, qword [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000493a
test rbx, rbx
je 0x100004928
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbx
test eax, eax
je 0x1000049e9
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000497f
test rbx, rbx
je 0x100004971
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbx
test eax, eax
je 0x1000049e9
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x94]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100004dd6
test rbx, rbx
je 0x1000049d7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbx
test eax, eax
jne 0x100004dd6
mov rdx, rbp
mov rcx, rdi
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
cmp word [rbp], 0x3d
jne 0x100004a27
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.100003b08
mov esi, eax
test eax, eax
js 0x100004dcf
mov rbx, qword [rsp + 0x60]
cmp word [rbp], 0x7b
jne 0x100004d32
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x100004d32
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x7c]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.1000045bc
mov esi, eax
test eax, eax
js 0x100004e30
mov rdx, rbp
mov rcx, rdi
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
jmp 0x100004d32
mov esi, dword [rsp + 0x2310]
test esi, esi
jne 0x100004adb
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x100004ae0
test rbx, rbx
je 0x100004acf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rbx
jmp 0x100004ae0
mov edi, 2
test edi, edi
mov eax, 1
cmovne esi, eax
mov dword [rsp + 0x2310], esi
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll_wcsncpy_s
test eax, eax
je 0x100004b32
cmp eax, 0xc
je 0x100004e07
cmp eax, 0x16
je 0x100004dfc
cmp eax, 0x22
je 0x100004dfc
cmp eax, 0x50
jne 0x100004df1
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.10000402c
mov esi, eax
test eax, eax
js 0x100004e30
cmp word [rbp], 0x7b
jne 0x100004bc2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x100004bc2
mov eax, dword [rsp + 0x2310]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbx
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.1000045bc
mov esi, eax
test eax, eax
jns 0x100004bab
cmp dword [rsp + 0x2310], 0
je 0x100004e30
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.100003990
mov esi, eax
test eax, eax
js 0x100004e30
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x2310], eax
cmp edi, 2
je 0x100004d32
test edi, edi
je 0x100004bea
test eax, eax
je 0x100004e12
jmp 0x100004d32
xor edi, edi
cmp eax, edi
je 0x100004c9e
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
jne 0x100004c9e
mov eax, edi
cmp dword [rsp + 0x68], edi
seta al
cmp eax, edi
je 0x100004c9e
lea rdi, [0x100001770]
mov rdx, qword [rdi]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100004d32
add rdi, 8
lea rax, [0x1000017d0]
cmp rdi, rax
jl 0x100004c4e
cmp dword [rsp + 0x78], 0
je 0x100004d32
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.100002e14
mov rbx, qword [rsp + 0x60]
jmp 0x100004d32
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
jne 0x100004cec
cmp dword [rsp + 0x68], edi
seta dil
test rbx, rbx
je 0x100004d09
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x60], rbx
test eax, eax
jne 0x100004e1d
cmp dword [rsp + 0x78], 0
je 0x100004d32
test edi, edi
jne 0x100004d32
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x100004e27
cmp word [rbp], 0x7d
je 0x100004e30
mov eax, 1
jmp 0x10000463c
test rbx, rbx
je 0x100004d55
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x100004e40
test rbx, rbx
je 0x100004d6d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100004e40
mov ecx, eax
call fcn.100002a58
mov esi, eax
test rdi, rdi
je 0x100004e30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100004e30
mov ecx, eax
call fcn.100002a58
mov esi, eax
jmp 0x100004e30
test rbx, rbx
je 0x100004db0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x100004e40
test rbx, rbx
je 0x100004dc8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x100004e40
mov rbx, qword [rsp + 0x60]
jmp 0x100004e30
mov ecx, eax
call fcn.100002a58
mov edi, eax
test rbx, rbx
je 0x100004ded
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100004e40
mov ecx, 0x80004005
call fcn.1000029b8
int3
mov ecx, 0x80070057
call fcn.1000029b8
int3
mov ecx, 0x8007000e
call fcn.1000029b8
int3
mov ecx, edi
call fcn.100002a58
mov esi, eax
jmp 0x100004e30
mov ecx, eax
call fcn.100002a58
nop
jmp 0x100004e40
mov ecx, eax
call fcn.100002a58
mov esi, eax
test rbx, rbx
je 0x100004e3e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x22b0]
xor rcx, rsp
call fcn.100009600
add rsp, 0x22c8
pop rdi
pop rsi
pop rbp
pop rbx
ret