Function at 0x101d759
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 [0x107342c]
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 0x101d9ac
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 0x101d973
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 0x101d973
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 0x101d973
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 0x101d973
push edi
push 4
lea eax, [ebx + 0x28]
push eax
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x101d973
push edi
push 8
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x101d973
push edi
push 4
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x101d973
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 0x101d973
xor eax, eax
cmp dword [ebp - 0xc0], edi
jle 0x101d8f3
mov cl, byte [ebp + eax - 0x14]
cmp cl, byte [ebx + eax + 0xce]
jne 0x101d973
inc eax
cmp eax, dword [ebp - 0xc0]
jl 0x101d8d9
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 0x101d973
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 0x101d973
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 0x101d973
cmp dword [ebp - 0xbc], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
je 0x101d95e
push dword [ebp - 0xbc]
call esi
cmp dword [ebp - 0xb8], edi
je 0x101d96e
push dword [ebp - 0xb8]
call esi
xor eax, eax
inc eax
jmp 0x101d9aa
call dword [fcn.0100149c]
cmp dword [ebp - 0xbc], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ebx, eax
je 0x101d991
push dword [ebp - 0xbc]
call esi
cmp dword [ebp - 0xb8], edi
je 0x101d9a1
push dword [ebp - 0xb8]
call esi
push ebx
call dword [fcn.01001248]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0103e4d8
leave
ret 4