Function at 0x101d5fa
Capabilities:
Encrypt or decrypt via wincrypt
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x10723e4]
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
je 0x101d84d
push esi
push edi
push 0x28
pop ecx
lea esi, [ebx + 0x2e]
lea edi, [ebp - 0xb4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
push eax
push 1
push eax
push dword [ebx + 4]
mov dword [ebp - 0xc0], 0xa0
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
xor edi, edi
test eax, eax
je 0x101d814
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0xb8]
push eax
push edi
push edi
push 0x8003
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x101d814
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
push 0x14
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x101d814
xor eax, eax
cmp dword [ebx + 0x18], edi
push edi
setne al
push 8
mov dword [ebp - 0xcc], eax
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x101d814
push edi
push 4
lea eax, [ebx + 0x28]
push eax
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x101d814
push edi
push 8
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x101d814
push edi
push 4
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x101d814
push edi
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0xb8]
mov dword [ebp - 0xc0], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x101d814
xor eax, eax
cmp dword [ebp - 0xc0], edi
jle 0x101d794
mov cl, byte [ebp + eax - 0x14]
cmp cl, byte [ebx + eax + 0xce]
jne 0x101d814
inc eax
cmp eax, dword [ebp - 0xc0]
jl 0x101d77a
lea eax, [ebp - 0xbc]
push eax
push edi
push edi
push 0x8004
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x101d814
push edi
lea eax, [ebp - 0xac]
push eax
push 2
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x101d814
push edi
push edi
push dword [ebx + 8]
lea eax, [ebp - 0x98]
push 0x80
push eax
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x101d814
cmp dword [ebp - 0xbc], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
je 0x101d7ff
push dword [ebp - 0xbc]
call esi
cmp dword [ebp - 0xb8], edi
je 0x101d80f
push dword [ebp - 0xb8]
call esi
xor eax, eax
inc eax
jmp 0x101d84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xbc], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ebx, eax
je 0x101d832
push dword [ebp - 0xbc]
call esi
cmp dword [ebp - 0xb8], edi
je 0x101d842
push dword [ebp - 0xb8]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0103d24a
leave
ret 4