Function at 0x140010890
Capabilities:
Create process on windows
Get common file path
Self delete
Stop service

Disassembly:
push rbp
lea rbp, [rsp - 0x840]
sub rsp, 0x940
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x830], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140010b94
mov qword [rsp + 0x958], rsi
xor r9d, r9d
xor esi, esi
xor r8d, r8d
mov qword [rsp + 0x40], rsi
xor ecx, ecx
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 3
lea edx, [rsi - 1]
mov dword [rsp + 0x20], 4
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x140010b86
mov qword [rsp + 0x950], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x960], rdi
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140010988
mov r8d, 0xf003f
lea rdx, str.LITSSVC
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140010971
lea r8, [rsp + 0x58]
mov rcx, rax
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140010971
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001097f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140010988
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140010260
lea rcx, [0x140066c98]
call fcn.140010690
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x208
mov ebx, eax
call fcn.14002d0c0
lea rax, [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8025
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140010b67
lea rax, str.LITSDrv.INF
mov edx, 0x104
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r8, str._ls_ls
lea rcx, [rbp + 0x200]
call fcn.1400126d0
lea rdx, [rbp + 0x200]
lea rcx, str.GetINFPath:__ls
call fcn.14000fcd0
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x208
call fcn.14002d0c0
lea rax, [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8025
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140010b67
lea r9, [rbp - 0x10]
mov edx, 0x104
lea r8, str._ls_rundll32.exe
lea rcx, [rbp + 0x410]
call fcn.1400126d0
lea rdx, [rbp + 0x410]
lea rcx, str.GetRunDLLPath:__ls
call fcn.14000fcd0
lea rax, [rbp + 0x200]
mov edx, 0x104
lea r9, [rbp + 0x410]
mov qword [rsp + 0x20], rax
lea r8, str.__ls__setupapi_InstallHinfSection_DefaultUninstall_128__ls
lea rcx, [rbp + 0x620]
call fcn.1400126d0
cmp eax, 0xffffffff
je 0x140010b67
lea rcx, [rbp + 0x200]
call fcn.14000fce0
test al, al
je 0x140010b67
xor eax, eax
lea rdi, [rsp + 0x58]
mov ecx, 0x18
lea rdx, [rbp + 0x620]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x80]
mov ecx, 0x68
rep stosb byte [rdi], al
lea rcx, str.DeleteServiceFiles___CreateProceess:__ls_n
mov dword [rbp - 0x80], 0x68
call fcn.14000fcd0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x620]
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x410]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140010b47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140010b57
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140010b67
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x960]
test ebx, ebx
mov rbx, qword [rsp + 0x950]
je 0x140010b86
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rsi, qword [rsp + 0x958]
mov rcx, qword [rbp + 0x830]
xor rcx, rsp
call fcn.14002a740
add rsp, 0x940
pop rbp
ret