Function at 0x102cc86
Capabilities:
Encrypt or decrypt 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, 0xe8
mov eax, dword [0x1079e94]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xd0], eax
mov dword [eax], ebx
lea eax, [ebp - 0xac]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp + 8]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x102cd0b
mov dword [ebp - 0xac], ebx
call fcn.0106d6ff
mov esi, eax
push esi
push 0x9d2013e
call fcn.01053610
jmp 0x102cf52
push ebx
push dword [ebp + 0x14]
push esi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x102cd2f
call fcn.0106d6ff
mov esi, eax
push esi
push 0x9d7013e
jmp 0x102cd01
push ebx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x58]
push eax
push 2
push dword [ebp - 0xac]
mov dword [ebp - 0xbc], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x102cd66
call fcn.0106d6ff
mov esi, eax
push esi
push 0x9dd013e
jmp 0x102cd01
push 0x10
or eax, 0xffffffff
pop ecx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xbc]
xor esi, esi
cmp eax, ebx
jbe 0x102cd8d
lea edi, [ebp + eax - 0x59]
mov cl, byte [edi]
mov byte [ebp + esi - 0x44], cl
inc esi
dec edi
cmp esi, eax
jb 0x102cd81
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
mov byte [ebp + eax - 0x44], al
mov byte [ebp + eax - 0x43], 4
mov byte [ebp + eax - 0x42], bl
lea eax, [ebp - 0xb4]
push eax
push 1
push dword [ebp + 8]
mov byte [ebp - 6], 1
mov byte [ebp - 5], bl
call edi
test eax, eax
jne 0x102ce71
call fcn.0106d6ff
mov esi, eax
cmp esi, 0x8009000d
je 0x102cdd7
push esi
push 0xa02013e
jmp 0x102cd01
lea eax, [ebp - 0xb8]
push eax
push 2
push dword [ebp + 8]
call edi
test eax, eax
jne 0x102cdfb
call fcn.0106d6ff
mov esi, eax
push esi
push 0xa08013e
jmp 0x102cd01
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xb0]
push eax
push ebx
push 7
push ebx
push dword [ebp - 0xb8]
mov dword [ebp - 0xc4], ebx
call fcn.01056b5b
mov esi, eax
cmp esi, ebx
je 0x102ce2f
push esi
push 0xa15013e
jmp 0x102cd01
mov eax, dword [ebp - 0xb0]
mov dword [eax + 4], 0xa400
lea eax, [ebp - 0xb4]
push eax
push 1
push ebx
push dword [ebp - 0xc4]
push dword [ebp - 0xb0]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x102ce71
call fcn.0106d6ff
mov esi, eax
push esi
push 0xa26013e
jmp 0x102cd01
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x20
push 1
push ebx
push dword [ebp - 0xb4]
mov dword [ebp - 0xc0], 0x40
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x102cead
call fcn.0106d6ff
mov esi, eax
push esi
push 0xa40013e
jmp 0x102cd01
mov esi, 0x1078b54
lea edi, [ebp - 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0xc0]
xor esi, esi
cmp edi, ebx
jbe 0x102cedc
lea eax, [ebp + edi - 0x45]
mov cl, byte [eax]
mov byte [ebp + esi - 0x9a], cl
inc esi
dec eax
cmp esi, edi
jb 0x102cecd
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x14]
push 2
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xdc], eax
pop eax
push dword [ebp - 0xcc]
mov dword [ebp - 0xd8], eax
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
push eax
push ebx
lea eax, [ebp - 0xd8]
push eax
push 0x22
push 1
mov dword [ebp - 0xe0], 0x4e
mov dword [ebp - 0xd4], ecx
call fcn.0106e18d
test eax, eax
jne 0x102cf50
call fcn.0106d6ff
mov esi, eax
push esi
push 0xa64013e
jmp 0x102cd01
xor esi, esi
cmp dword [ebp - 0xb4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
je 0x102cf68
push dword [ebp - 0xb4]
call edi
cmp dword [ebp - 0xac], ebx
je 0x102cf7c
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xb0], ebx
je 0x102cf90
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xb8], ebx
je 0x102cfa0
push dword [ebp - 0xb8]
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0x18