Function at 0x1400045c0
Capabilities:
Create service
Get common file path

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push r12
sub rsp, 0xa0
mov rbx, qword [rsp + 0xf0]
xor ebp, ebp
mov qword [rax - 0x20], rsi
mov esi, r9d
mov qword [rax - 0x28], rdi
mov edi, ebp
mov qword [rax - 0x30], r13
mov r12d, ebp
mov qword [rax - 0x38], r14
mov r14d, ebp
mov qword [rax - 0x40], r15
mov r13d, ebp
test rbx, rbx
jne 0x1400047c7
mov ecx, 0x208
call fcn.140008710
mov r14, rax
test rax, rax
je 0x140004913
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140004913
dec eax
cmp word [r14 + rax*2], 0x5c
jne 0x14000464e
mov word [r14 + rax*2], bp
mov r15, qword [rsp + 0xe8]
mov edx, 0x5c
mov rcx, r15
call fcn.1400060e4
mov rbx, rax
test rax, rax
je 0x140004717
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rbx + rcx*2 + 2], di
jne 0x140004676
inc rax
cmp word [r14 + rax*2], di
jne 0x140004680
add rcx, rax
lea rcx, [rcx*2 + 0x14]
call fcn.140008710
mov rdi, rax
test rax, rax
je 0x140004913
mov rdx, rax
mov rcx, r14
sub rdx, r14
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400046b0
lea rcx, [rdi - 2]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x1400046c4
movups xmm0, xmmword [str.drivers_]
movups xmmword [rcx], xmm0
mov eax, dword [0x1400156c0]
mov dword [rcx + 0x10], eax
lea rcx, [rdi - 2]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x1400046e5
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2 + 2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140004700
jmp 0x14000487b
or rax, 0xffffffffffffffff
mov rcx, rax
nop
inc rcx
cmp word [r14 + rcx*2], di
jne 0x140004720
nop word [rax + rax]
inc rax
cmp word [r15 + rax*2], di
jne 0x140004730
add rcx, rax
lea rcx, [rcx*2 + 0x14]
call fcn.140008710
mov rdi, rax
test rax, rax
je 0x140004913
mov rdx, rax
mov rcx, r14
sub rdx, r14
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140004760
lea rcx, [rdi - 2]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x140004774
movups xmm0, xmmword [str.drivers_]
movups xmmword [rcx], xmm0
mov eax, dword [0x1400156c0]
mov dword [rcx + 0x10], eax
lea rcx, [rdi - 2]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x140004795
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r15 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400047b0
jmp 0x14000487b
mov r15, qword [rsp + 0xe8]
mov edx, 0x5c
mov rcx, r15
call fcn.1400060e4
mov rsi, rax
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rsi + rcx*2 + 2], di
jne 0x1400047e6
inc rax
cmp word [rbx + rax*2], di
jne 0x1400047f0
add rcx, rax
lea rcx, [rcx*2 + 4]
call fcn.140008710
mov rdi, rax
test rax, rax
je 0x140004913
mov rcx, rax
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140004820
lea rcx, [rdi - 2]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x140004834
mov eax, dword [0x1400155b4]
lea rdx, [rdi - 2]
mov dword [rcx], eax
nop word [rax + rax]
cmp word [rdx + 2], bp
lea rdx, [rdx + 2]
jne 0x140004850
xor r8d, r8d
nop dword [rax]
movzx eax, word [rsi + r8*2 + 2]
mov word [rdx + r8*2], ax
lea r8, [r8 + 1]
test ax, ax
jne 0x140004860
mov esi, dword [rsp + 0xd8]
mov ebx, 1
xor r8d, r8d
mov r9d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.140003ca0
test eax, eax
je 0x140004913
xor edx, edx
lea r8d, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
je 0x140004913
mov rax, qword [rsp + 0xf8]
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xc8]
mov rcx, r12
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xe0]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
mov r13, rax
cmovne ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.1400086fc
mov rcx, r14
call fcn.1400086fc
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
test r13, r13
je 0x140004956
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r13, qword [rsp + 0x88]
test r12, r12
je 0x14000496c
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
add rsp, 0xa0
pop r12
pop rbp
pop rbx
ret