Function at 0x14000cf30
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1400cfce8]
xor rax, rsp
mov qword [rbp + 0x250], rax
movzx r15d, dl
mov esi, ecx
lea rcx, [rbp - 0x10]
call fcn.14001b130
nop
xor r13d, r13d
test esi, esi
je 0x14000d09a
lea r9, [rbp + 0x3a]
mov r8d, esi
jns 0x14000cfd0
neg r8d
nop
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14000cf90
add r9, 0xfffffffffffffffe
mov eax, 0x2d
mov word [r9], ax
jmp 0x14000d000
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14000cfd0
mov qword [rbp - 0x30], r13
mov r8, r13
mov qword [rbp - 0x20], r13
mov eax, 7
mov qword [rbp - 0x18], rax
mov word [rbp - 0x30], r13w
lea rcx, [rbp + 0x3a]
cmp r9, rcx
je 0x14000d040
lea r8, [rbp + 0x3a]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp - 0x30]
call fcn.14000a730
mov rax, qword [rbp - 0x18]
mov r8, qword [rbp - 0x20]
lea rdx, [rbp - 0x30]
cmp rax, 8
cmovae rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.14000a450
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14000d09a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d095
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d095
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov r14, qword [rbp]
lea rdi, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdi, qword [rbp - 0x10]
movabs r12, 0x7ffffffffffffffe
cmp r14, 8
jae 0x14000d0d6
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x30], xmm0
mov ebx, 7
jmp 0x14000d108
mov rbx, r14
or rbx, 7
cmp rbx, r12
cmova rbx, r12
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x30]
call fcn.14000a3e0
mov qword [rbp - 0x30], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rbx
lea rcx, [rbp - 0x30]
call fcn.14000d6a0
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d622
test r15b, r15b
je 0x14000d61d
test esi, esi
jne 0x14000d5bd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xe7
jne 0x14000d22a
lea r14d, [rdi + 0xa]
lea r15d, [rax - 0x1f]
cmp rdi, 0xffffffffffffffff
jne 0x14000d61d
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], r13
mov rdi, qword [rbp]
lea rsi, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rsi, qword [rbp - 0x10]
cmp rdi, 8
jae 0x14000d18f
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x28], 7
jmp 0x14000d1c5
mov rbx, rdi
or rbx, 7
cmp rbx, r12
cmova rbx, r12
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x10]
call fcn.14000a3e0
mov qword [rbp + 0x10], rax
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], rdi
lea rcx, [rbp + 0x10]
call fcn.14000d6a0
mov rdi, rax
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
add r15d, 0xc8
sub r14d, 1
jne 0x14000d150
cmp rdi, 0xffffffffffffffff
jne 0x14000d61d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp eax, 0xe7
jne 0x14000d219
lea rdx, str.Failed_to_access_server:
jmp 0x14000d5f4
lea rdx, str.Failed_to_access_server._Server_busy.
call fcn.14001a9f0
jmp 0x14000d60d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 2
je 0x14000d248
lea rdx, str.Unexpected_failure_to_access_server:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
jmp 0x14000d5f4
lea rdx, str.MEGAcmd_Server_not_running._Initiating_in_the_background...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r15, 0xffffffffffffffff
test eax, eax
je 0x14000d317
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x24]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000d317
lea rdx, str._Could_not_get_LOCAL_nor_COMMON_App_Folder_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14000d45c
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
lea rax, [rbp + 0x40]
mov r8, r15
inc r8
cmp word [rax + r8*2], 0
jne 0x14000d333
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.14000a730
nop
mov r8d, 0x1a
lea rdx, str.MEGAcmdMEGAcmdServer.exe
lea rcx, [rbp - 0x30]
call fcn.14000a450
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rbx, qword [rbp - 0x30]
mov dword [rsp + 0x60], WSAGetLastError
mov word [rbp - 0x60], r13w
mov dword [rbp - 0x64], 1
lea rax, [rbp + 0x10]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000d419
lea rdx, str.Unable_to_execute:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001a9f0
mov rcx, rax
mov rdx, rbx
call fcn.140008e60
mov rcx, rax
lea rdx, str._errno__:
call fcn.14001a9f0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
lea rdx, [0x140009800]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14000d45c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d457
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d457
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
mov r14d, 0xa
mov r12d, 0x5dc
mov rdi, r15
movabs r15, 0x7ffffffffffffffe
cmp rdi, 0xffffffffffffffff
jne 0x14000d521
mov eax, 0x10624dd3
imul r12d
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
add r12d, r12d
dec r14d
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov rdi, qword [rbp]
lea rsi, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rsi, qword [rbp - 0x10]
cmp rdi, 8
jae 0x14000d4d2
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x18], 7
jmp 0x14000d508
mov rbx, rdi
or rbx, 7
cmp rbx, r15
cmova rbx, r15
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x30]
call fcn.14000a3e0
mov qword [rbp - 0x30], rax
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x30]
call fcn.14000d6a0
mov rdi, rax
test r14d, r14d
jne 0x14000d475
test r14d, r14d
mov r15, 0xffffffffffffffff
jns 0x14000d5aa
lea rdx, str.Unable_to_connect_to
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
lea rdx, str.MEGAcmd_server
mov rcx, rax
call fcn.140008c90
mov rcx, rax
lea rdx, str.:_error
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Please_ensure_MEGAcmdServer_is_running
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14000d625
mov byte [0x1400d1570], 1
mov byte [0x1400d1571], 1
mov r15, rdi
jmp 0x14000d625
lea rdx, str.ERROR_opening_namedPipe:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001a9f0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
mov rcx, rax
call fcn.140009290
lea rdx, [0x14005f4f0]
mov rcx, rax
call fcn.14001a9f0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
lea rdx, [0x140009800]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r15, rdi
jmp 0x14000d625
mov r15, rax
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x14000d668
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d663
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d663
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
mov rax, r15
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140055ba0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret