Function at 0x7ff2ada7498
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xc0
mov r12, r9
mov edi, ecx
and qword [rax - 0x60], 0
and qword [rax - 0x48], 0
xor esi, esi
mov qword [rax - 0x40], rsi
xor r13d, r13d
mov dword [rsp + 0x70], r13d
test rdx, rdx
je 0x7ff2ada74e0
lea ecx, [rsi + 0x57]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
test r8d, r8d
je 0x7ff2ada74f5
mov ecx, 0x80090009
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptographyDefaultsProvider
mov rcx, 0xffffffff80000002
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExA
test eax, eax
je 0x7ff2ada752f
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x58], rax
and qword [rsp + 0x50], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyA
test eax, eax
je 0x7ff2ada75b3
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
mov eax, dword [rsp + 0x60]
inc rax
mov dword [rsp + 0x60], eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalAlloc]
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x7ff2ada75e9
lea ecx, [rax + 8]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8, rsi
mov edx, edi
mov rcx, qword [rsp + 0x68]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExA
test eax, eax
je 0x7ff2ada7634
mov ecx, eax
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExA
test eax, eax
je 0x7ff2ada766b
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
mov dword [rsp + 0x74], 4
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
xor r8d, r8d
lea rdx, [0x7ff2ada1844]
mov rcx, qword [rsp + 0x80]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExA
test eax, eax
je 0x7ff2ada76b7
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
mov eax, dword [rsp + 0x78]
mov dword [r12], eax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
mov r12d, ecx
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x7ff2ada7706
mov rdi, qword [rsp + 0xf8]
cmp dword [rdi], r12d
jae 0x7ff2ada76fa
mov dword [rdi], r12d
mov ecx, 0xea
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7731
mov edx, dword [rdi]
mov r8, rsi
call sub.ntdll.dll_strcpy_s
jmp 0x7ff2ada770e
mov rdi, qword [rsp + 0xf8]
mov dword [rdi], r12d
mov r13d, 1
jmp 0x7ff2ada7731
test rsi, rsi
je 0x7ff2ada773f
mov rcx, rsi
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x7ff2ada774e
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x7ff2ada7760
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey
mov eax, r13d
lea r11, [rsp + 0xc0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret