Function at 0x414a60
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 0x51a0a7
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
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 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.004b13f0
push 0x7fe
push ebx
push edi
mov byte [ebp - 4], 1
call fcn.004da410
add esp, 0xc
cmp dword [esi + 0x10], ebx
je 0x414d56
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
call fcn.004143f0
add esp, 4
test al, al
je 0x414d56
lea ecx, [ebp - 0x230]
push ecx
mov ecx, esi
call fcn.004150b0
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 0x414bab
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.004bb460
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.00414e30
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x224], 6
jne 0x414bab
mov dx, word [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
mov word [ecx + edi*2], dx
inc edi
inc ebx
jmp 0x414b12
cmp edi, esi
je 0x414c38
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.00407ad0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x144], 0x10
jb 0x414bf9
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x128], edx
jmp 0x414c05
lea eax, [ebp - 0x158]
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x168]
call fcn.004d696a
push 0x53eb88
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.004da48a
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 0x414c68
call fcn.004b1610
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 0x414caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x190]
call fcn.004271f0
push 0x53ed78
mov ecx, esi
push ecx
call fcn.004da48a
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 0x414cd5
call fcn.004b1540
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 0x414d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x17c]
call fcn.004271f0
push 0x53ed78
mov eax, esi
push eax
call fcn.004da48a
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.00414da0
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.004d62e5
mov esp, ebp
pop ebp
ret