Function at 0x1401da5a0
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 - 0x438]
sub rsp, 0x538
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov r15d, r9d
mov r12, r8
mov r14d, edx
mov rsi, rcx
mov rdi, qword [rbp + 0x4a0]
mov rbx, qword [rbp + 0x4a8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
lea r8, str.msPadAndSignHashV2
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.1400a0cf0
nop
test r12, r12
je 0x1401da6ef
lea eax, [r15 - 1]
cmp eax, 0xff
ja 0x1401da6ef
cmp byte [rbx + 0x161], 0
je 0x1401da683
xorps xmm0, 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
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
lea rcx, [rbp - 0x80]
call fcn.14007eda0
nop
lea rdx, [rbp - 0x80]
mov ecx, r14d
call fcn.1400cb670
lea r8, [rbp - 0x80]
lea rdx, str.hashAlg
mov rcx, rbx
call fcn.1400a18e0
nop
lea rcx, [rbp - 0x80]
call fcn.14007edf0
mov rcx, rbx
call fcn.1401d9990
test al, al
jne 0x1401da6c4
mov rax, qword [rbx]
lea rdx, str.Unable_to_acquire_private_key_function.
mov rcx, rbx
call qword [rax + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x20], 1
mov r9d, r15d
mov r8, r12
mov edx, r14d
mov rcx, rsi
call fcn.1401d9f50
movzx ebx, al
jmp 0x1401da6f1
mov rcx, rdi
call fcn.14008ed30
mov rdx, rbx
mov rcx, rsi
call fcn.140113510
mov r13, rax
test rax, rax
jne 0x1401da720
mov rax, qword [rbx]
lea rdx, str.Failed_to_get_MsCertificate.
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rbp + 0x10]
call fcn.1400a0e00
movzx eax, bl
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1401feb70
add rsp, 0x538
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x54], 0
mov r8, rbx
lea rdx, [rsp + 0x54]
mov rcx, r13
call fcn.14019b320
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1401da69f
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x30]
call fcn.140053d90
nop
mov r8, rbx
lea rdx, [rbp + 0x30]
mov rcx, rsi
call fcn.140114110
test al, al
je 0x1401da851
lea rdx, [r13 + 0x28]
lea rcx, [rbp + 0x30]
call fcn.140055900
test al, al
jne 0x1401da851
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea r8, str.setSmartCardPin5
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 + 0x30]
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 0x1401da839
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.__3_
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 [rsi + 0x1d0], 0
je 0x1401da839
lea rcx, [rsp + 0x60]
call fcn.1400a0e00
xor bl, bl
jmp 0x1401daa94
lea rdx, [rbp + 0x30]
lea rcx, [r13 + 0x28]
call fcn.1400554a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400a0e00
mov ecx, r14d
call fcn.1401d9a10
mov r13d, eax
test eax, eax
jne 0x1401da909
mov rdx, rbx
mov rcx, rsi
call fcn.140113510
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1401da890
mov rax, qword [rbx]
lea rdx, str.Failed_to_get_MS_Certificate.
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x1401daa94
xorps xmm0, 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
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
lea rcx, [rbp - 0x80]
call fcn.14007eda0
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x48]
call fcn.140199e10
lea rdx, str.VinRCSP
lea rcx, [rbp - 0x80]
call fcn.140084250
test al, al
jne 0x1401da8fa
lea rdx, str.EVOLIUM_REDTRUST_CSP
lea rcx, [rbp - 0x80]
call fcn.140084250
test al, al
je 0x1401da900
mov r13d, 0x800c
lea rcx, [rbp - 0x80]
call fcn.14007edf0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1401da96c
mov r8d, r14d
lea rdx, str.hashAlg
mov rcx, rbx
call fcn.1400a1520
mov r8d, r13d
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]
jmp 0x1401daa24
mov r8d, r15d
mov rdx, r12
lea rcx, [rbp + 0x1a0]
call fcn.140060e30
xor r9d, r9d
lea r8, [rbp + 0x1a0]
lea edx, [r9 + 2]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x1401da9c0
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]
jmp 0x1401daa24
mov dword [rsp + 0x50], 0x200
test r14d, r14d
mov r9d, 0
sete r9b
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x220]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x1401daa49
mov rax, qword [rbx]
lea rdx, str.CryptSignHash_failed.
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, rbx
call fcn.1400a1eb0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x20], 1
mov r9d, r15d
mov r8, r12
mov edx, r14d
mov rcx, rsi
call fcn.1401d9f50
movzx ebx, al
jmp 0x1401daa94
cmp byte [rbx + 0x161], 0
je 0x1401daa66
mov r8d, dword [rsp + 0x50]
lea rdx, str.cryptSigSize
mov rcx, rbx
call fcn.1400a1520
mov r8d, dword [rsp + 0x50]
lea rdx, [rbp + 0x220]
mov rcx, rdi
call fcn.14008cf40
mov rcx, rdi
call fcn.140092db0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401daa92
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov bl, 1
lea rcx, [rbp + 0x30]
call fcn.140053df0
jmp 0x1401da6f1