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

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x370
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, r8
mov rdi, rdx
xor r12d, r12d
mov dword [rsp + 0x70], r12d
mov edx, 0x22343
lea rcx, [r11 - 0x278]
call fcn.18003e994
nop
cmp qword [rsp + 0x138], r12
jne 0x18003ec04
cmp qword [rsp + 0x140], 8
jb 0x18003ebfa
mov rcx, qword [rsp + 0x128]
call fcn.180058ed8
mov eax, 1
jmp 0x18003f107
mov word [rsp + 0x150], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x152]
call fcn.18005a150
mov ebp, r12d
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.18003ea9c
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, r12d
jne 0x18003ec8e
mov edi, 8
jmp 0x18003f0ed
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 1
lea r13, str.gxdte
cmp eax, r12d
je 0x18003ed49
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, r12
je 0x18003ed49
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
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, r13
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, r12d
cmp rax, r12
setne dil
cmp rax, r12
je 0x18003ed3e
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18003ed4c
mov edi, r12d
cmp edi, r12d
jne 0x18003ed5b
mov edi, 0xa
jmp 0x18003f0d1
mov ebp, ebx
mov rdx, r13
lea rcx, [rsp + 0xd0]
call fcn.18003ea30
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], r12d
lea r8, str.Group
mov r14, 0xffffffff80000002
mov rcx, r14
call fcn.1800056c8
cmp eax, r12d
je 0x18003f0b4
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x20], r12d
lea r9, str.gxdte_driver
lea r8, str.Description
mov rcx, r14
call fcn.1800056c8
cmp eax, r12d
je 0x18003f0b4
mov esi, 7
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, rbx
mov r8, rcx
mov rdx, r13
lea rcx, [rsp + 0x78]
call fcn.180007618
nop
lea r8, str._Instance
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xf8]
call fcn.18000d4f8
nop
cmp qword [rsp + 0x98], 8
jb 0x18003ee77
mov rcx, qword [rsp + 0x80]
call fcn.180058ed8
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x90], r12
mov word [rsp + 0x80], r12w
mov edi, 0xb
mov r8, rdi
lea rdx, str.Instances_
lea rcx, [rsp + 0xd0]
call fcn.180008d30
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], r12d
lea r8, str.DefaultInstance
mov rcx, r14
call fcn.1800056c8
cmp eax, r12d
jne 0x18003ef4b
cmp qword [rsp + 0x118], 8
jb 0x18003ef11
mov rcx, qword [rsp + 0x100]
call fcn.180058ed8
mov qword [rsp + 0x118], rsi
mov qword [rsp + 0x110], r12
mov word [rsp + 0x100], r12w
cmp qword [rsp + 0xf0], 8
jb 0x18003f0d1
mov rcx, qword [rsp + 0xd8]
call fcn.180058ed8
jmp 0x18003f0d1
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xd0]
call fcn.180008c00
mov r8d, 0x22343
lea rdx, [0x18008383c]
lea rcx, [rsp + 0xa8]
call fcn.180005488
cmp qword [rax + 0x20], 8
jb 0x18003ef8e
mov r9, qword [rax + 8]
jmp 0x18003ef92
lea r9, [rax + 8]
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x20], r12d
lea r8, str.Altitude
mov rcx, r14
call fcn.1800056c8
cmp eax, r12d
je 0x18003effe
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, str.Flags
mov rcx, r14
call fcn.1800055d8
cmp eax, r12d
je 0x18003effe
mov bl, r12b
cmp qword [rsp + 0xc8], 8
jb 0x18003f016
mov rcx, qword [rsp + 0xb0]
call fcn.180058ed8
cmp bl, r12b
je 0x18003f066
cmp qword [rsp + 0x118], 8
jb 0x18003f033
mov rcx, qword [rsp + 0x100]
call fcn.180058ed8
mov qword [rsp + 0x118], rsi
mov qword [rsp + 0x110], r12
mov word [rsp + 0x100], r12w
cmp qword [rsp + 0xf0], 8
jb 0x18003f0d1
mov rcx, qword [rsp + 0xd8]
call fcn.180058ed8
jmp 0x18003f0d1
mov edi, r12d
cmp qword [rsp + 0x118], 8
jb 0x18003f081
mov rcx, qword [rsp + 0x100]
call fcn.180058ed8
mov qword [rsp + 0x118], rsi
mov qword [rsp + 0x110], r12
mov word [rsp + 0x100], r12w
cmp qword [rsp + 0xf0], 8
jb 0x18003f0ed
mov rcx, qword [rsp + 0xd8]
call fcn.180058ed8
jmp 0x18003f0ed
mov edi, 0xb
cmp qword [rsp + 0xf0], 8
jb 0x18003f0d1
mov rcx, qword [rsp + 0xd8]
call fcn.180058ed8
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebp, r12d
je 0x18003f0ed
mov rcx, r13
call fcn.180005dec
nop
cmp qword [rsp + 0x140], 8
jb 0x18003f105
mov rcx, qword [rsp + 0x128]
call fcn.180058ed8
mov eax, edi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180059b00
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret