Function at 0x10006320
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 0x101ba549
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.10005c20
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.10006cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.10006830
cmp eax, 0x10
jbe 0x100064a1
push 8
push str.Salted__
lea ecx, [ebp - 0x20]
call fcn.10006990
push eax
call fcn.101924a5
add esp, 0xc
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x100064a1
lea edx, [ebp - 0xe8]
push edx
lea ecx, [ebp - 0x20]
call fcn.10006950
mov dword [ebp - 0x2c], eax
push 0x10
lea eax, [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.10006800
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x20]
call fcn.10006950
mov dword [ebp - 0x34], eax
push 8
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.10006800
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x98]
call fcn.100068d0
mov edx, dword [eax]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x98]
call fcn.10007410
nop
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x20]
call fcn.10006950
mov dword [ebp - 0x50], eax
push 0x10
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.10006800
mov edx, dword [eax]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10006950
mov edx, dword [eax]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x20]
call fcn.10006a30
nop
jmp 0x100064c3
push str.Invalid_encrypted_data_header.
lea ecx, [ebp - 0xf8]
call fcn.10005bc0
push 0x1022edcc
lea ecx, [ebp - 0xf8]
push ecx
call fcn.1019239e
nop
lea ecx, [ebp - 0xc4]
call fcn.10006cd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.10006cd0
mov byte [ebp - 4], 3
push 8
push 8
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0xc4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x98]
push edx
call fcn.10005d40
add esp, 0x18
mov dword [ebp - 0x14], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10006548
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x104]
call fcn.10005bc0
push 0x1022edcc
lea ecx, [ebp - 0x104]
push ecx
call fcn.1019239e
nop
mov byte [ebp - 0xac], 8
mov byte [ebp - 0xab], 2
xor edx, edx
mov word [ebp - 0xaa], dx
mov dword [ebp - 0xa8], 0x6601
mov dword [ebp - 0xa4], 8
lea ecx, [ebp - 0xc4]
call fcn.10006990
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x14
lea ecx, [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100065e4
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 - 0x110]
call fcn.10005bc0
push 0x1022edcc
lea ecx, [ebp - 0x110]
push ecx
call fcn.1019239e
nop
lea ecx, [ebp - 0xb8]
call fcn.10006990
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x68], edx
push 0
mov eax, dword [ebp - 0x64]
push eax
push 1
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x10006647
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_IV.
lea ecx, [ebp - 0x11c]
call fcn.10005bc0
push 0x1022edcc
lea ecx, [ebp - 0x11c]
push ecx
call fcn.1019239e
nop
mov dword [ebp - 0x6c], 1
push 0
lea edx, [ebp - 0x6c]
push edx
push 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x1000669d
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_set_cipher_mode.
lea ecx, [ebp - 0x128]
call fcn.10005bc0
push 0x1022edcc
lea eax, [ebp - 0x128]
push eax
call fcn.1019239e
nop
lea ecx, [ebp - 0x20]
call fcn.10006830
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.10006c10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.10006990
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10006724
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_decrypt_data.
lea ecx, [ebp - 0x134]
call fcn.10005bc0
push 0x1022edcc
lea edx, [ebp - 0x134]
push edx
call fcn.1019239e
nop
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]
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x8c]
call fcn.10006b00
lea ecx, [ebp - 0x8c]
call fcn.10006830
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x8c]
call fcn.10006990
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.10006e60
lea edx, [ebp - 0x14c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10006df0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x14c]
call fcn.10006dd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.10006b20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.10006b20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.10006b20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.10006b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10006b20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret