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

Disassembly:
mov rax, rsp
push rbp
push r13
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1400e7708]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
call fcn.140082ea8
xor ebx, ebx
mov r13, 0xffffffff80000002
test al, al
je 0x14008314c
lea r12, [0x1400ab6c8]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edi, 0x20019
mov r9d, edi
xor r8d, r8d
lea rdx, str.DEVICESCurrentControlSetEnumROOTPERCEPTIONSIMULATION
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
movzx ecx, ax
mov r15d, 0x80070000
or ecx, r15d
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070002
jne 0x140083034
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetEnumROOTPERCEPTIONSIMULATION
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140083124
mov esi, ebx
mov dword [rsp + 0x58], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x70]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14008311a
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x5c], 4
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], bx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140004b78
nop
lea rdx, str.Device_ParametersVirtualDisplay
lea rcx, [rsp + 0x70]
call fcn.14000bb84
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 0x10
lea r8, str.Persistent
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x140083110
cmp dword [rsp + 0x40], 1
je 0x1400831aa
lea rcx, [rsp + 0x70]
call fcn.140004948
inc esi
test edi, edi
jns 0x14008303e
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14008314c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140083229
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 0x10010
lea r8, [0x1400bdef0]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPerceptionSimulationExtensions
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x1400831e0
mov edi, dword [rsp + 0x44]
call fcn.140082ea8
test al, al
je 0x1400831a4
cmp edi, 1
je 0x1400831a6
mov ebx, edi
mov eax, ebx
jmp 0x1400831e2
lea rcx, [rsp + 0x70]
call fcn.140004948
nop
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400831d9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140083212
mov eax, 1
jmp 0x1400831e2
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400a01e0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
call fcn.1400120bc
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
call fcn.1400120bc
int3