Function at 0x140084d90
Capabilities:
Create thread
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xor edi, edi
cmp dword [rcx + 0x30], edi
je 0x140084dcd
xor eax, eax
jmp 0x140085189
mov eax, dword [rcx + 0x28]
mov dword [rcx + 0x38], eax
add rcx, 0x38
call fcn.1400856b0
test eax, eax
jns 0x140084df6
lea rcx, str.Failed_to_initialize_HW_HWS_
call fcn.140075db0
mov edi, 0x80004005
jmp 0x140085187
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x70], rax
test rax, rax
jne 0x140084e1b
lea rcx, str.Unable_to_create_Stop_Thread_event_
jmp 0x140084f23
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x140084e40
lea rcx, str.Unable_to_create_Keyword_Detected_event_
jmp 0x140084f23
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x140084e65
lea rcx, str.Unable_to_create_Device_Change_event_
jmp 0x140084f23
lfence
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x1400852c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x140084e9a
lea rcx, str.Unable_to_create_Thread_for_receiving_Device_Change_notification_
jmp 0x140084f23
lfence
mov rdx, qword [rbx + 0x68]
cmp qword [rbx + 0x40], rdi
je 0x140084f1c
lfence
mov rcx, qword [rbx + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
test eax, eax
js 0x140084f1c
lfence
mov dword [rbx + 0x80], 1
mov rdx, qword [rbx + 0x60]
cmp qword [rbx + 0x40], rdi
je 0x140084f13
lfence
mov rcx, qword [rbx + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x14005eeb3.0]
test eax, eax
js 0x140084f13
mov dword [rbx + 0x84], 1
cmp dword [rbx + 0x3c], edi
je 0x140084f28
lfence
mov rcx, qword [rbx + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x14005eeb3.0]
jmp 0x140084f28
lea rcx, str.Failed_to_register_event_for_receiving_keyword_detected_notification_
jmp 0x140084f23
lea rcx, str.Failed_to_register_event_for_receiving_device_change_notification_
call fcn.140075db0
mov dword [rbx + 0x30], 1
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], rdi
mov r9d, 0x2001f
lea r8, str.SOFTWARERealtekAudioWOV
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x20]
call fcn.140035040
test eax, eax
jne 0x140084ff9
mov dword [rbp - 0x50], edi
mov dword [rbp - 0x38], 4
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.EnableDefaultKeyword
mov rsi, qword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140084fbe
cmp dword [rbp - 0x34], 4
jne 0x140084fbe
cmp dword [rbp - 0x50], edi
je 0x140084fbe
test rsi, rsi
je 0x140084fb4
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x140085061
mov dword [rbp - 0x30], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.EnableDefaultKeyword
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test rsi, rsi
je 0x140085008
mov rcx, rsi
jmp 0x140085002
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140085008
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
mov qword [rbp - 0x40], rcx
mov r9, qword [rbx + 0x40]
test r9, r9
je 0x14008504b
mov rax, qword [r9]
lea r8, [rbp - 0x40]
lea rdx, [0x14015ed00]
mov rcx, r9
mov rax, qword [rax]
call qword [case.0x14005eeb3.0]
mov rcx, qword [rbp - 0x40]
test eax, eax
js 0x14008504b
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x14005eeb3.0]
mov rcx, qword [rbp - 0x40]
mov eax, edi
test rcx, rcx
je 0x140085061
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005eeb3.0]
mov eax, edi
cmp dword [rbx + 0x1c], 0
je 0x1400850c9
test eax, eax
jne 0x1400850c9
mov r14d, dword [rbx + 0x20]
test r14d, r14d
je 0x140085079
lea esi, [rax + 1]
jmp 0x140085089
mov edx, 1
lea rcx, [rbx + 0x38]
call fcn.140085870
mov esi, edi
mov edx, esi
lea rcx, [rbx + 0x38]
call fcn.140085870
mov edx, esi
mov rcx, rbx
call fcn.1400851c0
mov dword [rbp - 0x28], edi
cmp dword [rbx + 0x3c], 0
je 0x1400850be
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
lea r8, [rbp - 0x28]
xor edx, edx
mov rax, qword [rax + 0x28]
call qword [case.0x14005eeb3.0]
mov eax, edi
test r14d, r14d
sete al
mov dword [rbx + 0x18], eax
cmp dword [rbx + 0x18], 0
je 0x14008513c
mov dword [rbp - 0x4c], edi
cmp dword [rbx + 0x3c], 0
je 0x14008513c
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
lea rdx, [rbp - 0x4c]
mov rax, qword [rax + 0x20]
call qword [case.0x14005eeb3.0]
cmp dword [rbp - 0x4c], 0
je 0x14008513c
cmp dword [rbx + 0x3c], 0
je 0x14008512c
mov dword [rbp - 0x48], edi
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
lea r8, [rbp - 0x48]
mov edx, 1
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
test eax, eax
js 0x140085120
cmp dword [rbp - 0x48], 0
je 0x14008512c
lea rcx, str.HWKWS::SetDefaultKeywordEnable___fail_n
call fcn.140075db0
mov edx, 1
mov rcx, rbx
call fcn.1400851c0
mov dword [rbx + 0x18], edi
cmp dword [rbx + 0x8c], 0
je 0x140085187
mov rcx, rbx
call fcn.1400853e0
dec eax
cmp eax, 0x62
ja 0x140085187
lfence
mov dword [rbp - 0x24], edi
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [fcn.140026a30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x78], rax
mov rcx, rbx
call fcn.140085550
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400f4410
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret