Function at 0x10006cd0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c00ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.10006760
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.10007570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.10007130
cmp eax, 0x10
jbe 0x10006e0c
push 8
push str.Salted__
lea ecx, [ebp - 0x20]
call fcn.10007290
push eax
call fcn.10197fb5
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10006e0c
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x54]
call fcn.100071d0
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0x10
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x20]
call fcn.10007250
mov ecx, eax
call fcn.10007100
mov eax, dword [eax]
push eax
push 8
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x20]
call fcn.10007250
mov ecx, eax
call fcn.10007100
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x98]
push edx
lea ecx, [ebp - 0x54]
call fcn.10007c40
nop
push 0x10
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10007250
mov ecx, eax
call fcn.10007100
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x20]
call fcn.10007250
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10007310
nop
jmp 0x10006e2e
push str.Invalid_encrypted_data_header.
lea ecx, [ebp - 0xb4]
call fcn.10006700
push 0x102371d4
lea edx, [ebp - 0xb4]
push edx
call fcn.10197eae
nop
lea ecx, [ebp - 0x80]
call fcn.10007570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.10007570
mov byte [ebp - 4], 3
push 8
push 8
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.10006860
add esp, 0x18
mov dword [ebp - 0x14], 0
push 0xf0000000
push 1
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10006ea4
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0xc0]
call fcn.10006700
push 0x102371d4
lea edx, [ebp - 0xc0]
push edx
call fcn.10197eae
nop
mov byte [ebp - 0x68], 8
mov byte [ebp - 0x67], 2
xor eax, eax
mov word [ebp - 0x66], ax
mov dword [ebp - 0x64], 0x6601
mov dword [ebp - 0x60], 8
lea ecx, [ebp - 0x80]
call fcn.10007290
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x14
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x10006f25
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_import_key.
lea ecx, [ebp - 0xcc]
call fcn.10006700
push 0x102371d4
lea ecx, [ebp - 0xcc]
push ecx
call fcn.10197eae
nop
push 0
lea ecx, [ebp - 0x74]
call fcn.10007290
push eax
push 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x10006f79
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_set_IV.
lea ecx, [ebp - 0xd8]
call fcn.10006700
push 0x102371d4
lea edx, [ebp - 0xd8]
push edx
call fcn.10197eae
nop
mov dword [ebp - 0x3c], 1
push 0
lea eax, [ebp - 0x3c]
push eax
push 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x10006fcf
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_set_cipher_mode.
lea ecx, [ebp - 0xe4]
call fcn.10006700
push 0x102371d4
lea ecx, [ebp - 0xe4]
push ecx
call fcn.10197eae
nop
lea ecx, [ebp - 0x20]
call fcn.10007130
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x48]
call fcn.100074c0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.10007290
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10007044
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_decrypt_data.
lea ecx, [ebp - 0xf0]
call fcn.10006700
push 0x102371d4
lea ecx, [ebp - 0xf0]
push ecx
call fcn.10197eae
nop
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x48]
call fcn.100073d0
lea ecx, [ebp - 0x48]
call fcn.10007130
push eax
lea ecx, [ebp - 0x48]
call fcn.10007290
push eax
lea ecx, [ebp - 0x108]
call fcn.100076b0
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp + 8]
call fcn.10007660
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x108]
call fcn.10007640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.100073f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.100073f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call fcn.100073f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.100073f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.100073f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret