Function at 0x403c3c
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 0x10
mov eax, 0x455c39
call fcn.0043cc79
mov esi, edx
mov ebx, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x403e08
mov eax, 0xc800
cmp dword [edi + 4], eax
jg 0x403e08
push 0
push 1
push 0
push dword [esi]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x403c9d
push 8
push 1
push eax
push dword [esi]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x403c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403e0b
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push esi
push esi
push 0x8003
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x403cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp + 8], 0
je 0x403cd0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x403e0b
push esi
push dword [ebx + 4]
mov ecx, ebx
push esi
call fcn.00404139
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x403cbf
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x403cbf
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push dword [ebp - 0x10]
push 0x6801
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x403d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x403d3c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp + 8], ebx
je 0x403cd0
push ebx
jmp 0x403cc7
cmp dword [ebp - 0x10], ebx
je 0x403d52
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0xc800
call fcn.0043c1e2
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
mov ecx, 0xc800
mov dword [ebp - 4], ebx
mov eax, dword [edi + 4]
cmp eax, ecx
cmovg eax, ecx
mov ecx, edi
push eax
push ebx
call fcn.00404139
push eax
push esi
call fcn.0043d810
mov eax, dword [edi + 4]
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push 1
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x403dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 0
mov edi, eax
je 0x403db8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp + 8], 0
je 0x403dfd
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403dfd
mov ecx, dword [ebp + 0xc]
call fcn.004021be
mov edi, ebx
cmp dword [ebp - 0x18], edi
jbe 0x403deb
mov ecx, dword [ebp + 0xc]
lea eax, [edi + esi]
push eax
call fcn.0040415a
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x403dd9
cmp dword [ebp + 8], 0
je 0x403dfb
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, ebx
push esi
call fcn.0043c1dd
pop ecx
mov eax, edi
jmp 0x403e0b
push 0xd
pop eax
call fcn.0043cc42
ret