Function at 0x401260
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
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x409008]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
mov dword [esp + 0x1c], eax
mov ebx, ecx
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], ebx
push eax
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4012d8
push 0x403ce0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.failed_1
call fcn.00403ac0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040474a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x8003
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401335
push 0x403ce0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.failed_2
call fcn.00403ac0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040474a
mov esp, ebp
pop ebp
ret
push 0
push 0xa
push str.ectGameMon
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x401397
mov edx, str.failed_4
push 0x403ce0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00403ac0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040474a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x20]
push 0x6801
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x4013bc
mov edx, str.failed_3
jmp 0x401351
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
mov ebx, dword [edi + 4]
mov ecx, ebx
mov edx, dword [edi]
sub ecx, edx
mov dword [esp + 0x20], esi
cmp esi, ecx
jae 0x4013d7
lea eax, [edx + esi]
jmp 0x4013fe
jbe 0x401401
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x4013ed
push ecx
push esi
mov ecx, edi
call fcn.004045a0
jmp 0x401401
sub esi, ecx
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
sub eax, ecx
push eax
push ecx
push dword [edi]
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [edi + 4]
sub eax, ecx
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push 0
push 1
push 0
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x1c]
test eax, eax
jne 0x401449
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x40136d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040474a
mov esp, ebp
pop ebp
ret