Function at 0x10001bb0
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x10038a6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call fcn.10037df8
mov ecx, dword [esp + 0x178]
mov esi, dword [esp + 0x174]
mov dword [esp + 0x24], ecx
mov eax, ecx
lea edi, [esp + 0x58]
mov ebp, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push 0x100430a0
lea ecx, [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x174], ebp
call dword [sym.imp.advapi32.dll_CryptAcquireContextW]
test eax, eax
je 0x10001dbc
mov eax, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], al
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x16c]
push ecx
push 0
push 0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x38]
push 0x2c
push edx
push eax
mov byte [esp + 0x45], 2
mov dword [esp + 0x48], 0x6601
mov word [esp + 0x46], 0
call dword [sym.imp.advapi32.dll_CryptImportKey]
test eax, eax
jne 0x10001c8b
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x10001daf
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.advapi32.dll_CryptSetKeyParam]
push 0
push ecx
push ebp
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 0
push eax
push 4
push ecx
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
je 0x10001da4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 0
push edx
push 3
push eax
mov dword [esp + 0x2c], ebp
call esi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push 0x100
lea edx, [esp + 0x5c]
push ecx
push edx
push 0
push ebp
push 0
push eax
call dword [sym.imp.advapi32.dll_CryptEncrypt]
test eax, eax
je 0x10001da4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.100019e0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.10037df8
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 2
call fcn.10037df8
mov eax, dword [esp + 0xc]
xor esi, esi
mov byte [esp + 0x160], 3
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x10001d74
mov ax, word [eax + esi*2]
lea ecx, [esp + 0x14]
and eax, 0xffff
push eax
push 0x10043094
push ecx
call sub.mfc42u.dll_CString::Format
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call sub.mfc42u.dll_CString::operator
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x10001d40
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
call fcn.10037e3a
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 2
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.advapi32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov esi, dword [esp + 0x168]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.mfc42u.dll_CString::CString_1
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 0
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x158]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret