Function at 0x140032f04
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
mov rdi, rcx
mov r15, qword [rbp + 0x840]
xor r12d, r12d
mov qword [rsp + 0x7c], 5
mov dword [rbp - 0x6c], r12d
mov dword [rsp + 0x78], 0x20
movups xmm0, xmmword [0x14007e730]
movdqu xmmword [rbp - 0x7c], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [rdi + 0x50], rax
lea rcx, [0x1400a9990]
call fcn.140027600
mov rcx, rdi
call fcn.1400349c8
cmp qword [rdi + 0x50], r12
jne 0x140032fd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, 0x208
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x1b0]
call fcn.14003b440
mov r9d, ebx
lea r8, str.RegisterDeviceNotification_failed_with_error__ld...
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.140012a24
lea rdx, [rbp + 0x1b0]
jmp 0x14003300b
mov esi, 0x208
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x3c0]
call fcn.14003b440
lea r8, str.RegisterDeviceNotification_succeeded
mov edx, 0x104
lea rcx, [rbp + 0x3c0]
call fcn.140012a24
lea rdx, [rbp + 0x3c0]
mov rcx, rdi
call fcn.140034cf0
xor edx, edx
mov rcx, qword [rdi + 8]
call sub.WTSAPI32.dll_WTSRegisterSessionNotification
mov rcx, rdi
call fcn.1400303a0
mov byte [rsp + 0x30], r12b
mov r13d, 1
test eax, eax
js 0x1400332e3
cmp qword [rdi + 0x78], r12
je 0x1400332e3
lfence
mov rcx, rdi
call fcn.140034ff8
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
lea rdx, [rdi + 0x58]
mov rax, qword [rax + 0x78]
call qword [0x140078a80]
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 0x2d8]
call qword [0x140078a80]
mov rcx, rdi
call fcn.140033edc
mov dword [rsp + 0x68], r12d
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
mov rax, qword [rax + 0x318]
call qword [0x140078a80]
cmp dword [rsp + 0x68], r13d
jne 0x1400330f0
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 0x2c0]
call qword [0x140078a80]
lfence
mov rcx, rdi
call fcn.1400354a0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14002df50
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
lea rbx, [rdi + 0x90]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x448]
call qword [0x140078a80]
cmp dword [rbx], r13d
jne 0x14003316a
lfence
mov rcx, rdi
call fcn.140034e08
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
mov edx, r13d
mov rax, qword [rax + 0x2c0]
call qword [0x140078a80]
cmp byte [rsp + 0x30], r12b
jne 0x140033269
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareIntelDisplayigfxcuiprofiles
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140033269
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14003b440
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x70], r13d
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.AutoApplyProfileName
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003321d
lea r8, [rsp + 0x74]
lea rdx, [0x14007eac0]
lea rcx, [rbp - 0x60]
call fcn.1400139bc
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x60]
call fcn.140048168
test rax, rax
je 0x140033269
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x38]
call fcn.14001f06c
nop
cmp qword [rdi + 0x78], r12
je 0x14003338c
lfence
mov rdx, rax
mov rcx, qword [rdi + 0x78]
call fcn.14002dee0
nop
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
mov edx, r13d
mov rax, qword [rax + 0x330]
call qword [0x140078a80]
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 0x4a8]
call qword [0x140078a80]
cmp qword [rdi + 0x78], r12
je 0x140033397
lfence
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 0x280]
call qword [0x140078a80]
mov rcx, rdi
call fcn.140034e68
mov rcx, rdi
call fcn.14002f810
mov edx, 0x6b
mov rcx, rdi
call fcn.14002fb88
mov dword [r15], r13d
mov r8, rsi
xor edx, edx
lea rcx, [rbp + 0x5d0]
call fcn.14003b440
lea r8, str.1._Ready_for_clients_to_establish_connections...
mov edx, 0x104
lea rcx, [rbp + 0x5d0]
call fcn.140012a24
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call fcn.140034cf0
lea rcx, [rdi + 0xaa8]
xor edx, edx
call fcn.14001d748
lea rbx, [rdi + 0xb88]
mov rcx, rbx
call fcn.140029ffc
xor edx, edx
mov rcx, rbx
call fcn.14002a22c
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, r13
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004003
call fcn.140037b00
nop
mov ecx, 0x80004003
call fcn.140037b00
int3