Function at 0x41c0f0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
push esi
push edi
mov dword [ebp - 0x38], edx
mov esi, str.rsa_sha2_256
mov dword [ebp - 8], ecx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [esi]
jne 0x41c130
test dl, dl
je 0x41c12c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x41c130
add eax, 2
add esi, 2
test cl, cl
jne 0x41c110
xor esi, esi
jmp 0x41c135
sbb esi, esi
or esi, 1
mov ecx, str.rsa_sha2_512
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41c160
test dl, dl
je 0x41c15c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41c160
add eax, 2
add ecx, 2
test dl, dl
jne 0x41c140
xor eax, eax
jmp 0x41c165
sbb eax, eax
or eax, 1
xor ebx, ebx
mov edi, str.SHA1
test esi, esi
mov ecx, str.SHA256
sete bl
test esi, esi
cmove edi, ecx
mov dword [ebp - 0x14], edi
lea ebx, [ebx*8 + 0x8004]
test eax, eax
jne 0x41c195
mov ebx, 0x800e
mov dword [ebp - 0x14], str.SHA512
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ecx + 4]
call fcn.0041beb0
mov eax, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x41c5d5
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x41c5d5
mov esi, dword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 2
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
call esi
test eax, eax
je 0x41c5b7
mov ecx, dword [ebp - 0x1c]
mov edx, 1
push 0
call fcn.00431190
add esp, 4
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x40], edi
push eax
push edi
push 2
push dword [ebp - 0x44]
call esi
test eax, eax
je 0x41c5b7
mov eax, dword [edi + 0xc]
and eax, 0x20
mov dword [ebp - 4], 0
push eax
push dword [edi + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push dword [edi + 4]
mov dword [ebp - 0x10], 0
push dword [edi]
mov dword [ebp - 0x24], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41c3ab
or ecx, 0xffffffff
xor esi, esi
call fcn.00410820
test eax, eax
je 0x41c2a1
mov eax, dword [ebp - 8]
xor edx, edx
push esi
mov ecx, dword [eax + 4]
call fcn.00410420
mov esi, eax
add esp, 4
test esi, esi
je 0x41c2a1
xor eax, eax
cmp dword [edi + 0x18], 2
push 0
sete al
push esi
add eax, 0x20
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41c361
push 0
push dword [ebp + 8]
push dword [ebp - 0x38]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41c361
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [edi + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x41c361
mov ecx, dword [ebp - 4]
mov edx, 1
push 0
call fcn.00431190
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp - 0x40]
push ebx
push 0
push 0
push dword [eax + 0x18]
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x41c35c
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.0040eb60
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], ebx
xor ebx, ebx
mov dword [edx], eax
call fcn.00410820
test eax, eax
je 0x41c363
mov eax, dword [ebp - 8]
xor edx, edx
push esi
mov ecx, dword [eax + 4]
call fcn.00410420
add esp, 4
jmp 0x41c363
mov ebx, dword [ebp - 0x14]
jmp 0x41c363
xor ebx, ebx
test esi, esi
je 0x41c394
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c370
mov eax, esi
sub ecx, edx
je 0x41c38b
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x41c380
push esi
call fcn.00437980
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41c57a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x41c57a
push 0
push dword [edi + 4]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ncrypt.dll_NCryptOpenStorageProvider]
test eax, eax
jne 0x41c578
push eax
push dword [edi + 0x18]
lea eax, [ebp - 0x10]
push dword [edi]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ncrypt.dll_NCryptOpenKey]
test eax, eax
jne 0x41c578
or ecx, 0xffffffff
xor edi, edi
call fcn.00410820
test eax, eax
je 0x41c438
mov eax, dword [ebp - 8]
lea edx, [edi + 1]
push edi
mov ecx, dword [eax + 4]
call fcn.00410420
mov edi, eax
add esp, 4
test edi, edi
je 0x41c438
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c410
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx*2 + 2]
push eax
push edi
push 0x461fa8
push dword [ebp - 0x10]
call dword [sym.imp.ncrypt.dll_NCryptSetProperty]
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov ecx, str.ssh_rsa
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ebx
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41c472
test dl, dl
je 0x41c46e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41c472
add eax, 2
add ecx, 2
test dl, dl
jne 0x41c452
xor eax, eax
jmp 0x41c477
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41c48f
mov eax, dword [ebp - 0x14]
mov ebx, 2
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
call fcn.004100f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c52f
push ebx
mov ebx, dword [sym.imp.ncrypt.dll_NCryptSignHash]
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp - 0x20]
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x41c52f
mov ecx, dword [ebp - 4]
lea edx, [eax + 1]
push eax
call fcn.00431190
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 4]
push dword [ebp - 0x3c]
push ecx
push dword [ebp - 4]
push eax
push dword [ebp - 0x20]
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call ebx
mov ebx, dword [ebp - 0x14]
test eax, eax
jne 0x41c531
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], ebx
xor ebx, ebx
mov dword [ecx], eax
or ecx, 0xffffffff
call fcn.00410820
test eax, eax
je 0x41c531
mov eax, dword [ebp - 8]
lea edx, [ebx + 1]
push edi
mov ecx, dword [eax + 4]
call fcn.00410420
add esp, 4
jmp 0x41c531
xor ebx, ebx
test edi, edi
je 0x41c569
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c540
sub ecx, edx
mov eax, edi
sar ecx, 1
add ecx, ecx
je 0x41c560
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x41c555
push edi
call fcn.00437980
add esp, 4
test esi, esi
je 0x41c57a
push esi
call fcn.00437980
add esp, 4
jmp 0x41c57a
xor ebx, ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41c58a
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.ncrypt.dll_NCryptFreeObject]
test eax, eax
je 0x41c59a
push eax
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41c5a4
push eax
call esi
test ebx, ebx
je 0x41c5af
mov ecx, ebx
call fcn.00431220
mov ecx, dword [ebp - 0x40]
call fcn.00431220
push dword [ebp - 0x44]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push 0
push dword [ebp - 0x48]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret