Function at 0x1400074a0
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd68]
sub rsp, 0xe40
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14007d038]
xor rax, rsp
mov qword [rbp + 0xd30], rax
mov rbx, rcx
mov qword [rbp - 0x68], rcx
mov byte [rsp + 0x20], 1
call fcn.140015b50
nop
xor r12d, r12d
mov qword [rbx + 0x3f8], r12
mov dword [rbx + 0x400], r12d
lea r13, [rbx + 0x404]
mov dword [r13], r12d
mov qword [rbx + 0x408], r12
mov qword [rbx + 0x410], r12
mov qword [rbx + 0x418], r12
mov byte [rbx + 0x448], r12b
mov dword [rbx + 0x44c], r12d
lea rcx, [rbx + 0x450]
xor edx, edx
mov r8d, 0x100
call fcn.140028230
mov qword [rbx + 0x558], r12
mov qword [rbx + 0x588], r12
mov qword [rbx + 0x5a8], r12
lea rdi, [rbx + 0x5b0]
lea rax, vtable.FMAPO::CMMEndpointNotify.0
mov qword [rdi], rax
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x20], r12
mov qword [rdi + 0x28], r12
mov dword [rdi + 0x30], 0xa
mov qword [rbx + 0x630], r12
mov qword [rbx + 0x638], r12
mov byte [rbx + 0x640], r12b
mov qword [rbx + 0x644], 0xff
lea r15, [rbx + 0x64c]
mov eax, 1
mov dword [r15], eax
lea rcx, [rbx + 0x650]
xor edx, edx
lea r8d, [rax + 0x7f]
call fcn.140028230
lea rcx, [rbx + 0x700]
xor edx, edx
lea r8d, [r12 + 0x50]
call fcn.140028230
mov esi, r12d
lea rcx, [rbx + 0x420]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, str.CurrentBuild
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.14001b2d0
lea r8, [0x14007ff20]
lea rdx, [0x140068c5c]
lea rcx, [rbp + 0xa0]
call fcn.14000b050
cmp dword [rbx + 0x278], r12d
je 0x140007695
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x1400073f0]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
mov qword [rbx + 0x6e8], rax
test rax, rax
je 0x140007695
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
test dword [rbx + 0x24c], 0x100
je 0x1400076f1
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x140006e10]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
mov qword [rbx + 0x6d8], rax
test rax, rax
je 0x1400076c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x1400072a0]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
mov qword [rbx + 0x6e0], rax
test rax, rax
je 0x1400076f1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREFortemedia
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007751
mov dword [rbp + 8], 4
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Install
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREFortemediaHowlingDection
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400077c3
mov dword [rbp + 0xc], 4
lea rax, [rbp + 0xc]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.13AE3061_F6DC_45C1_B90C_F5E992141790_11
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, 1
cmove esi, eax
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x140007a39
lea rdx, [rbp + 0x6e0]
lea rax, str.HKEY_LOCAL_MACHINESOFTWAREFortemedia__1_7_17__n_Install__REG_DWORD_1_nHKEY_LOCAL_MACHINESOFTWAREFortemediaHowlingDection__1_7_17__n_13AE3061_F6DC_45C1_B90C_F5E992141790_10__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_11__REG_DWORD_1_n_13AE3061_F6DC_45C1_B90C_F5E992141790_110__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_12__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_13__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_14__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_15__REG_DWORD_0_n_13AE3061_F6DC_45C1_B90C_F5E992141790_16__REG_DWORD_0
mov ecx, 4
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x1400077e0
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
mov rcx, qword [rax + 0x40]
mov qword [rdx + 0x40], rcx
mov ecx, dword [rax + 0x48]
mov dword [rdx + 0x48], ecx
movzx ecx, word [rax + 0x4c]
mov word [rdx + 0x4c], cx
movzx ecx, byte [rax + 0x4e]
mov byte [rdx + 0x4e], cl
mov dword [rbp + 0x10], r12d
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 0x34]
call fcn.140028230
mov dword [rbp + 0x30], 0x68
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov edx, 0x100
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rbp + 0xe0]
lea r8, str._s_regtest.txt
mov edx, 0x200
lea rcx, [rbp + 0xe0]
call fcn.140002050
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140007926
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov r8d, 0x24f
lea rdx, [rbp + 0x6e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x100
lea rcx, [rbp + 0x930]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x930]
lea r8, str._s_regini.exe__s
mov edx, 0x400
lea rcx, [rbp + 0x930]
call fcn.140002050
lea rax, [rbp - 0x38]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x930]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400079c8
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x50]
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov r8d, 0x2a
lea rdx, str.13AE3061_F6DC_45C1_B90C_F5E992141790_200
lea rcx, [rsp + 0x50]
call fcn.14000a2c0
nop
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
mov r8d, 0x35
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREFortemediaHowlingDection
lea rcx, [rsp + 0x70]
call fcn.14000a2c0
nop
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140021d58
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREFortemedia
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007a99
mov dword [rbp + 0x14], 4
lea rax, [rbp + 0x14]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ServiceTraceFlag
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str.Enter_FMAPOService::FMAPOService_n
mov edx, 4
mov rcx, rbx
call fcn.140009b00
mov r15d, 1
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
lea r9, str.FMAPOCTL
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x568], rax
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
lea r9, str.FMRENDERAPOCTL
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x570], rax
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
lea r9, str.FMAPOCTL2
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x590], rax
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
lea r9, str.FMRENDERAPOCTL2
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x598], rax
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
lea r9, str.FMAPOCTL3
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x578], rax
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
lea rax, str.FMServiceFileMappingObject
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
lea r8d, [r15 + 3]
lea rdx, [rbp - 0x60]
lea rcx, [r15 - 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x580], rax
test rax, rax
jne 0x140007cc5
lea r8, str.FMAPOService:_Create_file_mapping_fail_r_n
mov edx, r15d
mov rcx, rbx
call fcn.140009b00
jmp 0x140007d1a
mov qword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x550], rax
test rax, rax
jne 0x140007d02
lea r8, str.FMAPOCAP:_MapViewOfFile_fail_r_n
mov edx, r15d
mov rcx, rbx
call fcn.140009b00
jmp 0x140007d1a
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov dword [rax + 0x28], ecx
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
lea r9, str.FMAPOCTL_OnDeviceAdded_event
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x5a0], rax
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rbp - 0x60], 0x18
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x20]
mov qword [rbp - 0x58], rax
lea r9, str.FMAPOService_APO_Running_event
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x5a8], rax
lea r8, [rbx + 0x644]
lea rdx, str.samsfpacx.dat
mov rcx, rbx
call fcn.14001b3e0
test al, al
jne 0x140007e01
lea r8, [rbx + 0x644]
lea rdx, str.samsfpa.dat
mov rcx, rbx
call fcn.14001b3e0
test al, al
jne 0x140007e01
mov dword [rbx + 0x644], 0xff
mov dword [rbx + 0x24c], r12d
mov qword [rsp + 0x20], r13
lea r9, str.ServiceDebugFlag
lea r8, str.SOFTWAREFortemedia
mov rcx, rbx
call fcn.14001b190
test byte [r13], r15b
je 0x140007ec8
mov edx, 0x200
lea rcx, [rbp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._reg_export_HKLMSOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioCapture_FMSrvice_0_Capture_reg.log__y
mov edx, 0x200
lea rcx, [rbp + 0x2e0]
call fcn.14003c584
lea rdx, [rbp + 0x2e0]
call fcn.140020a50
mov edx, 0x200
lea rcx, [rbp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._reg_export_HKLMSOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender_FMSrvice_0_Render_reg.log__y
mov edx, 0x200
lea rcx, [rbp + 0x2e0]
call fcn.14003c584
lea rdx, [rbp + 0x2e0]
call fcn.140020a50
mov edx, 0x200
lea rcx, [rbp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._reg_export_HKLMSOFTWAREFortemedia_FMSrvice_0_Fortemedia_reg.log__y
mov edx, 0x200
lea rcx, [rbp + 0x2e0]
call fcn.14003c584
lea rdx, [rbp + 0x2e0]
call fcn.140020a50
test esi, esi
jne 0x140007f0b
mov dword [rsp + 0x20], r12d
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_11
lea r8, str.SOFTWAREFortemediaHowlingDection
mov rcx, rbx
call fcn.14001b050
test byte [rbx + 0x24c], 0x20
je 0x140007f0b
mov dword [rsp + 0x20], r15d
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_11
lea r8, str.SOFTWAREFortemediaHowlingDection
mov rcx, rbx
call fcn.14001b050
mov dword [rsp + 0x20], r12d
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_110
lea r8, str.SOFTWAREFortemediaHowlingDection
mov rcx, rbx
call fcn.14001b050
test dword [rbx + 0x644], 0x800
je 0x140007f4d
mov dword [rsp + 0x20], r15d
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_110
lea r8, str.SOFTWAREFortemediaHowlingDection
mov rcx, rbx
call fcn.14001b050
mov dword [rsp + 0x20], r12d
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_20
lea r8, str.SOFTWAREFortemediaHowlingDection
mov rcx, rbx
call fcn.14001b050
mov eax, dword [rbx + 0x24c]
test al, 0x40
je 0x140007f93
mov dword [rsp + 0x20], r15d
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_20
lea r8, str.SOFTWAREFortemediaHowlingDection
mov rcx, rbx
call fcn.14001b050
mov eax, dword [rbx + 0x24c]
test al, 8
je 0x140008035
mov dword [rbp + 0x20], 2
mov qword [rbp - 0x40], r12
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftSpeech_OneCoreAudioPolicy
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000801a
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.VoiceActivationLidStateBehavior
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000800b
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008035
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.WriteLidStateBehaviorReg:_Speech_OneCoreAudioPolicy_Reg_Set_VoiceActivationLidStateBehavior_fail_err_x_n
jmp 0x140008027
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.WriteLidStateBehaviorReg:_Speech_OneCoreAudioPolicy_Reg_Open_fail_err_x_n
mov r9d, eax
mov edx, r15d
mov rcx, rbx
call fcn.1400171b0
lea rcx, [rbx + 0x5f0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbx + 0x618], 0
lea r8, str.Leave_FMAPOService::FMAPOService_r_n
mov edx, r15d
mov rcx, rbx
call fcn.140009b00
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov qword [rbp + 0x18], r12
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [0x14006a5d0]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x14006a5e0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400080ae
mov qword [rdi + 0x38], rbx
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 0x30]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400080ba
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rax, rbx
mov rcx, qword [rbp + 0xd30]
xor rcx, rsp
call fcn.140024cf0
lea r11, [rsp + 0xe40]
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