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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x10f8]
mov eax, 0x11f8
call fcn.14002c240
sub rsp, rax
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400625e0]
xor rax, rsp
mov qword [rbp + 0x10e0], 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 + 0x1140]
mov dword [rbp - 0x48], ecx
mov rcx, rax
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
cmp byte [rsi], 0x7d
je 0x140022a3d
mov dword [rsp + 0x68], 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400223b5
test edi, edi
je 0x140022492
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
cmp dword [rsp + 0x70], 0
je 0x140022492
xor eax, eax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x14002240f
nop
cmp al, 0x5c
je 0x140022406
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
movzx eax, byte [rax]
test al, al
jne 0x1400223f0
jmp 0x14002240f
test rcx, rcx
jne 0x140022a08
lea rbx, str.AppID
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140022464
add rbx, 8
lea rax, [0x140046bd0]
cmp rbx, rax
jl 0x140022420
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.140002a90
test edi, edi
je 0x140022492
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
mov rdx, rsi
mov rcx, rdi
call fcn.140023ac0
jmp 0x140022788
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400224c5
xor edi, edi
mov dword [rsp + 0x68], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
jmp 0x1400224c9
mov edi, dword [rsp + 0x68]
lea rdx, [0x140046e04]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400225cf
lea rdx, [rbp + 0xe0]
mov rcx, qword [rsp + 0x60]
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
cmp byte [rsi], 0x3d
jne 0x140022a08
cmp dword [rsp + 0x70], 0
je 0x140022557
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 + 0xe0]
lea rdx, [rbp - 0x60]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140019e50
mov ebx, eax
jmp 0x14002278a
cmp dword [rbp + 0x1140], 0
jne 0x1400225bd
test edi, edi
je 0x1400225bd
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.1400028e0
test eax, eax
jne 0x1400229ee
lea rdx, [rbp + 0xe0]
mov rdi, qword [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x1400229d5
test rdi, rdi
je 0x1400225bd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140023ac0
jmp 0x140022366
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x1400225ff
nop dword [rax]
cmp al, 0x5c
je 0x1400225f6
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
movzx eax, byte [rax]
test al, al
jne 0x1400225e0
jmp 0x1400225ff
test rcx, rcx
jne 0x140022a08
cmp dword [rsp + 0x70], 0
je 0x1400227e4
mov r9d, 0x2001f
mov r8, rsi
mov rdi, qword [rsp + 0x78]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1400028e0
test eax, eax
je 0x140022757
mov r9d, 0x20019
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1400028e0
test eax, eax
je 0x140022757
mov qword [rsp + 0x68], 0
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x1400226f2
cmp qword [rbx], 0
je 0x1400226e3
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140022683
mov eax, 1
xor ebx, ebx
jmp 0x14002272a
lea rdx, str.RegCreateKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1400226e9
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 0x14002272a
cmp dword [rbx + 8], 0
jne 0x1400226f2
mov eax, 1
xor ebx, ebx
jmp 0x14002272a
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_RegCreateKeyExA]
test eax, eax
jne 0x140022a34
mov eax, ebx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140022743
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 0x140022a34
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
cmp byte [rsi], 0x3d
jne 0x140022792
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.140019e50
mov ebx, eax
test eax, eax
js 0x140022a3d
cmp byte [rsi], 0x7b
jne 0x140022370
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rsi + rax], 0
jne 0x1400227a0
cmp rax, 1
jne 0x140022370
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rdx, rsi
mov rcx, rdi
call fcn.140022300
mov ebx, eax
test eax, eax
js 0x140022a3d
mov rdx, rsi
mov rcx, rdi
jmp 0x140022361
cmp dword [rbp + 0x1140], 0
jne 0x14002280c
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.1400028e0
mov edi, eax
test eax, eax
jne 0x140022811
jmp 0x14002281b
mov edi, 2
mov dword [rbp + 0x1140], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.14002d11c
test eax, eax
je 0x140022858
cmp eax, 0xc
je 0x140022a25
cmp eax, 0x16
je 0x140022a1a
cmp eax, 0x22
je 0x140022a1a
cmp eax, 0x50
jne 0x140022a0f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140023ac0
mov ebx, eax
test eax, eax
js 0x140022a3d
cmp byte [rsi], 0x7b
jne 0x1400228e7
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rsi + rax], 0
jne 0x140022890
cmp rax, 1
jne 0x1400228e7
mov eax, dword [rbp + 0x1140]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp - 0x80]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140022300
mov ebx, eax
test eax, eax
jns 0x1400228d0
cmp dword [rbp + 0x1140], 0
je 0x140022a3d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400201c0
mov ebx, eax
test eax, eax
js 0x140022a3d
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x1140], eax
cmp edi, 2
je 0x140022370
test edi, edi
je 0x14002290a
test eax, eax
je 0x140022a30
jmp 0x140022370
test eax, eax
je 0x140022973
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.14001ddd0
test eax, eax
je 0x140022973
lea rdi, str.AppID
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140022370
add rdi, 8
lea rax, [0x140046bd0]
cmp rdi, rax
jl 0x140022930
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140022370
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call fcn.140002a90
jmp 0x140022370
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.14001ddd0
mov edi, eax
xor eax, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002299a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x78], 0
test eax, eax
jne 0x140022a34
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140022370
test edi, edi
jne 0x140022370
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x140022a34
jmp 0x140022370
mov ecx, eax
call fcn.14001af40
mov ebx, eax
test rdi, rdi
je 0x140022a3d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140022a3d
mov ecx, eax
call fcn.14001af40
mov ebx, eax
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140022a3d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140022a3d
mov ebx, 0x80020009
jmp 0x140022a3d
mov ecx, 0x80004005
call fcn.140001850
int3
mov ecx, 0x80070057
call fcn.140001850
int3
mov ecx, 0x8007000e
call fcn.140001850
int3
mov ecx, edi
jmp 0x140022a36
mov ecx, eax
call fcn.14001af40
mov ebx, eax
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140022a4f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10e0]
xor rcx, rsp
call fcn.14002b2c0
add rsp, 0x11f8
pop rdi
pop rsi
pop rbx
pop rbp
ret