Function at 0x414eb0
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 0x52dcb7
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
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 edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x12c], edi
mov esi, edx
mov byte [ebp - 0x119], 0
mov dword [ebp - 4], ebx
call fcn.004c3200
push 0x7fe
push ebx
push edi
mov byte [ebp - 4], 1
call fcn.004ecd20
add esp, 0xc
cmp dword [esi + 0x10], ebx
je 0x4151a6
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
call fcn.00414840
add esp, 4
test al, al
je 0x4151a6
lea ecx, [ebp - 0x230]
push ecx
mov ecx, esi
call fcn.00415500
mov byte [ebp - 4], 2
mov eax, 0xcccccccd
mul dword [esi + 0x10]
mov eax, dword [ebp - 0x230]
mov esi, edx
shr esi, 2
xor edi, edi
cmp ebx, esi
jae 0x414ffb
mov eax, dword [eax + 4]
mov edx, dword [ebp + eax - 0x21c]
lea eax, [ebp + eax - 0x230]
and edx, 0xfffff9ff
or edx, 0x800
push 0
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x150]
push 4
push eax
call fcn.004cd22e
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x230]
mov ecx, dword [ecx + 4]
add esp, 0xc
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0x230]
push edx
push ecx
call eax
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.00415280
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x224], 6
jne 0x414ffb
mov dx, word [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
mov word [ecx + edi*2], dx
inc edi
inc ebx
jmp 0x414f62
cmp edi, esi
je 0x415088
push 0xb
xor esi, esi
push str.uibr::error
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], esi
mov byte [ebp - 0x158], 0
call fcn.00407b20
mov byte [ebp - 4], 3
cmp dword [ebp - 0x144], 0x10
jb 0x415049
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x128], edx
jmp 0x415055
lea eax, [ebp - 0x158]
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x168]
call fcn.004e8fea
push 0x555550
lea edx, [ebp - 0x168]
push edx
mov dword [ebp - method.std::logic_error.virtual_0], vtable.uibr::error.0
mov dword [ebp - 0x15c], esi
call fcn.004ecd9a
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x124]
push eax
push 0
push 0
push 0x8004
push ecx
mov dword [ebp - 0x124], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4150b8
call fcn.004c3420
push 0
push 0x100
lea edx, [ebp - 0x118]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x124]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4150fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x190]
call fcn.0042e310
push 0x555740
mov ecx, esi
push ecx
call fcn.004ecd9a
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x120]
lea edx, [ebp - 0x130]
push edx
push 4
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x415125
call fcn.004c3350
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x134]
push eax
push ecx
push 0
mov byte [ebp - 4], 5
lea edx, [esi + esi]
push 1
mov dword [ebp - 0x134], edx
mov edx, dword [ebp - 0x130]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x415176
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x17c]
call fcn.0042e310
push 0x555740
mov eax, esi
push eax
call fcn.004ecd9a
mov ecx, dword [ebp - 0x130]
push ecx
mov byte [ebp - 0x119], 1
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004151f0
mov eax, dword [ebp - 0x120]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x119]
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