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

Disassembly:
jmp 0x140012430
push rbx
push rbp
push rsi
push rdi
mov eax, 0x1218
call fcn.140232ee0
sub rsp, rax
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x1402cf318]
xor rax, rsp
mov qword [rsp + 0x1200], rax
mov dword [rsp + 0x80], r9d
mov qword [rsp + 0x88], r8
mov rbp, rdx
mov rax, rcx
mov qword [rsp + 0x78], rcx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
mov ecx, dword [rsp + 0x1260]
mov dword [rsp + 0xc0], ecx
mov rcx, rax
call fcn.1400011cc
mov edi, eax
test eax, eax
jns 0x1400124ab
mov dword [rsp + 0x68], ebx
jmp 0x140013029
cmp byte [rbp], 0x7d
je 0x140012ff5
mov dword [rsp + 0x84], 1
lea rdx, str.Delete
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor esi, esi
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400124f4
test esi, esi
je 0x140012615
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140012fe7
cmp dword [rsp + 0x80], 0
je 0x140012615
xor edi, edi
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x98], edi
mov rcx, rbp
movzx eax, byte [rbp]
test al, al
je 0x140012553
cmp al, 0x5c
je 0x14001254a
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140012535
jmp 0x140012553
test rcx, rcx
jne 0x140012dfe
lea rbx, str.AppID
nop
nop
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400125c2
add rbx, 8
lea rax, [0x1402524b0]
cmp rbx, rax
jl 0x140012560
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], 0
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.140002a86
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x98], 0
test esi, esi
je 0x140012605
mov rdx, rbp
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140012e3b
mov rdx, rbp
mov rcx, rsi
call fcn.140001951
mov edi, eax
test eax, eax
js 0x140012e26
mov dword [rsp + 0x98], 0
jmp 0x1400129c2
mov dword [rsp + 0x98], 0
mov rbx, qword [rsp + 0x60]
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14001264b
xor esi, esi
mov dword [rsp + 0x84], esi
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140012fe0
jmp 0x140012652
mov esi, dword [rsp + 0x84]
lea rdx, [0x140250948]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140012800
lea rdx, [rsp + 0x200]
mov rcx, qword [rsp + 0x78]
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140012fd9
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140012fd2
cmp byte [rbp], 0x3d
jne 0x140012ecd
cmp dword [rsp + 0x80], 0
je 0x140012720
xor ecx, ecx
mov qword [rsp + 0xb0], rcx
mov dword [rsp + 0xb8], ecx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], ecx
mov r9, rbp
lea r8, [rsp + 0x200]
lea rdx, [rsp + 0xb0]
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call fcn.140002392
mov edi, eax
xor eax, eax
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], eax
test edi, edi
js 0x140012e50
mov dword [rsp + 0xb8], eax
jmp 0x1400129c2
cmp dword [rsp + 0x1260], 0
jne 0x1400127df
test esi, esi
je 0x1400127df
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xa8], 0
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140012eaf
mov dword [rsp + 0xa8], eax
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0xa8], eax
lea rdx, [rsp + 0x200]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1400127ba
cmp eax, 2
jne 0x140012e77
test rbx, rbx
je 0x1400127d4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xa8], 0
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.140001951
mov edi, eax
test eax, eax
js 0x140012fcb
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
mov rcx, rbp
movzx eax, byte [rbp]
test al, al
je 0x14001282e
nop
nop
cmp al, 0x5c
je 0x140012825
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140012810
jmp 0x14001282e
test rcx, rcx
jne 0x140012ef6
cmp dword [rsp + 0x80], 0
je 0x140012a25
xor esi, esi
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbp
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001289d
mov eax, esi
test rbx, rbx
je 0x140012883
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], esi
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], esi
test eax, eax
je 0x140012970
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400128f4
mov eax, esi
test rbx, rbx
je 0x1400128da
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], esi
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], esi
test eax, eax
je 0x140012977
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
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, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140012f29
mov eax, esi
test rbx, rbx
je 0x140012950
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], esi
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0
test eax, eax
jne 0x140012f2e
jmp 0x14001297c
mov rsi, qword [rsp + 0x60]
jmp 0x14001297c
mov rsi, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140013008
cmp byte [rbp], 0x3d
jne 0x1400129bd
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call fcn.140002392
mov edi, eax
test eax, eax
js 0x140012f1f
jmp 0x1400129c2
mov rsi, qword [rsp + 0x78]
cmp byte [rbp], 0x7b
jne 0x140012dea
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x140012de3
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x60]
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140001802
mov edi, eax
test eax, eax
js 0x140012ffc
mov rdx, rbp
mov rcx, rsi
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140012fee
jmp 0x140012def
cmp dword [rsp + 0x1260], 0
jne 0x140012a9b
xor edi, edi
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x140012a90
mov ebx, edi
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x140012a7c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], edi
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], edi
jmp 0x140012a95
mov rsi, qword [rsp + 0x60]
test ebx, ebx
je 0x140012ab0
jmp 0x140012aa5
mov ebx, 2
mov rsi, qword [rsp + 0x60]
mov dword [rsp + 0x1260], 1
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call fcn.1401a54e8
test eax, eax
je 0x140012af1
cmp eax, 0xc
je 0x140012f73
cmp eax, 0x16
je 0x140012f68
cmp eax, 0x22
je 0x140012f68
cmp eax, 0x50
jne 0x140012f5d
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140013008
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.140001951
mov edi, eax
test eax, eax
js 0x140013008
cmp byte [rbp], 0x7b
jne 0x140012b7c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x140012b7c
mov eax, dword [rsp + 0x1260]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rsi
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.140001802
mov edi, eax
test eax, eax
jns 0x140012b65
cmp dword [rsp + 0x1260], 0
je 0x140013008
mov rdx, rbp
mov rcx, qword [rsp + 0x78]
call fcn.1400011cc
mov edi, eax
test eax, eax
js 0x140013008
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x1260], eax
cmp ebx, 2
je 0x140012ddc
test ebx, ebx
je 0x140012ba9
test eax, eax
je 0x140012f7e
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
test eax, eax
je 0x140012c64
xor ebx, ebx
mov dword [rsp + 0x70], 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 + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x140012c66
mov eax, ebx
cmp dword [rsp + 0x70], ebx
seta al
test eax, eax
je 0x140012c66
lea rbx, str.AppID
nop
mov rdx, qword [rbx]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140012dc0
add rbx, 8
lea rax, [0x1402524b0]
cmp rbx, rax
jl 0x140012c10
mov eax, dword [rsp + 0x84]
test eax, eax
je 0x140012dc7
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.140002a86
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
xor ebx, ebx
mov dword [rsp + 0x70], 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 + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x140012cb4
cmp dword [rsp + 0x70], 0
seta bl
xor eax, eax
test rsi, rsi
je 0x140012ccb
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0
test eax, eax
jne 0x140012f9f
mov eax, dword [rsp + 0x84]
test eax, eax
je 0x140012dd5
test ebx, ebx
jne 0x140012dce
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xd0], ebx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0xc8], rcx
mov dword [rsp + 0xd0], ebx
cmp byte [0x1402d1fe1], bl
jne 0x140012d67
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140012d4f
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402d1fd8], rax
jmp 0x140012d56
mov rax, qword [0x1402d1fd8]
mov byte [0x1402d1fe1], 1
mov rcx, qword [rsp + 0x88]
jmp 0x140012d6e
mov rax, qword [0x1402d1fd8]
test rax, rax
je 0x140012d85
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xf0]
call rax
jmp 0x140012d93
lea rdx, [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xd0], 0
test eax, eax
jne 0x140012f89
mov dword [rsp + 0xd0], eax
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
mov rbx, qword [rsp + 0x60]
jmp 0x140012def
mov rbx, qword [rsp + 0x60]
cmp byte [rbp], 0x7d
je 0x140013003
jmp 0x1400124b5
mov dword [rsp + 0x98], edi
test rbx, rbx
je 0x140012e18
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], edi
mov eax, 0x80020009
jmp 0x140013029
mov dword [rsp + 0x98], 0
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov dword [rsp + 0x98], 0
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov dword [rsp + 0xb8], eax
test rbx, rbx
je 0x140012e6c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], eax
mov eax, edi
jmp 0x140013029
mov ecx, eax
call fcn.1400024cd
mov edi, eax
test rbx, rbx
je 0x140012e9a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xa8], 0
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov ecx, eax
call fcn.1400024cd
mov edi, eax
mov dword [rsp + 0xa8], 0
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
test rbx, rbx
je 0x140012ee4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov eax, 0x80020009
jmp 0x140013029
test rbx, rbx
je 0x140012f0d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov eax, 0x80020009
jmp 0x140013029
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
mov ecx, eax
call fcn.1400024cd
mov ebx, eax
test rsi, rsi
je 0x140012f4e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov eax, ebx
jmp 0x140013029
mov ecx, 0x80004005
call fcn.140001e6a
int3
mov ecx, 0x80070057
call fcn.140001e6a
int3
mov ecx, 0x8007000e
call fcn.140001e6a
int3
mov ecx, ebx
call fcn.1400024cd
mov edi, eax
jmp 0x140013008
mov ecx, eax
call fcn.1400024cd
mov edi, eax
mov dword [rsp + 0xd0], 0
jmp 0x140013008
mov ecx, eax
call fcn.1400024cd
mov ebx, eax
test rsi, rsi
je 0x140012fbf
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov eax, ebx
jmp 0x140013029
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
jmp 0x140013008
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x14001301f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov eax, edi
mov rcx, qword [rsp + 0x1200]
xor rcx, rsp
call fcn.1401a5800
add rsp, 0x1218
pop rdi
pop rsi
pop rbp
pop rbx
ret