Function at 0x140005d60
Capabilities:
Accept command line arguments
Create service
Delete service
Modify service
Persist via windows service
Start service
Stop service

Disassembly:
jmp 0x140005d80
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140029048]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
movzx eax, word [0x14001d150]
mov word [rsp + 0x70], ax
movzx eax, byte [0x14001d152]
mov byte [rsp + 0x72], al
test rbx, rbx
je 0x140005e0a
nop dword [rax + rax]
cmp byte [rbx], 0
je 0x140005e0a
lea rax, [rsp + 0x70]
nop word [rax + rax]
movzx edx, byte [rax]
test dl, dl
je 0x140005df9
cmp byte [rbx], dl
je 0x140005e65
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
test rax, rax
jne 0x140005de0
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextA]
mov rbx, rax
test rax, rax
jne 0x140005dd0
lea rax, str.QcomWlanSrv
xor ebx, ebx
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
lea rax, [0x1400059e0]
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x14000604e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.StartServiceCtrlDispatcher_Failed__error___d_n
mov eax, 4
lea rcx, str.QCA_WLAN_Service
movzx edx, ax
call fcn.140004370
jmp 0x14000604e
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextA]
mov rbx, rax
test rax, rax
je 0x140005e0a
mov qword [rsp + 0x300], rsi
lea rdx, str.install
mov rcx, rax
mov qword [rsp + 0x308], rdi
mov dword [0x140029e64], 1
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140006070
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x140005ec7
xor ebx, ebx
jmp 0x140005ffb
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x104
call fcn.1400083e0
xor edx, edx
lea rcx, [rbp + 0xd0]
mov r8d, 0x104
call fcn.1400083e0
mov r8d, 0x102
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [0x14001d104]
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14000b154
lea r8, [rbp + 0xd0]
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14000b1b4
lea r8, [0x14001d104]
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14000b1b4
lea rdx, [rbp - 0x40]
lea rcx, str.The_szFilename_is:__s_n
call fcn.140006170
xor ebx, ebx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x60], rbx
mov r9d, 0xf01ff
mov qword [rsp + 0x58], rbx
mov rcx, rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea rax, str.QcomWlanSrv
mov dword [rsp + 0x30], ebx
mov r8, rax
mov rdx, rax
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rsi, rax
test rax, rax
jne 0x140005fb7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140005ffb
lea rax, str.Qualcomm_Atheros_Universal_WLAN_Driver_Service
mov edx, 1
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 1
lea rax, str.Install_failed_n
cmp ebx, 1
lea rcx, str.Install_successfully_n
cmovne rcx, rax
call fcn.140006170
cmp ebx, 1
lea rax, str.Fail_to_Install_Qualcomm_Wlan_service__n
lea r8, str.Install_Qualcomm_Wlan_service_successfully__n
cmovne r8, rax
mov eax, 4
lea rcx, str.QCA_WLAN_Service
movzx edx, ax
call fcn.140004370
mov rsi, qword [rsp + 0x300]
mov rdi, qword [rsp + 0x308]
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140006ab0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2f0
pop rbp
ret
lea rdx, str.uninstall
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14000613f
xor eax, eax
xorps xmm0, xmm0
xor edx, edx
mov qword [rbp - 0x50], rax
xor ecx, ecx
mov dword [rbp - 0x48], eax
mov r8d, 0xf003f
xor ebx, ebx
movups xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8d, 0xf01ff
lea rdx, str.QcomWlanSrv
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x140006104
lea r8, [rbp - 0x60]
mov rcx, rax
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rax, str.Uninstall_failed_n
test ebx, ebx
lea rcx, str.Uninstall_successfully_n
cmove rcx, rax
call fcn.140006170
test ebx, ebx
lea rax, str.Fail_to_uninstall_atheros_WLAN_service__n
lea r8, str.Uninstall_atheros_WLAN_service_successfully__n
cmove r8, rax
jmp 0x14000602a
lea rcx, str.Please_input_Valid_Parameters:_n
call fcn.140006170
lea rcx, str._install_t_t_To_Install_Wlan_Service_n
call fcn.140006170
lea rcx, str._unistall_t_t_To_Unistall_Wlan_Service_n
call fcn.140006170
jmp 0x14000603e