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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13fc
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13fc], eax
mov dword [ebp - 0x14], 0xe8e6f2da
mov dword [ebp - 0x10], 0xe4bec6d2
mov dword [ebp - 0xc], 0xd0e8f2d0
mov word [ebp - 8], 0xe6da
push ebx
push esi
push edi
cmp edx, 0xb
jb 0x4361d5
lea ebx, [edx - 3]
lea eax, [ecx + 3]
push ebx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.00638b30
add esp, 0xc
mov byte [ebp - 0x13b3], 2
xor eax, eax
mov dword [ebp - 0x13b0], 0x6601
mov word [ebp - 0x13b2], ax
lea eax, [ebp - 0x14]
push 8
pop ecx
push ecx
push eax
lea eax, [ebp - 0x13a8]
mov byte [ebp - 0x13b4], cl
push eax
mov dword [ebp - 0x13ac], ecx
call fcn.00638b30
add esp, 0xc
lea eax, [ebp - 0x13e8]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4361cf
lea eax, [ebp - 0x13e4]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x13b4]
push eax
push dword [ebp - 0x13e8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x435f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x13e8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4361d5
push 0
lea eax, [ebp - 0x13f4]
mov dword [ebp - 0x13f4], 2
push eax
push 4
push dword [ebp - 0x13e4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x435f49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x13e4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x435efd
and dword [ebp - 0x13ec], 0
mov esi, ebx
shr esi, 3
test esi, esi
je 0x435f9b
lea edi, [ebp - 0x400]
lea eax, [ebp - 0x13f0]
mov dword [ebp - 0x13f0], 8
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x13e4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x435f35
mov eax, dword [ebp - 0x13ec]
add edi, 8
inc eax
mov dword [ebp - 0x13ec], eax
cmp eax, esi
jb 0x435f5f
push dword [ebp - 0x13e4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0
push dword [ebp - 0x13e8]
call esi
cmp ebx, 0x3e8
jae 0x4361e6
lea edx, [ebp - 0xfb8]
mov byte [ebp + ebx - 0x400], 0
lea ecx, [ebp - 0x400]
call fcn.00404638
shr ebx, 1
cmp ebx, 8
jb 0x4361d5
push 0x3e8
lea eax, [ebp - 0x7e8]
push 0
push eax
call fcn.006390b0
add esp, 0xc
lea eax, [ebp - 0xbd0]
push 0x3e8
push 0
push eax
call fcn.006390b0
and dword [ebp - 0x13ec], 0
lea eax, [ebp - 0x13f8]
and dword [ebp - 0x13f8], 0
lea ecx, [ebp - 0xfb8]
add esp, 0xc
push eax
lea eax, [ebp - 0xbd0]
push eax
lea eax, [ebp - 0x13ec]
push eax
lea eax, [ebp - 0x7e8]
push eax
call fcn.00435c59
add esp, 0x10
test eax, eax
je 0x4361d5
push dword [ebp - 0x13ec]
lea eax, [ebp - 0x7e8]
mov dword [ebp - 0x13d8], 0x208
push eax
lea eax, [ebp - 0x13cc]
mov dword [ebp - 0x13d4], 0x6603
push eax
mov dword [ebp - 0x13d0], 0x18
call fcn.00638b30
add esp, 0xc
lea eax, [ebp - 0x13e0]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4361cf
lea eax, [ebp - 0x13dc]
push eax
push 0
push 0
push 0x24
lea eax, [ebp - 0x13d8]
push eax
push dword [ebp - 0x13e0]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4360e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x13e0]
call esi
jmp 0x4361d5
push 0
lea eax, [ebp - 0xbd0]
push eax
push 1
push dword [ebp - 0x13dc]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x436113
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x13dc]
call edi
jmp 0x4360d9
push 0
lea eax, [ebp - 0x13f4]
mov dword [ebp - 0x13f4], 1
push eax
push 4
push dword [ebp - 0x13dc]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x436103
lea eax, [ebx - 8]
push eax
mov dword [ebp - 0x13f0], eax
lea eax, [ebp - 0xfb0]
push eax
lea eax, [ebp - 0x13a0]
push eax
call fcn.00638b30
add esp, 0xc
lea eax, [ebp - 0x13f0]
xor ebx, ebx
push eax
lea eax, [ebp - 0x13a0]
push eax
push ebx
push 1
push ebx
push dword [ebp - 0x13dc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x436190
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x13dc]
call edi
push ebx
jmp 0x4360db
push dword [ebp - 0x13dc]
call edi
push ebx
push dword [ebp - 0x13e0]
call esi
mov ecx, dword [ebp - 0x13f0]
cmp ecx, 8
jbe 0x4361d5
add ecx, 0xfffffff8
push ecx
lea ecx, [ebp - 0x1398]
push ecx
push 0x3e8
push dword [ebp - 0x13fc]
call fcn.00650b7d
xor eax, eax
add esp, 0x10
inc eax
jmp 0x4361d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
call fcn.00612782
int3