Function at 0x419880
Capabilities:
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
sub esp, 0x1c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
je 0x4198c9
cmp dword [ebp + 0x10], 0
je 0x4198c9
cmp dword [ebp + 0x14], 0
jne 0x4198d0
xor eax, eax
jmp 0x419a71
push 0xf0000000
push 1
push 0x421e8c
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x419934
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x80090016
jne 0x419928
push 0xf0000008
push 1
push 0x421ebc
push 0
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x419926
mov dword [ebp - 0xc], 0
jmp 0x419a26
jmp 0x419934
mov dword [ebp - 0xc], 0
jmp 0x419a26
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x8003
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x41995b
mov dword [ebp - 8], 0
jmp 0x419a26
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004016b0
add esp, 4
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x419981
jmp 0x419a26
lea ecx, [ebp - 4]
push ecx
push 0x800000
mov edx, dword [ebp - 8]
push edx
push 0x6801
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x4199aa
mov dword [ebp - 4], 0
jmp 0x419a26
mov ecx, dword [ebp + 0xc]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4199c1
jmp 0x419a26
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401320
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 1
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4199fd
jmp 0x419a26
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx + 1]
cmp edx, dword [ebp + 0x18]
jbe 0x419a0b
jmp 0x419a26
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004192e0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x419a3c
cmp dword [ebp - 0x10], 0
je 0x419a3c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 4], 0
je 0x419a4c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x419a5c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], 0
je 0x419a6e
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret