Function at 0x140002920
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rcx
lea rax, [rsp + 0x60]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
lea rdx, str.SoftwareMicrosoftIdentityCRLUserExtendedProperties
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002c6f
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x290], r12
lea r8, [rsp + 0x70]
xor r12d, r12d
mov qword [rsp + 0x280], r15
mov qword [rsp + 0x38], r12
xor edx, edx
mov qword [rsp + 0x2b0], rbx
mov r15d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x2c0], rdi
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x288], r13
mov dword [rsp + 0x68], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140002c13
movabs r13, 0x7ffffffffffffffe
cmp qword [r14 + 0x18], 0xf
mov ecx, 0xa
movabs rdx, 0x7fffffffffffffff
jbe 0x140002a13
mov rsi, qword [r14]
mov rbx, rsi
add rsi, qword [r14 + 0x10]
jmp 0x140002a1d
mov rsi, qword [r14 + 0x10]
mov rbx, r14
add rsi, r14
mov qword [rsp + 0x50], r12
xorps xmm0, xmm0
mov qword [rsp + 0x58], 7
movups xmmword [rsp + 0x40], xmm0
cmp rbx, rsi
jne 0x140002a48
mov word [rsp + 0x40], r12w
lea rdx, [rsp + 0x40]
jmp 0x140002b3f
sub rsi, rbx
cmp rsi, r13
ja 0x140002c94
mov edi, 7
cmp rsi, rdi
jbe 0x140002af1
mov rdi, rsi
or rdi, 7
cmp rdi, r13
jbe 0x140002ab7
mov rdi, r13
lea rcx, [rdx + rdx]
cmp rcx, 0x1000
jb 0x140002ae0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002c9a
mov rcx, rax
call fcn.1400056b0
mov rcx, rax
test rax, rax
je 0x140002c68
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rdi
jmp 0x140002af6
cmp rdi, 0xa
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, rdx
ja 0x140002c9a
add rcx, rcx
jne 0x140002a75
mov rax, r12
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x40], rax
jmp 0x140002af6
call fcn.1400056b0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rdi
jmp 0x140002af6
mov rax, qword [rsp + 0x40]
cmp rdi, 7
lea r8, [rsp + 0x40]
mov rdx, rsi
cmova r8, rax
mov rcx, r8
test rsi, rsi
je 0x140002b24
nop
movsx eax, byte [rbx]
lea rbx, [rbx + 1]
mov word [rcx], ax
lea rcx, [rcx + 2]
sub rdx, 1
jne 0x140002b10
mov qword [rsp + 0x50], rsi
lea rdx, [rsp + 0x40]
mov word [r8 + rsi*2], r12w
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rdx, qword [rsp + 0x58]
mov rbx, rax
cmp rdx, 7
jbe 0x140002b8f
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b8a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c68
call fcn.1400056ec
test rbx, rbx
jne 0x140002bd4
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Removed_registry_key:
call fcn.140004810
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.140004810
mov rcx, rax
lea rdx, [0x1400049f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], r12
inc r15d
mov qword [rsp + 0x28], r12
mov edx, r15d
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x68], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400029f1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [rsp + 0x288]
mov rsi, qword [rsp + 0x2b8]
mov rdi, qword [rsp + 0x2c0]
mov rbx, qword [rsp + 0x2b0]
mov r12, qword [rsp + 0x290]
mov r15, qword [rsp + 0x280]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140005690
add rsp, 0x298
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_registry_key
call fcn.1400045f0
mov rcx, rax
lea rdx, [0x1400047d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140002c4e
call fcn.1400011b0
int3
call fcn.140001110
int3