Function at 0x4037a7
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, 0x442f6c
call fcn.004420ed
mov esi, edx
mov ebx, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x403973
mov eax, 0xc800
cmp dword [edi + 4], eax
jg 0x403973
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 0x403808
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 0x403808
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403976
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 0x403842
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp + 8], 0
je 0x40383b
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x403976
push esi
push dword [ebx + 4]
mov ecx, ebx
push esi
call fcn.00403ca3
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403875
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x40382a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40382a
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 0x4038af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x4038a7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp + 8], ebx
je 0x40383b
push ebx
jmp 0x403832
cmp dword [ebp - 0x10], ebx
je 0x4038bd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0xc800
call fcn.0042e934
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.00403ca3
push eax
push esi
call fcn.0042f860
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 0x403935
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 0
mov edi, eax
je 0x403923
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp + 8], 0
je 0x403968
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403968
mov ecx, dword [ebp + 0xc]
call fcn.00401d52
mov edi, ebx
cmp dword [ebp - 0x18], edi
jbe 0x403956
mov ecx, dword [ebp + 0xc]
lea eax, [edi + esi]
push eax
call fcn.00403cc9
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x403944
cmp dword [ebp + 8], 0
je 0x403966
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, ebx
push esi
call fcn.0042e92f
pop ecx
mov eax, edi
jmp 0x403976
push 0xd
pop eax
call fcn.004420b6
ret