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

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x4c0
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0x4b8], rax
mov dword [rsp + 0x88], 0
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x490]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x358], 0
mov edx, 0x110
lea rcx, [rsp + 0x360]
call fcn.14000b730
mov edx, 1
lea rcx, [rsp + 0x360]
call fcn.14000d020
nop
lea rcx, str.init_2
call fcn.140005720
mov rcx, rax
call fcn.140002ad0
mov r8, rax
lea rdx, str.init_2
lea rcx, [0x1400f5430]
call fcn.140011300
mov qword [rsp + 0x118], rax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x148]
movzx r8d, byte [rsp + 0x52]
lea rdx, str.ToadClient.dll
mov rcx, rax
call fcn.140026e20
nop
lea rcx, [rsp + 0x1a8]
call fcn.14003ec40
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x188]
mov rcx, qword [rsp + 0xa8]
call fcn.140024080
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea r8, [rsp + 0x148]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x470]
call fcn.140024160
nop
lea rcx, [rsp + 0x188]
call fcn.140004060
nop
lea rcx, [rsp + 0x1a8]
call fcn.140004060
nop
lea rcx, [rsp + 0x148]
call fcn.140004060
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x358]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002548a
mov dword [rsp + 0x490], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x49c], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x494]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14002547b
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x490]
xor edx, edx
mov rcx, qword [rsp + 0x358]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
mov rcx, qword [rsp + 0x358]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8d, dword [rsp + 0x4d0]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14002555b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x1c8]
call fcn.140024060
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xc8]
lea rdx, str.failed_getting_handle__error:
lea rcx, [rsp + 0x168]
call fcn.140026310
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
lea rcx, [0x1400f5430]
call fcn.14000eed0
lea rcx, [rsp + 0x168]
call fcn.14000eec0
nop
lea rcx, [rsp + 0x1c8]
call fcn.14000eec0
nop
mov byte [rsp + 0x53], 0
lea rcx, [rsp + 0x470]
call fcn.140004060
nop
lea rcx, [rsp + 0x360]
call fcn.14000b6c0
movzx eax, byte [rsp + 0x53]
jmp 0x140025a95
mov byte [rsp + 0x51], 1
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x470]
call fcn.140003bf0
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.14000ede0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400255a2
mov dword [rsp + 0x60], 1
jmp 0x1400255aa
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x54], al
lea rcx, [rsp + 0x1e8]
call fcn.14000eec0
movzx eax, byte [rsp + 0x54]
test eax, eax
je 0x14002560e
lea rcx, str.failed_retrieving_dll
call fcn.140005720
mov rcx, rax
call fcn.140002ad0
mov r8, rax
lea rdx, str.failed_retrieving_dll
lea rcx, [0x1400f5430]
call fcn.140011300
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x470]
call fcn.140004060
nop
jmp 0x140025a52
lea rcx, [rsp + 0x470]
call fcn.140003860
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x24
mov rdx, rax
lea rcx, [rsp + 0x248]
call fcn.140026380
mov rax, qword [rsp + 0x248]
movsxd rax, dword [rax + 4]
lea rcx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rax + 0x248], rcx
mov rax, qword [rsp + 0x248]
movsxd rax, dword [rax + 4]
sub rax, 0xb0
mov rcx, qword [rsp + 0x248]
movsxd rcx, dword [rcx + 4]
mov dword [rsp + rcx + 0x244], eax
lea rax, [rsp + 0x248]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x360]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0x70], rax
je 0x1400256f6
mov rax, qword [rsp + 0x70]
add rax, 0x10
mov rcx, rax
call fcn.140010200
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140025b00
nop
lea rcx, [rsp + 0x248]
call fcn.14000b6c0
nop
mov rax, qword [rsp + 0x360]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x360]
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 0x1400257d7
mov rax, qword [rsp + 0x360]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x360]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::ios_base::rdstate_void_const___ptr64]
mov edx, eax
lea rcx, [rsp + 0x228]
call fcn.140002c30
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov r8, qword [rsp + 0x100]
lea rdx, str.failed_opening_dll
lea rcx, [rsp + 0x208]
call fcn.140026310
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
lea rcx, [0x1400f5430]
call fcn.14000eed0
lea rcx, [rsp + 0x208]
call fcn.14000eec0
nop
lea rcx, [rsp + 0x228]
call fcn.14000eec0
nop
lea rcx, [rsp + 0x470]
call fcn.140004060
nop
jmp 0x140025a52
mov byte [rsp + 0x50], 1
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x360]
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]
nop
lea rcx, [rsp + 0x4a0]
call fcn.14000fff0
cmp rax, 0x1000
jge 0x14002584d
lea rcx, str.dll_is_invalid
call fcn.140005720
mov rcx, rax
call fcn.140002ad0
mov r8, rax
lea rdx, str.dll_is_invalid
lea rcx, [0x1400f5430]
call fcn.140011300
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x470]
call fcn.140004060
nop
jmp 0x140025a52
lea rcx, [rsp + 0x4a0]
call fcn.14000fff0
mov rcx, rax
call fcn.1400a4d88
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400258c4
lea rcx, str.failed_allocating_dll_data
call fcn.140005720
mov rcx, rax
call fcn.140002ad0
mov r8, rax
lea rdx, str.failed_allocating_dll_data
lea rcx, [0x1400f5430]
call fcn.140011300
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x470]
call fcn.140004060
nop
jmp 0x140025a52
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x360]
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 + 0x4a0]
call fcn.14000fff0
mov r8, rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x360]
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 + 0x360]
call fcn.14000cfe0
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0x4a0]
call fcn.14000fff0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call fcn.140024340
movzx eax, al
test eax, eax
jne 0x1400259e4
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400a4d54
cmp qword [rsp + 0x80], 0
jne 0x14002598c
mov qword [rsp + 0x90], 0
jmp 0x1400259a2
mov qword [rsp + 0x58], 0x8123
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
lea rcx, str.failed_injecting
call fcn.140005720
mov rcx, rax
call fcn.140002ad0
mov r8, rax
lea rdx, str.failed_injecting
lea rcx, [0x1400f5430]
call fcn.140011300
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0x470]
call fcn.140004060
nop
jmp 0x140025a52
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.injection_was_succesfull
call fcn.140005720
mov rcx, rax
call fcn.140002ad0
mov r8, rax
lea rdx, str.injection_was_succesfull
lea rcx, [0x1400f5430]
call fcn.140011300
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x55], 1
lea rcx, [rsp + 0x470]
call fcn.140004060
nop
lea rcx, [rsp + 0x360]
call fcn.14000b6c0
movzx eax, byte [rsp + 0x55]
jmp 0x140025a95
movzx eax, byte [rsp + 0x51]
test eax, eax
je 0x140025a67
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140025a7e
lea rcx, [rsp + 0x360]
call fcn.14000cfe0
nop
mov byte [rsp + 0x56], 0
lea rcx, [rsp + 0x360]
call fcn.14000b6c0
movzx eax, byte [rsp + 0x56]
mov rcx, qword [rsp + 0x4b8]
xor rcx, rsp
call fcn.1400a49e0
add rsp, 0x4c0
pop rdi
ret