Function at 0x1800e9eb0
Capabilities:
Hash data with md5
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rax, [0x1802f7a68]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov esi, 2
mov dword [rsp + 0x30], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], r13
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
lea rax, [rsp + 0x50]
mov qword [rbp + 0x168], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x50], rax
mov byte [rbp - 0x34], r12b
mov byte [rbp - 0x3f], r12b
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x30], r12
mov rax, qword [0x18036af40]
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x48], r12
lea rdx, [0x1803617c0]
cmp qword [0x1803617d8], 0xf
cmova rdx, qword [0x1803617c0]
lea r8d, [r12 + 0x21]
lea rcx, [rsp + 0x50]
call fcn.18000e420
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
je 0x1800e9fd1
add rcx, rax
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]
jmp 0x1800e9fdf
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x50], 6
jne 0x1800ea2dc
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x40]
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 rdx, [rbp + 0x100]
lea rcx, [rsp + 0x40]
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 edi, dword [rax + 8]
add edi, dword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
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]
movsxd rbx, edi
mov rcx, rbx
call fcn.1802990e8
mov r14, rax
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
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]
nop
mov byte [rbp + 0x90], 0
mov qword [rbp + 0xd4], r12
mov dword [rbp + 0xdc], 0x67452301
mov dword [rbp + 0xe0], 0xefcdab89
mov dword [rbp + 0xe4], 0x98badcfe
mov dword [rbp + 0xe8], 0x10325476
mov r8d, edi
mov rdx, r14
lea rcx, [rbp + 0x90]
call fcn.180066870
lea rcx, [rbp + 0x90]
call fcn.180066940
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x90]
call fcn.180066a50
mov esi, 6
mov dword [rsp + 0x30], esi
lea rdx, [rbp + 0x50]
lea rcx, [0x1803613d8]
call fcn.180008760
and esi, 0xfffffffb
mov dword [rsp + 0x30], esi
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x1800ea10d
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ea108
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ea108
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1802990b4
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], 0xf
mov byte [rbp + 0x50], 0
lea rdx, str.Client_MD5_hash:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000b990
lea rdx, [0x1803613d8]
cmp qword [0x1803613f0], 0xf
cmova rdx, qword [0x1803613d8]
mov rcx, rax
call fcn.18000b990
lea rdx, [0x18000bb70]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r14
call fcn.1802990b4
cmp qword [rbp - 0x30], 0
je 0x1800ea298
mov rax, qword [rsp + 0x68]
lea rcx, [rbp - 0x40]
cmp qword [rax], rcx
jne 0x1800ea19a
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
mov qword [rax], rcx
mov rax, qword [rbp - 0x78]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x60]
mov dword [rax], edx
lea rdi, [rsp + 0x50]
cmp qword [rbp - 0x48], 0
je 0x1800ea258
cmp byte [rbp - 0x3f], 0
je 0x1800ea258
mov rax, qword [rsp + 0x50]
mov r8, qword [rax + 0x18]
lea rax, [fcn.18000dc60]
mov edx, 0xffffffff
lea rcx, [rsp + 0x50]
cmp r8, rax
jne 0x1800ea1da
call fcn.18000dc60
jmp 0x1800ea1dd
call r8
cmp eax, 0xffffffff
je 0x1800ea255
lea rax, [rbp + 0x168]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x90]
lea r8, [rbp + 0x70]
lea rdx, [rbp - 0x3c]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800ea21b
sub eax, 1
je 0x1800ea21f
cmp eax, 2
jne 0x1800ea255
mov byte [rbp - 0x3f], 0
jmp 0x1800ea258
mov byte [rbp - 0x3f], 0
lea rax, [rbp + 0x70]
mov rbx, qword [rbp + 0x168]
sub rbx, rax
je 0x1800ea24a
mov r9, qword [rbp - 0x30]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1800ea255
cmp byte [rbp - 0x3f], 0
sete al
test al, al
jne 0x1800ea258
mov rdi, r12
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, r12
test eax, eax
cmove rbx, rdi
mov byte [rbp - 0x34], 0
mov byte [rbp - 0x3f], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x30], r12
mov rax, qword [0x18036af40]
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x48], r12
test rbx, rbx
jne 0x1800ea2dc
jmp 0x1800ea2be
mov byte [rbp - 0x34], 0
mov byte [rbp - 0x3f], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x30], r12
mov rax, qword [0x18036af40]
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x48], r12
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
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 rdx, [0x1803613d8]
mov rcx, r15
call fcn.180008830
or esi, 1
mov dword [rsp + 0x30], esi
lea rax, [rbp - 0x10]
mov qword [rbp + 0x168], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], r13
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x50]
call fcn.18000de50
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, r15
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret