Function at 0x5ba5e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
mov byte [ebp - 0x415], 0
push 0
push 1
push 0x764cf4
push 0
mov eax, dword [ebp - 0x41c]
add eax, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x5ba628
mov byte [ebp - 0x41d], 1
jmp 0x5ba62f
mov byte [ebp - 0x41d], 0
mov cl, byte [ebp - 0x41d]
mov byte [ebp - 0x415], cl
movzx edx, byte [ebp - 0x415]
test edx, edx
jne 0x5ba6e2
push 8
push 1
push 0x764d24
push 0
mov eax, dword [ebp - 0x41c]
add eax, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x5ba672
mov byte [ebp - 0x41e], 1
jmp 0x5ba679
mov byte [ebp - 0x41e], 0
mov cl, byte [ebp - 0x41e]
mov byte [ebp - 0x415], cl
movzx edx, byte [ebp - 0x415]
test edx, edx
jne 0x5ba6e2
push 0x101
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0070dc20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_in_Acquring_Context__ErrorCode_ld
push 0x100
lea ecx, [ebp - 0x108]
push ecx
call fcn.005bafc0
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp - 0x41c]
call fcn.005ba910
mov eax, 1
jmp 0x5ba8f4
movzx eax, byte [ebp - 0x415]
test eax, eax
je 0x5ba8f2
mov ecx, dword [ebp - 0x41c]
add ecx, 8
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x5ba76f
push 0x101
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0070dc20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_in_Hashing_Object__ErrorCode_ld
push 0x100
lea edx, [ebp - 0x20c]
push edx
call fcn.005bafc0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x41c]
call fcn.005ba910
mov eax, 2
jmp 0x5ba8f4
push str.Hashing_Object_is_Created_Successfully
mov ecx, dword [ebp - 0x41c]
call fcn.005ba910
push 0xa
push 0
mov ecx, dword [ebp - 0x41c]
add ecx, 0x412
push ecx
call fcn.0070dc20
add esp, 0xc
mov edx, 0xa
mov word [ebp - 0x424], dx
movsx eax, word [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x41c]
add ecx, 0x412
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
movsx eax, word [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x41c]
add ecx, 0x412
push ecx
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x5ba84e
push 0x101
push 0
lea ecx, [ebp - 0x310]
push ecx
call fcn.0070dc20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_in_MD5_Hash_Data__ErrorCode_ld
push 0x100
lea edx, [ebp - 0x310]
push edx
call fcn.005bafc0
add esp, 0x10
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp - 0x41c]
call fcn.005ba910
mov eax, 3
jmp 0x5ba8f4
push str.MD5_Hash_data_is_Created_Successfully
mov ecx, dword [ebp - 0x41c]
call fcn.005ba910
mov ecx, dword [ebp - 0x41c]
add ecx, 0xc
push ecx
push 1
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 8]
push eax
push 0x6609
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x5ba8de
push 0x101
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0070dc20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_in_Creating_Session_Key__ErrorCode_ld
push 0x100
lea ecx, [ebp - 0x414]
push ecx
call fcn.005bafc0
add esp, 0x10
lea edx, [ebp - 0x414]
push edx
mov ecx, dword [ebp - 0x41c]
call fcn.005ba910
mov eax, 4
jmp 0x5ba8f4
push str.Sesion_Key_is_Created_Successfully
mov ecx, dword [ebp - 0x41c]
call fcn.005ba910
xor eax, eax
jmp 0x5ba8f4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 4