Function at 0x1001a058
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0xf0000000
xor eax, eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
mov dword [ebp - 0xc], eax
mov bl, al
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1001a1fb
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001a1ef
cmp byte [esi], 0
je 0x1001a1ef
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1001a1e1
push 0
push dword [ebp + 0xc]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1001a1d3
lea eax, [ebp - 0x10]
push eax
push 0xa80000
push dword [ebp - 4]
push 0x6603
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1001a1c5
mov esi, dword [ebp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1001a101
sub esi, ecx
inc esi
mov eax, esi
mov dword [ebp - 8], esi
and eax, 7
sub esi, eax
add esi, 8
push esi
call fcn.1001f0b0
push dword [ebp - 8]
mov edi, eax
push dword [ebp + 0x10]
push edi
call fcn.1003e240
add esp, 0x10
lea eax, [ebp - 8]
push esi
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1001a159
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_CryptEncrypt:__x_n
jmp 0x1001a207
movd xmm0, dword [ebp - 8]
mov eax, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
push ecx
push ecx
addsd xmm0, qword [eax*8 + 0x100ae960]
divsd xmm0, qword [0x100ae950]
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.1008bb40
movd xmm1, dword [ebp + 0x18]
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
mulsd xmm0, qword [0x100ae958]
pop ecx
cvtdq2pd xmm1, xmm1
pop ecx
addsd xmm0, qword [0x100ae948]
comisd xmm0, xmm1
ja 0x1001a1c1
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp - 8]
call fcn.1001a39d
mov bl, 1
jmp 0x1001a20e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_CryptDeriveKey___x_n
jmp 0x1001a207
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_CryptHashData:__x_n
jmp 0x1001a207
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_CryptCreateHash:__x_n
jmp 0x1001a207
push str.No_password_provided_n
call fcn.10020e18
jmp 0x1001a20d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_CryptAcquireContext___x_n
call fcn.10020e18
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x1001a230
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x1001a22c
push str.Error_during_CryptDestroyHash._n
call fcn.10020e18
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x1001a24e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x1001a24e
push str.Error_during_CryptDestroyKey__n
call fcn.10020e18
pop ecx
cmp dword [ebp - 0xc], 0
je 0x1001a26e
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1001a26e
push str.Error_during_CryptReleaseContext__n
call fcn.10020e18
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x18