Function at 0x4a5c33
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, 0xf8
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 0xd8], ecx
xor ecx, ecx
mov dword [eax], ecx
mov ebx, ecx
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xd4], esi
push eax
push ecx
push ecx
push 0x8003
push edi
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4a5cbc
and dword [ebp - 0xb8], ebx
call fcn.004c73cc
mov esi, eax
push esi
push 0x9bc013e
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4a5f1e
push 0
push dword [ebp + 8]
push esi
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4a5ce1
call fcn.004c73cc
mov esi, eax
push esi
push 0x9c1013e
jmp 0x4a5cb1
push 0
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0x14
push eax
lea eax, [ebp - 0x60]
push eax
push 2
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4a5d19
call fcn.004c73cc
mov esi, eax
push esi
push 0x9c7013e
jmp 0x4a5cb1
push 0x40
lea eax, [ebp - 0x4c]
push 0xff
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0xc8]
add esp, 0xc
xor edx, edx
test ecx, ecx
je 0x4a5d48
lea esi, [ebp + ecx - 0x61]
mov al, byte [esi]
mov byte [ebp + edx - 0x4c], al
inc edx
dec esi
cmp edx, ecx
jb 0x4a5d3c
mov byte [ebp + ecx - 0x4c], cl
mov byte [ebp + ecx - 0x4b], 4
add ecx, 2
cmp ecx, 0x40
jae 0x4a5f7b
lea eax, [ebp - 0xbc]
mov byte [ebp + ecx - 0x4c], bl
push eax
push 1
push edi
mov word [ebp - 0xe], 1
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x4a5e3b
call fcn.004c73cc
mov esi, eax
cmp esi, 0x8009000d
je 0x4a5d99
push esi
push 0x9ed013e
jmp 0x4a5cb1
lea eax, [ebp - 0xc0]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x4a5dbf
call fcn.004c73cc
mov esi, eax
push esi
push 0x9f3013e
jmp 0x4a5cb1
mov ecx, dword [ebp - 0xc0]
lea eax, [ebp - 0xcc]
and dword [ebp - 0xcc], ebx
xor edx, edx
push eax
lea eax, [ebp - 0xc4]
push eax
push 7
call fcn.004d526d
mov esi, eax
test esi, esi
je 0x4a5dff
push esi
push 0x9ff013e
call dword [sym.imp.certcli.dll_Ordinal_357]
mov ebx, dword [ebp - 0xc4]
jmp 0x4a5f1e
mov ebx, dword [ebp - 0xc4]
lea eax, [ebp - 0xbc]
push eax
push 1
push 0
mov dword [ebx + 4], 0xa400
push dword [ebp - 0xcc]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4a5e3b
call fcn.004c73cc
mov esi, eax
push esi
push 0xa10013e
jmp 0x4a5cb1
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x40
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x20
push 1
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4a5e78
call fcn.004c73cc
mov esi, eax
push esi
push 0xa2a013e
jmp 0x4a5cb1
mov esi, 0x5186e8
lea edi, [ebp - 0xb4]
xor ecx, ecx
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 esi, dword [ebp - 0xd0]
test esi, esi
je 0x4a5ea7
lea edx, [ebp + esi - 0x4d]
mov al, byte [edx]
mov byte [ebp + ecx - 0xa6], al
inc ecx
dec edx
cmp ecx, esi
jb 0x4a5e98
push dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
push dword [ebp - 0xdc]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xf4]
push ecx
push 0
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xe4]
push eax
push 0x22
pop edx
mov dword [ebp - 0xec], 0x4e
mov dword [ebp - 0xe4], 2
call fcn.004c6016
test eax, eax
jne 0x4a5f1c
call fcn.004c73cc
mov esi, eax
push esi
push 0xa4e013e
jmp 0x4a5cb1
xor esi, esi
cmp dword [ebp - 0xbc], 0
je 0x4a5f33
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0xb8], 0
je 0x4a5f48
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test ebx, ebx
je 0x4a5f53
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc0], 0
je 0x4a5f68
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 0xc
call fcn.0050393c
int3