Function at 0x140002170
Capabilities:
Acquire debug privileges
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
cmp ecx, 2
je 0x1400021d8
lea rdx, str.Usage:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400036b0
mov rcx, rax
mov rdx, qword [rbx]
call fcn.1400036b0
mov rcx, rax
lea rdx, str.__encrypted_file_path_
call fcn.1400036b0
mov rcx, rax
lea rdx, [0x140003890]
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 eax, 1
jmp 0x1400023b2
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x48]
call fcn.140003100
nop
call fcn.140001290
test al, al
je 0x1400021fc
lea rdx, str.Running_in_a_VM__exiting...
jmp 0x14000234a
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rdi, rdi
je 0x140002266
lea rdx, str.OpenProcessToken
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000aa00], rax
lea rdx, str.LookupPrivilegeValueW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000aa08], rax
lea rdx, str.AdjustTokenPrivileges
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000a9f8], rax
test rbx, rbx
je 0x1400022bb
lea rdx, str.OpenProcess
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ReadProcessMemory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualQueryEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetSystemInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
mov edx, 0x28
call qword [0x14000aa00]
test eax, eax
je 0x140002343
lea r8, [rsp + 0x3c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [0x14000aa08]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000233d
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x38]
xor edx, edx
call qword [0x14000a9f8]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000233d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x48]
call fcn.140001530
jmp 0x14000236b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Failed_to_enable_debug_privilege.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400036b0
lea rdx, [0x140003890]
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 ebx, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400023b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000455c
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140004500
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret