Function at 0x18003df08
Capabilities:
Check if file exists
Copy file
Create service
Delete file
Get common file path
Persist via windows service

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x370
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1800764a0]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
xor r14d, r14d
mov dword [rsp + 0x70], r14d
mov edx, 0x40b3c
lea rcx, [r11 - 0x288]
call fcn.18003dd0c
nop
cmp qword [rsp + 0x138], r14
jne 0x18003df8e
cmp qword [rsp + 0x140], 8
jb 0x18003df84
mov rcx, qword [rsp + 0x128]
call fcn.180041070
mov eax, 1
jmp 0x18003e5af
mov word [rsp + 0x150], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x152]
call fcn.1800432e0
mov r13d, r14d
mov edx, 0x104
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.drivers
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x150]
call fcn.18003de10
mov rdx, rbx
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rsp + 0x150]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, r14d
jne 0x18003e018
mov edi, 8
jmp 0x18003e595
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 1
cmp eax, r14d
je 0x18003e0cc
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, r14
je 0x18003e0cc
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x150]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 2
mov r9d, 0xf01ff
mov r8, rbp
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, r14d
cmp rax, r14
setne dil
cmp rax, r14
je 0x18003e0c1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18003e0cf
mov edi, r14d
cmp edi, r14d
jne 0x18003e0de
mov edi, 0xa
jmp 0x18003e579
mov r13d, ebx
mov rdx, rbp
lea rcx, [rsp + 0xd0]
call fcn.18003dda8
nop
lea r9, [rsp + 0x128]
cmp qword [rsp + 0x140], 8
cmovae r9, qword [rsp + 0x128]
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x20], r14d
lea r8, str.Group
mov r12, 0xffffffff80000002
mov rcx, r12
call fcn.18002f0cc
cmp eax, r14d
je 0x18003e55c
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x20], r14d
lea r9, str.poflt_minifilter_driver
lea r8, str.Description
mov rcx, r12
call fcn.18002f0cc
cmp eax, r14d
je 0x18003e55c
mov r15d, 7
mov qword [rsp + 0x98], r15
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, rbx
mov r8, rcx
mov rdx, rbp
lea rcx, [rsp + 0x78]
call fcn.18000a4d0
nop
lea r8, str._Instance
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xf8]
call fcn.180031914
nop
cmp qword [rsp + 0x98], 8
jb 0x18003e1fc
mov rcx, qword [rsp + 0x80]
call fcn.180041070
mov qword [rsp + 0x98], r15
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
lea rax, [rsp + 0xd8]
mov rdx, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xf0]
cmp rdi, 8
cmovae rax, rdx
lea rsi, str.Instances_
mov rcx, qword [rsp + 0xe8]
cmp rsi, rax
jb 0x18003e29d
lea rax, [rsp + 0xd8]
cmp rdi, 8
cmovae rax, rdx
lea rax, [rax + rcx*2]
cmp rax, rsi
jbe 0x18003e29d
lea rax, [rsp + 0xd8]
cmp rdi, 8
cmovae rax, rdx
sub rsi, rax
sar rsi, 1
mov edi, 0xb
mov r9, rdi
mov r8, rsi
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xd0]
call fcn.18000a290
jmp 0x18003e354
or rax, 0xffffffffffffffff
sub rax, rcx
mov edi, 0xb
cmp rax, rdi
jbe 0x18003e2b7
lea rax, [rcx + 0xb]
cmp rax, rcx
jae 0x18003e2c4
call fcn.180040a98
mov rcx, qword [rsp + 0xe8]
lea r12, [rcx + 0xb]
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0xd0]
call fcn.18000a6a0
cmp al, r14b
je 0x18003e34d
lea rcx, [rsp + 0xd8]
mov rdx, qword [rsp + 0xf0]
cmp rdx, 8
cmovae rcx, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xe8]
sub rdx, rax
lea rcx, [rcx + rax*2]
add rdx, rdx
mov r9d, 0x16
mov r8, rsi
call fcn.180041078
mov qword [rsp + 0xe8], r12
lea rax, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rax, qword [rsp + 0xd8]
mov word [rax + r12*2], r14w
mov r12, 0xffffffff80000002
jmp 0x18003e354
mov r12, 0xffffffff80000002
lea r9, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae r9, qword [rsp + 0x100]
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x20], r14d
lea r8, str.DefaultInstance
mov rcx, r12
call fcn.18002f0cc
cmp eax, r14d
jne 0x18003e3f3
cmp qword [rsp + 0x118], 8
jb 0x18003e3b9
mov rcx, qword [rsp + 0x100]
call fcn.180041070
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x110], r14
mov word [rsp + 0x100], r14w
cmp qword [rsp + 0xf0], 8
jb 0x18003e579
mov rcx, qword [rsp + 0xd8]
call fcn.180041070
jmp 0x18003e579
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xd0]
call fcn.18000a290
mov r8d, 0x40b3c
lea rdx, [0x1800620ec]
lea rcx, [rsp + 0xa8]
call fcn.18002eee8
cmp qword [rax + 0x20], 8
jb 0x18003e436
mov r9, qword [rax + 8]
jmp 0x18003e43a
lea r9, [rax + 8]
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x20], r14d
lea r8, str.Altitude
mov rcx, r12
call fcn.18002f0cc
cmp eax, r14d
je 0x18003e4a6
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, str.Flags
mov rcx, r12
call fcn.18002f094
cmp eax, r14d
je 0x18003e4a6
mov bl, r14b
cmp qword [rsp + 0xc8], 8
jb 0x18003e4be
mov rcx, qword [rsp + 0xb0]
call fcn.180041070
cmp bl, r14b
je 0x18003e50e
cmp qword [rsp + 0x118], 8
jb 0x18003e4db
mov rcx, qword [rsp + 0x100]
call fcn.180041070
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x110], r14
mov word [rsp + 0x100], r14w
cmp qword [rsp + 0xf0], 8
jb 0x18003e579
mov rcx, qword [rsp + 0xd8]
call fcn.180041070
jmp 0x18003e579
mov edi, r14d
cmp qword [rsp + 0x118], 8
jb 0x18003e529
mov rcx, qword [rsp + 0x100]
call fcn.180041070
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x110], r14
mov word [rsp + 0x100], r14w
cmp qword [rsp + 0xf0], 8
jb 0x18003e595
mov rcx, qword [rsp + 0xd8]
call fcn.180041070
jmp 0x18003e595
mov edi, 0xb
cmp qword [rsp + 0xf0], 8
jb 0x18003e579
mov rcx, qword [rsp + 0xd8]
call fcn.180041070
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp r13d, r14d
je 0x18003e595
mov rcx, rbp
call fcn.18002f660
nop
cmp qword [rsp + 0x140], 8
jb 0x18003e5ad
mov rcx, qword [rsp + 0x128]
call fcn.180041070
mov eax, edi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180040bb0
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret