Function at 0x49640c
Capabilities:
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0x70
mov eax, 0x4b2d7c
call fcn.00454652
mov edi, ecx
mov dword [ebp - 0x70], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x68], ebx
or dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x74], esi
cmp esi, 0xffffffff
je 0x4965da
lea ecx, [ebp - 0x60]
call fcn.00408a90
push ebx
lea eax, [ebp - 0x6c]
push eax
push 0x18
lea eax, [ebp - 0x58]
push eax
push esi
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4965da
cmp dword [ebp - 0x4c], ebx
je 0x496583
mov dword [ebp - 0x5c], ebx
push dword [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004554e7
mov esi, eax
pop ecx
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x8004
push dword [edi]
mov byte [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4964e1
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x48]
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4964e1
push ebx
push dword [ebp - 0x48]
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4964ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x74], eax
jmp 0x496557
push 1
lea eax, [ebp - 0x61]
push eax
push dword [ebp - 0x78]
lea ecx, [ebp - 0x40]
call fcn.004115ed
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0044a120
push ebx
push edi
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x49652a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x74], eax
jmp 0x49654f
mov edi, dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0x5c]
push 0x6801
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x496568
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x74], eax
lea ecx, [ebp - 0x40]
call fcn.00401b80
push esi
call fcn.00453342
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.00495d6a
jmp 0x4965e3
lea ecx, [ebp - 0x40]
call fcn.00401b80
push esi
call fcn.00453342
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00495d6a
push dword [ebp - 0x44]
call fcn.004554e7
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x44]
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4965c4
xor ecx, ecx
cmp dword [ebp - 0x4c], ecx
lea eax, [edi + 4]
cmovne ecx, dword [ebp - 0x68]
push eax
push 0x10
push ecx
push dword [ebp - 0x44]
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4965cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x74], eax
jmp 0x4965d1
mov bl, 1
push esi
call fcn.00453342
pop ecx
jmp 0x4965e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x74], eax
lea ecx, [ebp - 0x60]
call fcn.00408a90
lea ecx, [ebp - 0x68]
call fcn.00495d84
mov al, bl
call fcn.00454601
ret 8