Function at 0x40c0d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf66d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x509074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x40c37c
cmp eax, 0xc800
jg 0x40c37c
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x10]
push 0
push 1
push 0
push dword [ebx]
push eax
call esi
test eax, eax
jne 0x40c156
push 8
push 1
push eax
push dword [ebx]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
jne 0x40c156
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40c19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
mov esi, eax
test ecx, ecx
je 0x40c188
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
jle 0x40c393
push 0
push eax
push dword [edi]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40c1f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov esi, eax
test ecx, ecx
je 0x40c1cf
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40c188
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x14]
push 0x6801
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x40c24c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov esi, eax
test ecx, ecx
je 0x40c224
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40c188
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c25a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0xc800
call fcn.00496f43
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov esi, dword [ebp + 8]
lea edx, [ebp + 8]
mov dword [ebp - 0x20], 0xc800
mov ecx, dword [esi + 4]
cmp ecx, 0xc800
mov dword [ebp + 8], ecx
cmovle eax, edx
test ecx, ecx
jle 0x40c393
push dword [eax]
push dword [esi]
push ebx
call fcn.004985d0
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0xc800
push eax
push ebx
push 0
push 1
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40c2f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2e0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c351
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40c351
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40c30a
push eax
call fcn.004a09b1
add esp, 4
mov dword [edi], 0
xor esi, esi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp dword [ebp - 0x18], esi
jbe 0x40c331
nop
lea eax, [esi + ebx]
mov ecx, edi
push eax
call fcn.0040ce60
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x40c320
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c33f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c34f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.00496f3e
add esp, 4
mov dword [ebp - 0x24], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000000b
call fcn.00402570
int3