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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x7ff2adb3100]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r15, r9
mov r14d, ecx
mov r13, qword [rsp + 0x120]
mov r12, qword [rsp + 0x128]
and qword [rsp + 0x70], 0
and qword [r11 - 0x80], 0
xor esi, esi
mov qword [r11 - 0x70], rsi
mov byte [r11 - 0x44], 0x54
mov byte [r11 - 0x43], 0x79
mov byte [r11 - 0x42], 0x70
mov byte [r11 - 0x41], 0x65
mov byte [r11 - 0x40], 0x20
and dword [rsp + 0x60], esi
xor edi, edi
mov dword [rsp + 0x64], edi
test rdx, rdx
je 0x7ff2ada6fbe
lea ecx, [rsi + 0x57]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
test r8d, r8d
je 0x7ff2ada6fd3
mov ecx, 0x80090009
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_Types
mov rcx, 0xffffffff80000002
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExA
test eax, eax
je 0x7ff2ada700d
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x58], rax
and qword [rsp + 0x50], 0
lea rax, [rsp + 0xb0]
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 + 0x68]
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 + 0x70]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyA
test eax, eax
je 0x7ff2ada7091
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
mov eax, dword [rsp + 0x68]
inc rax
mov dword [rsp + 0x68], 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 0x7ff2ada70c7
lea ecx, [rax + 8]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8, rsi
mov edx, r14d
mov rcx, qword [rsp + 0x70]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExA
test eax, eax
je 0x7ff2ada7127
mov ecx, 0x103
cmp eax, ecx
jne 0x7ff2ada7117
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7122
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
lea rcx, [rsp + 0xb4]
mov edx, dword [rsi]
cmp edx, dword [rcx]
jne 0x7ff2ada7141
mov dl, byte [rsi + 4]
cmp dl, byte [rcx + 4]
jne 0x7ff2ada7141
xor eax, eax
jmp 0x7ff2ada7146
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x7ff2ada715a
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
lea rcx, [rsi + 5]
call qword [sym.imp.ntdll.dll_atol]
test eax, eax
jne 0x7ff2ada7178
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
mov dword [r15], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExA
test eax, eax
je 0x7ff2ada71af
mov ecx, 0x80090020
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, [0x7ff2ada1918]
mov rcx, qword [rsp + 0x78]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExA
test eax, eax
je 0x7ff2ada71ed
mov edi, 1
mov dword [rsp + 0x64], edi
jmp 0x7ff2ada7281
test r13, r13
jne 0x7ff2ada7204
mov eax, dword [rsp + 0x60]
mov dword [r12], eax
lea edi, [r13 + 1]
mov dword [rsp + 0x64], edi
jmp 0x7ff2ada7281
mov eax, dword [rsp + 0x60]
cmp dword [r12], eax
jae 0x7ff2ada721f
mov dword [r12], eax
mov ecx, 0xea
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, [0x7ff2ada1918]
mov rcx, qword [rsp + 0x78]
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExA
test eax, eax
je 0x7ff2ada725b
mov ecx, 0x57
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ff2ada7281
mov eax, dword [rsp + 0x60]
mov dword [r12], eax
mov edi, 1
jmp 0x7ff2ada7281
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x7ff2ada7290
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x7ff2ada729f
call sub.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey
test rsi, rsi
je 0x7ff2ada72ad
mov rcx, rsi
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
mov eax, edi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.7ff2adaaa90
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
ret