Function at 0x414640
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 0x51a120
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x54d028]
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 0x41468a
mov eax, dword [esi]
jmp 0x41468c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], ebx
call fcn.004b13f0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x140]
push edx
lea ecx, [ebp - 0x118]
call fcn.004143f0
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 0x4146e2
call fcn.004b1610
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 0x414723
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x210]
call fcn.004271f0
push 0x53ed78
mov ecx, esi
push ecx
call fcn.004da48a
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 0x41474e
call fcn.004b1540
lea edx, [ebp - 0x13c]
push edx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00417000
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 0x414792
mov edx, dword [eax - 0xc]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.00404e10
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 0x4147ce
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004d6606
add esp, 8
test eax, eax
js 0x4148bf
mov ecx, dword [ebp - 0x13c]
cmp eax, dword [ecx - 8]
jg 0x4148bf
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x13c]
xor ecx, ecx
mov word [edx + eax*2], cx
test ebx, ebx
jne 0x414817
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x1fc]
call fcn.004271f0
push 0x53ed78
mov eax, esi
push eax
call fcn.004da48a
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.00414310
mov byte [ebp - 4], 5
xor edi, edi
lea esp, [esp]
mov eax, dword [ebp - 0x13c]
cmp edi, dword [eax - 0xc]
jge 0x4148c9
test edi, edi
js 0x4148bf
cmp edi, dword [eax - 0xc]
jg 0x4148bf
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.004bb460
add esp, 0xc
mov ecx, eax
lea esi, [ebp - 0x1e8]
call fcn.004151e0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push ebx
mov edx, 0x30
push eax
mov word [ecx + eax + 0x40], dx
call fcn.00416a90
push 0x20
push eax
call fcn.004137d0
mov esi, dword [ebp - 0x148]
add esp, 8
inc edi
jmp 0x414830
push 0x80070057
call fcn.00406150
lea ecx, [ebp - 0x138]
lea eax, [ebp - 0x1e8]
call fcn.00413680
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00404260
cmp dword [ebp - 0x124], 8
jb 0x4148fe
mov eax, dword [ebp - 0x138]
push eax
call fcn.004d62da
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 0x414946
mov ecx, dword [ebp - 0x1d4]
mov eax, dword [ecx]
push eax
call fcn.004d62da
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.00411ae0
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.004bad71
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 0x414a01
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.004d62e5
mov esp, ebp
pop ebp
ret