Function at 0x1400343ec
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.1400023e0
sub rsp, rax
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov r14d, r9d
mov dword [rsp + 0x68], r9d
mov r13, r8
mov rdi, rdx
mov r12, rcx
xor esi, esi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
mov qword [rbp - 0x80], rsi
call fcn.14003424c
mov ebx, eax
test eax, eax
js 0x140034c24
lfence
cmp word [rdi], 0x7d
je 0x140034c24
mov r15d, 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140034493
test esi, esi
je 0x140034565
mov rdx, rdi
mov rcx, r12
call fcn.14003424c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140034c24
lfence
test r14d, r14d
je 0x140034565
mov qword [rbp - 0x78], rdx
mov dword [rbp - 0x70], edx
mov qword [rbp - 0x68], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1400344db
cmp ax, 0x5c
je 0x1400344e2
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400344c9
jmp 0x1400344eb
test rcx, rcx
jne 0x140034c72
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
je 0x140034534
add rbx, 8
lea rax, str.AppID
cmp rbx, rax
jl 0x1400344f2
lfence
mov qword [rbp - 0x78], r13
mov dword [rbp - 0x70], ecx
mov qword [rbp - 0x68], rcx
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140033fe8
xor ecx, ecx
mov qword [rbp - 0x78], rcx
test esi, esi
je 0x140034565
lfence
mov rdx, rdi
mov rcx, r12
call fcn.14003424c
mov ebx, eax
xor esi, esi
test eax, eax
js 0x140034c24
lfence
mov rdx, rdi
mov rcx, r12
call fcn.140033f38
jmp 0x14003487f
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x140034593
mov r15d, esi
mov rdx, rdi
mov rcx, r12
call fcn.14003424c
mov ebx, eax
test eax, eax
js 0x140034c24
lea rdx, [0x140077368]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140034695
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.14003424c
mov ebx, eax
test eax, eax
js 0x140034c24
lfence
mov rdx, rdi
mov rcx, r12
call fcn.14003424c
mov ebx, eax
test eax, eax
js 0x140034c24
cmp word [rdi], 0x3d
jne 0x140034c72
test r14d, r14d
je 0x14003461a
lfence
mov qword [rbp - 0x78], r13
mov dword [rbp - 0x70], esi
mov qword [rbp - 0x68], rsi
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x78]
mov rcx, r12
call fcn.140033944
mov ebx, eax
mov qword [rbp - 0x78], rsi
jmp 0x140034881
cmp dword [rbp + 0x2240], esi
jne 0x140034682
test r15d, r15d
je 0x140034682
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140034c1b
mov rsi, qword [rsp + 0x60]
lea rdx, [rbp + 0x1c0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140034c59
test rsi, rsi
je 0x140034680
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lfence
mov rdx, rdi
mov rcx, r12
call fcn.140033f38
jmp 0x1400348d9
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1400346af
cmp ax, 0x5c
je 0x1400346b6
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14003469d
jmp 0x1400346bf
test rcx, rcx
jne 0x140034c72
test r14d, r14d
je 0x1400348e8
mov qword [rsp + 0x60], rsi
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x60]
mov ebx, 0x2001f
test rcx, rcx
je 0x1400346f9
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, rdi
mov rdx, r13
call fcn.140035418
jmp 0x140034710
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003473e
mov edx, esi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140034728
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], esi
test edx, edx
je 0x14003484e
mov qword [rsp + 0x60], rsi
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x60]
test rcx, rcx
je 0x14003476e
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, r13
call fcn.140035418
jmp 0x140034788
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400347b6
mov edx, esi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400347a0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], esi
test edx, edx
je 0x14003484e
mov qword [rsp + 0x60], rsi
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x60]
test rcx, rcx
je 0x1400347ec
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], esi
mov r8, rdi
mov rdx, r13
call fcn.140033738
jmp 0x14003481a
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, eax
test eax, eax
jne 0x140034c79
mov edx, esi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140034838
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], esi
test edx, edx
jne 0x140034c79
mov rdx, rdi
mov rcx, r12
call fcn.14003424c
mov ebx, eax
test eax, eax
js 0x140034c24
cmp word [rdi], 0x3d
jne 0x140034889
lfence
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.140033944
mov ebx, eax
test eax, eax
js 0x140034c24
cmp word [rdi], 0x7b
jne 0x140034451
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x140034897
cmp rax, 1
jne 0x140034451
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, r12
call fcn.1400343ec
mov ebx, eax
test eax, eax
js 0x140034c24
lfence
mov rdx, rdi
mov rcx, r12
call fcn.14003424c
mov ebx, eax
test eax, eax
js 0x140034c24
jmp 0x140034451
cmp dword [rbp + 0x2240], esi
jne 0x140034966
mov qword [rsp + 0x60], rsi
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x60]
test rcx, rcx
je 0x140034920
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, r13
call fcn.140035418
jmp 0x14003493a
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x14003496b
mov esi, ebx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140034956
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], ebx
jmp 0x14003496b
mov esi, 2
mov r14d, 1
test esi, esi
cmove r14d, dword [rbp + 0x2240]
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 0x1400349b9
cmp eax, 0xc
je 0x140034c81
cmp eax, 0x16
je 0x140034c97
cmp eax, 0x22
je 0x140034c97
cmp eax, 0x50
jne 0x140034c8c
mov rdx, rdi
mov rcx, r12
call fcn.14003424c
mov ebx, eax
test eax, eax
js 0x140034c24
lfence
mov rdx, rdi
mov rcx, r12
call fcn.140033f38
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x140034c24
cmp word [rdi], 0x7b
jne 0x140034a4b
lfence
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], cx
jne 0x1400349f5
cmp rax, 1
jne 0x140034a4b
lfence
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, r12
call fcn.1400343ec
mov ebx, eax
test eax, eax
jns 0x140034a2e
test r14d, r14d
je 0x140034c24
lfence
mov rdx, rdi
mov rcx, r12
call fcn.14003424c
mov ebx, eax
xor r14d, r14d
test eax, eax
js 0x140034c24
jmp 0x140034a4e
xor r14d, r14d
cmp esi, 2
je 0x140034a64
test esi, esi
je 0x140034a70
cmp dword [rbp + 0x2240], r14d
je 0x140034c7d
xor esi, esi
mov r14d, dword [rsp + 0x68]
jmp 0x140034451
cmp dword [rbp + 0x2240], r14d
je 0x140034b1f
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140034b1f
mov eax, r14d
cmp dword [rsp + 0x60], r14d
seta al
test eax, eax
je 0x140034b1f
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140034a64
add rsi, 8
lea rax, str.AppID
cmp rsi, rax
jl 0x140034adc
xor esi, esi
test r15d, r15d
je 0x140034a66
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.140033fe8
jmp 0x140034a66
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, r14d
test eax, eax
jne 0x140034b74
cmp dword [rsp + 0x60], r14d
seta sil
mov eax, r14d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140034b8c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r14d
test eax, eax
jne 0x140034c1b
test r15d, r15d
je 0x140034a64
test esi, esi
jne 0x140034a64
xor esi, esi
cmp byte [0x140095088], sil
jne 0x140034bf0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034be0
lea rdx, [0x14006cbc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140095080], rax
jmp 0x140034be7
mov rax, qword [0x140095080]
mov byte [0x140095088], 1
jmp 0x140034bf7
mov rax, qword [0x140095080]
lea rdx, [rbp - 0x50]
mov rcx, r13
test rax, rax
je 0x140034c0d
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140034c13
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140034a66
mov ecx, eax
call fcn.14003423c
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140034c34
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
mov ecx, eax
call fcn.14003423c
mov ebx, eax
test rsi, rsi
je 0x140034c24
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140034c24
mov ebx, 0x80020009
jmp 0x140034c24
mov ecx, edx
jmp 0x140034c1d
mov ecx, esi
jmp 0x140034c1d
mov ecx, 0x8007000e
call fcn.1400327c0
int3
mov ecx, 0x80004005
call fcn.1400327c0
int3
mov ecx, 0x80070057
call fcn.1400327c0
int3