Function at 0x140096120
Capabilities:
Delete service
Get common file path
Initialize winsock library
Modify service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov rdi, rcx
xor r12d, r12d
mov qword [0x140169710], r12
lea rax, [0x140169728]
mov qword [0x140169700], rax
mov qword [0x140169718], 1
mov qword [0x140169738], r12
mov qword [0x140169728], r12
mov qword [0x140169740], 1
lea rax, [0x1401499a0]
mov qword [0x1401696f0], rax
lea rax, [0x140149990]
mov qword [0x1401696f8], rax
lea rbx, [0x140169700]
mov qword [0x140164d78], rbx
lea rsi, [0x1401696f0]
nop dword [rax + rax]
mov r8, qword [rsi]
lea rsi, [rsi + 8]
mov qword [rsp + 0x78], r8
mov qword [rbp - 0x80], 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, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rdx, rbx
lea rcx, [0x140095910]
call qword [sym.imp.api_ms_win_eventing_classicprovider_l1_1_0.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400961d0
mov qword [rsp + 0x70], r12
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14004e800
test al, al
je 0x1400962ca
mov qword [rsp + 0x78], 1
mov qword [rbp - 0x80], 1
mov qword [rbp - 0x78], 1
mov dword [rbp - 0x40], 0x15180
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x28], 3
lea rax, [rsp + 0x78]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x40]
lea edx, [rbx + 2]
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
je 0x14009628f
mov eax, r12d
jmp 0x140096295
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdx, [rdi + 0x30]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rdx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.1400c5120
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400963d9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3c0]
call fcn.1400c5120
lea r9, [rbp + 0x1b0]
lea r8, str._sWldp.dll
mov edx, 0x104
lea rcx, [rbp + 0x3c0]
call fcn.140017d20
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400963d9
lea rdx, str.WldpQueryWindowsLockdownMode
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je 0x1400963d0
lea rcx, [rsp + 0x70]
call qword [0x1400fac68]
test eax, eax
jne 0x1400963d0
cmp dword [rsp + 0x70], r12d
je 0x1400963d0
lea rcx, str._AsusSync__ISWIndowsSMode___Its_S_mode._n
call fcn.140095ab0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea rcx, str._AsusSync__ServiceProc___Stop_service_because_its_Windows_S._n
call fcn.140095ab0
lea rdi, [0x140164d78]
mov rbx, qword [0x140164d78]
cmp rbx, rdi
je 0x1400968a2
test rbx, rbx
je 0x14009689b
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400963c3
call qword [sym.imp.api_ms_win_eventing_classicprovider_l1_1_0.dll_UnregisterTraceGuids]
mov qword [rbx + 8], r12
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400963b0
jmp 0x14009689b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
call fcn.140037b50
test al, al
je 0x140096430
lea rcx, str._AsusSync__ServiceProc___Stop_service_because_GlideX_V3_is_Ready._n
call fcn.140095ab0
lea rdi, [0x140164d78]
mov rbx, qword [0x140164d78]
cmp rbx, rdi
je 0x1400968a2
test rbx, rbx
je 0x14009689b
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140096423
call qword [sym.imp.api_ms_win_eventing_classicprovider_l1_1_0.dll_UnregisterTraceGuids]
mov qword [rbx + 8], r12
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140096410
jmp 0x14009689b
lea rcx, str._AsusSync__ServiceProc___Started_n
call fcn.140095ab0
lea r8, [0x140169750]
mov rdx, rdi
lea rcx, [0x1400960f0]
call qword [sym.imp.api_ms_win_oobe_notification_l1_1_0.dll_RegisterWaitUntilOOBECompleted]
cmp eax, 1
jne 0x14009647e
cmp byte [rdi + 0x20], r12b
jne 0x1400968a2
cmp dword [0x1401696ec], r12d
jne 0x140096497
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
cmp byte [rdi + 0x20], r12b
je 0x140096462
jmp 0x140096497
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x139f
jne 0x140096497
lea rcx, str._AsusSync__ServiceProc___OOBE_is_already_complete_n
call fcn.140095ab0
cmp byte [rdi + 0x20], r12b
jne 0x1400968a2
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140096543
mov r8d, 0xf01ff
lea rdx, str.ASUSSync
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14009653a
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x140096531
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x140096528
cmp dword [rsp + 0x7c], 3
jne 0x140096528
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x140096504
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor edx, edx
mov r8d, 0x198
lea rcx, [rbp + 0x10]
call fcn.1400c5120
mov ecx, 0x202
lea rdx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140096573
lea rcx, str._AsusSync__Unable_to_initialize_Winsock_version_2.2_n
call fcn.140095ab0
xor edx, edx
mov ecx, 0x20070
call qword [sym.imp.MFPlat.DLL_MFStartup]
lea rcx, str.user32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rsi, rax
mov r15, r12
mov r14, r12
test rax, rax
je 0x1400965fe
lea rdx, str.RegisterDeviceNotificationW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.UnregisterDeviceNotification
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov r14, rax
test rbx, rbx
je 0x1400965fe
mov qword [rbp - 0x64], 5
mov dword [rbp - 0x4c], r12d
mov dword [rbp - 0x68], 0x20
movups xmm0, xmmword [str.0P_bD]
movups xmmword [rbp - 0x5c], xmm0
mov r8d, 1
lea rdx, [rbp - 0x68]
mov rcx, qword [rdi + 8]
mov rax, rbx
call qword [0x1400fac68]
mov r15, rax
mov ecx, 0x980
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x60], rax
xor edx, edx
mov r8d, 0x980
mov rcx, rax
call fcn.1400c5120
mov rcx, rbx
call fcn.140036b00
nop
mov qword [rdi + 0x458], rax
mov ecx, 0x68
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.AsusSyncRpcEndpoint
lea rcx, [rsp + 0x40]
call fcn.140017c00
nop
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
mov r8d, 0x20
lea rdx, str.ASUS.pcInformation_qmba6cd70vzyy
lea rcx, [rbp - 0x40]
call fcn.140017c00
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140091280
nop
mov qword [rdi + 0x450], rax
mov r13d, 9
lea rcx, str.wtsapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov r12, rax
test rax, rax
je 0x140096770
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140096752
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], eax
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_WTSGetActiveConsoleSessionId]
mov edx, eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor ecx, ecx
lea r8d, [r13 - 1]
mov rax, rbx
call qword [0x1400fac68]
cmp eax, 1
jne 0x140096752
mov rcx, qword [rsp + 0x60]
mov r13d, dword [rcx]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
test r13d, r13d
jne 0x140096770
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [0x1400fac68]
xor r12d, r12d
mov qword [rsp + 0x68], r12
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_power_base_l1_1_0.dll_GetPwrCapabilities]
test al, al
je 0x1400967b3
cmp byte [rbp - 0x2c], r12b
je 0x1400967b3
lea rcx, str._AsusSync__ServiceProc___Modern_Standby_is_supported_n
call fcn.140095ab0
lea r9, [rsp + 0x68]
mov r8, qword [rdi + 8]
lea edx, [r12 + 1]
lea rcx, [0x1400fe120]
call qword [sym.imp.api_ms_win_power_setting_l1_1_0.dll_PowerSettingRegisterNotification]
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1400967c7
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rbx, qword [rdi + 0x458]
test rbx, rbx
je 0x1400967e8
mov rcx, rbx
call fcn.1400374f0
mov edx, 0x980
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0x458], r12
mov rbx, qword [rdi + 0x450]
test rbx, rbx
je 0x140096810
mov rcx, rbx
call fcn.140091450
mov edx, 0x68
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0x450], r12
call qword [sym.imp.MFPlat.DLL_MFShutdown]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140096838
call qword [sym.imp.api_ms_win_power_setting_l1_1_0.dll_PowerSettingUnregisterNotification]
mov qword [rsp + 0x68], r12
test r15, r15
je 0x14009684e
test r14, r14
je 0x14009684e
mov rcx, r15
mov rax, r14
call qword [0x1400fac68]
test rsi, rsi
je 0x14009685c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea rcx, str._AsusSync__ServiceProc___Stopped_n
call fcn.140095ab0
lea rdi, [0x140164d78]
mov rbx, qword [0x140164d78]
cmp rbx, rdi
je 0x1400968a2
test rbx, rbx
je 0x14009689b
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140096893
call qword [sym.imp.api_ms_win_eventing_classicprovider_l1_1_0.dll_UnregisterTraceGuids]
mov qword [rbx + 8], r12
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140096880
mov qword [0x140164d78], rdi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0x6e0]
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