Function at 0x140009474
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21f8]
mov eax, 0x22f8
call fcn.14000ee40
sub rsp, rax
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x140011020]
xor rax, rsp
mov qword [rbp + 0x21e0], rax
mov dword [rsp + 0x78], r9d
mov qword [rbp - 0x78], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x70], rcx
xor ecx, ecx
mov esi, ecx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rcx
mov ecx, dword [rbp + 0x2240]
mov dword [rbp - 0x40], ecx
mov rcx, rax
call fcn.1400092c8
mov ebx, eax
test eax, eax
js 0x140009c20
cmp word [rdi], 0x7d
je 0x140009c20
mov eax, 1
mov dword [rsp + 0x68], eax
lea rdx, [0x1400011d8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
mov ebx, ecx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, [0x1400011a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009532
test ebx, ebx
je 0x1400095f7
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.1400092c8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009c20
cmp dword [rsp + 0x78], edx
je 0x1400095f7
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000957b
cmp ax, 0x5c
je 0x140009582
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140009569
jmp 0x14000958b
test rcx, rcx
jne 0x140009bef
lea rbx, [0x140001360]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400095c6
add rbx, 8
lea rax, [0x1400013c0]
cmp rbx, rax
jl 0x140009592
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x58], rax
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.140009098
xor eax, eax
cmp dword [rsp + 0x60], eax
je 0x1400095f7
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.1400092c8
mov ebx, eax
test eax, eax
js 0x140009c20
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.140008fec
jmp 0x1400098a0
lea rdx, [0x1400011c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
jne 0x140009628
mov dword [rsp + 0x68], ecx
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.1400092c8
mov ebx, eax
test eax, eax
js 0x140009c20
lea rdx, [0x1400011a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x140009733
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rsp + 0x70]
call fcn.1400092c8
mov ebx, eax
test eax, eax
js 0x140009c20
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.1400092c8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009c20
cmp word [rdi], 0x3d
jne 0x140009bef
cmp dword [rsp + 0x78], edx
je 0x1400096b7
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rdx
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x58], rax
mov r9, rdi
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.140008ad8
mov ebx, eax
xor edx, edx
jmp 0x1400098a4
cmp dword [rbp + 0x2240], edx
jne 0x140009721
cmp dword [rsp + 0x68], edx
je 0x140009721
mov qword [rsp + 0x68], rdx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009c17
mov rbx, qword [rsp + 0x68]
mov qword [rbp - 0x80], rbx
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140009bd5
test rbx, rbx
je 0x140009721
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.140008fec
jmp 0x1400094dc
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000974f
cmp ax, 0x5c
je 0x140009756
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x14000973b
jmp 0x14000975f
test rcx, rcx
jne 0x140009bef
cmp dword [rsp + 0x78], edx
je 0x140009901
mov qword [rsp + 0x68], rdx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rbx, qword [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x1400097ba
mov eax, ecx
test rsi, rsi
je 0x1400097a9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rsp + 0x68]
mov qword [rbp - 0x70], rsi
test eax, eax
je 0x140009869
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x140009803
mov eax, ecx
test rsi, rsi
je 0x1400097f6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rsp + 0x68]
mov qword [rbp - 0x70], rsi
test eax, eax
je 0x140009869
mov qword [rsp + 0x68], rcx
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ebx, ebx
test eax, eax
jne 0x140009c17
mov eax, ebx
test rsi, rsi
je 0x140009858
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov qword [rbp - 0x70], rsi
test eax, eax
jne 0x140009c17
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.1400092c8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009c20
cmp word [rdi], 0x3d
jne 0x1400098ac
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x70]
call fcn.140008ad8
mov rsi, qword [rbp - 0x70]
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140009c20
cmp word [rdi], 0x7b
jne 0x1400094e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1400098ba
mov ecx, 1
cmp rax, rcx
jne 0x1400094e6
mov dword [rsp + 0x20], edx
mov r9d, dword [rsp + 0x78]
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.140009474
mov ebx, eax
test eax, eax
js 0x140009c20
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
jmp 0x1400094d7
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x14000995a
mov qword [rbp - 0x80], rdx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x60], eax
xor edx, edx
test eax, eax
jne 0x140009965
mov eax, edx
mov dword [rsp + 0x60], edx
test rsi, rsi
je 0x140009950
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x60], eax
mov rsi, qword [rbp - 0x80]
mov qword [rbp - 0x70], rsi
jmp 0x140009963
mov eax, 2
mov dword [rsp + 0x60], eax
test eax, eax
mov eax, 1
cmovne ebx, eax
mov dword [rbp + 0x2240], ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
test eax, eax
je 0x1400099b1
cmp eax, 0xc
je 0x140009c0c
cmp eax, 0x16
je 0x140009c01
cmp eax, 0x22
je 0x140009c01
cmp eax, 0x50
jne 0x140009bf6
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.1400092c8
mov ebx, eax
test eax, eax
js 0x140009c20
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.140008fec
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009c20
cmp word [rdi], 0x7b
jne 0x140009a48
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1400099eb
mov ecx, 1
cmp rax, rcx
jne 0x140009a48
mov eax, dword [rbp + 0x2240]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.140009474
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x140009a2f
cmp dword [rbp + 0x2240], edx
je 0x140009c20
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.1400092c8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009c20
mov eax, dword [rbp - 0x40]
mov dword [rbp + 0x2240], eax
mov ecx, dword [rsp + 0x60]
cmp ecx, 2
je 0x1400094e6
test ecx, ecx
je 0x140009a6f
test eax, eax
je 0x140009c19
jmp 0x1400094e6
test eax, eax
je 0x140009b26
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x140009b26
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
test eax, eax
je 0x140009b26
lea rax, [0x140001360]
mov qword [rbp - 0x80], rax
mov rdx, qword [rax]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x1400094e6
mov rax, qword [rbp - 0x80]
add rax, 8
mov qword [rbp - 0x80], rax
lea rcx, [0x1400013c0]
cmp rax, rcx
jl 0x140009ad7
cmp dword [rsp + 0x68], edx
je 0x1400094e6
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140009098
mov rsi, qword [rbp - 0x70]
jmp 0x1400094e6
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
je 0x140009b74
mov dword [rsp + 0x60], edx
jmp 0x140009b81
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
mov dword [rsp + 0x60], eax
test rsi, rsi
je 0x140009b9b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov esi, edx
mov qword [rbp - 0x70], rdx
test eax, eax
jne 0x140009c17
cmp dword [rsp + 0x68], edx
je 0x1400094e6
cmp dword [rsp + 0x60], edx
jne 0x1400094e6
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rdx
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.140009200
test eax, eax
jne 0x140009c17
jmp 0x1400094e6
mov ecx, eax
call fcn.1400092b4
mov ebx, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140009c20
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009c20
mov ebx, 0x80020009
jmp 0x140009c20
mov ecx, 0x80004005
call fcn.14000a2c4
int3
mov ecx, 0x80070057
call fcn.14000a2c4
int3
mov ecx, 0x8007000e
call fcn.14000a2c4
int3
mov ecx, eax
call fcn.1400092b4
mov ebx, eax
test rsi, rsi
je 0x140009c2e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21e0]
xor rcx, rsp
call fcn.14000e330
add rsp, 0x22f8
pop rdi
pop rsi
pop rbx
pop rbp
ret