Function at 0x414a90
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52dd30
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x566148]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x148], esi
mov edi, edx
mov dword [esi + 0x10], ebx
jb 0x414ada
mov eax, dword [esi]
jmp 0x414adc
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], ebx
call fcn.004c3200
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x140]
push edx
lea ecx, [ebp - 0x118]
call fcn.00414840
mov ecx, dword [ebp - 0x140]
add esp, 4
lea eax, [ebp - 0x144]
push eax
push ebx
push ebx
push 0x8004
push ecx
mov dword [ebp - 0x144], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x414b32
call fcn.004c3420
push ebx
push 0x100
lea edx, [ebp - 0x118]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x144]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x414b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x210]
call fcn.0042e310
push 0x555740
mov ecx, esi
push ecx
call fcn.004ecd9a
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x140]
lea edx, [ebp - 0x14c]
push edx
push 4
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x414b9e
call fcn.004c3350
lea edx, [ebp - 0x13c]
push edx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00417480
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x13c]
mov edi, dword [eax - 0xc]
lea ecx, [edi + edi]
mov dword [ebp - 0x150], ecx
cmp dword [eax - 4], 1
jle 0x414be2
mov edx, dword [eax - 0xc]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.00404f20
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x150]
push ecx
lea edx, [ebp - 0x150]
push edx
push eax
mov eax, dword [ebp - 0x14c]
push ebx
push 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, eax
mov eax, edi
cmp edi, 0xffffffff
jne 0x414c1e
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004e8c86
add esp, 8
test eax, eax
js 0x414d0f
mov ecx, dword [ebp - 0x13c]
cmp eax, dword [ecx - 8]
jg 0x414d0f
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x13c]
xor ecx, ecx
mov word [edx + eax*2], cx
test ebx, ebx
jne 0x414c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x1fc]
call fcn.0042e310
push 0x555740
mov eax, esi
push eax
call fcn.004ecd9a
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.00414760
mov byte [ebp - 4], 5
xor edi, edi
lea esp, [esp]
mov eax, dword [ebp - 0x13c]
cmp edi, dword [eax - 0xc]
jge 0x414d19
test edi, edi
js 0x414d0f
cmp edi, dword [eax - 0xc]
jg 0x414d0f
mov edx, dword [ebp - 0x1e8]
movzx ebx, word [eax + edi*2]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + eax - 0x1d4]
lea eax, [ebp + eax - 0x1e8]
push 0
and ecx, 0xfffff9ff
lea edx, [ebp - 0x130]
or ecx, 0x800
push 4
push edx
mov dword [eax + 0x14], ecx
call fcn.004cd22e
add esp, 0xc
mov ecx, eax
lea esi, [ebp - 0x1e8]
call fcn.00415630
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push ebx
mov edx, 0x30
push eax
mov word [ecx + eax + 0x40], dx
call fcn.00416f10
push 0x20
push eax
call fcn.00413c90
mov esi, dword [ebp - 0x148]
add esp, 8
inc edi
jmp 0x414c80
push 0x80070057
call fcn.00406220
lea ecx, [ebp - 0x138]
lea eax, [ebp - 0x1e8]
call fcn.00413b40
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004042e0
cmp dword [ebp - 0x124], 8
jb 0x414d4e
mov eax, dword [ebp - 0x138]
push eax
call fcn.004e895a
add esp, 4
mov edx, dword [ebp - 0x1e8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x148], ecx
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [ebp - 4], 7
test byte [ebp - 0x1a4], 1
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
je 0x414d96
mov ecx, dword [ebp - 0x1d4]
mov eax, dword [ecx]
push eax
call fcn.004e895a
add esp, 4
mov edx, dword [ebp - 0x1d4]
mov dword [edx], 0
mov eax, dword [ebp - 0x1c4]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1b4]
mov dword [ecx], 0
mov edx, dword [ebp - 0x1d0]
mov dword [edx], 0
mov eax, dword [ebp - 0x1c0]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1b0]
mov dword [ecx], 0
and dword [ebp - 0x1a4], 0xfffffffe
lea ecx, [ebp - 0x1e4]
mov dword [ebp - 0x1a8], 0
call fcn.00412040
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1e8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x198]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004ccb3f
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414e51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x140]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e8965
mov esp, ebp
pop ebp
ret