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

Disassembly:
mov rax, rsp
sub rsp, 0x4f8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rax - 8], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov rax, qword [0x006443a8]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov dword [rsp + 0x7c], r9d
mov qword [rsp + 0x80], r8
mov rbp, rdx
mov rax, rcx
mov qword [rsp + 0x70], rcx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov ecx, dword [rsp + 0x520]
mov dword [rsp + 0x90], ecx
mov rcx, rax
call fcn.004012a0
mov esi, eax
test eax, eax
jns 0x402d28
jmp 0x403561
cmp word [rbp], 0x7d
je 0x403551
nop
nop
nop
nop
mov dword [rsp + 0x78], 1
lea rdx, [0x005ac5d0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
sete bl
mov dword [rsp + 0x68], ebx
lea rdx, [0x005ac5f8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402d7f
test ebx, ebx
je 0x402e5b
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
cmp dword [rsp + 0x7c], 0
je 0x402e5b
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x402dd2
nop
cmp ax, 0x5c
je 0x402dc9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x402db0
jmp 0x402dd2
test rcx, rcx
jne 0x403468
lea rbx, str.AppID
nop
nop
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402e20
add rbx, 8
lea rax, [0x005ac6d0]
cmp rbx, rax
jl 0x402de0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, rbp
lea rcx, [rsp + 0x88]
call fcn.00401740
cmp dword [rsp + 0x68], 0
je 0x402e5b
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
mov rdx, rbp
mov rcx, rbx
call fcn.00401460
mov esi, eax
test eax, eax
js 0x403551
jmp 0x403143
lea rdx, [0x005ac5e0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402e8e
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
jmp 0x402e92
mov ebx, dword [rsp + 0x78]
lea rdx, [0x005ac610]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402fbd
lea rdx, [rsp + 0x2b0]
mov rcx, qword [rsp + 0x70]
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
cmp word [rbp], 0x3d
jne 0x4034c3
cmp dword [rsp + 0x7c], 0
je 0x402f2e
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov r9, rbp
lea r8, [rsp + 0x2b0]
lea rdx, [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.004026a0
mov esi, eax
test eax, eax
js 0x403480
jmp 0x403143
cmp dword [rsp + 0x520], 0
jne 0x402fa1
test ebx, ebx
je 0x402fa1
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4034b5
mov rbx, qword [rsp + 0x68]
lea rdx, [rsp + 0x2b0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x402f93
cmp eax, 2
jne 0x403495
test rbx, rbx
je 0x402fa1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.00401460
mov esi, eax
test eax, eax
js 0x403551
jmp 0x403458
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x402ff2
nop
nop
cmp ax, 0x5c
je 0x402fe9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x402fd0
jmp 0x402ff2
test rcx, rcx
jne 0x4034db
cmp dword [rsp + 0x7c], 0
je 0x40319f
xor esi, esi
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbp
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403051
mov eax, esi
test rdi, rdi
je 0x40303f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
je 0x403100
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403097
mov eax, esi
test rdi, rdi
je 0x403089
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
je 0x403100
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x94]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4034f7
mov eax, esi
test rdi, rdi
je 0x4030ee
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
jne 0x4034f7
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
cmp word [rbp], 0x3d
jne 0x403143
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.004026a0
mov esi, eax
test eax, eax
js 0x4034f0
mov rdi, qword [rsp + 0x60]
cmp word [rbp], 0x7b
jne 0x403458
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x403458
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x7c]
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.00402cb0
mov esi, eax
test eax, eax
js 0x403551
mov rdx, rbp
mov rcx, rbx
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
jmp 0x403458
cmp dword [rsp + 0x520], 0
jne 0x4031fc
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x4031f6
test rdi, rdi
je 0x4031ec
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test ebx, ebx
je 0x40320c
jmp 0x403201
mov ebx, 2
mov dword [rsp + 0x520], 1
mov r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.00568da0
test eax, eax
je 0x403250
cmp eax, 0xc
je 0x403528
cmp eax, 0x16
je 0x40351d
cmp eax, 0x22
je 0x40351d
cmp eax, 0x50
jne 0x403512
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.00401460
mov esi, eax
test eax, eax
js 0x403551
cmp word [rbp], 0x7b
jne 0x4032dc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4032dc
mov eax, dword [rsp + 0x520]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.00402cb0
mov esi, eax
test eax, eax
jns 0x4032c5
cmp dword [rsp + 0x520], 0
je 0x403551
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.004012a0
mov esi, eax
test eax, eax
js 0x403551
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x520], eax
cmp ebx, 2
je 0x403458
test ebx, ebx
je 0x403304
test eax, eax
je 0x403533
jmp 0x403458
test eax, eax
je 0x4033c1
xor ebx, ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4033c3
mov eax, ebx
cmp dword [rsp + 0x68], ebx
seta al
test eax, eax
je 0x4033c3
lea rbx, str.AppID
nop
nop
mov rdx, qword [rbx]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403458
add rbx, 8
lea rax, [0x005ac6d0]
cmp rbx, rax
jl 0x403370
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x403458
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.00401740
mov rdi, qword [rsp + 0x60]
jmp 0x403458
xor ebx, ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x403411
cmp dword [rsp + 0x68], 0
seta bl
test rdi, rdi
je 0x40342e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rsp + 0x60], rdi
test eax, eax
jne 0x40353e
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x403458
test ebx, ebx
jne 0x403458
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x403548
cmp word [rbp], 0x7d
je 0x403551
jmp 0x402d40
test rdi, rdi
je 0x403476
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x403561
test rdi, rdi
je 0x40348e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x403561
mov ecx, eax
call fcn.00401110
mov esi, eax
test rbx, rbx
je 0x403551
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403551
mov ecx, eax
call fcn.00401110
mov esi, eax
jmp 0x403551
test rdi, rdi
je 0x4034d1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x403561
test rdi, rdi
je 0x4034e9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x403561
mov rdi, qword [rsp + 0x60]
jmp 0x403551
mov ecx, eax
call fcn.00401110
mov ebx, eax
test rdi, rdi
je 0x40350e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x403561
mov ecx, 0x80004005
call fcn.00401020
int3
mov ecx, 0x80070057
call fcn.00401020
int3
mov ecx, 0x8007000e
call fcn.00401020
int3
mov ecx, ebx
call fcn.00401110
mov esi, eax
jmp 0x403551
mov ecx, eax
call fcn.00401110
nop
jmp 0x403561
mov ecx, eax
call fcn.00401110
mov esi, eax
test rdi, rdi
je 0x40355f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.00568fb0
mov rbx, qword [rsp + 0x4f0]
mov rbp, qword [rsp + 0x4e8]
mov rsi, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x4d8]
add rsp, 0x4f8
ret