Function at 0x10181ac0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x101aad17
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov esi, dword [esp + 0x47c]
mov edi, dword [esp + 0x470]
mov ebp, dword [esp + 0x468]
mov ebx, dword [esp + 0x478]
push str.msPadAndSignHashV2
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.10061630
test edi, edi
mov dword [esp + 0x460], 0
je 0x10181c20
mov eax, dword [esp + 0x474]
test eax, eax
je 0x10181c20
cmp eax, 0x100
ja 0x10181c20
cmp byte [esi + 0x125], 0
mov edi, dword [esp + 0x46c]
je 0x10181ba8
lea ecx, [esp + 0x48]
call fcn.10010fb0
lea eax, [esp + 0x48]
push eax
push edi
mov byte [esp + 0x468], 1
call fcn.1007cdc0
add esp, 8
lea ecx, [esp + 0x48]
push ecx
push str.hashAlg
mov ecx, esi
call fcn.10060fd0
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 0
call fcn.10011070
push esi
call fcn.100d55a0
add esp, 4
test al, al
jne 0x10181bfb
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Unable_to_acquire_private_key_function.
mov ecx, esi
call eax
mov ecx, dword [esp + 0x474]
mov edx, dword [esp + 0x18]
push esi
push ebx
push 1
push ecx
push edx
push edi
push ebp
call fcn.101814f0
add esp, 0x1c
mov bl, al
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], 0xffffffff
call fcn.100616a0
mov al, bl
jmp 0x10182062
mov ecx, ebx
call fcn.10017ff0
push esi
mov ecx, ebp
call fcn.100b6720
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10181c3b
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], 0xffffffff
call fcn.100616a0
xor al, al
jmp 0x10182062
push esi
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov dword [esp + 0x38], 0
call fcn.10159b60
test eax, eax
mov dword [esp + 0x34], eax
jne 0x10181c90
mov edx, dword [esp + 0x474]
mov eax, dword [esp + 0x18]
push esi
push ebx
push 1
push edx
push eax
push edi
push ebp
call fcn.101814f0
add esp, 0x1c
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0x460], 0xffffffff
call fcn.100616a0
mov al, bl
jmp 0x10182062
lea ecx, [esp + 0xbc]
call fcn.1000a870
push esi
lea ecx, [esp + 0xc0]
push ecx
mov ecx, ebp
mov byte [esp + 0x468], 2
call fcn.100b4e40
test al, al
je 0x10181daa
mov eax, dword [esp + 0x14]
add eax, 0x18
push eax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x18], eax
call fcn.1000c6c0
test al, al
jne 0x10181daa
push str.setSmartCardPin5
push esi
lea ecx, [esp + 0x44]
call fcn.10061630
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [esp + 0x464], 3
call eax
lea ecx, [esp + 0xbc]
call fcn.1000b6e0
mov ecx, dword [esp + 0x34]
push esi
push 0
push eax
push 0x21
push ecx
call fcn.100d5510
add esp, 0x14
test eax, eax
jne 0x10181d88
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.CryptSetProvParam_failed.
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_set_the_smartcard_PIN.__3_
mov ecx, esi
call eax
mov ecx, esi
call fcn.10061460
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Incorrect_Smartcard_PIN
mov ecx, esi
call eax
cmp byte [ebp + 0x150], 0
je 0x10181d88
lea ecx, [esp + 0x3c]
mov byte [esp + 0x460], 2
call fcn.100616a0
lea ecx, [esp + 0xbc]
mov byte [esp + 0x460], 0
call fcn.1000a910
jmp 0x10181c20
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.1000b020
lea ecx, [esp + 0x3c]
mov byte [esp + 0x460], 2
call fcn.100616a0
push edi
call fcn.101814a0
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10181e57
push esi
mov ecx, ebp
call fcn.100b6720
test eax, eax
mov dword [esp + 0x38], eax
jne 0x10181df6
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_MS_Certificate.
mov ecx, esi
call eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x460], 0
call fcn.1000a910
jmp 0x10181c20
lea ecx, [esp + 0x48]
call fcn.10010fb0
push esi
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x468], 4
call fcn.10159840
push str.VinRCSP
lea ecx, [esp + 0x4c]
call fcn.100131b0
test al, al
jne 0x10181e3a
push str.EVOLIUM_REDTRUST_CSP
lea ecx, [esp + 0x4c]
call fcn.100131b0
test al, al
je 0x10181e42
mov dword [esp + 0x14], 0x800c
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 2
call fcn.10011070
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10181ed9
push edi
push str.hashAlg
mov ecx, esi
call fcn.100612a0
mov ecx, dword [esp + 0x14]
push ecx
push str.algId
mov ecx, esi
call fcn.100612a0
mov ecx, esi
call fcn.10061460
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_create_HCRYPTHASH
mov ecx, esi
call eax
mov ecx, dword [esp + 0x474]
mov edx, dword [esp + 0x18]
push esi
push ebx
push 1
push ecx
push edx
push edi
push ebp
call fcn.101814f0
add esp, 0x1c
lea ecx, [esp + 0xbc]
mov bl, al
mov byte [esp + 0x460], 0
call fcn.1000a910
jmp 0x10181be0
mov eax, dword [esp + 0x474]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1dc]
push edx
call fcn.10016e70
mov ecx, dword [esp + 0x28]
add esp, 0xc
push 0
lea eax, [esp + 0x1d8]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x10181f67
mov ecx, esi
call fcn.10061460
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_CryptSetHashParam
mov ecx, esi
call edx
mov eax, dword [esp + 0x474]
mov ecx, dword [esp + 0x18]
push esi
push ebx
push 1
push eax
push ecx
push edi
push ebp
call fcn.101814f0
add esp, 0x1c
lea ecx, [esp + 0xbc]
mov bl, al
mov byte [esp + 0x460], 0
call fcn.1000a910
jmp 0x10181be0
xor eax, eax
test edi, edi
mov dword [esp + 0x2c], 0x200
jne 0x10181f7a
mov eax, 1
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x258]
push ecx
push eax
mov eax, dword [esp + 0x28]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x10181ff4
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.CryptSignHash_failed.
mov ecx, esi
call eax
mov ecx, esi
call fcn.10061460
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x474]
mov eax, dword [esp + 0x18]
push esi
push ebx
push 1
push edx
push eax
push edi
push ebp
call fcn.101814f0
add esp, 0x1c
lea ecx, [esp + 0xbc]
mov bl, al
mov byte [esp + 0x460], 0
call fcn.1000a910
jmp 0x10181be0
cmp byte [esi + 0x125], 0
je 0x1018200e
mov ecx, dword [esp + 0x2c]
push ecx
push str.cryptSigSize
mov ecx, esi
call fcn.100612a0
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x258]
push eax
mov ecx, ebx
call fcn.10019380
mov ecx, ebx
call fcn.100185a0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10182038
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x460], 0
call fcn.1000a910
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], 0xffffffff
call fcn.100616a0
mov al, 1
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.1018f87e
add esp, 0x450
ret