Function at 0x4035bc
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 0x40379e
mov eax, 0xc800
cmp dword [edi + 4], eax
jg 0x40379e
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 0x40361d
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 0x40361d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4037a1
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 0x403657
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp + 8], 0
je 0x403650
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x4037a1
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 0x40368a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x40363f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40363f
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 0x4036c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x4036bc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp + 8], ebx
je 0x403650
push ebx
jmp 0x403647
cmp dword [ebp - 0x10], ebx
je 0x4036d2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, 0xc800
push eax
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
mov eax, 0xc800
push 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_CryptEncrypt]
test eax, eax
jne 0x403751
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 0
mov edi, eax
je 0x40373f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp + 8], 0
je 0x403793
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403793
mov ecx, dword [ebp + 0xc]
call fcn.00401d52
mov edi, ebx
cmp dword [ebp - 0x18], edi
jbe 0x403772
mov ecx, dword [ebp + 0xc]
lea eax, [edi + esi]
push eax
call fcn.00403cc9
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x403760
cmp dword [ebp - 0x14], 0
je 0x403781
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp + 8], 0
je 0x403791
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 0x4037a1
push 0xd
pop eax
call fcn.004420b6
ret