Function at 0x4153f0
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 0x577717
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
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 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.004cf170
push 0x7fe
push ebx
push edi
mov byte [ebp - 4], 1
call fcn.00530110
add esp, 0xc
cmp dword [esi + 0x10], ebx
je 0x4156e6
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
call fcn.00414d70
add esp, 4
test al, al
je 0x4156e6
lea ecx, [ebp - 0x230]
push ecx
mov ecx, esi
call fcn.00415a30
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 0x41553b
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.00510239
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.004157c0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x224], 6
jne 0x41553b
mov dx, word [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
mov word [ecx + edi*2], dx
inc edi
inc ebx
jmp 0x4154a2
cmp edi, esi
je 0x4155c8
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.00402e40
mov byte [ebp - 4], 3
cmp dword [ebp - 0x144], 0x10
jb 0x415589
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x128], edx
jmp 0x415595
lea eax, [ebp - 0x158]
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x168]
call fcn.0052b87d
push 0x5a8c3c
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.00532abb
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 0x4155f8
call fcn.004cf390
push 0
push pe_nt_image_headers32
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 0x41563a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x190]
call fcn.00438490
push 0x5a8fa8
mov ecx, esi
push ecx
call fcn.00532abb
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 0x415665
call fcn.004cf2c0
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 0x4156b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp - 0x17c]
call fcn.00438490
push 0x5a8fa8
mov eax, esi
push eax
call fcn.00532abb
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.00415730
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.0052b755
mov esp, ebp
pop ebp
ret