Function at 0x140001290
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r15d, r15d
mov dword [rsp + 0x58], r15d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x1400044e4]
lea rcx, str.SvrList.dta
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140004608]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x58], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], r13
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rax, [rbp - 0x78]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea r12, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x78], r12
mov byte [rbp + 4], r15b
mov byte [rbp - 7], r15b
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 8], r15
mov rax, qword [0x1400078e8]
mov qword [rbp - 4], rax
mov qword [rbp - 0x10], r15
lea edx, [r15 + 2]
lea r8d, [r15 + 0x40]
lea rcx, str.SvrList.txt
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rbx, rax
test rax, rax
jne 0x1400013e6
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
jmp 0x1400014d4
mov byte [rbp + 4], 1
mov byte [rbp - 7], 0
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x58], r15
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov r9, qword [rsp + 0x58]
mov qword [rsp + 0x30], r9
mov r8, qword [rsp + 0x68]
mov qword [rsp + 0x28], r8
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64__char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64____ptr64]
mov qword [rbp + 8], rbx
mov rax, qword [0x1400078e8]
mov qword [rbp - 4], rax
mov qword [rbp - 0x10], r15
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.140002960
mov rbx, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x140001488
mov qword [rbp - 0x10], r15
jmp 0x140001497
mov qword [rbp - 0x10], rbx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400014ba
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400014ba
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
mov edi, 6
nop dword [rax]
mov r9, rsi
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx ebx, byte [rsp + 0x50]
lea rdx, str._debug_header:
lea rcx, [rbp - 0x80]
call fcn.140002790
mov rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x140004504]
call fcn.140002790
sub rdi, 1
jne 0x1400014e0
mov r9, rsi
lea edx, [rdi + 4]
lea r8d, [rdi + 1]
lea rcx, [rsp + 0x54]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rdx, str._debug_ikey:
lea rcx, [rbp - 0x80]
call fcn.140002790
mov rcx, rax
mov edx, dword [rsp + 0x54]
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]
mov rcx, rax
lea rdx, [0x140004504]
call fcn.140002790
mov r9, rsi
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx ebx, byte [rsp + 0x50]
lea rdx, str._debug_key:
lea rcx, [rbp - 0x80]
call fcn.140002790
mov rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x140004504]
call fcn.140002790
mov r9, rsi
lea edx, [rdi + 4]
lea r8d, [rdi + 1]
lea rcx, [0x1400078d8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [0x1400078d8]
mov eax, ecx
sub eax, dword [rsp + 0x54]
mov dword [0x1400078d8], eax
mov dword [rsp + 0x54], ecx
lea rdx, str._debug_m_nSvrAddrNum:
lea rcx, [rbp - 0x80]
call fcn.140002790
mov rcx, rax
mov edx, dword [0x1400078d8]
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]
mov rcx, rax
lea rdx, [0x140004504]
call fcn.140002790
mov r14d, r15d
cmp dword [0x1400078d8], r15d
jle 0x1400016fd
nop dword [rax]
mov r9, rsi
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rdx, str._n_debug_count:
lea rcx, [rbp - 0x80]
call fcn.140002790
mov rcx, rax
mov edx, dword [rsp + 0x58]
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]
mov rcx, rax
lea rdx, [0x140004504]
call fcn.140002790
mov eax, dword [rsp + 0x58]
mov ecx, eax
sub ecx, dword [rsp + 0x54]
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x54], eax
mov edi, r15d
test ecx, ecx
jle 0x1400016c6
lea rbx, [rbp + 0x90]
nop dword [rax]
nop word [rax + rax]
mov r9, rsi
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx ecx, byte [rsp + 0x70]
movzx eax, cl
sub al, byte [rsp + 0x50]
mov byte [rbx], al
mov byte [rsp + 0x50], cl
inc edi
lea rbx, [rbx + 1]
mov ecx, dword [rsp + 0x58]
cmp edi, ecx
jl 0x140001690
movsxd rax, ecx
cmp rax, 0x100
jae 0x1400017e2
mov byte [rbp + rax + 0x90], 0
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.140002790
inc r14d
cmp r14d, dword [0x1400078d8]
jl 0x140001620
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbp - 0x78]
call fcn.1400026b0
test rax, rax
jne 0x140001731
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]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r13
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
mov qword [rbp - 0x78], r12
cmp qword [rbp + 8], 0
je 0x140001782
mov rax, qword [rbp - 0x60]
lea rcx, [rbp - 8]
cmp qword [rax], rcx
jne 0x140001782
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov rax, qword [rbp - 0x40]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x28]
mov dword [rax], edx
cmp byte [rbp + 4], 0
je 0x140001791
lea rcx, [rbp - 0x78]
call fcn.1400026b0
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140002c50
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140002d78
nop
int3