Function at 0x14008cce4
Capabilities:
Copy file
Create directory
Delete directory
Delete registry key
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov qword [rsp + 0x30], r9
mov r12d, ecx
movsxd r13, r8d
xor edi, edi
mov qword [rsp + 0x38], rdx
call fcn.14008c000
test eax, eax
jne 0x14008cd65
lea rcx, str.Requires_administrator_permissions._r_n
call fcn.140001090
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140168070
mov rbx, qword [rsp + 0x640]
add rsp, 0x600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.Performing_uninstall..._r_n
test r12d, r12d
jne 0x14008cd78
lea rcx, str.Performing_install..._r_n
call fcn.140001090
call fcn.14008cb34
xor ebx, ebx
mov r15d, 0x190
mov ecx, 0x64
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14008c9d4
cmp eax, 3
jne 0x14008cda6
cmp ebx, r15d
jl 0x14008cd8a
lea rcx, str.Mesh_Agent
call fcn.14008c91c
lea rcx, [0x1401ff3f8]
call fcn.14008c91c
mov r14d, 0x104
lea rdx, [rbp + 0x1a0]
mov r8d, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, eax
xor r9d, r9d
lea rax, [rbp + 0x71]
xor r8d, r8d
mov edx, 0x8026
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea esi, [r14 + 0x28]
cmp eax, 1
je 0x14008ce36
mov edx, esi
mov byte [rbp + 0x70], 0x22
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov rdi, rax
cmp rax, r14
ja 0x14008ce32
mov edx, esi
lea rcx, [rbp + 0x71]
sub rdx, rax
lea r8, str.Mesh_AgentMeshAgent.exe___uninstall
add rcx, rax
mov r9d, 0x26
call section..text
add rdi, 0x19
test r12d, r12d
je 0x14008cee5
cmp rdi, rbx
jne 0x14008cee5
mov r8, rdi
lea rdx, [rbp + 0x71]
lea rcx, [rbp + 0x1a0]
call fcn.140169540
test eax, eax
jne 0x14008cee5
lea rdx, [rbp + 0x3c0]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rbx, [rbp + 0x3c0]
mov r9d, reloc.WS2_32.dll_ntohs
sub esi, eax
lea r8, [0x1401ff720]
cdqe
add rbx, rax
movsxd rdi, esi
mov rcx, rbx
mov rdx, rdi
call section..text
lea rcx, [rbp + 0x3c0]
call fcn.1401770a0
xor r8d, r8d
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r9d, 0x1e
lea r8, str.MeshAgent.exe__fulluninstall
mov rdx, rdi
mov rcx, rbx
call section..text
xor edx, edx
lea rcx, [rbp + 0x3c0]
jmp 0x14008d7d4
mov edx, 1
lea rcx, [rbp + 0x70]
call fcn.14008cbf8
mov r14, 0xffffffff80000002
lea rdx, [0x1401e2c88]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea rdx, [0x1401e2c88]
lea rcx, [r14 - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallMeshCentralAgent
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test r12d, r12d
jne 0x14008cf50
cmp rdi, rbx
jne 0x14008cf50
mov r8, rdi
lea rdx, [rbp + 0x71]
lea rcx, [rbp + 0x1a0]
call fcn.140169540
test eax, eax
je 0x14008d77c
xor ebx, ebx
mov byte [rbp + rdi + 0x71], bl
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x71]
inc ebx
call fcn.1401770a0
inc eax
cmp eax, 1
jbe 0x14008cf78
cmp ebx, r15d
jl 0x14008cf56
mov rdx, rsi
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov rbx, rax
lea ecx, [rax - 4]
cmp ecx, 0xff
ja 0x14008cd3b
movsxd r15, ebx
lea r8, [rbp + 0x71]
mov r9, r15
lea rcx, [rsp + 0x60]
mov edx, 0x104
call section..text
lea eax, [rbx - 3]
mov r14d, 0x101
movsxd rcx, eax
lea r8, [0x1401ff750]
lea rax, [rsp + 0x60]
mov edx, r14d
add rcx, rax
sub rdx, r15
mov r9d, 4
call section..text
cmp r15, 0x104
jae 0x14008d7fc
lea rcx, [rsp + 0x60]
mov byte [rsp + r15 + 0x60], 0
call fcn.1401770a0
mov rdx, rsi
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov r15, rax
lea ecx, [rax - 4]
cmp ecx, 0xff
ja 0x14008cd3b
movsxd rbx, r15d
lea r8, [rbp + 0x71]
mov r9, rbx
lea edx, [r14 + 3]
lea rcx, [rsp + 0x60]
call section..text
lea eax, [r15 - 3]
mov edx, r14d
movsxd rcx, eax
lea r8, str.mshx
lea rax, [rsp + 0x60]
sub rdx, rbx
add rcx, rax
mov r9d, 5
call section..text
lea eax, [r15 + 1]
movsxd rcx, eax
cmp rcx, 0x104
jae 0x14008d7f6
mov byte [rsp + rcx + 0x60], 0
lea rcx, [rsp + 0x60]
call fcn.1401770a0
mov rdx, rsi
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov r15, rax
lea ecx, [rax - 4]
cmp ecx, 0xfd
ja 0x14008cd3b
movsxd rbx, r15d
lea r8, [rbp + 0x71]
mov r9, rbx
lea edx, [r14 + 3]
lea rcx, [rsp + 0x60]
call section..text
lea eax, [r15 - 3]
mov edx, r14d
movsxd rcx, eax
lea r8, str.proxy
lea rax, [rsp + 0x60]
sub rdx, rbx
add rcx, rax
mov r9d, 6
call section..text
lea eax, [r15 + 2]
movsxd rcx, eax
cmp rcx, 0x104
jae 0x14008d7f0
mov byte [rsp + rcx + 0x60], 0
lea rcx, [rsp + 0x60]
call fcn.1401770a0
mov rdx, rsi
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov rbx, rax
lea ecx, [rax - 4]
cmp ecx, 0xff
ja 0x14008cd3b
movsxd r15, ebx
lea r8, [rbp + 0x71]
mov r9, r15
lea edx, [r14 + 3]
lea rcx, [rsp + 0x60]
call section..text
lea eax, [rbx - 3]
mov edx, r14d
movsxd rcx, eax
lea r8, [0x1401ff75c]
lea rax, [rsp + 0x60]
sub rdx, r15
add rcx, rax
mov r9d, 4
call section..text
cmp r15, 0x104
jae 0x14008d7ea
lea rcx, [rsp + 0x60]
mov byte [rsp + r15 + 0x60], 0
call fcn.1401770a0
mov rdx, rsi
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov rbx, rax
lea ecx, [rax - 4]
cmp ecx, 0xff
ja 0x14008cd3b
movsxd r15, ebx
lea r8, [rbp + 0x71]
mov r9, r15
lea edx, [r14 + 3]
lea rcx, [rsp + 0x60]
call section..text
lea eax, [rbx - 3]
mov edx, r14d
movsxd rcx, eax
lea r8, [0x1401ec1e0]
lea rax, [rsp + 0x60]
sub rdx, r15
add rcx, rax
mov r9d, 4
call section..text
cmp r15, 0x104
jae 0x14008d7e4
lea rcx, [rsp + 0x60]
mov byte [rsp + r15 + 0x60], 0
call fcn.1401770a0
mov rdx, rsi
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov r15, rax
lea ecx, [rax - 4]
cmp ecx, 0xfc
ja 0x14008cd3b
movsxd rbx, r15d
lea r8, [rbp + 0x71]
mov r9, rbx
lea edx, [r14 + 3]
lea rcx, [rsp + 0x60]
call section..text
lea eax, [r15 - 3]
mov edx, r14d
movsxd rcx, eax
lea r8, [0x1401ff760]
lea rax, [rsp + 0x60]
sub rdx, rbx
add rcx, rax
mov r9d, 3
call section..text
lea r15d, [r14 + 3]
cmp rbx, r15
jae 0x14008d7de
lea rcx, [rsp + 0x60]
mov byte [rsp + rbx + 0x60], 0
call fcn.1401770a0
lea rcx, [rbp + 0x71]
mov byte [rbp + rdi + 0x63], 0
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test r12d, r12d
jne 0x14008cd3b
xor edx, edx
lea rcx, [rbp + 0x71]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14008d2dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14008d2dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea rdx, str.ServiceMain.c
lea rcx, str.Access_denied__1_
mov dword [rsp + 0x20], eax
mov r8d, 0x2ec
call fcn.140078e6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Access_denied__1_
mov r8d, eax
lea rcx, str.ILIBMSG:__s___d_._r_n
call fcn.140001090
jmp 0x14008cd3b
xor ebx, ebx
mov byte [rbp + rdi + 0x63], 0x5c
lea r12d, [rbx + 1]
jmp 0x14008d312
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14008d4f8
mov eax, ebx
add ebx, r12d
cmp eax, 5
jg 0x14008d4c0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, r12d
lea rdx, [rbp + 0x71]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x14008d2ea
mov rdx, r15
lea rcx, [rbp + 0x1a0]
call fcn.14017015c
mov r15, rax
cmp eax, 4
jl 0x14008cd3b
movsxd rbx, r15d
lea r8, [rbp + 0x1a0]
mov r9, rbx
lea rcx, [rbp + 0x2b0]
mov edx, 0x104
call section..text
lea eax, [r15 - 3]
mov rdx, r14
movsxd rcx, eax
lea r8, [0x1401ff750]
lea rax, [rbp + 0x2b0]
sub rdx, rbx
add rcx, rax
mov r9d, 4
call section..text
mov rdx, rsi
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov r15, rax
lea ecx, [rax - 4]
cmp ecx, 0xff
ja 0x14008cd3b
movsxd rbx, r15d
lea r8, [rbp + 0x71]
mov r9, rbx
lea rcx, [rsp + 0x60]
mov edx, 0x104
call section..text
lea eax, [r15 - 3]
mov rdx, r14
movsxd rcx, eax
lea r8, [0x1401ff750]
lea rax, [rsp + 0x60]
sub rdx, rbx
add rcx, rax
mov r9d, 4
call section..text
mov r8d, r12d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x14008d53a
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x71]
mov rdx, rsi
call fcn.14017015c
mov r15, rax
lea ecx, [rax - 4]
cmp ecx, 0xff
ja 0x14008cd3b
movsxd rbx, r15d
lea r8, [rbp + 0x71]
mov r9, rbx
lea rcx, [rsp + 0x60]
mov edx, 0x104
call section..text
lea eax, [r15 - 3]
mov rdx, r14
movsxd rcx, eax
lea r8, [0x1401ff75c]
lea rax, [rsp + 0x60]
sub rdx, rbx
add rcx, rax
mov r9d, 4
call section..text
movsxd rbx, dword [rbp + 0x560]
test ebx, ebx
jle 0x14008d530
lea r8, [0x1401e2ba0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14016f350
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x14008d53a
mov r8, rbx
mov edx, 1
mov rcx, r12
call fcn.14016efd0
mov rcx, qword [rsp + 0x30]
call fcn.14016aee0
jmp 0x14008d53a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea rdx, str.ServiceMain.c
lea rcx, str.Error_copying_executable_file
mov dword [rsp + 0x20], eax
mov r8d, 0x2f4
call fcn.140078e6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_copying_executable_file
jmp 0x14008d2c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea rdx, str.ServiceMain.c
lea rcx, str.Access_denied__2_
mov dword [rsp + 0x20], eax
mov r8d, 0x2f3
call fcn.140078e6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Access_denied__2_
jmp 0x14008d2c9
lea rcx, [rsp + 0x60]
call fcn.1401770a0
mov r12d, 0x104
lea rcx, [rbp + 0x1a0]
mov edx, r12d
call fcn.14017015c
mov r15, rax
cmp eax, 4
jl 0x14008cd3b
movsxd rbx, r15d
lea r8, [rbp + 0x1a0]
mov r9, rbx
lea rcx, [rbp + 0x2b0]
mov edx, r12d
call section..text
lea eax, [r15 - 3]
mov rdx, r14
movsxd rcx, eax
lea r8, str.proxy
lea rax, [rbp + 0x2b0]
mov r15d, 6
add rcx, rax
sub rdx, rbx
mov r9d, r15d
call section..text
mov rdx, rsi
lea rcx, [rbp + 0x71]
call fcn.14017015c
mov rsi, rax
lea ecx, [rax - 4]
cmp ecx, 0xff
ja 0x14008cd3b
movsxd rbx, esi
lea r8, [rbp + 0x71]
mov r9, rbx
lea rcx, [rsp + 0x60]
mov edx, r12d
call section..text
lea eax, [rsi - 3]
sub r14, rbx
movsxd rcx, eax
lea r8, str.proxy
lea rax, [rsp + 0x60]
mov r9d, r15d
add rcx, rax
mov rdx, r14
call section..text
mov rbx, qword [rsp + 0x38]
xor esi, esi
test rbx, rbx
je 0x14008d652
test r13d, r13d
jle 0x14008d652
lea r8, [0x1401e2ba0]
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14016f350
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x14008d77c
mov r8, r13
lea edx, [rsi + 1]
mov rcx, rbx
call fcn.14016efd0
mov rcx, qword [rsp + 0x30]
call fcn.14016aee0
jmp 0x14008d77c
mov r14d, 1
lea rdx, [rsp + 0x60]
mov r8d, r14d
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x14008d77c
lea rcx, [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x14008d77c
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x14008d75c
lea r15, [0x140220180]
mov qword [rsp + 0x30], rsi
mov rdx, r15
mov qword [rsp + 0x20], 0x7d0
mov r8d, 0xfff
lea rcx, [rsp + 0x38]
call fcn.140176004
test eax, eax
jne 0x14008d751
lea rdx, str.https
mov rcx, r15
call fcn.140169330
mov rbx, rax
test rax, rax
je 0x14008d6fa
lea rdx, [0x1401fec30]
mov rcx, rax
call fcn.140169330
add rbx, 6
test rax, rax
je 0x14008d6fd
mov byte [rax], sil
jmp 0x14008d6fd
mov rbx, r15
lea r8, [0x1401e2ba0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14016f350
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x14008d751
test rbx, rbx
jne 0x14008d727
mov rax, rsi
jmp 0x14008d739
mov edx, 0x1000
mov rcx, rbx
call fcn.14017015c
mov r9, qword [rsp + 0x30]
mov r8, rax
mov rdx, r14
mov rcx, rbx
call fcn.14016efd0
mov rcx, qword [rsp + 0x30]
call fcn.14016aee0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14008d76c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14008d77c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.14008c1ac
movzx eax, word [0x1401ff7d8]
lea rcx, [rbp + 0x70]
movsd xmm0, qword [str.___install]
mov edx, 1
movsd qword [rbp + rdi + 0x71], xmm0
mov word [rbp + rdi + 0x79], ax
mov al, byte [0x1401ff7da]
mov byte [rbp + rdi + 0x7b], al
call fcn.14008cbf8
movsd xmm0, qword [str.___start]
lea rcx, [rbp + 0x70]
mov al, byte [0x1401ff7e8]
mov edx, 1
movsd qword [rbp + rdi + 0x71], xmm0
mov byte [rbp + rdi + 0x79], al
call fcn.14008cbf8
jmp 0x14008cd3b
call fcn.14016819c
int3
call fcn.14016819c
int3
call fcn.14016819c
int3
call fcn.14016819c
int3
call fcn.14016819c
int3
call fcn.14016819c
int3