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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018083d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x80
push esi
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x48]
push edi
call fcn.10006440
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
sub eax, ecx
cmp eax, 0x10
jbe 0x10006961
cmp dword [ecx], 0x746c6153
jne 0x10006961
cmp dword [ecx + 4], 0x5f5f6465
jne 0x10006961
lea eax, [ecx + 8]
sub ecx, eax
add ecx, 0x10
push ecx
push eax
push 0
lea ecx, [ebp - 0x6c]
call fcn.10006ed0
mov edi, dword [ebp - 0x48]
lea eax, [edi + 0x10]
cmp edi, eax
je 0x10006961
mov esi, dword [ebp - 0x44]
sub esi, eax
push esi
push eax
push edi
call fcn.101579a0
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x54]
sub esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10006560
add esp, 0x10
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10006cc2
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x8c], 0x208
mov dword [ebp - 0x88], 0x6601
mov dword [ebp - 0x84], 8
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x7c], ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push 0
test eax, eax
jne 0x10006a32
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Failed_to_import_key.
jmp 0x10006cc7
push dword [ebp - 0x54]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 1
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x10006a64
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Failed_to_set_IV.
jmp 0x10006cc7
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push 4
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x10006a9a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Failed_to_set_cipher_mode.
jmp 0x10006cc7
mov ecx, dword [ebp - 0x44]
mov edi, 0
sub ecx, dword [ebp - 0x48]
mov esi, edi
mov eax, esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], eax
je 0x10006af0
cmp ecx, 0x7fffffff
ja 0x10006cdd
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10006e50
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
sub esi, eax
mov edi, dword [ebp - 0x3c]
push esi
push eax
push edi
call fcn.101579a0
mov eax, dword [ebp - 0x34]
add esp, 0xc
add esi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push dword [ebp - 0x14]
test eax, eax
jne 0x10006b3a
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Failed_to_decrypt_data.
lea ecx, [ebp - 0x78]
call fcn.10006400
push 0x101e19b8
lea eax, [ebp - 0x78]
jmp 0x10006cd7
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x20]
mov edx, esi
sub edx, edi
cmp ecx, edx
jae 0x10006b5b
lea esi, [edi + ecx]
jmp 0x10006b92
jbe 0x10006b95
mov eax, dword [ebp - 0x1c]
sub eax, edi
cmp ecx, eax
jbe 0x10006b7e
push ecx
push ecx
lea ecx, [ebp - 0x3c]
call fcn.100070d0
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x10006b95
sub ecx, edx
push ecx
push 0
push esi
mov dword [ebp - 0x2c], ecx
call fcn.10157f20
add esp, 0xc
add esi, dword [ebp - 0x2c]
mov dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x24]
sub esi, edi
xorps xmm0, xmm0
mov ecx, eax
push esi
push edi
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.10005380
test edi, edi
je 0x10006be8
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x10006bde
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ce2
push ecx
push edi
call fcn.10154c15
add esp, 8
mov edx, dword [ebp - 0x54]
test edx, edx
je 0x10006c1c
mov ecx, dword [ebp - 0x4c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10006c12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ce2
push ecx
push edx
call fcn.10154c15
add esp, 8
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x60]
sub ecx, edx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006c42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ce2
push ecx
push edx
call fcn.10154c15
mov ecx, dword [ebp - 0x6c]
add esp, 8
test ecx, ecx
je 0x10006c7c
mov edx, dword [ebp - 0x64]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10006c72
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ce2
push edx
push ecx
call fcn.10154c15
add esp, 8
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x10006cac
mov edx, dword [ebp - 0x40]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10006ca2
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ce2
push edx
push ecx
call fcn.10154c15
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x3c]
call fcn.10006400
push 0x101e19b8
lea eax, [ebp - 0x3c]
push eax
call fcn.1015821e
call fcn.100063f0
call fcn.1015ff88
int3