Function at 0x1400e95d0
Capabilities:
Check if file exists
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x428]
sub rsp, 0x500
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402f2080]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r14, rcx
mov sil, 1
movdqa xmm0, xmmword [0x140289e10]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov r8d, 0xc
lea rdx, str.alexaSupport
lea rcx, [rsp + 0x58]
call fcn.140025820
nop
lea rcx, [r14 + 0x108]
lea rdx, [rsp + 0x58]
call fcn.1400ec5e0
cmp qword [rax + 0x18], 0x10
jb 0x1400e965c
mov rax, qword [rax]
lea rdx, [0x14024af50]
mov rcx, rax
call fcn.14017de28
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.1400168e0
test ebx, ebx
jne 0x1400e9ac4
mov byte [r14 + 0x139], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1401659c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.1401659c0
mov r8d, 0x104
lea rdx, [rbp + 0x1e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rbx + 0x5c]
lea rcx, [rbp + 0x1e0]
call fcn.1401645c8
xor edi, edi
test rax, rax
je 0x1400e96dd
mov word [rax + 2], di
jmp 0x1400e96e4
mov word [rbp + 0x1e0], di
lea r8, str.SSTtoAPO64.dll
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call fcn.14017d4b8
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400e9727
mov r9d, 0x103
lea r8, [rbp + 0x1e0]
lea edx, [r9 + 1]
lea rcx, [rbp - 0x30]
call fcn.14017dc84
lea rcx, [rbp - 0x30]
mov r13, 0xffffffffffffffff
mov rax, r13
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400e9735
test rax, rax
je 0x1400e9871
mov qword [rbp - 0x80], rdi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
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 - 0x80], 0
je 0x1400e986e
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ppDllName
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jne 0x1400e986e
mov qword [rbp - 0x78], rdi
lea rax, [rbp - 0x3c]
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.SYSTEMCurrentControlSetServicesIntelAudioServiceParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
cmp qword [rbp - 0x78], 0
je 0x1400e986e
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 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
je 0x1400e9871
xor sil, sil
lea rbx, [r14 + 0xb0]
mov qword [rsp + 0x50], rbx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, str.Set_Speech_DLL_Path:__s
movzx r8d, sil
mov edx, 1
mov rcx, rbx
call fcn.1400e4380
test sil, sil
je 0x1400e9aac
cmp byte [r14 + 0x138], 0
je 0x1400e9aac
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
mov dword [rbp - 0x48], edi
lea edx, [rax + 1]
lea rcx, [rbp - 0x60]
call fcn.140021a80
test al, al
je 0x1400e9b0e
mov r12, qword [rbp - 0x60]
lea rdx, str.IntelAudioService
mov rcx, r12
call fcn.140016290
mov r15, qword [rbp - 0x58]
inc r15
mov qword [rbp - 0x58], r15
mov esi, 0x80004005
mov qword [rbp - 0x70], rdi
lea rax, [rbp - 0x38]
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.SYSTEMCurrentControlSetServicesWavesSysSvc
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
cmp qword [rbp - 0x70], 0
je 0x1400e9a8e
call fcn.140015450
mov rcx, rax
test rax, rax
je 0x1400e9b19
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x68], rbx
mov r14, rdi
test r15, r15
je 0x1400e99ea
cmp rdi, r15
jae 0x1400e9af8
mov rdx, qword [r12 + r14*8]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x68]
call fcn.14001da80
mov rbx, qword [rbp - 0x68]
movsxd r13, dword [rbx - 0x10]
lea esi, [r13 + 1]
test esi, esi
js 0x1400e9b37
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x1400e99c2
mov edx, esi
lea rcx, [rbp - 0x68]
call fcn.140017100
mov rbx, qword [rbp - 0x68]
mov eax, r13d
mov word [rbx + rax*2], di
cmp esi, dword [rbx - 0xc]
jg 0x1400e9b2c
mov dword [rbx - 0x10], esi
mov word [rbx + r13*2 + 2], di
inc r14
cmp r14, r15
jb 0x1400e997d
mov r13, 0xffffffffffffffff
movsxd r14, dword [rbx - 0x10]
lea esi, [r14 + 1]
test esi, esi
js 0x1400e9b21
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x1400e9a1a
mov edx, esi
lea rcx, [rbp - 0x68]
call fcn.140017100
mov rbx, qword [rbp - 0x68]
mov eax, r14d
mov word [rbx + rax*2], di
cmp esi, dword [rbx - 0xc]
jg 0x1400e9b03
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 - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x1400e9a81
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r15, qword [rbp - 0x58]
mov r12, qword [rbp - 0x60]
mov rbx, qword [rsp + 0x50]
test esi, esi
sete sil
test r12, r12
je 0x1400e9aac
mov rdx, r15
mov rcx, r12
call fcn.140021b70
mov rcx, r12
call fcn.14016e4d0
lea r9, str.Set_DSP_Service_Dependency
movzx r8d, sil
mov edx, 1
mov rcx, rbx
call fcn.1400e4380
movzx eax, sil
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140146480
lea r11, [rsp + 0x500]
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.1400151f0
int3
mov ecx, 0x80070057
call fcn.1400151f0
nop
mov ecx, 0x8007000e
call fcn.1400151f0
int3
mov ecx, esi
call fcn.1400151f0
nop
mov ecx, 0x80070057
call fcn.1400151f0
int3
mov ecx, 0x80070057
call fcn.1400151f0
int3
mov ecx, 0x80070057
call fcn.1400151f0
int3