Function at 0x4036c0
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 0x412e18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x41836c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor eax, eax
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebx], ecx
mov dword [ebp - 4], eax
call esi
test eax, eax
jne 0x40374a
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x40374a
push 0x20
push str.Unable_to_Acquire_Crypt_Provider
mov ecx, edi
call fcn.00402890
jmp 0x403931
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x403778
push 0x15
push str.Unable_to_Create_Hash
mov ecx, edi
call fcn.00402890
jmp 0x403931
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x403792
mov eax, dword [eax]
test eax, eax
je 0x403792
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edi, eax
jmp 0x403794
xor edi, edi
mov esi, dword [esi]
test esi, esi
je 0x4037b0
cmp dword [esi + 4], 0
jne 0x4037ab
mov eax, dword [esi]
push eax
call fcn.004052c0
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4037b2
xor esi, esi
mov ecx, dword [ebp - 0x18]
push 0
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4037d8
mov ecx, dword [ebp - 0x1c]
push 0x1b
push str.Unable_to_Hash_the_Password
call fcn.00402890
jmp 0x403931
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
push edx
push 0x800000
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x40380c
mov ecx, dword [ebp - 0x1c]
push 0x14
push str.Unable_to_Derive_Key
call fcn.00402890
jmp 0x403931
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x40382e
mov ecx, dword [ebp - 0x1c]
push 0x16
push str.Unable_to_Destroy_Hash
call fcn.00402890
jmp 0x403931
cmp byte [ebp + 0x1c], 0
mov dword [ebp - 0x18], 0
je 0x403866
mov eax, dword [ebp - 0x20]
push 0
push ebx
push 0
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x403866
mov ecx, dword [ebp - 0x1c]
push str.Unable_to_Determine_the_Size_of_Encrypted_Buffer
call fcn.004032f0
jmp 0x403931
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x1c]
mov edx, dword [esi + 4]
push ecx
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
test eax, eax
jne 0x403892
push str.Unable_to_Allocate_Memory
mov ecx, esi
call fcn.004032f0
jmp 0x403931
cmp byte [ebp + 0x1c], 0
je 0x4038d3
mov edx, dword [ebx]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call fcn.00405f40
mov edx, dword [ebp - 0x20]
add esp, 0xc
push eax
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40392d
push str.Unable_to_Encrypt_the_Data
mov ecx, esi
call fcn.004032f0
jmp 0x403931
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
push eax
call fcn.00405f40
add esp, 0xc
push eax
mov eax, dword [ebp - 0x20]
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40392d
push str.Unable_to_Decrypt_the_Data
mov ecx, esi
call fcn.004032f0
jmp 0x403931
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
je 0x403944
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x403955
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x403964
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18