Function at 0x1400012a0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, rdx
mov r12d, ecx
xor ecx, ecx
call qword [sym.imp.MSVCP140.dll_public:_static_bool___cdecl_std::ios_base::sync_with_stdio_bool_]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
xor r13d, r13d
mov qword [rbp - 0x38], r13
mov ecx, 0x400027
call fcn.140005070
test rax, rax
je 0x14000185c
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rbp - 0x48], rcx
lea rbx, [rcx + 0x400000]
mov qword [rbp - 0x38], rbx
xor edx, edx
mov r8d, 0x400000
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x40], rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
movzx eax, byte [rbp - 0x80]
mov byte [rbp - 0x80], al
mov rsi, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x48], rsi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 1
lea ecx, [r13 + 0x18]
call fcn.140005070
mov rbx, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov edi, 1
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
lea rax, vtable.std::_Ref_count_resource_class_std::basic_istream_char__struct_std::char_traits_char______ptr64__class__int___cdecl_main_int__char____ptr64____ptr64_::_2::_lambda_1__.0
mov qword [rbx], rax
mov qword [rbx + 0x10], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], 0xf
movzx eax, byte [0x140007568]
mov byte [rbp - 0x68], al
mov byte [rbp - 0x67], r13b
lea r14, [r13 - 1]
cmp r12d, edi
jle 0x140001502
mov rdx, qword [r15 + 8]
lea rax, [0x140007568]
cmp rax, rdx
je 0x140001502
mov r8, r14
inc r8
cmp byte [rdx + r8], 0
jne 0x1400013d5
lea rcx, [rbp - 0x68]
call fcn.1400029d0
mov ecx, 0x110
call fcn.140005070
mov rsi, rax
mov qword [rsp + 0x30], rax
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
mov rcx, rsi
call fcn.1400027d0
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rcx + rsi], rax
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rcx + rsi - 4], edx
cmp qword [rsi + 0x90], 0
jne 0x14000148f
lea rdx, str.Cannot_read_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002ba0
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
mov rcx, rax
call fcn.140003050
lea rdx, [0x140002d70]
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]
jmp 0x140001774
mov qword [rsp + 0x40], rsi
mov ecx, 0x18
call fcn.140005070
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
lea rcx, vtable.std::_Ref_count_class_std::basic_ifstream_char__struct_std::char_traits_char___.0
mov qword [rax], rcx
mov qword [rax + 0x10], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rax
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400014f0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400014f0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rsi, qword [rbp - 0x78]
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
mov dword [rbp - 0x30], 0x67452301
mov dword [rbp - 0x2c], 0xefcdab89
mov dword [rbp - 0x28], 0x98badcfe
mov dword [rbp - 0x24], 0x10325476
mov dword [rbp - 0x20], 0xc3d2e1f0
mov r14d, r13d
mov dword [rbp - 0x1c], r13d
mov qword [rbp - 0x18], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
mov r13d, 0x40
test byte [rcx + rsi + 0x10], 1
jne 0x140001645
nop dword [rax + rax]
mov r8d, 0x400000
mov rdx, qword [rbp - 0x48]
mov rcx, rsi
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]
mov r15d, dword [rsi + 8]
mov rbx, qword [rbp - 0x48]
add qword [rbp - 0x18], r15
mov edi, r15d
mov r12d, r15d
mov r14d, dword [rbp - 0x1c]
test r14d, r14d
je 0x1400015e7
test r15d, r15d
je 0x140001633
mov esi, r13d
sub esi, r14d
cmp r15d, esi
cmovb esi, r15d
lea rcx, [rbp - 0x10]
add rcx, r14
movsxd rdi, esi
mov r8, rdi
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r14d, dword [rbp - 0x1c]
add r14d, esi
mov dword [rbp - 0x1c], r14d
add rbx, rdi
sub r12d, esi
mov r15d, r12d
mov edi, r12d
cmp r14d, r13d
jne 0x1400015e2
lea rcx, [rbp - 0x30]
call fcn.140003350
mov r14d, dword [rbp - 0x1c]
mov rsi, qword [rsp + 0x30]
test r15d, r15d
je 0x140001633
shr edi, 6
mov r14d, r12d
and r14d, 0x3f
test edi, edi
je 0x140001620
nop word [rax + rax]
mov r8, r13
mov rdx, rbx
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memmove
lea rcx, [rbp - 0x30]
call fcn.140003350
add rbx, r13
sub edi, 1
jne 0x140001600
mov r8d, r14d
mov rdx, rbx
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memmove
mov dword [rbp - 0x1c], r14d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
test byte [rcx + rsi + 0x10], 1
je 0x140001560
mov eax, r14d
mov byte [rbp + rax - 0x10], 0x80
mov eax, dword [rbp - 0x1c]
inc eax
mov dword [rbp - 0x1c], eax
cmp eax, 0x38
jbe 0x14000167d
sub r13d, eax
lea rcx, [rbp - 0x10]
lea rcx, [rcx + rax]
je 0x140001671
mov r8d, r13d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x30]
call fcn.140003350
mov eax, dword [rbp - 0x1c]
mov edx, 0x38
sub edx, eax
lea rcx, [rbp - 0x10]
lea rcx, [rcx + rax]
je 0x1400016a0
mov r8d, edx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
nop dword [rax + rax]
mov rax, qword [rbp - 0x18]
lea rax, [rax*8]
bswap rax
mov qword [rbp + 0x28], rax
lea rcx, [rbp - 0x30]
call fcn.140003350
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x30]
call fcn.140004590
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1400016e0
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140003050
lea rdx, [0x140007584]
mov rcx, rax
call fcn.140002ba0
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
mov rcx, rax
call fcn.140003050
lea rdx, [0x140002d70]
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]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140001765
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001760
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001760
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400050b4
xor r13d, r13d
mov edi, r13d
mov rbx, qword [rsp + 0x38]
lea r14, [r13 - 1]
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x1400017b2
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400050b4
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
test rbx, rbx
je 0x1400017f7
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400017f7
mov rbx, qword [rbp - 0x70]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x1400017f7
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000182d
mov rdx, qword [rbp - 0x38]
sub rdx, rcx
mov r8, rcx
cmp rdx, 0x1000
jb 0x140001828
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x14000185c
call fcn.1400050b4
mov eax, edi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140005050
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3