Function at 0x140001ec0
Capabilities:
Acquire debug privileges
Check if file exists
Execute command
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov r15, rdx
mov edx, ecx
mov r9, qword [r15 + 0x18]
lea rcx, [0x1400055e0]
mov r8, 0xffffffffffffffff
movzx eax, word [r9 + r8*2 + 2]
cmp ax, word [rcx + r8*2 + 2]
jne 0x140001f1a
add r8, 2
cmp r8, 0x2b
je 0x140002134
movzx eax, word [r9 + r8*2]
cmp ax, word [rcx + r8*2]
je 0x140001ef2
lea r8, str.er6tfdgl_kl123asdkjnxc_1s111_1veio1239_ds
xor edi, edi
mov ecx, edi
nop word [rax + rax]
movzx eax, word [r9 + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x140002510
movzx eax, word [r9 + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140002510
add rcx, 2
cmp rcx, 0x38
jne 0x140001f30
cmp edx, 4
jne 0x14000251c
mov r14, qword [r15 + 8]
mov esi, edi
mov ebx, edi
nop dword [rax]
movsxd rax, esi
lea r8, [rbp + 0x90]
add r8, rax
movsxd rax, ebx
lea rcx, [r14 + rax*2]
lea rdx, str.0x_02hhX_
call fcn.140001ad0
cmp eax, 1
jne 0x1400024f0
inc esi
add ebx, 6
cmp ebx, 0xd80
jl 0x140001f70
mov rcx, qword [r15 + 0x10]
call fcn.140001e10
mov r14d, eax
lea rcx, str.stac_n
call fcn.140001b30
mov ecx, 0x5da00
call fcn.140003980
mov rsi, rax
mov r8d, 0x5d7c0
lea rdx, [0x140008040]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsi + 0x5d7c0]
lea rcx, [rbp + 0x90]
mov edx, 4
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rdx, 1
jne 0x140002000
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
mov r8d, r14d
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400020fd
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x64], 2
lea r8, [rsp + 0x5c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400020f2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x318], edi
lea rdx, [rbp + 0x318]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x14000247b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.140001b30
jmp 0x1400024a5
mov rsi, qword [r15 + 8]
mov rcx, qword [r15 + 0x10]
call fcn.140001e10
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor edi, edi
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [rdi + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400021bf
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x64], 2
lea r8, [rsp + 0x5c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400021b4
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140002200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcess_failed:_0x_X_n
call fcn.140001b30
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea eax, [rbx - 2]
jmp 0x14000252b
mov dword [rbp + 0x318], edi
lea rdx, [rbp + 0x318]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x140002230
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.140001b30
jmp 0x14000225a
mov dword [rbp + 0x308], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x308]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rbp + 0x308]
cmp dword [rbp + 0x318], eax
je 0x140002286
lea rcx, str.Invalid_Process_Architecture._n
call fcn.140001b30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffffd
jmp 0x14000252b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400022c0
lea rcx, str.Dll_file_doesnt_exist_n
call fcn.140001b30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffffc
jmp 0x14000252b
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400031d0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov edx, dword [rbp + rcx - 0x70]
test dl, 6
je 0x140002334
lea rcx, str.Opening_the_file_failed:__X_n
call fcn.140001b30
lea rcx, [rbp - 0x70]
call fcn.1400035c0
test rax, rax
jne 0x140002314
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, 0xfffffffb
jmp 0x14000246b
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rsp + 0x70]
add rcx, qword [rsp + 0x68]
cmp rcx, 0x1000
jge 0x1400023ac
lea rcx, str.Filesize_invalid._n
call fcn.140001b30
lea rcx, [rbp - 0x70]
call fcn.1400035c0
test rax, rax
jne 0x14000238c
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, 0xfffffffa
jmp 0x14000246b
call fcn.140003980
mov rsi, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8, qword [rsp + 0x68]
add r8, qword [rsp + 0x70]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x70]
call fcn.1400035c0
test rax, rax
jne 0x140002404
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, str.Mapping..._n
call fcn.140001b30
mov rdx, rsi
mov rcx, rbx
call fcn.140001010
mov rcx, rsi
test al, al
jne 0x140002450
call fcn.14000393c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Error_while_mapping._n
call fcn.140001b30
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, 0xfffffff8
jmp 0x14000246b
call fcn.14000393c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140005720]
call fcn.140001b30
nop
lea rcx, [rbp - 0x80]
call fcn.140002550
mov eax, edi
jmp 0x14000252b
mov dword [rbp + 0x308], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x308]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rbp + 0x308]
cmp dword [rbp + 0x318], eax
je 0x1400024ae
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rsi
mov rcx, rbx
call fcn.140001010
test al, al
jne 0x1400024c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x1400024e2
lea rcx, str.Process_not_found_n
call fcn.140001b30
jmp 0x1400024fc
lea rcx, [0x140005720]
call fcn.140001b30
jmp 0x140002529
lea rcx, str.Invalid_byte_array_input_n
call fcn.140001a70
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xffffffff
jmp 0x14000252b
lea rcx, str.Invalid_Params_n
call fcn.140001b30
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rbx, qword [rsp + 0x400]
add rsp, 0x3d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret