Function at 0x1400a1980
Capabilities:
Copy file
Create directory
Create service
Modify service

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x2d8]
sub rsp, 0x3c8
mov rax, qword [0x140214ec8]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov qword [r11 + 8], rbx
lea rcx, [rbp - 0x48]
xorps xmm0, xmm0
mov qword [r11 + 0x10], rsi
xorps xmm1, xmm1
mov qword [r11 - 0x18], r15
movups xmmword [rbp - 0x74], xmm0
movups xmmword [rsp + 0x74], xmm1
call fcn.140097a20
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
mov rdi, qword [rbp - 0x5c]
test rdi, rdi
jne 0x1400a19f5
lea rdx, str.Error:_Unable_to_get_the_executable_file_path._n
lea ecx, [rdi + 3]
call fcn.1400127d0
mov rsi, qword [rbp - 0x74]
mov rbx, qword [rsp + 0x74]
jmp 0x1400a1c9b
mov qword [rsp + 0x40], 0x20
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
xor r15d, r15d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], 0x40
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
mov rcx, rdi
call fcn.1400f474c
lea rcx, [rbp - 0x48]
call fcn.140097c40
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
mov rsi, qword [rbp - 0x74]
test rsi, rsi
jne 0x1400a1a63
lea rdx, str.Error:_Unable_to_get_system_directory_path._n
lea ecx, [rsi + 3]
call fcn.1400127d0
mov rbx, qword [rsp + 0x74]
jmp 0x1400a1c9b
xor edx, edx
lea rcx, [rbp + 0xa0]
mov r8d, 0x208
call fcn.1400ad180
mov r8, rsi
lea rcx, [rbp + 0xa0]
mov edx, 0x104
call fcn.1400f32a8
lea r8, str.Intel
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call fcn.1400f345c
xor edx, edx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test ebx, ebx
jne 0x1400a1ac5
cmp eax, 0xb7
jne 0x1400a1aff
lea r8, str.DPTF
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call fcn.1400f345c
xor edx, edx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test ebx, ebx
jne 0x1400a1b21
cmp eax, 0xb7
je 0x1400a1b21
lea r8, [rbp + 0xa0]
mov ecx, 3
lea rdx, str.Error:_Unable_to_create__S_n
call fcn.1400127d0
mov rbx, qword [rsp + 0x74]
jmp 0x1400a1c9b
lea rax, [rbp - 0x20]
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xa0]
lea rdx, str._s_s_s
lea rcx, [rbp - 0x48]
call fcn.140096f30
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
mov rbx, qword [rsp + 0x74]
test rbx, rbx
je 0x1400a1ca8
mov rdx, rbx
mov rcx, rdi
call fcn.1400f47f0
test eax, eax
je 0x1400a1b91
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x1400a1b91
lea rdx, str.Error:_Unable_to_copy_executable_to_system_folder._n
lea ecx, [rax + 3]
call fcn.1400127d0
jmp 0x1400a1c9b
xor edx, edx
mov qword [rsp + 0x3f8], r14
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x1400a1bc5
lea rdx, str.Error:_Unable_to_get_a_handle_to_the_SCM._n
lea ecx, [rax + 3]
call fcn.1400127d0
jmp 0x1400a1c93
mov qword [rsp + 0x60], r15
lea rdx, str.esifsvc
mov qword [rsp + 0x58], r15
mov r9d, 0xf01ff
mov qword [rsp + 0x50], r15
mov rcx, r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x3f0], r12
lea r12, [0x1401db3c0]
mov dword [rsp + 0x28], 3
mov r8, r12
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.DLL_CreateServiceW]
mov r15, rax
test rax, rax
jne 0x1400a1c3c
lea rdx, str.Error:_Unable_to_create_the_service._n
lea ecx, [rax + 3]
call fcn.1400127d0
jmp 0x1400a1c82
lea r8, [rbp - 0x30]
mov qword [rbp - 0x30], r12
mov edx, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfig2W]
test eax, eax
jne 0x1400a1c65
lea rdx, str.Error:_Unable_to_update_service_description._n
lea ecx, [rax + 3]
call fcn.1400127d0
mov r8, r12
lea rdx, str._S_successfully_installed._n
mov ecx, 3
call fcn.1400127d0
mov rcx, r15
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov r12, qword [rsp + 0x3f0]
mov r14, qword [rsp + 0x3f8]
test rbx, rbx
je 0x1400a1ca8
mov rcx, rbx
call fcn.1400bae44
mov r15, qword [rsp + 0x3c0]
mov rbx, qword [rsp + 0x3e0]
test rsi, rsi
je 0x1400a1cc5
mov rcx, rsi
call fcn.1400bae44
mov rsi, qword [rsp + 0x3e8]
test rdi, rdi
je 0x1400a1cda
mov rcx, rdi
call fcn.1400bae44
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1400ab870
add rsp, 0x3c8
pop rdi
pop rbp
ret