Function at 0x53dbf0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0fc7
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x676664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push str.msPadAndSignHashV2
push esi
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x420], eax
call fcn.0044ec60
mov dword [ebp - 4], 0
test edi, edi
je 0x53dd39
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x53dd39
cmp eax, 0x100
ja 0x53dd39
cmp byte [esi + 0x125], 0
mov edi, dword [ebp + 0xc]
je 0x53dcb9
lea ecx, [ebp - 0x304]
call fcn.00444390
lea ecx, [ebp - 0x304]
push ecx
push edi
mov byte [ebp - 4], 1
call fcn.00470150
add esp, 8
lea edx, [ebp - 0x304]
push edx
push str.hashAlg
mov ecx, esi
call fcn.0044e520
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0
call fcn.00444450
push esi
call fcn.00581d10
add esp, 4
test al, al
jne 0x53dd0e
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.Unable_to_acquire_private_key_function.
mov ecx, esi
call edx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x428]
push esi
push eax
push 1
push ecx
push edx
push edi
push ebx
call fcn.0053d670
add esp, 0x1c
mov bl, al
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
mov al, bl
jmp 0x53e116
mov ecx, dword [ebp - 0x420]
call fcn.00410b40
push esi
mov ecx, ebx
call fcn.004e6e80
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x53dd52
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call edx
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
xor al, al
jmp 0x53e116
push esi
lea ecx, [ebp - 0x440]
push ecx
mov ecx, eax
mov dword [ebp - 0x440], 0
call fcn.005409b0
mov dword [ebp - 0x444], eax
test eax, eax
jne 0x53dd8f
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x428]
push esi
push edx
push 1
push eax
push ecx
jmp 0x53dce9
lea ecx, [ebp - 0x41c]
call fcn.0040c500
push esi
lea edx, [ebp - 0x41c]
push edx
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004e5610
test al, al
je 0x53de9d
mov eax, dword [ebp - 0x424]
add eax, 0x18
push eax
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
call fcn.0040dd10
test al, al
jne 0x53de9d
push str.setSmartCardPin5
push esi
lea ecx, [ebp - 0x454]
call fcn.0044ec60
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [ebp - 4], 3
call edx
lea ecx, [ebp - 0x41c]
call fcn.0040d1f0
push esi
push 0
push eax
mov eax, dword [ebp - 0x444]
push 0x21
push eax
call fcn.00581ca0
add esp, 0x14
test eax, eax
jne 0x53de7c
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.0044ea80
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Incorrect_Smartcard_PIN
mov ecx, esi
call eax
cmp byte [ebx + 0x150], 0
je 0x53de7c
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 2
call fcn.0044ecf0
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.0040c590
jmp 0x53dd39
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x424]
call fcn.0040cb80
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 2
call fcn.0044ecf0
push edi
call fcn.0053d620
add esp, 4
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x53df51
push esi
mov ecx, ebx
call fcn.004e6e80
mov dword [ebp - 0x448], eax
test eax, eax
jne 0x53dee8
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_MS_Certificate.
mov ecx, esi
call eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.0040c590
jmp 0x53dd39
lea ecx, [ebp - 0x304]
call fcn.00444390
push esi
lea ecx, [ebp - 0x304]
push ecx
mov ecx, dword [ebp - 0x448]
mov byte [ebp - 4], 4
call fcn.005406a0
push str.VinRCSP
lea ecx, [ebp - 0x304]
call fcn.004465d0
test al, al
jne 0x53df32
push str.EVOLIUM_REDTRUST_CSP
lea ecx, [ebp - 0x304]
call fcn.004465d0
test al, al
je 0x53df3c
mov dword [ebp - 0x424], 0x800c
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 2
call fcn.00444450
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x42c]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x53dfd8
push edi
push str.hashAlg
mov ecx, esi
call fcn.0044e8c0
mov ecx, dword [ebp - 0x424]
push ecx
push str.algId
mov ecx, esi
call fcn.0044e8c0
mov ecx, esi
call fcn.0044ea80
push str.Failed_to_create_HCRYPTHASH
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x420]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x428]
push esi
push ecx
push 1
push edx
push eax
push edi
push ebx
call fcn.0053d670
add esp, 0x1c
lea ecx, [ebp - 0x41c]
mov bl, al
mov byte [ebp - 4], 0
call fcn.0040c590
jmp 0x53dcf5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x428]
push ecx
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.00417410
mov edx, dword [ebp - 0x42c]
add esp, 0xc
push 0
lea ecx, [ebp - 0x90]
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x53e02c
mov ecx, esi
call fcn.0044ea80
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push str.Failed_to_CryptSetHashParam
jmp 0x53df9a
xor eax, eax
mov dword [ebp - 0x43c], 0x200
test edi, edi
jne 0x53e03f
lea eax, [edi + 1]
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, dword [ebp - 0x42c]
lea edx, [ebp - 0x290]
push edx
push eax
mov eax, dword [ebp - 0x440]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x53e0a4
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.CryptSignHash_failed.
mov ecx, esi
call eax
mov ecx, esi
call fcn.0044ea80
mov ecx, dword [ebp - 0x42c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x428]
push esi
push edx
push 1
push eax
push ecx
jmp 0x53dfb8
cmp byte [esi + 0x125], 0
je 0x53e0c0
mov edx, dword [ebp - 0x43c]
push edx
push str.cryptSigSize
mov ecx, esi
call fcn.0044e8c0
mov eax, dword [ebp - 0x43c]
mov esi, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x290]
push ecx
mov ecx, esi
call fcn.00411e60
mov ecx, esi
call fcn.00411110
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x53e0f3
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.0040c590
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059af98
mov esp, ebp
pop ebp
ret