Function at 0x14021b720
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
movsxd rbx, edx
mov r9, r8
mov rdi, rcx
test rcx, rcx
je 0x14021ba9b
mov esi, 4
lea ecx, [rsi - 2]
cmp ebx, 3
jle 0x14021b78b
mov r8, qword [case.0x1400bf494.23]
movzx eax, word [rbx + rdi - 3]
cmp ax, word [r8]
jne 0x14021b78b
movzx eax, byte [rbx + rdi - 1]
cmp al, byte [r8 + 2]
jne 0x14021b78b
mov esi, 6
mov ecx, 3
sub ebx, ecx
sub ebx, esi
sub ebx, 0x80
js 0x14021ba9b
mov dword [r9], ebx
lea rdx, str.SHA256
xor r9d, r9d
lea rcx, [rsp + 0x48]
xor r8d, r8d
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x14021ba9b
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x1c0], r14
xor r9d, r9d
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jns 0x14021b821
mov rcx, qword [rsp + 0x48]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
xor al, al
mov r14, qword [rsp + 0x1c0]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x1c8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call sub.bcrypt.dll_BCryptHashData
test eax, eax
js 0x14021b877
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
lea r8d, [r9 + 0x20]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
js 0x14021b877
xor r9d, r9d
lea rdx, str.ECDSA_P256
xor r8d, r8d
lea rcx, [rsp + 0x58]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x14021b892
mov rcx, qword [rsp + 0x48]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov rcx, qword [rsp + 0x50]
call sub.bcrypt.dll_BCryptDestroyHash
jmp 0x14021b7fc
movaps xmm0, xmmword [0x140328f10]
lea r9, [rsp + 0x60]
movaps xmm1, xmmword [0x140328f20]
lea r8, str.ECCPUBLICBLOB
mov rcx, qword [rsp + 0x58]
xor edx, edx
movups xmmword [rbp + 0x68], xmm0
mov dword [rsp + 0x30], r14d
movaps xmm0, xmmword [0x140328f30]
movups xmmword [rbp + 0x78], xmm1
mov dword [rsp + 0x40], 0x31534345
movaps xmm1, xmmword [0x140328f40]
mov dword [rsp + 0x44], 0x20
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x60]
mov dword [rsp + 0x28], 0x48
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x88], xmm0
movups xmmword [rbp + 0x98], xmm1
call sub.bcrypt.dll_BCryptImportKeyPair
test eax, eax
jns 0x14021b931
mov rcx, qword [rsp + 0x48]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov rcx, qword [rsp + 0x50]
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, qword [rsp + 0x58]
xor edx, edx
jmp 0x14021b7f7
xor eax, eax
mov byte [rbp - 0x10], al
lea eax, [rbx + rsi]
add rax, rdi
je 0x14021b980
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [rax + 0x50]
movaps xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax + 0x60]
movaps xmmword [rbp - 0x40], xmm1
movups xmm1, xmmword [rax + 0x70]
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm1
jmp 0x14021b9b4
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call fcn.1402be600
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1402ba3cc
xorps xmm0, xmm0
lea r8, [rbp + 0x20]
mov edx, 0x80
lea rcx, [rsp + 0x70]
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
call fcn.14021bab0
test al, al
jne 0x14021ba08
lea rax, str.Unable_to_convert_hex_string_into_binary
mov r9d, 0xd1
lea r8, str.XMLUpdater::v2::NSignatureCheck::ForceVerifySignature
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT0a209782_47a3_49ff_a189_59d4c06152f0WebAdvisor_XmlUpdater_srcXmlUpdaterSignatureCheck.cpp
mov ecx, 1
call fcn.140213350
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x30], r14d
lea r8, [rbp]
mov dword [rsp + 0x28], 0x40
mov r9d, 0x20
xor edx, edx
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptVerifySignature
test eax, eax
setns bl
test eax, eax
jns 0x14021ba67
lea rax, str.File_Signature_Verification_failed
mov r9d, 0xd9
lea r8, str.XMLUpdater::v2::NSignatureCheck::ForceVerifySignature
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT0a209782_47a3_49ff_a189_59d4c06152f0WebAdvisor_XmlUpdater_srcXmlUpdaterSignatureCheck.cpp
mov ecx, 1
call fcn.140213350
mov rcx, qword [rsp + 0x48]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov rcx, qword [rsp + 0x58]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov rcx, qword [rsp + 0x50]
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, qword [rsp + 0x60]
call sub.bcrypt.dll_BCryptDestroyKey
movzx eax, bl
jmp 0x14021b7fe
xor al, al
jmp 0x14021b806