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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.1400020e0
sub rsp, rax
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x68], r9d
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov r13, rcx
xor esi, esi
mov r14d, esi
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], esi
mov r15d, esi
mov qword [rbp - 0x78], rsi
call fcn.140032d04
mov ebx, eax
test eax, eax
js 0x140033335
cmp word [rdi], 0x7d
je 0x140033335
mov r12d, 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov esi, ebx
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140032f5c
test esi, esi
je 0x140033035
mov rdx, rdi
mov rcx, r13
call fcn.140032d04
mov ebx, eax
test eax, eax
js 0x140033335
xor ebx, ebx
cmp dword [rsp + 0x68], ebx
je 0x140033035
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140032fa2
cmp ax, 0x5c
je 0x140032fa9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140032f90
jmp 0x140032fb2
test rcx, rcx
jne 0x14003375a
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140032ff9
add rbx, 8
lea rax, str.AppID
cmp rbx, rax
jl 0x140032fb9
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
xor ebx, ebx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140032aa0
jmp 0x140032ffb
xor ebx, ebx
test esi, esi
je 0x140033035
mov rdx, rdi
mov rcx, r13
call fcn.140032d04
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140033335
mov rdx, rdi
mov rcx, r13
call fcn.1400329dc
mov ebx, eax
test eax, eax
js 0x140033335
mov esi, dword [rsp + 0x68]
jmp 0x1400333a0
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140033063
mov r12d, ebx
mov rdx, rdi
mov rcx, r13
call fcn.140032d04
mov ebx, eax
test eax, eax
js 0x140033335
xor ebx, ebx
lea rdx, [0x140074308]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14003316c
lea rdx, [rbp + 0x1c0]
mov rcx, r13
call fcn.140032d04
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140033335
mov rdx, rdi
mov rcx, r13
call fcn.140032d04
mov ebx, eax
test eax, eax
js 0x140033335
cmp word [rdi], 0x3d
jne 0x14003375a
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x1400330ec
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], r15d
mov qword [rbp - 0x60], r15
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.140032400
mov ebx, eax
jmp 0x14003339c
cmp dword [rbp + 0x2240], r15d
jne 0x140033152
test r12d, r12d
je 0x140033152
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], r15d
mov qword [rbp - 0x60], r15
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140033f94
test eax, eax
jne 0x140033739
lea rdx, [rbp + 0x1c0]
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140033722
test rsi, rsi
je 0x140033152
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r13
call fcn.1400329dc
mov ebx, eax
test eax, eax
js 0x140033335
jmp 0x14003370f
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140033186
cmp ax, 0x5c
je 0x14003318d
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140033174
jmp 0x140033196
test rcx, rcx
jne 0x14003375a
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x1400333f2
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
test r15, r15
je 0x1400331d6
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140033edc
jmp 0x1400331f0
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r12d, r12d
test eax, eax
jne 0x14003321e
mov eax, r12d
test r14, r14
je 0x140033208
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r12d
test eax, eax
je 0x140033368
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
test r15, r15
je 0x14003324d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140033edc
jmp 0x140033267
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140033292
mov eax, r12d
test r14, r14
je 0x14003327c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r12d
test eax, eax
je 0x140033368
mov qword [rsp + 0x60], r12
lea rax, [rbp - 0x58]
test r15, r15
je 0x1400332cf
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], r12d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.1400321f0
xor r15d, r15d
jmp 0x140033305
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003332c
mov eax, r15d
test r14, r14
je 0x14003331a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r15d
test eax, eax
je 0x14003336b
mov ecx, eax
call fcn.140032cf4
mov ebx, eax
test r14, r14
je 0x140033343
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.140001020
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r15d, r15d
mov rdx, rdi
mov rcx, r13
call fcn.140032d04
mov ebx, eax
test eax, eax
js 0x140033335
cmp word [rdi], 0x3d
jne 0x1400333a0
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.140032400
mov ebx, eax
mov r14, qword [rsp + 0x78]
test eax, eax
js 0x140033335
cmp word [rdi], 0x7b
jne 0x14003370f
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1400333ae
cmp rax, 1
jne 0x14003370f
mov dword [rsp + 0x20], r15d
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r13
call fcn.140032eb0
mov ebx, eax
test eax, eax
js 0x140033335
mov rdx, rdi
mov rcx, r13
call fcn.140032d04
jmp 0x14003315d
mov ebx, dword [rbp + 0x2240]
xor eax, eax
test ebx, ebx
jne 0x140033476
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
test r15, r15
je 0x14003342f
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, qword [rsp + 0x70]
mov rcx, r15
call fcn.140033edc
jmp 0x14003344b
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor eax, eax
test esi, esi
jne 0x14003347b
mov esi, eax
test r14, r14
je 0x140033467
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor eax, eax
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], eax
jmp 0x14003347b
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x1400334c5
cmp eax, 0xc
je 0x14003376f
cmp eax, 0x16
je 0x140033764
cmp eax, 0x22
je 0x140033764
cmp eax, 0x50
jne 0x14003377a
mov rdx, rdi
mov rcx, r13
call fcn.140032d04
mov ebx, eax
test eax, eax
js 0x140033335
mov rdx, rdi
mov rcx, r13
call fcn.1400329dc
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x140033335
cmp word [rdi], 0x7b
jne 0x140033549
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], cx
jne 0x1400334fb
cmp rax, 1
jne 0x140033549
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r13
call fcn.140032eb0
mov ebx, eax
test eax, eax
jns 0x14003352f
test r15d, r15d
je 0x140033335
mov rdx, rdi
mov rcx, r13
call fcn.140032d04
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140033335
jmp 0x14003354c
xor r15d, r15d
cmp esi, 2
je 0x14003370f
test esi, esi
je 0x14003356d
cmp dword [rbp + 0x2240], r15d
jne 0x14003370f
mov ecx, esi
jmp 0x14003332e
cmp dword [rbp + 0x2240], r15d
je 0x14003361d
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14003361d
mov eax, r15d
cmp dword [rsp + 0x60], r15d
seta al
test eax, eax
je 0x14003361d
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14003370f
add rsi, 8
lea rax, str.AppID
cmp rsi, rax
jl 0x1400335d7
test r12d, r12d
je 0x14003370f
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.140032aa0
mov r14, qword [rsp + 0x78]
jmp 0x14003370f
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, r15d
test eax, eax
jne 0x140033670
cmp dword [rsp + 0x60], r15d
seta sil
mov eax, r15d
test r14, r14
je 0x140033689
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, r15
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], r15d
test eax, eax
jne 0x14003332c
test r12d, r12d
je 0x14003370f
test esi, esi
jne 0x14003370f
cmp byte [0x140090088], r15b
jne 0x1400336e2
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400336d2
lea rdx, [0x1400686e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140090080], rax
jmp 0x1400336d9
mov rax, qword [0x140090080]
mov byte [0x140090088], 1
jmp 0x1400336e9
mov rax, qword [0x140090080]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x70]
test rax, rax
je 0x140033701
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140033707
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14003332c
cmp word [rdi], 0x7d
je 0x140033335
mov r15, qword [rbp - 0x78]
jmp 0x140032f20
mov ecx, eax
call fcn.140032cf4
mov ebx, eax
test rsi, rsi
je 0x140033335
mov rcx, rsi
jmp 0x14003374f
mov ecx, eax
call fcn.140032cf4
mov ebx, eax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140033335
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140033335
mov ebx, 0x80020009
jmp 0x140033335
mov ecx, 0x80070057
call fcn.1400312f0
int3
mov ecx, 0x8007000e
call fcn.1400312f0
int3
mov ecx, 0x80004005
call fcn.1400312f0
int3