Function at 0x140023140
Capabilities:
Create process on windows
Modify service
Start service

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x340
mov qword [rsp + 0x110], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov rbp, rdx
mov r13, rcx
mov qword [rsp + 0x68], rdx
xor dil, dil
xor ebx, ebx
cmp dword [rcx + 4], 1
jne 0x1400232c9
call fcn.140011eb0
test eax, eax
je 0x1400231cd
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov esi, eax
test eax, eax
jns 0x1400231bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140023408
test esi, esi
jne 0x140023408
mov dil, 1
jmp 0x140023395
mov word [rsp + 0x120], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x122]
call fcn.140024690
mov r8d, 0x104
lea rdx, [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.140024690
mov dword [rsp + 0xa0], 0x70
mov dword [rsp + 0xa4], 0x440
mov qword [rsp + 0xa8], rbx
lea rax, str.runas
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0xb8], rax
lea rax, str._InstallDriver
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rbx
mov dword [rsp + 0xd0], ebx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x60], bl
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x18]
movzx ebx, byte [rsp + 0x60]
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400232c2
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov al, bl
jmp 0x14002358b
call fcn.140011eb0
test eax, eax
je 0x140023491
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
je 0x140023408
mov r8d, 0x12
lea rdx, str.KuaiZipDrive
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140023408
cmp dword [r13 + 4], 2
jne 0x14002336a
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8d, 2
or edx, r9d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
setne dil
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
jmp 0x14002337e
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne dil
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test dil, dil
je 0x140023408
mov qword [rsp + 0x90], 0xf
mov qword [rsp + 0x88], rbx
mov byte [rsp + 0x78], bl
mov r8d, 0x14
lea rdx, str.driver.repairsucceed
lea rcx, [rsp + 0x70]
call fcn.14000e0e0
nop
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x20], 1
mov r9b, 1
movzx r8d, r9b
movzx edx, r9b
lea rcx, [rsp + 0x70]
call fcn.14003f480
nop
cmp qword [rsp + 0x90], 0x10
jb 0x14002347a
mov rcx, qword [rsp + 0x78]
call fcn.1400245c0
jmp 0x14002347a
mov qword [rsp + 0x90], 0xf
mov qword [rsp + 0x88], rbx
mov byte [rsp + 0x78], bl
mov r8d, 0x13
lea rdx, str.driver.repairfailed
lea rcx, [rsp + 0x70]
call fcn.14000e0e0
nop
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x20], 1
mov r9b, 1
movzx r8d, r9b
movzx edx, r9b
lea rcx, [rsp + 0x70]
call fcn.14003f480
nop
cmp qword [rsp + 0x90], 0x10
jb 0x14002347a
mov rcx, qword [rsp + 0x78]
call fcn.1400245c0
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x140023489
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov al, dil
jmp 0x14002358b
mov word [rsp + 0x120], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x122]
call fcn.140024690
mov r8d, 0x104
lea rdx, [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.140024690
mov dword [rsp + 0xa0], 0x70
mov dword [rsp + 0xa4], 0x440
mov qword [rsp + 0xa8], rbx
lea rax, str.runas
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0xb8], rax
lea rax, str._RepairDriver
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rbx
mov dword [rsp + 0xd0], ebx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x68], 1
sete bl
mov rcx, qword [rbp]
test rcx, rcx
je 0x140023589
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov al, bl
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.1400253c0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret