Function at 0x411280
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x2d8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x0043e2a8]
xor rax, rsp
mov qword [rsp + 0x2c0], 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 + 0x320]
mov dword [rsp + 0x90], ecx
mov rcx, rax
call fcn.0040f7f0
mov esi, eax
test eax, eax
jns 0x4112ea
jmp 0x411b05
cmp byte [rbp], 0x7d
je 0x411af5
nop
nop
nop
mov dword [rsp + 0x78], 1
lea rdx, str.Delete
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
test eax, eax
sete bl
mov dword [rsp + 0x68], ebx
lea rdx, str.ForceRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41133f
test ebx, ebx
je 0x41141b
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
cmp dword [rsp + 0x7c], 0
je 0x41141b
mov rcx, rbp
movzx eax, byte [rbp]
test al, al
je 0x41138e
nop
cmp al, 0x5c
je 0x411385
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x411370
jmp 0x41138e
test rcx, rcx
jne 0x411a0c
lea rbx, str.AppID
nop
nop
nop
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4113e0
add rbx, 8
lea rax, [0x0042b700]
cmp rbx, rax
jl 0x4113a0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, rbp
lea rcx, [rsp + 0x88]
call fcn.0040fa90
cmp dword [rsp + 0x68], 0
je 0x41141b
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
mov rdx, rbp
mov rcx, rbx
call fcn.0040f970
mov esi, eax
test eax, eax
js 0x411af5
jmp 0x4116f5
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41144e
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
jmp 0x411452
mov ebx, dword [rsp + 0x78]
lea rdx, [0x0042b644]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41157c
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rsp + 0x70]
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
cmp byte [rbp], 0x3d
jne 0x411a67
cmp dword [rsp + 0x7c], 0
je 0x4114ed
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov r9, rbp
lea r8, [rsp + 0x1b0]
lea rdx, [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.00410c30
mov esi, eax
test eax, eax
js 0x411a24
jmp 0x4116f5
cmp dword [rsp + 0x320], 0
jne 0x411560
test ebx, ebx
je 0x411560
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_RegOpenKeyExA]
test eax, eax
jne 0x411a59
mov rbx, qword [rsp + 0x68]
lea rdx, [rsp + 0x1b0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x411552
cmp eax, 2
jne 0x411a39
test rbx, rbx
je 0x411560
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.0040f970
mov esi, eax
test eax, eax
js 0x411af5
jmp 0x4119fd
mov rcx, rbp
movzx eax, byte [rbp]
test al, al
je 0x4115a5
cmp al, 0x5c
je 0x41159c
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x411587
jmp 0x4115a5
test rcx, rcx
jne 0x411a7f
cmp dword [rsp + 0x7c], 0
je 0x411750
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_RegOpenKeyExA]
test eax, eax
jne 0x411604
mov eax, esi
test rdi, rdi
je 0x4115f2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
je 0x4116b3
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_RegOpenKeyExA]
test eax, eax
jne 0x41164a
mov eax, esi
test rdi, rdi
je 0x41163c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
je 0x4116b3
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_RegCreateKeyExA]
test eax, eax
jne 0x411a9b
mov eax, esi
test rdi, rdi
je 0x4116a1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
jne 0x411a9b
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
cmp byte [rbp], 0x3d
jne 0x4116f5
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.00410c30
mov esi, eax
test eax, eax
js 0x411a94
mov rdi, qword [rsp + 0x60]
cmp byte [rbp], 0x7b
jne 0x4119fd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x4119fd
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x7c]
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.00411280
mov esi, eax
test eax, eax
js 0x411af5
mov rdx, rbp
mov rcx, rbx
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
jmp 0x4119fd
cmp dword [rsp + 0x320], 0
jne 0x4117ad
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_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x4117a7
test rdi, rdi
je 0x41179d
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 0x4117bd
jmp 0x4117b2
mov ebx, 2
mov dword [rsp + 0x320], 1
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.0041cc70
test eax, eax
je 0x4117fe
cmp eax, 0xc
je 0x411acc
cmp eax, 0x16
je 0x411ac1
cmp eax, 0x22
je 0x411ac1
cmp eax, 0x50
jne 0x411ab6
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.0040f970
mov esi, eax
test eax, eax
js 0x411af5
cmp byte [rbp], 0x7b
jne 0x411889
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x411889
mov eax, dword [rsp + 0x320]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.00411280
mov esi, eax
test eax, eax
jns 0x411872
cmp dword [rsp + 0x320], 0
je 0x411af5
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.0040f7f0
mov esi, eax
test eax, eax
js 0x411af5
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x320], eax
cmp ebx, 2
je 0x4119fd
test ebx, ebx
je 0x4118b1
test eax, eax
je 0x411ad7
jmp 0x4119fd
test eax, eax
je 0x411966
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_RegQueryInfoKeyA]
test eax, eax
jne 0x411968
mov eax, ebx
cmp dword [rsp + 0x68], ebx
seta al
test eax, eax
je 0x411968
lea rbx, str.AppID
mov rdx, qword [rbx]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4119fd
add rbx, 8
lea rax, [0x0042b700]
cmp rbx, rax
jl 0x411915
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x4119fd
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.0040fa90
mov rdi, qword [rsp + 0x60]
jmp 0x4119fd
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_RegQueryInfoKeyA]
test eax, eax
jne 0x4119b6
cmp dword [rsp + 0x68], 0
seta bl
test rdi, rdi
je 0x4119d3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rsp + 0x60], rdi
test eax, eax
jne 0x411ae2
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x4119fd
test ebx, ebx
jne 0x4119fd
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x411aec
cmp byte [rbp], 0x7d
je 0x411af5
jmp 0x411300
test rdi, rdi
je 0x411a1a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x411b05
test rdi, rdi
je 0x411a32
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x411b05
mov ecx, eax
call fcn.0040f4e0
mov esi, eax
test rbx, rbx
je 0x411af5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411af5
mov ecx, eax
call fcn.0040f4e0
mov esi, eax
jmp 0x411af5
test rdi, rdi
je 0x411a75
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x411b05
test rdi, rdi
je 0x411a8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x411b05
mov rdi, qword [rsp + 0x60]
jmp 0x411af5
mov ecx, eax
call fcn.0040f4e0
mov ebx, eax
test rdi, rdi
je 0x411ab2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x411b05
mov ecx, 0x80004005
call fcn.00401050
int3
mov ecx, 0x80070057
call fcn.00401050
int3
mov ecx, 0x8007000e
call fcn.00401050
int3
mov ecx, ebx
call fcn.0040f4e0
mov esi, eax
jmp 0x411af5
mov ecx, eax
call fcn.0040f4e0
nop
jmp 0x411b05
mov ecx, eax
call fcn.0040f4e0
mov esi, eax
test rdi, rdi
je 0x411b03
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.0041b280
add rsp, 0x2d8
pop rdi
pop rsi
pop rbp
pop rbx
ret