Function at 0x1401d9a60
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov esi, r9d
mov r15d, r8d
mov r12, rdx
mov qword [rsp + 0x48], rdx
mov rdi, rcx
mov r14, qword [rbp + 0x490]
mov rbx, qword [rbp + 0x498]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
lea r8, str.msCalcSslCertVerify
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400a0cf0
nop
test r12, r12
je 0x1401d9ba2
lea eax, [r15 - 1]
cmp eax, 0x7f
ja 0x1401d9ba2
cmp byte [rbx + 0x161], 0
je 0x1401d9b47
xorps xmm0, 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
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
lea rcx, [rbp - 0x70]
call fcn.14007eda0
nop
lea rdx, [rbp - 0x70]
mov ecx, esi
call fcn.1400cb670
lea r8, [rbp - 0x70]
lea rdx, str.hashAlg
mov rcx, rbx
call fcn.1400a18e0
nop
lea rcx, [rbp - 0x70]
call fcn.14007edf0
mov rcx, rbx
call fcn.1401d9990
test al, al
jne 0x1401d9b77
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r14
mov byte [rsp + 0x20], 1
mov r9d, r15d
mov r8, r12
mov edx, esi
mov rcx, rdi
call fcn.1401d9f50
movzx ebx, al
jmp 0x1401d9ba4
mov rcx, r14
call fcn.14008ed30
mov rdx, rbx
mov rcx, rdi
call fcn.140113510
mov r13, rax
test rax, rax
jne 0x1401d9bd4
mov rax, qword [rbx]
lea rdx, str.Failed_to_get_MsCertificate.
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x78]
call fcn.1400a0e00
movzx eax, bl
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1401feb70
add rsp, 0x528
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.14019b320
mov qword [rsp + 0x40], rax
mov r8d, dword [rsp + 0x50]
lea rdx, str.dwKeySpec
mov rcx, rbx
cmp r8d, 0xffffffff
jne 0x1401d9c16
mov r9, qword [rbx]
lea r8, str.CERT_NCRYPT_KEY_SPEC
call qword [r9 + 0x58]
jmp 0x1401d9c45
cmp r8d, 2
jne 0x1401d9c2b
mov rax, qword [rbx]
lea r8, str.AT_SIGNATURE
call qword [rax + 0x58]
jmp 0x1401d9c45
cmp r8d, 1
jne 0x1401d9c40
mov rax, qword [rbx]
lea r8, str.AT_KEYEXCHANGE
call qword [rax + 0x58]
jmp 0x1401d9c45
call fcn.1400a1e30
cmp qword [rsp + 0x40], r12
je 0x1401d9f1b
cmp dword [rsp + 0x50], 0xffffffff
je 0x1401d9f1b
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x20]
call fcn.140053d90
nop
mov r8, rbx
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.140114110
test al, al
je 0x1401d9d66
lea rdx, [r13 + 0x28]
lea rcx, [rbp + 0x20]
call fcn.140055900
test al, al
jne 0x1401d9d66
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea r8, str.setSmartCardPin6
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400a0cf0
nop
mov rax, qword [rbx]
lea rdx, str.setting_smart_card_pin..
mov rcx, rbx
call qword [rax + 0x30]
lea rcx, [rbp + 0x20]
call fcn.1400559d0
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rax
lea edx, [r9 + 0x21]
mov rcx, qword [rsp + 0x40]
call fcn.1401d9810
test eax, eax
jne 0x1401d9d4e
mov rax, qword [rbx]
lea rdx, str.CryptSetProvParam_failed.
mov rcx, rbx
call qword [rax + 0x28]
mov rax, qword [rbx]
lea rdx, str.Failed_to_set_the_smartcard_PIN.__4_
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, rbx
call fcn.1400a1eb0
mov rax, qword [rbx]
lea rdx, str.Incorrect_Smartcard_PIN
mov rcx, rbx
call qword [rax + 0x30]
cmp byte [rdi + 0x1d0], 0
je 0x1401d9d4e
lea rcx, [rsp + 0x60]
call fcn.1400a0e00
xor bl, bl
jmp 0x1401d9f0d
lea rdx, [rbp + 0x20]
lea rcx, [r13 + 0x28]
call fcn.1400554a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400a0e00
mov eax, 0x8008
cmp esi, 0x10
jne 0x1401d9d74
mov edi, eax
jmp 0x1401d9da8
cmp esi, 7
jne 0x1401d9d80
mov edi, 0x800c
jmp 0x1401d9da8
cmp esi, 2
jne 0x1401d9d8c
mov edi, 0x800d
jmp 0x1401d9da8
cmp esi, 3
jne 0x1401d9d98
mov edi, 0x800e
jmp 0x1401d9da8
mov edi, r12d
cmp esi, 5
setne dil
add edi, 0x8003
cmp r15d, 0x24
cmove edi, eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1401d9e13
mov r8d, esi
lea rdx, str.hashAlg
mov rcx, rbx
call fcn.1400a1520
mov r8d, edi
lea rdx, str.algId
mov rcx, rbx
call fcn.1400a1520
mov rcx, rbx
call fcn.1400a1eb0
mov rax, qword [rbx]
lea rdx, str.Failed_to_create_HCRYPTHASH
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x1401d9f0d
mov r8d, r15d
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp + 0x190]
call fcn.140060e30
xor r9d, r9d
lea r8, [rbp + 0x190]
lea edx, [r9 + 2]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x1401d9e6e
mov rcx, rbx
call fcn.1400a1eb0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rax, qword [rbx]
lea rdx, str.Failed_to_CryptSetHashParam
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x1401d9f0d
mov dword [rsp + 0x54], 0x200
test esi, esi
sete r12b
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x1401d9ec2
mov rcx, rbx
call fcn.1400a1eb0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor bl, bl
jmp 0x1401d9f0d
cmp byte [rbx + 0x161], 0
je 0x1401d9edf
mov r8d, dword [rsp + 0x54]
lea rdx, str.cryptSigSize
mov rcx, rbx
call fcn.1400a1520
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp + 0x210]
mov rcx, r14
call fcn.14008cf40
mov rcx, r14
call fcn.140092db0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401d9f0b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov bl, 1
lea rcx, [rbp + 0x20]
call fcn.140053df0
jmp 0x1401d9ba4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r14
mov byte [rsp + 0x20], 1
mov r9d, r15d
mov r8, qword [rsp + 0x48]
mov edx, esi
mov rcx, rdi
call fcn.1401d9f50
movzx ebx, al
jmp 0x1401d9ba4