Function at 0x403240
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 0x45f236
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x470080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x30], esi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 1
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x38], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x403544
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0x8003
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp dword [ebx + 0x14], 0xf
mov eax, dword [ebx + 0x10]
jbe 0x4032f4
mov ebx, dword [ebx]
push 0
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x403310
push dword [ebp - 0x14]
call ebx
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x14]
push 0x6801
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x403330
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x14]
call ebx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x40334e
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403544
cmp dword [esi + 0x14], 0xf
xorps xmm0, xmm0
mov ebx, dword [esi + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
jbe 0x40336f
add ebx, dword [esi]
mov esi, dword [esi]
mov dword [ebp - 0x30], esi
jmp 0x403371
add ebx, esi
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
sub ebx, esi
je 0x4033b0
cmp ebx, 0x7fffffff
ja 0x403562
push ebx
lea ecx, [ebp - 0x24]
call fcn.00403960
mov esi, dword [ebp - 0x24]
push ebx
push dword [ebp - 0x30]
push esi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + esi]
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x34]
sub eax, ecx
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
push 0
push 1
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40341d
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x403544
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x403416
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403534
push edx
push ecx
jmp 0x40353c
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub ebx, edx
mov ecx, dword [edi + 8]
mov esi, dword [edi]
sub ecx, esi
mov dword [ebp - 0x14], edx
cmp ebx, ecx
jbe 0x4034b9
cmp ebx, 0x7fffffff
ja 0x403562
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x40345b
mov dword [ebp - 0x30], 0x7fffffff
jmp 0x403466
lea eax, [edx + ecx]
cmp eax, ebx
cmovb eax, ebx
mov dword [ebp - 0x30], eax
test esi, esi
je 0x4034a6
cmp ecx, 0x1000
jb 0x403488
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x403534
mov esi, edx
push ecx
push esi
call fcn.0045de02
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push dword [ebp - 0x30]
mov ecx, edi
call fcn.00403960
mov ecx, dword [ebp - 0x14]
mov esi, dword [edi]
push ebx
push ecx
jmp 0x4034eb
mov eax, dword [edi + 4]
sub eax, esi
mov dword [ebp - 0x28], eax
cmp ebx, eax
jbe 0x4034e9
push eax
push edx
push esi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x14]
sub ebx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x28]
mov esi, dword [edi + 4]
push ebx
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0x18
lea eax, [ebx + esi]
jmp 0x4034f7
push ebx
push edx
push esi
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx]
add esp, 0xc
push dword [ebp - 0x34]
mov dword [edi + 4], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x403544
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x40353a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40353a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045de02
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ddbf
mov esp, ebp
pop ebp
ret
call fcn.00402420
int3