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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xor edi, edi
cmp dword [rcx + 0x30], edi
je 0x140031cb2
xor eax, eax
jmp 0x14003213e
mov eax, dword [rcx + 0x28]
mov dword [rcx + 0x38], eax
add rcx, 0x38
call fcn.1400325d0
test eax, eax
jns 0x140031cdb
lea rcx, str.Failed_to_initialize_HW_HWS_
call fcn.140026f80
mov edi, 0x80004005
jmp 0x14003213c
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 0x140031d00
lea rcx, str.Unable_to_create_Stop_Thread_event_
jmp 0x140031ddc
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 0x140031d25
lea rcx, str.Unable_to_create_Keyword_Detected_event_
jmp 0x140031ddc
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 0x140031d4a
lea rcx, str.Unable_to_create_Device_Change_event_
jmp 0x140031ddc
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140032170]
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 0x140031d79
lea rcx, str.Unable_to_create_Thread_for_receiving_Device_Change_notification_
jmp 0x140031ddc
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140031dd5
mov rax, qword [rcx]
mov rdx, qword [rbx + 0x68]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
js 0x140031dd5
mov dword [rbx + 0x80], 1
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140031dcc
mov rax, qword [rcx]
mov rdx, qword [rbx + 0x60]
call qword [rax + 0x30]
test eax, eax
js 0x140031dcc
mov dword [rbx + 0x84], 1
cmp dword [rbx + 0x3c], edi
je 0x140031de1
mov rcx, qword [rbx + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x40]
jmp 0x140031de1
lea rcx, str.Failed_to_register_event_for_receiving_keyword_detected_notification_
jmp 0x140031ddc
lea rcx, str.Failed_to_register_event_for_receiving_device_change_notification_
call fcn.140026f80
mov dword [rbx + 0x30], 1
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rdi
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], rdi
mov r9d, 0x2001f
lea r8, str.SOFTWARERealtekAudioWOV
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x28]
call fcn.1400222c0
test eax, eax
jne 0x140031eb7
mov dword [rbp - 0x30], edi
mov dword [rbp - 0x10], 4
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.EnableDefaultKeyword
mov rsi, qword [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140031e7c
cmp dword [rbp - 0x38], 4
jne 0x140031e7c
cmp dword [rbp - 0x30], edi
je 0x140031e7c
test rsi, rsi
je 0x140031e72
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x140031f0a
mov dword [rbp - 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x38]
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 0x140031ec6
mov rcx, rsi
jmp 0x140031ec0
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140031ec6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
mov qword [rbp - 0x38], rcx
mov r9, qword [rbx + 0x40]
test r9, r9
je 0x140031efb
mov rax, qword [r9]
lea r8, [rbp - 0x38]
lea rdx, [0x14008e710]
mov rcx, r9
call qword [rax]
mov rcx, qword [rbp - 0x38]
test eax, eax
js 0x140031efb
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x38]
mov eax, edi
test rcx, rcx
je 0x140031f0a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
cmp dword [rbx + 0x1c], 0
je 0x14003202a
test eax, eax
jne 0x14003202a
mov r14d, dword [rbx + 0x20]
lea edx, [rax + 1]
lea rcx, [rbx + 0x38]
call fcn.140032760
lea rcx, [rbx + 0x38]
test r14d, r14d
je 0x140031fb3
cmp dword [rcx], 0
je 0x140032006
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rdi
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], rdi
mov r9d, 0x2001f
lea r8, str.SOFTWARERealtekAudioWOV
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x28]
call fcn.1400222c0
test eax, eax
jne 0x140031ff7
mov dword [rbp - 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.DefaultKeywordGlobalStatus
mov rsi, qword [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test rsi, rsi
je 0x140032006
mov rcx, rsi
jmp 0x140032000
xor edx, edx
call fcn.140032760
cmp dword [rbx + 0x38], 0
je 0x140032006
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rdi
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], rdi
mov r9d, 0x2001f
lea r8, str.SOFTWARERealtekAudioWOV
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x28]
call fcn.1400222c0
test eax, eax
jne 0x140031ff7
mov dword [rbp - 0x38], edi
jmp 0x140031f7b
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140032006
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rbp - 0x38], edi
cmp dword [rbx + 0x3c], 0
je 0x14003201f
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
lea r8, [rbp - 0x38]
xor edx, edx
call qword [rax + 0x28]
mov eax, edi
test r14d, r14d
sete al
mov dword [rbx + 0x18], eax
cmp dword [rbx + 0x18], 0
je 0x1400320f4
mov dword [rbp - 0x30], edi
cmp dword [rbx + 0x3c], 0
je 0x1400320f4
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax + 0x20]
cmp dword [rbp - 0x30], 0
je 0x1400320f4
mov edx, 1
lea rcx, [rbx + 0x38]
call fcn.140032760
cmp dword [rbx + 0x38], 0
je 0x1400320f1
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rdi
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], rdi
mov r9d, 0x2001f
lea r8, str.SOFTWARERealtekAudioWOV
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x28]
call fcn.1400222c0
test eax, eax
jne 0x1400320e2
mov dword [rbp - 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.DefaultKeywordGlobalStatus
mov rsi, qword [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test rsi, rsi
je 0x1400320f1
mov rcx, rsi
jmp 0x1400320eb
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400320f1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rbx + 0x18], edi
cmp dword [rbx + 0x8c], 0
je 0x14003213c
mov rcx, rbx
call fcn.140032250
dec eax
cmp eax, 0x62
ja 0x14003213c
mov dword [rbp - 0x38], edi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [fcn.140010bb0]
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.1400324b0
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140065bd0
lea r11, [rsp + 0x70]
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