Function at 0x555cd0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74c047
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x899944]
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 ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push str.msPadAndSignHashV2
push esi
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x424], eax
call fcn.00474ef0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x555dfe
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x555dfe
cmp eax, 0x80
ja 0x555dfe
cmp byte [esi + 0xad], 0
je 0x555d99
lea ecx, [ebp - 0x304]
call fcn.0040ac30
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x304]
push ecx
push edx
mov byte [ebp - 4], 1
call fcn.00488ca0
add esp, 8
lea eax, [ebp - 0x304]
push eax
push str.hashAlg
mov ecx, esi
call fcn.00474890
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0
call fcn.0040acf0
push esi
call fcn.0056a410
mov ecx, dword [ebp - 0x424]
add esp, 4
test al, al
jne 0x555ddd
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push esi
push ecx
push 1
push edx
push ebx
push eax
push edi
call fcn.00555890
add esp, 0x1c
lea ecx, [ebp - 0x434]
mov bl, al
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, bl
jmp 0x556131
call fcn.0040fb90
push esi
mov ecx, edi
call fcn.0052a270
mov ebx, eax
test ebx, ebx
jne 0x555e17
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
xor al, al
jmp 0x556131
push esi
lea ecx, [ebp - 0x438]
push ecx
mov ecx, ebx
mov dword [ebp - 0x438], 0
call fcn.0052f5c0
mov dword [ebp - 0x43c], eax
test eax, eax
jne 0x555e58
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x440]
push esi
push edx
mov edx, dword [ebp + 0xc]
push 1
push eax
push ecx
push edx
jmp 0x555db9
lea ecx, [ebp - 0x41c]
call fcn.00403e00
push esi
lea eax, [ebp - 0x41c]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00529580
test al, al
je 0x555f1c
add ebx, 0x18
push ebx
lea ecx, [ebp - 0x41c]
call fcn.004059e0
test al, al
jne 0x555f1c
push str.setSmartCardPin
push esi
lea ecx, [ebp - 0x44c]
call fcn.00474ef0
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [ebp - 4], 3
call eax
lea ecx, [ebp - 0x41c]
call fcn.00404b50
mov ecx, dword [ebp - 0x43c]
push esi
push 0
push eax
push 0x21
push ecx
call fcn.0056a320
add esp, 0x14
test eax, eax
jne 0x555eff
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.
mov ecx, esi
call eax
mov ecx, esi
call fcn.00474d10
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, ebx
call fcn.00404500
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 2
call fcn.00474f80
mov edx, dword [ebp + 0xc]
push edx
call fcn.00555840
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x555fa4
push esi
mov ecx, edi
call fcn.0052a270
mov edi, eax
test edi, edi
jne 0x555f5e
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_MS_Certificate.
mov ecx, esi
call edx
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.00403e90
jmp 0x555dfe
lea ecx, [ebp - 0x304]
call fcn.0040ac30
push esi
lea eax, [ebp - 0x304]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0052f290
push str.VinRCSP
lea ecx, [ebp - 0x304]
call fcn.0040c630
test al, al
je 0x555f95
mov ebx, 0x800c
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 2
call fcn.0040acf0
mov edx, dword [ebp - 0x43c]
lea ecx, [ebp - 0x420]
push ecx
push 0
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x556007
mov eax, dword [ebp + 0xc]
push eax
push str.hashAlg
mov ecx, esi
call fcn.00474a80
push ebx
push str.algId
mov ecx, esi
call fcn.00474a80
mov ecx, esi
call fcn.00474d10
push str.Failed_to_create_HCRYPTHASH
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.00403e90
jmp 0x555dfe
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x440]
push ecx
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.00408d60
mov edx, dword [ebp - 0x420]
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 0x556058
mov ecx, esi
call fcn.00474d10
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push str.Failed_to_CryptSetHashParam
jmp 0x555fea
xor eax, eax
mov dword [ebp - 0x428], 0x200
cmp dword [ebp + 0xc], eax
jne 0x55606e
mov eax, 1
lea ecx, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x420]
lea edx, [ebp - 0x290]
push edx
push eax
mov eax, dword [ebp - 0x438]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x5560bf
mov ecx, esi
call fcn.00474d10
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.00403e90
jmp 0x555dfe
cmp byte [esi + 0xad], 0
je 0x5560db
mov eax, dword [ebp - 0x428]
push eax
push str.cryptSigSize
mov ecx, esi
call fcn.00474a80
mov ecx, dword [ebp - 0x428]
mov esi, dword [ebp - 0x424]
push ecx
lea edx, [ebp - 0x290]
push edx
mov ecx, esi
call fcn.00411260
mov ecx, esi
call fcn.00410070
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x55610e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.00403e90
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
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.0070bb4c
mov esp, ebp
pop ebp
ret