Function at 0x414fd0
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 0x577790
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x5bafe0]
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 0x41501a
mov eax, dword [esi]
jmp 0x41501c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], ebx
call fcn.004cf170
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x140]
push edx
lea ecx, [ebp - 0x118]
call fcn.00414d70
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 0x415072
call fcn.004cf390
push ebx
push pe_nt_image_headers32
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 0x4150b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x210]
call fcn.00438490
push 0x5a8fa8
mov ecx, esi
push ecx
call fcn.00532abb
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 0x4150de
call fcn.004cf2c0
lea edx, [ebp - 0x13c]
push edx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00417b80
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 0x415122
mov edx, dword [eax - 0xc]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.00417960
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 0x41515e
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0052d322
add esp, 8
test eax, eax
js 0x41524f
mov ecx, dword [ebp - 0x13c]
cmp eax, dword [ecx - 8]
jg 0x41524f
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x13c]
xor ecx, ecx
mov word [edx + eax*2], cx
test ebx, ebx
jne 0x4151a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x1fc]
call fcn.00438490
push 0x5a8fa8
mov eax, esi
push eax
call fcn.00532abb
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.00414c90
mov byte [ebp - 4], 5
xor edi, edi
lea esp, [esp]
mov eax, dword [ebp - 0x13c]
cmp edi, dword [eax - 0xc]
jge 0x415259
test edi, edi
js 0x41524f
cmp edi, dword [eax - 0xc]
jg 0x41524f
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.00510239
add esp, 0xc
mov ecx, eax
lea esi, [ebp - 0x1e8]
call fcn.0043a570
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push ebx
mov edx, 0x30
push eax
mov word [ecx + eax + 0x40], dx
call fcn.00417410
push 0x20
push eax
call fcn.00414160
mov esi, dword [ebp - 0x148]
add esp, 8
inc edi
jmp 0x4151c0
push 0x80070057
call fcn.00413f90
lea ecx, [ebp - 0x138]
lea eax, [ebp - 0x1e8]
call fcn.00414120
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00406560
cmp dword [ebp - 0x124], 8
jb 0x41528e
mov eax, dword [ebp - 0x138]
push eax
call fcn.0052b74a
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 0x4152d6
mov ecx, dword [ebp - 0x1d4]
mov eax, dword [ecx]
push eax
call fcn.0052b74a
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.00411c10
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.0050fb4a
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 0x415391
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.0052b755
mov esp, ebp
pop ebp
ret