Function at 0x140085480
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rbp + 0xb0], rax
movsxd rbx, edx
mov r9, r8
mov rdi, rcx
test rcx, rcx
je 0x1400857fb
mov esi, 4
lea ecx, [rsi - 2]
cmp ebx, 3
jle 0x1400854eb
mov r8, qword [0x1401b0508]
movzx eax, word [rbx + rdi - 3]
cmp ax, word [r8]
jne 0x1400854eb
movzx eax, byte [rbx + rdi - 1]
cmp al, byte [r8 + 2]
jne 0x1400854eb
mov esi, 6
mov ecx, 3
sub ebx, ecx
sub ebx, esi
sub ebx, 0x80
js 0x1400857fb
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 0x1400857fb
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 0x140085581
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.1400fb890
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 0x1400855d7
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 0x1400855d7
xor r9d, r9d
lea rdx, str.ECDSA_P256
xor r8d, r8d
lea rcx, [rsp + 0x58]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x1400855f2
mov rcx, qword [rsp + 0x48]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov rcx, qword [rsp + 0x50]
call sub.bcrypt.dll_BCryptDestroyHash
jmp 0x14008555c
movaps xmm0, xmmword [0x140151c30]
lea r9, [rsp + 0x60]
movaps xmm1, xmmword [0x140151c40]
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 [0x140151c50]
movups xmmword [rbp + 0x78], xmm1
mov dword [rsp + 0x40], 0x31534345
movaps xmm1, xmmword [0x140151c60]
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 0x140085691
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 0x140085557
xor eax, eax
mov byte [rbp - 0x10], al
lea eax, [rbx + rsi]
add rax, rdi
je 0x1400856e0
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 0x140085714
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.14010c394
mov dword [rax], 0x16
call fcn.140103210
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.140085810
test al, al
jne 0x140085768
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:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterSignatureCheck.cpp
mov ecx, 1
call fcn.14007d3e0
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 0x1400857c7
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:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterSignatureCheck.cpp
mov ecx, 1
call fcn.14007d3e0
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 0x14008555e
xor al, al
jmp 0x140085566