Function at 0x140004a10
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x1400f8100]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x60], rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x7c], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SHA256
lea rcx, [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
je 0x140004ac1
lea rdx, str.Error_opening_algorithm_provider
lea rcx, [0x1400fa8b0]
call fcn.140010860
mov rcx, rax
call fcn.140010b10
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400e4add]
mov rcx, rbx
call fcn.140011e70
jmp 0x140004dc3
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x78]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
je 0x140004b1b
lea rdx, str.Error_getting_hash_object_size
lea rcx, [0x1400fa8b0]
call fcn.140010860
mov rcx, rax
call fcn.140010b10
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x140004a9c
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0x78]
lea r8, [rbp + 0x90]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
je 0x140004b77
lea rdx, str.Error_creating_hash
lea rcx, [0x1400fa8b0]
call fcn.140010860
mov rcx, rax
call fcn.140010b10
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x140004a9c
mov r8d, dword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140004b85
mov rdi, qword [rdi]
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x140004bd2
lea rdx, str.Error_hashing_data
lea rcx, [0x1400fa8b0]
call fcn.140010860
mov rcx, rax
call fcn.140010b10
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x140004a9c
xor r9d, r9d
mov r8d, 0x20
lea rdx, [rbp + 0x70]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
je 0x140004c26
lea rdx, str.Error_finishing_hash
lea rcx, [0x1400fa8b0]
call fcn.140010860
mov rcx, rax
call fcn.140010b10
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x140004a9c
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x80]
call fcn.1400c01a0
lea rcx, [rbp - 0x80]
call fcn.140009b30
nop
mov edi, r14d
lea rsi, [rbp + 0x70]
nop dword [rax + rax]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, dword [rbp + rcx - 0x68]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rbp + rcx - 0x68], eax
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140024b10
mov r8, qword [rax]
mov rcx, qword [rbp - 0x80]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 0x80]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x28], 0x30
movzx edx, byte [rsi]
lea rcx, [rbp - 0x80]
call fcn.14000b530
inc edi
lea rsi, [rsi + 1]
cmp edi, 0x20
jb 0x140004c50
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x40], 4
movups xmmword [rsp + 0x48], xmm0
mov rcx, qword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140004d1d
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140004d1d
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140004d4e
test cl, 4
jne 0x140004d44
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140004d44
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140004d4e
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140004d5c
mov rcx, rbx
call fcn.1400102f0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.140009a30
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140024938
nop
mov rax, rbx
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.140028980
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret