Function at 0x180003a60
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 - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1800663c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp + 7], rcx
xor r14d, r14d
mov qword [rbp + 7], r14
mov qword [rbp - 1], r14
mov dword [rbp - 5], r14d
mov dword [rbp + 0x37], r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], send
mov byte [rbp + 0x17], r14b
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SHA256
lea rcx, [rbp + 7]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jns 0x180003c14
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
mov ecx, 0x30
call fcn.18004f740
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], 0x21
mov qword [rbp - 0x11], 0x2f
movups xmm0, xmmword [str.Failed_to_open_algorithm_provider]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x18005a200]
movups xmmword [rax + 0x10], xmm1
movzx ecx, byte [0x18005a210]
mov byte [rax + 0x20], cl
mov byte [rax + 0x21], r14b
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007560
lea rdx, str._Error_Code:
mov rcx, rax
call fcn.180007150
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x180007330]
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 [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180003bbb
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003bb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003bb6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004f77c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], send
mov byte [rdi], 0
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x180004167
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003c0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800040df
call fcn.18004f77c
jmp 0x180004167
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 1]
mov rcx, qword [rbp + 7]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jns 0x180003d2e
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
mov ecx, 0x20
call fcn.18004f740
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], socket
mov qword [rbp - 0x11], 0x1f
movups xmm0, xmmword [str.Failed_to_create_hash]
movups xmmword [rax], xmm0
mov ecx, dword [0x18005a228]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x18005a22c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007560
lea rdx, str._Error_Code:
mov rcx, rax
call fcn.180007150
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x180007330]
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 [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180003d1d
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003d18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003d18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004f77c
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x180003bbb
mov r8d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x180003d3c
mov rbx, qword [rbx]
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [rbp - 1]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x180003e4f
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
mov ecx, 0x20
call fcn.18004f740
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], reloc.WS2_32.dll_send
mov qword [rbp - 0x11], 0x1f
movups xmm0, xmmword [str.Failed_to_hash_data]
movups xmmword [rax], xmm0
movzx ecx, word [0x18005a240]
mov word [rax + 0x10], cx
movzx ecx, byte [0x18005a242]
mov byte [rax + 0x12], cl
mov byte [rax + 0x13], 0
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007560
lea rdx, str._Error_Code:
mov rcx, rax
call fcn.180007150
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x180007330]
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 [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180003e34
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003e2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003e2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004f77c
mov rcx, qword [rbp - 1]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x180003bbb
mov dword [rsp + 0x28], r14d
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 5]
lea rdx, str.HashDigestLength
mov rcx, qword [rbp - 1]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jns 0x180003f69
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
mov ecx, 0x20
call fcn.18004f740
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], 0x19
mov qword [rbp - 0x11], 0x1f
movups xmm0, xmmword [str.Failed_to_get_hash_length]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x18005a280]
movsd qword [rax + 0x10], xmm0
movzx ecx, byte [0x18005a288]
mov byte [rax + 0x18], cl
mov byte [rax + 0x19], 0
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007560
lea rdx, str._Error_Code:
mov rcx, rax
call fcn.180007150
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x180007330]
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 [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180003e34
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003e2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003e2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, dword [rbp - 5]
call fcn.18004fd9c
mov rsi, rax
xor r9d, r9d
mov r8d, dword [rbp - 5]
mov rdx, rax
mov rcx, qword [rbp - 1]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x1800040e6
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
mov ecx, 0x20
call fcn.18004f740
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], socket
mov qword [rbp - 0x11], 0x1f
movups xmm0, xmmword [str.Failed_to_finish_hash]
movups xmmword [rax], xmm0
mov ecx, dword [0x18005a2a0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x18005a2a4]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007560
lea rdx, str._Error_Code:
mov rcx, rax
call fcn.180007150
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x180007330]
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 [rbp - 0x11]
cmp rdx, 0xf
jbe 0x18000406e
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004069
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004069
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004f77c
mov rcx, rsi
call fcn.18004f77c
mov rcx, qword [rbp - 1]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], send
mov byte [rdi], 0
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x180004167
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003c0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003c0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 1]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov ebx, r14d
cmp dword [rbp - 5], r14d
jbe 0x180004150
nop word [rax + rax]
mov eax, ebx
movzx r8d, byte [rax + rsi]
lea rdx, str._02x
lea rcx, [rbp + 0xf]
call fcn.180007370
lea rax, [rbp + 0xf]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180004132
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x17]
call fcn.180006d20
inc ebx
cmp ebx, dword [rbp - 5]
jb 0x180004110
mov rcx, rsi
call fcn.18004f77c
movups xmm0, xmmword [rbp + 0x17]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x27]
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.18004f720
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret