Function at 0x459840
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 0xffffffffffffffff
push 0x4dac00
mov eax, dword fs:[0]
push eax
mov eax, 0x5c
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5808f0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov edi, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], ebx
call fcn.00424cc0
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x7c], 1
mov byte [esp + 0x60], bl
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov word [esp + 0x6d], ax
mov byte [esp + 0x6f], al
mov dword [esp + 0x1c], 0x10
call fcn.0041ae00
add esp, 4
cmp eax, 0xd
je 0x459919
mov edx, dword [esp + 0x14]
push edx
call fcn.004690f0
push str.Wrong_pass_file_size_n
call fcn.0041a700
add esp, 8
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0
call fcn.00424ce0
cmp dword [esp + 0x34], 8
jb 0x459b3f
mov eax, dword [esp + 0x20]
push eax
call fcn.004699ce
add esp, 4
jmp 0x459b3f
mov esi, dword [esp + 0x14]
xor eax, eax
lea ecx, [edi + 0x34]
mov dl, byte [esi + eax + 5]
mov byte [ecx], dl
inc eax
add ecx, 2
cmp eax, 8
jl 0x459922
push esi
call fcn.004690f0
add esp, 4
cmp dword [0x584064], ebx
je 0x45994e
mov ecx, 0x4e43d8
mov eax, 0x4e2e58
jmp 0x459958
mov ecx, 0x4e43a0
mov eax, str.Choose_encrypted_doc_file
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov ecx, edi
call fcn.0042bd50
test al, al
je 0x4598ee
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x45997d
lea eax, [esp + 0x20]
push 1
push eax
lea ecx, [esp + 0x40]
call fcn.00424d40
lea ecx, [esp + 0x38]
call fcn.00424740
test al, al
jne 0x4599cd
push str.Error_reading_file_for_test_n
call fcn.0041a700
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0
call fcn.00424ce0
cmp dword [esp + 0x34], esi
jb 0x459b3f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004699ce
add esp, 4
jmp 0x459b3f
push ebx
push 0x10
lea edx, [esp + 0x64]
push edx
push ebx
push ebx
lea ecx, [esp + 0x4c]
call fcn.00424750
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x10
push 1
push ebx
push ebx
lea esi, [edi + 0x24]
push esi
call ebp
test eax, eax
jne 0x4599fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf0000000
push 1
push ebx
push ebx
push esi
mov dword [esi], ebx
call ebp
test eax, eax
jne 0x459a20
push str.CryptAcquireContext_error_n
call fcn.0041a700
add esp, 4
jmp 0x4598ee
mov ecx, dword [esi]
lea ebp, [edi + 0x2c]
push ebp
push ebx
push ebx
push 0x8004
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x459a70
push str.CryptCreateHash_error_n
call fcn.0041a700
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0
call fcn.00424ce0
cmp dword [esp + 0x34], 8
jb 0x459b3f
mov edx, dword [esp + 0x20]
push edx
call fcn.004699ce
add esp, 4
jmp 0x459b3f
push ebx
push 0x10
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x459a97
push str.CryptHashData_error_n
call fcn.0041a700
add esp, 4
jmp 0x459b28
mov ecx, dword [ebp]
mov edx, dword [esi]
lea ebx, [edi + 0x28]
push ebx
push 0
push ecx
push 0x6801
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x459ac2
push str.CryptDeriveKey_error_n
call fcn.0041a700
add esp, 4
jmp 0x459b28
mov eax, dword [ebx]
lea esi, [edi + 0x30]
push esi
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x459ae6
push str.DuplicateKey_error_n
call fcn.0041a700
add esp, 4
jmp 0x459b28
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x60]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x459b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_CryptDecrypt__0x_X__n
call fcn.0046bceb
jmp 0x459b25
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.0041a7a0
mov byte [edi + 0x20], al
add esp, 8
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0
call fcn.00424ce0
lea ecx, [esp + 0x1c]
call fcn.0041b5b0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004690b5
add esp, 0x68
ret