Function at 0x14007a3d0
Capabilities:
Create service
Create thread
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1190]
mov eax, 0x1290
call fcn.1400ad030
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x12c8], rbx
mov qword [rsp + 0x12d8], rsi
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rbp + 0x1180], rax
mov rbx, r8
mov r14, rdx
mov r15, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x5b0]
call fcn.1400aa8f0
mov r8, rbx
mov edx, 0x200
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movabs rax, 0xa00090020
mov qword [rbp + 0x390], rax
xor r12d, r12d
mov qword [rbp - 0x80], r12
lea r8, [rbp - 0x80]
lea rdx, [0x1400cc358]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov rsi, rax
mov qword [0x1401267d8], r12
mov qword [0x1401267c8], r12
mov qword [0x1401267e0], 1
lea rax, [0x1400f40f8]
mov qword [0x1401267c0], rax
lea rbx, [0x1401267c8]
mov qword [0x14011faa0], rbx
lea rdi, [0x1401267c0]
nop dword [rax]
mov r8, qword [rdi]
lea rdi, [rdi + 8]
mov qword [rbp - 0x78], r8
mov qword [rbp - 0x70], r12
mov qword [rbx + 0x20], r8
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rdx, rbx
lea rcx, [0x1400a3db0]
call qword [sym.imp.api_ms_win_eventing_classicprovider_l1_1_0.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14007a4c0
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
movzx eax, word [rbp - 0x32]
movzx ecx, word [rbp - 0x34]
movzx edx, word [rbp - 0x36]
movzx r8d, word [rbp - 0x38]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
lea r9, str.WPPTrace::InitWPP
lea r8, str._s__02d:_02d:_02d:_03d_n
mov edx, 0x3e6
lea rcx, [rbp + 0x9b0]
call fcn.14004c840
lea rcx, [rbp + 0x9b0]
call fcn.1400a3e40
test rsi, rsi
je 0x14007adf1
movzx eax, word [rsi]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x14007adf1
lea rdx, [rsi + 2]
lea rcx, str.install
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14007a6a7
mov r8d, 0x104
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
jne 0x14007a5c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
jmp 0x14007aea5
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14007a5ee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
jmp 0x14007aea5
mov qword [rsp + 0x60], r12
lea rax, str.NT_AUTHORITYLocalService
mov qword [rsp + 0x58], rax
lea rax, [0x1400c4360]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], SafeArrayUnaccessData
mov r9d, 4
lea r8, str.Realtek_Audio_Universal_Service
lea rdx, str.RtkAudioUniversalService
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14007a674
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.14007afc0
jmp 0x14007a687
lea rdx, str.RtkAudioUniversalService
lea rcx, str._s_is_installed._n
call fcn.14007afc0
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test rdi, rdi
je 0x14007aeac
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x14007aeac
lea rdx, [rsi + 2]
lea rcx, str.remove
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14007a818
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14007a5dc
mov r8d, 0x10024
lea rdx, str.RtkAudioUniversalService
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14007a722
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.14007afc0
jmp 0x14007a7f8
lea r8, [rbp - 0x60]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x14007a7c2
lea rdx, str.RtkAudioUniversalService
lea rcx, str.Stopping__s.
call fcn.14007afc0
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x14007a7a0
nop dword [rax + rax]
mov eax, dword [rbp - 0x5c]
cmp eax, 3
jne 0x14007a7a3
lea rcx, [0x1400d290c]
call fcn.14007afc0
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x14007a770
mov eax, dword [rbp - 0x5c]
lea rdx, str.RtkAudioUniversalService
cmp eax, 1
lea rcx, str._n_s_is_stopped._n
je 0x14007a7bd
lea rcx, str._n_s_failed_to_stop._n
call fcn.14007afc0
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x14007a7e5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.14007afc0
jmp 0x14007a7f8
lea rdx, str.RtkAudioUniversalService
lea rcx, str._s_is_removed._n
call fcn.14007afc0
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test rbx, rbx
je 0x14007aeac
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x14007aeac
mov rdx, rsi
lea rcx, str._background
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14007a8fe
lea rcx, str.MUTEX_NORMAL_USER_BC048E02_F0A9_4d8b_90F9_AB56BE6DA9E4
call fcn.1400a15c0
test eax, eax
jne 0x14007a85c
lea r8d, [rax + 0x63]
lea rdx, str.wWinMain
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14004c3d0
jmp 0x14007aeac
lea rcx, [0x1401267f0]
call fcn.140004a00
mov edx, 2
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
mov ebx, eax
xor edx, edx
mov r8d, BSTR_UserUnmarshal
lea rcx, [rbp + 0x130]
call fcn.1400aa8f0
lea rcx, [rbp + 0x130]
call fcn.14001ac90
lea rcx, [rbp + 0x130]
call fcn.1400a3590
call fcn.14001dbd0
mov rcx, rax
mov r8, r14
mov rdx, r15
call fcn.1400a1ff0
cmp ebx, 1
jbe 0x14007a8d9
mov r9d, ebx
mov r8d, 0x70
lea rdx, str.wWinMain
lea rcx, str._s__d_CoInitializeEx_hr_x
call fcn.14004c3d0
jmp 0x14007a8df
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
lea rax, vtable.CBackgroundProc.0
mov qword [rbp + 0x130], rax
lea rcx, [rbp + 0x150]
call fcn.14001aea0
jmp 0x14007aeac
mov rdx, rsi
lea rcx, str._admin
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14007a9a3
lea rcx, str.MUTEX_ADMIN_USER_F0900667_9D73_45a5_B87E_F78114AB93A0
call fcn.1400a15c0
test eax, eax
jne 0x14007a92f
lea r8d, [rax + 0x75]
jmp 0x14007a844
mov dword [0x140126804], 1
lea rcx, [0x1401267f0]
call fcn.140004a00
xor edx, edx
mov r8d, BSTR_UserUnmarshal
lea rcx, [rbp + 0x250]
call fcn.1400aa8f0
lea rcx, [rbp + 0x250]
call fcn.14001ac90
lea rcx, [rbp + 0x250]
call fcn.1400a3590
call fcn.14001dbd0
mov rcx, rax
mov r8, r14
mov rdx, r15
call fcn.1400a1ff0
lea rax, vtable.CBackgroundProc.0
mov qword [rbp + 0x250], rax
lea rcx, [rbp + 0x270]
call fcn.14001aea0
jmp 0x14007aeac
mov rdx, rsi
lea rcx, str._Embedding
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14007ad16
mov rdx, rsi
lea rcx, [0x1400e61d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14007ad16
mov rdx, rsi
lea rcx, str._rekr0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14007aa76
lea r8, [rbp - 0x80]
lea rdx, [0x1400cc358]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x14007aa31
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
lea r8, [0x1400e63b8]
lea rdx, str.SOFTWARERealtekSpkProtection
mov rcx, 0xffffffff80000002
cmp eax, 0x64
ja 0x14007aa46
mov r9d, eax
jmp 0x14007aa4c
lea r8, [0x1400e63b8]
lea rdx, str.SOFTWARERealtekSpkProtection
mov rcx, 0xffffffff80000002
mov r9d, 0xffffffff
call fcn.14006a7f0
mov r9d, 1
lea r8, str.ReKR0
lea rdx, str.SOFTWARERealtekAudioGUI_INFORMATION
mov rcx, 0xffffffff80000002
call fcn.14006a7f0
jmp 0x14007aeac
lea rdx, [rsi + 2]
lea rcx, str.RETASKPOPUP
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea rcx, [0x1401267f0]
test eax, eax
jne 0x14007ac00
call fcn.140004a00
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x390]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x14007aeac
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov ebx, eax
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp + 0xa0]
call fcn.1400aa8f0
lea rcx, [rbp + 0xa0]
call fcn.140071f00
xor eax, eax
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 dword [rbp + 0xd0], eax
mov qword [rbp + 0xf8], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x100], xmm0
mov dword [rbp + 0x110], r12d
mov dword [rbp + 0x118], r12d
mov qword [rbp + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 1
call fcn.140023e80
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x14007aee4
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r9, str.General
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400c3fc8]
lea rcx, [rsp + 0x70]
call fcn.140006190
mov r9d, ebx
lea r8, str.JDPopup
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, qword [0x1401267f8]
call fcn.14006a7f0
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007abb9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, dword [0x140125ca8]
cmp eax, 1
jne 0x14007abd4
call fcn.140072dd0
call fcn.140074f40
mov eax, dword [0x140125ca8]
dec eax
mov dword [0x140125ca8], eax
mov rdx, qword [rbp + 0xa0]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14007abfb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14007aeac
call fcn.140004a00
mov dword [0x140126810], 1
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x14007aed9
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea r8, [rsi + 2]
lea rdx, str.command_s_r_n
lea rcx, [rbp - 0x68]
call fcn.140006190
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp + 0x10]
call fcn.1400aa8f0
lea rcx, [rbp + 0x10]
call fcn.140071f00
xor eax, eax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x40], eax
mov qword [rbp + 0x68], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov dword [rbp + 0x80], r12d
mov dword [rbp + 0x88], r12d
mov qword [rbp + 0x8c], 1
mov r8, qword [rbp - 0x80]
lea rdx, [rsi + 2]
lea rcx, [rbp + 0x10]
call fcn.140023a60
nop
mov eax, dword [0x140125ca8]
cmp eax, 1
jne 0x14007acc7
call fcn.140072dd0
call fcn.140074f40
mov eax, dword [0x140125ca8]
dec eax
mov dword [0x140125ca8], eax
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007acf2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14007aeac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14007aeac
mov dword [0x140126808], 1
lea rcx, [0x1401267f0]
call fcn.140004a00
mov qword [rbp - 8], r12
mov qword [rbp - 0x20], 1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
lea rax, vtable.CRtkAudUServiceCOMServer.0
mov qword [rbp - 0x28], rax
movdqu xmmword [rbp], xmm0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
lea r9, [rbp - 0x28]
lea r8, [0x140085230]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbp + 8], rax
lea rcx, [rbp - 0x28]
call fcn.140085290
call fcn.14001dbd0
mov rcx, rax
mov r8, r14
mov rdx, r15
call fcn.1400a1ff0
mov r8d, 0x95
lea rdx, str.CRtkAudUServiceCOMServer::Stop
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov ecx, dword [rbp - 8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevokeClassObject]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14007adcd
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x28]
mov qword [rbp], r12
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov r8d, 0x9d
lea rdx, str.CRtkAudUServiceCOMServer::Stop
lea rcx, [0x1400c4050]
call fcn.14004c3d0
jmp 0x14007aeac
lea rcx, str.Parameters:_n
call fcn.14007afc0
lea rcx, str.__install__to_install_the_service._n
call fcn.14007afc0
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14007afc0
lea rcx, str.__background__to_run_in_console_mode._n
call fcn.14007afc0
call fcn.14007aef0
test rax, rax
je 0x14007ae39
mov qword [rax + 0x1b8], r15
mov qword [rax + 0x1c0], r14
lea rbx, [rax + 0x168]
mov r8d, 0x36
lea rdx, str.CServiceBase::Run
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov qword [0x140125d70], rbx
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x370], rax
lea rax, [0x140092080]
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x380], r12
mov qword [rbp + 0x388], r12
lea rcx, [rbp + 0x370]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14007aeac
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
mov edx, eax
call fcn.14007afc0
xor eax, eax
mov rcx, qword [rbp + 0x1180]
xor rcx, rsp
call fcn.1400a4020
lea r11, [rsp + 0x1290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004670
int3
mov ecx, 0x80004005
call fcn.140004670
int3