Function at 0x180039f24
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 [0x180071080]
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.180039d28
nop
cmp qword [rsp + 0x138], r14
jne 0x180039faa
cmp qword [rsp + 0x140], 8
jb 0x180039fa0
mov rcx, qword [rsp + 0x128]
call fcn.18003c784
mov eax, 1
jmp 0x18003a5cb
mov word [rsp + 0x150], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x152]
call fcn.18003e8c0
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.180039e2c
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 0x18003a034
mov edi, 8
jmp 0x18003a5b1
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 1
cmp eax, r14d
je 0x18003a0e8
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 0x18003a0e8
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 0x18003a0dd
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18003a0eb
mov edi, r14d
cmp edi, r14d
jne 0x18003a0fa
mov edi, 0xa
jmp 0x18003a595
mov r13d, ebx
mov rdx, rbp
lea rcx, [rsp + 0xd0]
call fcn.180039dc4
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.180020d08
cmp eax, r14d
je 0x18003a578
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.180020d08
cmp eax, r14d
je 0x18003a578
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.180005ca0
nop
lea r8, str._Instance
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xf8]
call fcn.180022cc8
nop
cmp qword [rsp + 0x98], 8
jb 0x18003a218
mov rcx, qword [rsp + 0x80]
call fcn.18003c784
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 0x18003a2b9
lea rax, [rsp + 0xd8]
cmp rdi, 8
cmovae rax, rdx
lea rax, [rax + rcx*2]
cmp rax, rsi
jbe 0x18003a2b9
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.180005a60
jmp 0x18003a370
or rax, 0xffffffffffffffff
sub rax, rcx
mov edi, 0xb
cmp rax, rdi
jbe 0x18003a2d3
lea rax, [rcx + 0xb]
cmp rax, rcx
jae 0x18003a2e0
call fcn.18003c050
mov rcx, qword [rsp + 0xe8]
lea r12, [rcx + 0xb]
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0xd0]
call fcn.180005e70
cmp al, r14b
je 0x18003a369
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.18003c78c
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 0x18003a370
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.180020d08
cmp eax, r14d
jne 0x18003a40f
cmp qword [rsp + 0x118], 8
jb 0x18003a3d5
mov rcx, qword [rsp + 0x100]
call fcn.18003c784
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x110], r14
mov word [rsp + 0x100], r14w
cmp qword [rsp + 0xf0], 8
jb 0x18003a595
mov rcx, qword [rsp + 0xd8]
call fcn.18003c784
jmp 0x18003a595
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xd0]
call fcn.180005a60
mov r8d, 0x40b3c
lea rdx, [0x18005dafc]
lea rcx, [rsp + 0xa8]
call fcn.180020c28
cmp qword [rax + 0x20], 8
jb 0x18003a452
mov r9, qword [rax + 8]
jmp 0x18003a456
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.180020d08
cmp eax, r14d
je 0x18003a4c2
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.180020cd0
cmp eax, r14d
je 0x18003a4c2
mov bl, r14b
cmp qword [rsp + 0xc8], 8
jb 0x18003a4da
mov rcx, qword [rsp + 0xb0]
call fcn.18003c784
cmp bl, r14b
je 0x18003a52a
cmp qword [rsp + 0x118], 8
jb 0x18003a4f7
mov rcx, qword [rsp + 0x100]
call fcn.18003c784
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x110], r14
mov word [rsp + 0x100], r14w
cmp qword [rsp + 0xf0], 8
jb 0x18003a595
mov rcx, qword [rsp + 0xd8]
call fcn.18003c784
jmp 0x18003a595
mov edi, r14d
cmp qword [rsp + 0x118], 8
jb 0x18003a545
mov rcx, qword [rsp + 0x100]
call fcn.18003c784
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x110], r14
mov word [rsp + 0x100], r14w
cmp qword [rsp + 0xf0], 8
jb 0x18003a5b1
mov rcx, qword [rsp + 0xd8]
call fcn.18003c784
jmp 0x18003a5b1
mov edi, 0xb
cmp qword [rsp + 0xf0], 8
jb 0x18003a595
mov rcx, qword [rsp + 0xd8]
call fcn.18003c784
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp r13d, r14d
je 0x18003a5b1
mov rcx, rbp
call fcn.180021088
nop
cmp qword [rsp + 0x140], 8
jb 0x18003a5c9
mov rcx, qword [rsp + 0x128]
call fcn.18003c784
mov eax, edi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.18003c160
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret