Function at 0x140106ed0
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x538]
sub rsp, 0x610
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov r14, rcx
mov sil, 1
movdqa xmm0, xmmword [0x1403a9ab0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.alexaSupport
lea rcx, [rsp + 0x60]
call fcn.14005e050
nop
lea rcx, [r14 + 0x108]
lea rdx, [rsp + 0x60]
call fcn.140110e80
cmp qword [rax + 0x18], 0x10
jb 0x140106f5b
mov rax, qword [rax]
lea rdx, [0x140334378]
mov rcx, rax
call fcn.140249db8
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.140046190
test ebx, ebx
jne 0x140107461
mov byte [r14 + 0x151], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xe0]
call fcn.140222790
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2f0]
call fcn.140222790
mov r8d, 0x104
lea rdx, [rbp + 0x2f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rbx + 0x5c]
lea rcx, [rbp + 0x2f0]
call fcn.140221398
xor edi, edi
test rax, rax
je 0x140106fdf
mov word [rax + 2], di
jmp 0x140106fe6
mov word [rbp + 0x2f0], di
lea r8, str.SSTtoAPO64.dll
mov edx, 0x104
lea rcx, [rbp + 0x2f0]
call fcn.140242df8
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call fcn.140222790
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp - 0x60]
call fcn.14012e990
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
cmp dword [rbp + rcx - 0x50], 0
jne 0x14010704b
mov r9d, 0x103
lea r8, [rbp + 0x2f0]
lea edx, [r9 + 1]
lea rcx, [rbp + 0xe0]
call fcn.140247d24
lea rax, [rbp + 0xe0]
mov r13, 0xffffffffffffffff
mov rbx, r13
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140107060
lea rcx, [rbp - 0x60]
call fcn.14005a820
test rbx, rbx
je 0x1401071b7
mov qword [rbp - 0x78], rdi
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesIntelAudioServiceConfig
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
cmp qword [rbp - 0x78], 0
je 0x1401071b4
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ppDllName
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jne 0x1401071b4
mov qword [rbp - 0x70], rdi
lea rax, [rbp + 0xd4]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesIntelAudioServiceParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
cmp qword [rbp - 0x70], 0
je 0x1401071b4
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, str.ppDllName
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x1401071b7
xor sil, sil
lea rax, [r14 + 0xb0]
mov qword [rsp + 0x58], rax
lea rcx, [rbp + 0xe0]
mov qword [rsp + 0x20], rcx
lea r9, str.Set_Speech_DLL_Path:__s
movzx r8d, sil
mov edx, 1
mov rcx, rax
call fcn.14011e570
test sil, sil
je 0x140107447
cmp byte [r14 + 0x150], 0
je 0x140107447
xor eax, eax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], rdi
mov qword [rbp + 0xc0], rdi
mov dword [rbp + 0xc8], edi
mov rbx, qword [0x140464980]
lea edx, [rax + 1]
lea rcx, [rbp + 0xb0]
call fcn.140058ea0
test al, al
je 0x1401074a0
mov r12, qword [rbp + 0xb0]
mov rdx, rbx
mov rcx, r12
call fcn.14003be10
mov r15, qword [rbp + 0xb8]
inc r15
mov qword [rbp + 0xb8], r15
mov esi, 0x80004005
mov qword [rbp - 0x68], rdi
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesWavesSysSvc
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140107429
test r15, r15
je 0x140107410
call fcn.140039c50
mov rcx, rax
test rax, rax
je 0x1401074ab
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov r14, rdi
test r15, r15
je 0x14010736b
cmp rdi, r15
jae 0x1401074d4
mov rdx, qword [r12 + r14*8]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14003c4a0
mov rbx, qword [rsp + 0x50]
movsxd r13, dword [rbx - 0x10]
lea esi, [r13 + 1]
test esi, esi
js 0x1401074c9
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140107343
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.14003b630
mov rbx, qword [rsp + 0x50]
mov eax, r13d
mov word [rbx + rax*2], di
cmp esi, dword [rbx - 0xc]
jg 0x1401074be
mov dword [rbx - 0x10], esi
mov word [rbx + r13*2 + 2], di
inc r14
cmp r14, r15
jb 0x1401072fa
mov r13, 0xffffffffffffffff
movsxd r14, dword [rbx - 0x10]
lea esi, [r14 + 1]
test esi, esi
js 0x1401074b3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14010739d
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.14003b630
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov word [rbx + rax*2], di
cmp esi, dword [rbx - 0xc]
jg 0x140107495
mov dword [rbx - 0x10], esi
mov word [rbx + r14*2 + 2], di
mov eax, dword [rbx - 0x10]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 7
xor r8d, r8d
lea rdx, str.DependOnService
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140107400
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
mov r15, qword [rbp + 0xb8]
mov r12, qword [rbp + 0xb0]
jmp 0x14010741f
lea rdx, str.DependOnService
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
sete sil
test r12, r12
je 0x140107447
mov rdx, r15
mov rcx, r12
call fcn.140059000
mov rcx, r12
call fcn.1402384fc
lea r9, str.Set_DSP_Service_Dependency
movzx r8d, sil
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14011e570
movzx eax, sil
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140039950
nop
mov ecx, 0x8007000e
call fcn.140039950
int3
mov ecx, esi
call fcn.140039950
nop
mov ecx, 0x80070057
call fcn.140039950
int3
mov ecx, 0x80070057
call fcn.140039950
int3
mov ecx, 0x80070057
call fcn.140039950
int3
mov ecx, 0x80070057
call fcn.140039950
int3