Function at 0x140020ce0
Capabilities:
Create service
Delete service
Enumerate processes
Extract resource via kernel32 functions
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rbp + 0x368], rax
mov rbx, rdx
cmp ecx, 1
jle 0x140021420
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x140021420
add rdx, 2
lea rcx, [0x140067640]
call fcn.14003026c
test eax, eax
jne 0x140020e76
lea rdx, str.Install_Service
lea rcx, [0x140077e88]
call fcn.1400042c0
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140020d8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140011fc0
jmp 0x1400215ba
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140020dbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140011fc0
jmp 0x1400215ba
xor edi, edi
lea rax, [0x14005f1d8]
mov qword [rsp + 0x60], rdi
lea r8, str.AsusUpdateCheck_Update_Driver
mov qword [rsp + 0x58], rdi
lea rdx, str.AsusUpdateCheck
mov qword [rsp + 0x50], rax
mov esi, 1
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rdi
lea r9d, [rdi + 4]
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140020e43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateService_failed_w_err__lu_n
lea rcx, [0x140077e88]
call fcn.140004170
jmp 0x140020e56
lea rdx, str.AsusUpdateCheck
lea rcx, str._s_is_installed._n
call fcn.140011fc0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1400215ba
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.version
add rdx, 2
call fcn.14003026c
test eax, eax
jne 0x140020fac
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x104
call fcn.140026cc0
lea r8, [0x140066f98]
mov edx, 0x12e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140020eeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.FindResource_GetLastError_lx
lea rcx, [0x140077e88]
call fcn.140004170
lea rcx, [rsp + 0x70]
call fcn.1400025f0
jmp 0x1400215ba
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x140020f29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LoadResource_GetLastError_lx
lea rcx, [0x140077e88]
call fcn.140004170
lea rcx, [rsp + 0x70]
call fcn.1400025f0
jmp 0x1400215ba
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
jne 0x140020f58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SizeofResource_GetLastError_lx
lea rcx, [0x140077e88]
call fcn.140004170
jmp 0x140020f94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x140020f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LockResource_GetLastError_lx
lea rcx, [0x140077e88]
call fcn.140004170
jmp 0x140020f94
mov r8, rdi
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.140026770
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rcx, [rsp + 0x70]
call fcn.1400025f0
jmp 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.remove
add rdx, 2
call fcn.14003026c
test eax, eax
je 0x14002125a
mov rdx, qword [rbx + 8]
lea rcx, str.arproremove
add rdx, 2
call fcn.14003026c
test eax, eax
je 0x14002125a
mov rdx, qword [rbx + 8]
lea rcx, str.notify_progressbar
add rdx, 2
call fcn.14003026c
test eax, eax
je 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.encode_agent_security
add rdx, 2
call fcn.14003026c
test eax, eax
je 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.build_private_key
add rdx, 2
call fcn.14003026c
test eax, eax
je 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.build_certificate_key
add rdx, 2
call fcn.14003026c
test eax, eax
je 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.verify_server_password
add rdx, 2
call fcn.14003026c
test eax, eax
je 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.firstBootNotify
add rdx, 2
call fcn.14003026c
test eax, eax
jne 0x1400211dc
lea rdx, str.runonce_enter
lea rcx, [0x140077e88]
call fcn.1400042c0
xor edi, edi
mov dword [rsp + 0x70], 0x238
xor edx, edx
mov esi, edi
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400210fe
nop dword [rax + rax]
lea rdx, [0x140066e78]
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400210f9
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400210d0
jmp 0x1400210fe
mov esi, 1
cmp rbx, 0xffffffffffffffff
je 0x14002110d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1400211c4
mov esi, dword [rsp + 0x78]
test esi, esi
je 0x1400211c4
mov rbx, rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
lea rdx, [rbp + 0x340]
mov dword [rbp + 0x340], edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rbp + 0x340], esi
jne 0x140021176
mov edx, 4
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x140021176
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x140021193
test rbx, rbx
jne 0x140021124
lea rdx, str.DownLoadLicense_hwnd_NULL
lea rcx, [0x140077e88]
call fcn.1400042c0
jmp 0x1400215ba
test rbx, rbx
je 0x14002117b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, str.SendMessage_WM_USER_REDRAW
lea rcx, [0x140077e88]
call fcn.1400042c0
jmp 0x1400215ba
lea rdx, str.runonce_enter_no_process
lea rcx, [0x140077e88]
call fcn.1400042c0
jmp 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.test
add rdx, 2
call fcn.14003026c
test eax, eax
jne 0x1400211fe
call fcn.140014e20
jmp 0x1400215ba
mov rdx, qword [rbx + 8]
lea rcx, str.shelliconcheck
add rdx, 2
call fcn.14003026c
test eax, eax
jne 0x1400215ba
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x3d0
call fcn.140026cc0
xor edi, edi
mov dword [rsp + 0x70], 0x3d0
lea rdx, [rsp + 0x70]
mov qword [rbp - 0x70], rdi
xor ecx, ecx
mov dword [rbp - 0x80], 0x64
mov dword [rbp - 0x7c], 2
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
jmp 0x1400215ba
lea rdx, str.Remove_Service
lea rcx, [0x140077e88]
call fcn.1400042c0
xor eax, eax
mov esi, 1
mov r8d, esi
mov qword [rbp + 0x348], rax
xor edx, edx
mov qword [rbp + 0x350], rax
xor ecx, ecx
mov qword [rbp + 0x358], rax
mov dword [rbp + 0x360], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140020da4
mov r8d, 0x10024
lea rdx, str.AsusUpdateCheck
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14002131a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140077e88]
mov edi, eax
cmp eax, 0x424
jne 0x1400212fb
lea rdx, str.no_server
call fcn.140004170
mov edx, edi
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140011fc0
jmp 0x140021400
lea rdx, str.OpenService_fail
call fcn.140004ef0
mov edx, edi
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140011fc0
jmp 0x140021400
lea r8, [rbp + 0x348]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400213ca
lea rdx, str.AsusUpdateCheck
lea rcx, str.Stopping__s.
call fcn.140011fc0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x348]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400213a6
nop word [rax + rax]
mov eax, dword [rbp + 0x34c]
cmp eax, 3
jne 0x1400213ac
lea rcx, [0x14005e668]
call fcn.140011fc0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x348]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140021370
mov eax, dword [rbp + 0x34c]
lea rdx, str.AsusUpdateCheck
lea rcx, str._n_s_is_stopped._n
cmp eax, esi
je 0x1400213c5
lea rcx, str._n_s_failed_to_stop._n
call fcn.140011fc0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400213ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140011fc0
jmp 0x140021400
lea rdx, str.AsusUpdateCheck
lea rcx, str._s_is_removed._n
call fcn.140011fc0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400215ba
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400215ba
lea rcx, str.Parameters:_n
call fcn.140011fc0
lea rcx, str.__install__to_install_the_service._n
call fcn.140011fc0
lea rcx, str.__remove___to_remove_the_service._n
call fcn.140011fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.Process_id___d
lea rcx, [0x140077e88]
call fcn.1400042c0
xor edx, edx
lea rcx, [rsp + 0x78]
mov r8d, 0x2a0
call fcn.140026cc0
lea rax, vtable.CServiceBase.0
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.140026cc0
lea rdx, str.AsusUpdateCheck
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
mov dword [rbp + 0x188], reloc.WS2_32.dll_recv
lea rax, [rsp + 0x78]
mov qword [rbp + 0x1a8], rdi
mov qword [rbp + 0x180], rax
lea rax, vtable.CServiceControl.0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x70]
mov qword [0x1400768d0], rax
lea rax, [rsp + 0x78]
mov qword [rbp + 0x348], rax
lea rax, [0x1400110d0]
mov qword [rbp + 0x350], rax
mov dword [rbp + 0x18c], 2
mov qword [rbp + 0x190], 0x185
mov qword [rbp + 0x198], rdi
mov dword [rbp + 0x1a0], edi
mov qword [rbp + 0x210], rdi
mov qword [rbp + 0x208], rdi
mov qword [rbp + 0x1f0], rdi
mov qword [rbp + 0x1d0], rdi
mov dword [rbp + 0x1b0], edi
mov qword [rbp + 0x1b8], rdi
mov qword [rbp + 0x1e0], rdi
mov qword [rbp + 0x1e8], rdi
mov qword [rbp + 0x1c0], rdi
mov qword [rbp + 0x1f8], rdi
mov qword [rbp + 0x200], rdi
mov qword [rbp + 0x1c8], rdi
mov qword [rbp + 0x1d8], rdi
mov qword [rbp + 0x358], rdi
mov qword [rbp + 0x360], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp + 0x348]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1400215b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.140011fc0
lea rcx, [rsp + 0x70]
call fcn.14001d640
xor eax, eax
mov rcx, qword [rbp + 0x368]
xor rcx, rsp
call fcn.140023e40
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret