Function at 0x40bff0
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 0x49fbad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4e3050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
test eax, eax
je 0x40c290
cmp eax, 0xc800
jg 0x40c290
push 0
push 1
push 0
push dword [edx]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40c07a
push 8
push 1
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40c07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40c0bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov esi, eax
test ecx, ecx
je 0x40c0ac
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
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
test eax, eax
jle 0x40c2a6
push 0
push eax
push dword [esi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40c115
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
mov esi, eax
test ecx, ecx
je 0x40c0f2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40c0ac
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
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x10]
push 0x6801
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x40c16d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
mov esi, eax
test ecx, ecx
je 0x40c146
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40c0ac
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
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c17b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test eax, eax
je 0x40c1da
push 1
push eax
call fcn.0048732a
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40c1da
mov eax, dword [edi + 4]
xor esi, esi
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x40c1da
test esi, esi
js 0x40c2a6
cmp esi, eax
jge 0x40c2a6
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
add eax, esi
push eax
call fcn.0040cab0
mov eax, dword [edi + 4]
inc esi
cmp esi, eax
jl 0x40c1b5
mov dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
jle 0x40c2a6
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
push 0
push 1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40c233
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c221
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c251
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40c251
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.0040cb80
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c24f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40c26f
push ecx
call fcn.00487297
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, esi
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
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
mov esp, ebp
pop ebp
ret
push 0x8000000b
call fcn.00402570
int3