Function at 0x406ad0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x18]
push ebx
sub esp, 0x2bc
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x284], sym.___gxx_personality_sj0
mov dword [ebp - 0x280], 0x4f12dc
mov dword [ebp - 0x278], 0x407146
mov dword [ebp - 0x274], esp
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
lea eax, [ebp - 0x198]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov ecx, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x1fc], 0x6a09e667
mov dword [ebp - 0x1f8], 0xbb67ae85
mov dword [ebp - 0x1f4], 0x3c6ef372
mov dword [ebp - 0x1f0], 0xa54ff53a
mov dword [ebp - 0x1ec], 0x510e527f
mov dword [ebp - 0x1e8], 0x9b05688c
mov dword [ebp - 0x1e4], 0x1f83d9ab
mov dword [ebp - 0x1e0], 0x5be0cd19
mov dword [ebp - 0x2a0], eax
call fcn.004e2280
mov ebx, dword [0x5067b4]
xor ecx, ecx
mov dword [ebp - fcn.004e4250], 0x50858c
mov word [ebp - 0x124], cx
mov edx, ebx
mov dword [ebp - 0x1d8], ebx
lea ebx, [ebp - 0x1d8]
mov dword [ebp - 0x128], 0
add ebx, dword [edx - 0xc]
mov dword [ebp - 0x120], 0
mov ecx, ebx
mov ebx, dword [0x5067b8]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ecx], ebx
mov dword [esp], 0
mov dword [ebp - 0x298], 8
call method.std::basic_ios_char__std::char_traits_char___.init_std::basic_streambuf_char__std::char_traits_char____
mov dword [ebp - fcn.004dbc90], 0x507430
lea esi, [ebp - 0x1b8]
sub esp, 4
lea edi, [ebp - 0x1a8]
mov dword [ebp - method.virtual_thunk_to_std::__cxx11::basic_ostringstream_char__std::char_traits_char___std::allocator_char___.basic_ostringstream__], 0x507444
mov ecx, esi
mov dword [ebp - fcn.004b8b90], vtable.c_streambufIwSt11char_traitsIwEE.0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x2ac], esi
call method.std::locale.locale__
lea eax, [ebp - 0x1d4]
mov dword [ebp - fcn.004cecb0], 0x50713c
mov dword [ebp - 0x1b4], 0x10
mov dword [ebp - 0x2b0], edi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1ac], 0
mov byte [ebp - 0x1a8], 0
mov dword [esp], eax
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x298], 5
call method.std::basic_ios_char__std::char_traits_char___.init_std::basic_streambuf_char__std::char_traits_char____
lea eax, [ebp - 0xa0]
sub esp, 4
mov ecx, eax
mov dword [ebp - 0x2a4], eax
call fcn.004e2280
mov eax, dword [0x506860]
xor edx, edx
mov esi, dword [0x506864]
mov word [ebp - 0x2c], dx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], eax
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xa0], 0x50858c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp + eax - 0x110], esi
mov eax, dword [0x506860]
mov dword [ebp - 0x10c], 0
add ecx, dword [eax - 0xc]
mov dword [esp], 0
mov dword [ebp - 0x298], 9
call method.std::basic_ios_char__std::char_traits_char___.init_std::basic_streambuf_char__std::char_traits_char____
mov dword [ebp - fcn.004b1e90], 0x507a14
sub esp, 4
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xa0], 0x507a28
mov dword [ebp - 0x298], 3
call fcn.004a2c40
lea eax, [ebp - 0x108]
mov dword [esp], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x298], 4
call method.std::basic_ios_char__std::char_traits_char___.init_std::basic_streambuf_char__std::char_traits_char____
sub esp, 4
lea ecx, [ebp - 0x108]
mov dword [esp + 4], 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call method.std::basic_filebuf_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
sub esp, 8
add ecx, dword [edx - 0xc]
test eax, eax
je 0x4070a8
mov dword [esp], 0
mov dword [ebp - 0x298], 4
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
sub esp, 4
test byte [ebp - 0x8c], 5
je 0x406fca
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x406fb0
mov dword [esp + 8], 0x12
mov dword [esp + 4], 0
mov dword [esp], str.WindowsSystem32_
mov ecx, dword [ebp + 0xc]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.find_char_const__unsigned_int__unsigned_int__const
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4070d0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
add eax, 8
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [esp + 8], 0
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov dword [esp], eax
add edx, eax
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x298], 1
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char__char__char__std::forward_iterator_tag_
sub esp, 0xc
mov dword [ebp - 0xa0], sym.virtual_thunk_to_std::basic_ifstream_char__std::char_traits_char___::basic_ifstream__
lea ecx, [ebp - 0x108]
mov dword [ebp - fcn.004a3160], 0x5078b4
mov dword [ebp - 0x298], 7
mov dword [ebp - fcn.004b1e90], 0x507a14
call method.std::basic_filebuf_char__std::char_traits_char___.close__
lea ecx, [ebp - 0xe4]
call method.std::__basic_file_char_.__basic_file__
lea ecx, [ebp - 0xec]
mov dword [ebp - fcn.004b8b90], vtable.c_streambufIwSt11char_traitsIwEE.0
call fcn.004c3f30
mov eax, dword [0x506860]
mov edx, dword [0x506864]
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x110], eax
mov eax, dword [eax - 0xc]
mov dword [ebp + eax - 0x110], edx
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0xa0], 0x50858c
call method.std::ios_base.ios_base__
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - fcn.004dbc90], 0x507430
mov dword [ebp - method.virtual_thunk_to_std::__cxx11::basic_ostringstream_char__std::char_traits_char___std::allocator_char___.basic_ostringstream__], 0x507444
mov dword [ebp - fcn.004cecb0], 0x50713c
cmp eax, dword [ebp - 0x2b0]
je 0x406f4c
mov dword [esp], eax
call sym.operator_delete_void_
mov dword [ebp - fcn.004b8b90], vtable.c_streambufIwSt11char_traitsIwEE.0
mov ecx, dword [ebp - 0x2ac]
call fcn.004c3f30
mov eax, dword [0x5067b4]
mov esi, dword [0x5067b8]
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x1d8], eax
mov eax, dword [eax - 0xc]
mov dword [ebp + eax - 0x1d8], esi
mov dword [ebp - fcn.004e4250], 0x50858c
call method.std::ios_base.ios_base__
mov eax, dword [ebp - 0x2a8]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x4f61b3
mov ecx, dword [ebp + 0xc]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.compare_char_const__const
sub esp, 4
test eax, eax
jne 0x406e27
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0x1d8]
mov dword [esp], eax
mov dword [ebp - 0x298], 1
call method.std::ostream.operator___std::basic_streambuf_char__std::char_traits_char____
lea eax, [ebp - 0x258]
mov byte [ebp - 0x258], 0
sub esp, 4
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x25c], 0
test eax, eax
je 0x407120
mov edx, dword [ebp - 0x1c8]
mov ecx, dword [ebp - 0x1c4]
cmp eax, edx
jbe 0x4070c0
sub eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x260]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x298], 6
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_replace_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
lea eax, [ebp - 0x260]
mov dword [esp + 4], eax
lea eax, [ebp - 0x248]
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x298], 2
call method.SHA256.operator___std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov eax, dword [ebp - 0x260]
lea edi, [ebp - 0x258]
sub esp, 8
cmp eax, edi
je 0x406e8b
mov dword [esp], eax
call sym.operator_delete_void_
jmp 0x406e8b
mov eax, dword [ecx + 0x14]
or eax, 4
mov dword [esp], eax
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
jmp 0x406e09
sub edx, ecx
mov dword [esp + 0xc], edx
jmp 0x407030
mov eax, dword [ebp + 0xc]
mov dword [esp], str.Failed_to_open_file:
mov dword [esp + 4], eax
mov dword [ebp - 0x298], 1
call method.void_log_char__22___std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char______char_const_____22___std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 8]
add eax, 8
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [esp + 8], 0
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 4]
mov dword [esp], eax
add edx, eax
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char__char__char__std::forward_iterator_tag_
jmp 0x406e88
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0x260]
mov dword [esp], eax
mov dword [ebp - 0x298], 6
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_assign_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
sub esp, 4
jmp 0x40705b