Function at 0x4010c0
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
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
cmp dword [ebp + 8], ebx
je 0x401291
cmp dword [ebp + 0xc], ebx
je 0x401291
cmp edi, ebx
je 0x401291
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push ebx
push 1
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
call esi
test eax, eax
jne 0x40111e
push 8
push 1
push ebx
push ebx
lea edx, [ebp - 8]
push edx
call esi
test eax, eax
je 0x401228
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401219
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401140
push ebx
sub eax, edx
mov edx, dword [ebp - 4]
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x401171
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x401219
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x401219
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0x800000
push ecx
push 0x6801
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x4011a5
cmp eax, ebx
je 0x401219
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x401219
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp eax, ebx
je 0x4011b5
push eax
call edi
mov dword [ebp - 4], ebx
push 0x3f0
call fcn.004eb1f9
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x401201
mov eax, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
push 0x3f0
push esi
call fcn.004ea67c
mov edx, dword [ebp - 0xc]
add esp, 0x10
lea ecx, [ebp - 0x10]
push ecx
push esi
push ebx
push 1
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x401231
push esi
call fcn.004ea5c2
add esp, 4
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40120b
push eax
call edi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x401219
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x401228
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.004ea67c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov byte [edx + edi], bl
mov eax, dword [ebp - 0x10]
push esi
mov dword [ecx], eax
call fcn.004ea5c2
mov eax, dword [ebp - 0xc]
add esp, 0x14
cmp eax, ebx
je 0x401268
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x401276
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x401285
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret