Function at 0x140005990
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.140052570
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400b64d0]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
mov qword [rbp - 0x68], 0
mov dword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov ecx, dword [rbp + 0x2230]
mov dword [rbp - 0x4c], ecx
mov rcx, rax
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
cmp word [rsi], 0x7d
je 0x1400060ef
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 0x140005a50
test edi, edi
je 0x140005b2c
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
cmp dword [rsp + 0x70], 0
je 0x140005b2c
xor eax, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005ab2
nop word [rax + rax]
cmp ax, 0x5c
je 0x140005aa9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005a90
jmp 0x140005ab2
test rcx, rcx
jne 0x1400060ba
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 0x140005afe
add rbx, 8
lea rax, str._:_H
cmp rbx, rax
jl 0x140005ac0
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
xor eax, eax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400053c0
test edi, edi
je 0x140005b2c
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
mov rdx, rsi
mov rcx, rdi
call fcn.140006400
jmp 0x140005e21
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005b5f
xor edi, edi
mov dword [rsp + 0x68], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
jmp 0x140005b63
mov edi, dword [rsp + 0x68]
lea rdx, [0x140069b10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005c6a
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x60]
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
cmp word [rsi], 0x3d
jne 0x1400060ba
cmp dword [rsp + 0x70], 0
je 0x140005bf2
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
xor eax, eax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
mov r9, rsi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x80]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400025f0
mov ebx, eax
jmp 0x140005e23
cmp dword [rbp + 0x2230], 0
jne 0x140005c58
test edi, edi
je 0x140005c58
xor eax, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.140004c20
test eax, eax
jne 0x1400060a0
lea rdx, [rbp + 0x1d0]
mov rdi, qword [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140006087
test rdi, rdi
je 0x140005c58
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140006400
jmp 0x140005a00
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005c97
cmp ax, 0x5c
je 0x140005c8e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005c75
jmp 0x140005c97
test rcx, rcx
jne 0x1400060ba
cmp dword [rsp + 0x70], 0
je 0x140005e85
mov r9d, 0x2001f
mov r8, rsi
mov rdi, qword [rsp + 0x78]
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.140004c20
test eax, eax
je 0x140005def
mov r9d, 0x20019
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.140004c20
test eax, eax
je 0x140005def
mov qword [rsp + 0x68], 0
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140005d8a
cmp qword [rbx], 0
je 0x140005d7b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140005d1b
mov eax, 1
xor ebx, ebx
jmp 0x140005dc2
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140005d81
mov qword [rsp + 0x50], 0
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
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 0x140005dc2
cmp dword [rbx + 8], 0
jne 0x140005d8a
mov eax, 1
xor ebx, ebx
jmp 0x140005dc2
lea rax, [rbp - 0x50]
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 0x1400060e6
mov eax, ebx
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140005ddb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x68]
mov qword [rbp - 0x68], rdi
mov dword [rbp - 0x60], ebx
test eax, eax
jne 0x1400060e6
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
cmp word [rsi], 0x3d
jne 0x140005e2b
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.1400025f0
mov ebx, eax
test eax, eax
js 0x1400060ef
cmp word [rsi], 0x7b
jne 0x140005a0a
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140005e40
cmp rax, 1
jne 0x140005a0a
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, qword [rbp - 0x68]
mov rdx, rsi
mov rcx, rdi
call fcn.140005990
mov ebx, eax
test eax, eax
js 0x1400060ef
mov rdx, rsi
mov rcx, rdi
jmp 0x1400059fb
cmp dword [rbp + 0x2230], 0
jne 0x140005ead
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.140004c20
mov edi, eax
test eax, eax
jne 0x140005eb2
jmp 0x140005ebc
mov edi, 2
mov dword [rbp + 0x2230], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14005185c
test eax, eax
je 0x140005ef9
cmp eax, 0xc
je 0x1400060d7
cmp eax, 0x16
je 0x1400060cc
cmp eax, 0x22
je 0x1400060cc
cmp eax, 0x50
jne 0x1400060c1
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140006400
mov ebx, eax
test eax, eax
js 0x1400060ef
cmp word [rsi], 0x7b
jne 0x140005f89
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x140005f31
cmp rax, 1
jne 0x140005f89
mov eax, dword [rbp + 0x2230]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp - 0x68]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140005990
mov ebx, eax
test eax, eax
jns 0x140005f72
cmp dword [rbp + 0x2230], 0
je 0x1400060ef
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004a60
mov ebx, eax
test eax, eax
js 0x1400060ef
mov eax, dword [rbp - 0x4c]
mov dword [rbp + 0x2230], eax
cmp edi, 2
je 0x140005a0a
test edi, edi
je 0x140005fac
test eax, eax
je 0x1400060e2
jmp 0x140005a0a
test eax, eax
je 0x140006013
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140004500
test eax, eax
je 0x140006013
lea rdi, str.AppID
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005a0a
add rdi, 8
lea rax, str._:_H
cmp rdi, rax
jl 0x140005fd0
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140005a0a
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.1400053c0
jmp 0x140005a0a
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140004500
mov edi, eax
xor eax, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14000603a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x60], 0
test eax, eax
jne 0x1400060e6
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140005a0a
test edi, edi
jne 0x140005a0a
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], edi
mov qword [rbp - 0x70], 0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140003d30
test eax, eax
jne 0x1400060e6
jmp 0x140005a0a
mov ecx, eax
call fcn.140002b80
mov ebx, eax
test rdi, rdi
je 0x1400060ef
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400060ef
mov ecx, eax
call fcn.140002b80
mov ebx, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400060ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400060ef
mov ebx, 0x80020009
jmp 0x1400060ef
mov ecx, 0x80004005
call fcn.140002d70
int3
mov ecx, 0x80070057
call fcn.140002d70
int3
mov ecx, 0x8007000e
call fcn.140002d70
int3
mov ecx, edi
jmp 0x1400060e8
mov ecx, eax
call fcn.140002b80
mov ebx, eax
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140006101
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.1400525d0
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret