Function at 0x406720
Capabilities:
Create new key via cryptacquirecontext
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 0xffffffffffffffff
push 0x457168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
push ebx
push 0x18
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x40677f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40677f
push 8
push 0x18
push ebx
lea ecx, [esp + 0x18]
push ebx
push ecx
call edi
mov esi, eax
mov edx, dword [str.Novatel_Wireless]
mov eax, dword [0x469d30]
mov ecx, dword [0x469d34]
mov dword [esp + 0x20], edx
mov edx, dword [0x469d38]
mov dword [esp + 0x24], eax
mov al, byte [0x469d3c]
cmp esi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov byte [esp + 0x30], al
je 0x4067e9
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, eax
cmp esi, ebx
je 0x4067e9
mov ecx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x24]
push 0x10
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], ebx
je 0x4068c9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x11
push eax
push 0x6603
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
cmp eax, ebx
je 0x4068c9
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x34]
push ebx
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
cmp eax, ebx
je 0x4068c9
push 0x104
lea ecx, [esp + 0xc8]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x104
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
push ecx
push esi
push ebx
push 1
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ecx
push esi
call fcn.00406610
add esp, 0xc
lea ecx, [esp + 0xc4]
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc8]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0xc]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [esp + 0xc4]
mov dword [esp + 0xbc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret 8