Function at 0x10002df20
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
sub rsp, 0x318
lea rbp, [rsp + 0x60]
mov rax, qword [0x10003d110]
xor rax, rbp
mov qword [rbp + 0x2a0], rax
mov rax, rdx
mov qword [rbp], rdx
xor edx, edx
mov rbx, rdx
mov rsi, rdx
mov qword [rbp + 0x70], rdx
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x80], rdx
mov qword [rbp + 0x40], rdx
mov edx, dword [rbp + 0x300]
mov dword [rbp + 0x28], r9d
mov qword [rbp + 0x30], r8
mov dword [rbp + 0x68], edx
mov rdx, rax
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x48], 1
call fcn.10002d27c
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x10002e262
mov rax, qword [rbp]
cmp word [rax], 0x7d
je 0x10002e262
mov rdi, qword [rbp]
lea rdx, [0x100005870]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
mov ecx, edx
cmp eax, edx
lea rdx, [0x100005898]
sete cl
mov dword [rbp + 0x20], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
cmp eax, ecx
je 0x10002dfe1
cmp dword [rbp + 0x20], ecx
je 0x10002e095
mov rcx, qword [rbp + 0x10]
mov rdx, rdi
call fcn.10002d27c
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
mov rdi, qword [rbp]
cmp dword [rbp + 0x28], edx
je 0x10002e095
movzx eax, word [rdi]
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rcx, rdi
jmp 0x10002e031
cmp ax, 0x5c
je 0x10002e038
call qword [sym.imp.USER32.dll_CharNextW]
xor edx, edx
mov rcx, rax
mov ax, word [rax]
cmp ax, dx
jne 0x10002e01d
jmp 0x10002e041
cmp rcx, rdx
jne 0x10002e853
lea rax, [0x10003d130]
mov qword [rbp + 8], rax
mov rdx, qword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
cmp eax, ecx
je 0x10002e08a
mov rax, qword [rbp + 8]
lea rcx, [0x10003d140]
add rax, 8
cmp rax, rcx
mov qword [rbp + 8], rax
jl 0x10002e04c
mov rax, qword [rbp + 0x30]
lea rcx, [rbp + 0x50]
mov rdx, rdi
mov qword [rbp + 0x50], rax
call fcn.10002cd64
xor eax, eax
cmp dword [rbp + 0x20], eax
jne 0x10002e7b8
lea rdx, [0x100005880]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
cmp eax, ecx
jne 0x10002e0cd
mov dword [rbp + 0x48], ecx
mov rcx, qword [rbp + 0x10]
mov rdx, rdi
call fcn.10002d27c
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
mov rdi, qword [rbp]
lea rdx, [0x1000058b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
cmp eax, edx
jne 0x10002e27f
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp + 0x90]
call fcn.10002d27c
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.10002d27c
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
mov rax, qword [rbp]
cmp word [rax], 0x3d
jne 0x10002e8b0
cmp dword [rbp + 0x28], edx
je 0x10002e1a0
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov qword [rbp + 0x50], rcx
mov rcx, qword [rbp + 0x10]
mov byte [rsp + 0x20], dl
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x50]
mov r9, rax
call fcn.10002d404
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jge 0x10002e7ef
cmp rsi, rdx
je 0x10002e17f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp rbx, rdx
je 0x10002e262
xor edi, edi
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, rdi
jne 0x10002e18a
jmp 0x10002e25f
cmp dword [rbp + 0x300], edx
jne 0x10002e21c
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov r9d, 0x20006
xor r8d, r8d
mov rdi, rdx
mov qword [rbp + 0x20], rdx
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x18], rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
cmp eax, edx
jne 0x10002e885
mov rdi, qword [rbp + 0x18]
mov eax, edx
mov qword [rbp + 0x20], rdi
cmp eax, edx
jne 0x10002e885
lea rdx, [rbp + 0x90]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edx, edx
cmp eax, edx
je 0x10002e20a
cmp eax, 2
jne 0x10002e885
cmp rdi, rdx
je 0x10002e218
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.10002da44
xor edx, edx
mov edi, eax
mov dword [rbp + 8], eax
cmp eax, edx
jge 0x10002e840
cmp rsi, rdx
je 0x10002e247
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp rbx, rdx
je 0x10002e262
xor edi, edi
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, rdi
jne 0x10002e24e
mov edi, dword [rbp + 8]
mov eax, edi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rbp
call fcn.10003a9b0
lea rsp, [rbp + 0x2b8]
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx eax, word [rdi]
mov rcx, rdi
jmp 0x10002e29b
cmp ax, 0x5c
je 0x10002e2a2
call qword [sym.imp.USER32.dll_CharNextW]
xor edx, edx
mov rcx, rax
mov ax, word [rax]
cmp ax, dx
jne 0x10002e287
jmp 0x10002e2ab
cmp rcx, rdx
jne 0x10002e8da
cmp dword [rbp + 0x28], edx
je 0x10002e429
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov qword [rbp + 0x18], rdx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10002e2ff
mov eax, ecx
cmp rsi, rcx
je 0x10002e2ef
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rbp + 0x18]
mov qword [rbp + 0x70], rsi
cmp eax, ecx
je 0x10002e3af
mov qword [rbp + 0x18], rcx
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10002e346
mov eax, ecx
cmp rsi, rcx
je 0x10002e33a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rbp + 0x18]
mov qword [rbp + 0x70], rsi
cmp eax, ecx
je 0x10002e3af
lea rax, [rbp + 0x88]
mov qword [rbp + 0x18], rcx
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10002e907
mov eax, ecx
cmp rsi, rcx
je 0x10002e39f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rbp + 0x18]
mov qword [rbp + 0x70], rsi
cmp eax, ecx
jne 0x10002e907
cmp word [rdi], 0x4c
mov byte [rbp + 0x38], cl
je 0x10002e3be
cmp word [rdi], 0x6c
jne 0x10002e3e1
lea rdx, [0x100023b68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [rbp + 0x38]
test eax, eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [rbp + 0x38], ecx
mov rcx, qword [rbp + 0x10]
mov rdx, rdi
call fcn.10002d27c
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
mov rax, qword [rbp]
cmp word [rax], 0x3d
jne 0x10002e7f3
mov ecx, dword [rbp + 0x38]
lea rdx, [rbp + 0x70]
mov r9, rax
mov byte [rsp + 0x20], cl
mov rcx, qword [rbp + 0x10]
xor r8d, r8d
call fcn.10002d404
jmp 0x10002e7e0
cmp dword [rbp + 0x300], edx
jne 0x10002e482
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov qword [rbp + 0x18], rdx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
cmp eax, edx
jne 0x10002e478
mov eax, edx
cmp rsi, rdx
je 0x10002e46c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov rsi, qword [rbp + 0x18]
mov qword [rbp + 0x70], rsi
cmp eax, edx
je 0x10002e482
mov dword [rbp + 0x300], 1
mov rcx, qword [rbp + 0x40]
cmp rcx, rdx
jne 0x10002e4da
mov ecx, 0x208
call fcn.10002cc3c
xor ecx, ecx
cmp al, cl
je 0x10002e4af
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rcx, [rsp + 0x60]
mov eax, dword [rcx]
jmp 0x10002e4cb
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
xor ecx, ecx
cmp rax, rcx
je 0x10002e4cb
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov rbx, rax
xor eax, eax
mov qword [rbp + 0x40], rcx
cmp rcx, rax
je 0x10002e938
mov r8d, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
cmp dword [rbp + 0x300], eax
jne 0x10002e619
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rbp + 0x20], eax
lea rax, [rbp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor ecx, ecx
cmp eax, ecx
jl 0x10002e54d
cmp dword [rbp + 0x20], ecx
mov eax, ecx
seta al
cmp eax, ecx
jne 0x10002e619
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
cmp eax, edx
jne 0x10002e777
mov ecx, dword [rbp + 0x20]
lea eax, [rdx + 1]
cmp ecx, eax
jne 0x10002e60a
mov ecx, 0x2000
mov dword [rbp + 8], 0x1000
call qword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
mov qword [rbp + 0x18], rax
cmp rax, rdx
je 0x10002e777
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea r9, [rbp + 8]
mov r8, rax
mov rcx, rsi
mov qword [rsp + 0x20], rdx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rcx, qword [rbp + 0x18]
xor edx, edx
cmp eax, edx
jne 0x10002e5fd
cmp word [rcx], dx
je 0x10002e5fd
call qword [sym.imp.msvcrt.dll_free]
jmp 0x10002e619
call qword [sym.imp.msvcrt.dll_free]
xor edx, edx
jmp 0x10002e777
cmp ecx, edx
mov eax, edx
seta al
cmp eax, edx
je 0x10002e777
mov rcx, qword [rbp + 0x10]
mov rdx, rdi
call fcn.10002d27c
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.10002da44
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
mov rax, qword [rbp]
cmp word [rax], 0x7b
jne 0x10002e6bc
mov eax, dword [rbp + 0x300]
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
xor r9d, r9d
mov r8, rsi
mov dword [rsp + 0x20], eax
call fcn.10002df20
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
cmp dword [rbp + 0x300], edx
je 0x10002e6c8
mov eax, dword [rbp + 0x68]
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
mov dword [rbp + 0x300], eax
call fcn.10002d27c
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
mov rdx, qword [rbp]
jmp 0x10002e21f
cmp dword [rbp + 0x300], edx
jne 0x10002e844
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], edx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
cmp eax, edx
jl 0x10002e767
cmp dword [rbp + 0x20], edx
mov eax, edx
seta al
cmp eax, edx
je 0x10002e767
lea rdi, [0x10003d130]
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
cmp eax, ecx
je 0x10002e755
lea rax, [0x10003d140]
add rdi, 8
cmp rdi, rax
jl 0x10002e721
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x70]
call fcn.10002cd64
mov rsi, qword [rbp + 0x70]
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.10002d27c
jmp 0x10002e228
cmp dword [rbp + 0x300], edx
jne 0x10002e840
mov rdi, qword [rbp]
cmp rsi, rdx
je 0x10002e796
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov rsi, rdx
mov qword [rbp + 0x70], rdx
cmp eax, edx
jne 0x10002e965
cmp dword [rbp + 0x48], edx
je 0x10002e7b8
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], rdx
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x50]
mov qword [rbp + 0x50], rax
call fcn.10002ccb4
mov rcx, qword [rbp + 0x10]
mov rdx, rdi
call fcn.10002d27c
xor edx, edx
cmp eax, edx
mov dword [rbp + 8], eax
mov edi, eax
jl 0x10002e237
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
call fcn.10002da44
xor edx, edx
mov edi, eax
mov dword [rbp + 8], eax
cmp eax, edx
jl 0x10002e237
mov rax, qword [rbp]
cmp dword [rbp + 0x28], edx
je 0x10002e840
cmp word [rax], 0x7b
jne 0x10002e840
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x10002e83e
mov r9d, dword [rbp + 0x28]
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x10]
xor eax, eax
mov r8, rsi
mov dword [rsp + 0x20], eax
call fcn.10002df20
xor edx, edx
cmp eax, edx
mov edi, eax
mov dword [rbp + 8], eax
jl 0x10002e237
jmp 0x10002e755
xor edx, edx
mov rax, qword [rbp]
cmp word [rax], 0x7d
je 0x10002e237
jmp 0x10002dfa2
cmp rsi, rdx
je 0x10002e863
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp rbx, rdx
je 0x10002e87b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
cmp rbx, rax
jne 0x10002e868
mov eax, 0x80020009
jmp 0x10002e264
mov rcx, qword [rbp + 0x20]
movzx edi, ax
or edi, 0x80070000
cmp eax, edx
cmovle edi, eax
mov dword [rbp + 8], edi
cmp rcx, rdx
je 0x10002e237
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
jmp 0x10002e237
cmp rsi, rdx
je 0x10002e8c0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp rbx, rdx
je 0x10002e87b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
cmp rbx, rax
jne 0x10002e8c5
jmp 0x10002e87b
cmp rsi, rdx
je 0x10002e8ea
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp rbx, rdx
je 0x10002e87b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
cmp rbx, rax
jne 0x10002e8ef
jmp 0x10002e87b
cmp rsi, rcx
je 0x10002e917
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp rbx, rcx
je 0x10002e87b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
cmp rbx, rax
jne 0x10002e920
jmp 0x10002e87b
xor edi, edi
cmp rsi, rdi
je 0x10002e956
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10002e956
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, rdi
jne 0x10002e94a
mov eax, 0x8007000e
jmp 0x10002e264
cmp rbx, rdx
je 0x10002e87b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
cmp rbx, rax
jne 0x10002e96e
jmp 0x10002e87b