Function at 0x140015310
Capabilities:
Acquire debug privileges
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
lea rax, [rsp + 0x190]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x78], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x78]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400153e2
mov dword [rsp + 0x190], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x19c], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x194]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400153d5
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x190]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400153f5
lea rcx, str._Failed_To_Get_Process_Token_n
call fcn.140001230
xor al, al
jmp 0x1400156b9
lea rcx, [0x140037bc8]
call fcn.140006e70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140015422
lea rcx, str._The_DLL_Not_Found_n
call fcn.140001230
xor al, al
jmp 0x1400156b9
mov edx, 0x110
lea rcx, [rsp + 0x80]
call fcn.140002910
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x24
lea rdx, [0x140037bc8]
lea rcx, [rsp + 0x80]
call fcn.140017840
nop
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x80]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x1400154b6
lea rcx, str._Couldnt_Open_The_DLL_File_n
call fcn.140001230
lea rcx, [rsp + 0x80]
call fcn.140017750
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x80]
call fcn.140014350
movzx eax, byte [rsp + 0x40]
jmp 0x1400156b9
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 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]
lea rcx, [rsp + 0x1a0]
call fcn.140017920
cmp rax, 0x1000
jge 0x140015516
lea rcx, str._Dll_Size_Invaild_n
call fcn.140001230
lea rcx, [rsp + 0x80]
call fcn.140017750
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x80]
call fcn.140014350
movzx eax, byte [rsp + 0x41]
jmp 0x1400156b9
lea rcx, [rsp + 0x1a0]
call fcn.140017920
mov rcx, rax
call fcn.14001f270
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140015577
lea rcx, str._Couldnt_Allocate_The_DLL_File_n
call fcn.140001230
lea rcx, [rsp + 0x80]
call fcn.140017750
mov byte [rsp + 0x42], 0
lea rcx, [rsp + 0x80]
call fcn.140014350
movzx eax, byte [rsp + 0x42]
jmp 0x1400156b9
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 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]
lea rcx, [rsp + 0x1a0]
call fcn.140017920
mov r8, rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 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, [rsp + 0x80]
call fcn.140017750
lea rcx, [rsp + 0x1a0]
call fcn.140017920
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8b, 1
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.1400019e0
movzx eax, al
test eax, eax
jne 0x140015668
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14001efec
cmp qword [rsp + 0x50], 0
jne 0x140015623
mov qword [rsp + 0x68], 0
jmp 0x140015636
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
lea rcx, str._Failed_To_Map_The_Dll_In_The_Memory_n
call fcn.140001230
lea rcx, [rsp + 0x80]
call fcn.140017750
mov byte [rsp + 0x43], 0
lea rcx, [rsp + 0x80]
call fcn.140014350
movzx eax, byte [rsp + 0x43]
jmp 0x1400156b9
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.14001efec
cmp qword [rsp + 0x58], 0
jne 0x14001568f
mov qword [rsp + 0x70], 0
jmp 0x1400156a2
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x44], 1
lea rcx, [rsp + 0x80]
call fcn.140014350
movzx eax, byte [rsp + 0x44]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x1c0
pop rdi
ret