Function at 0x1029150
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt data using des via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0xc48
mov qword [rsp + 0xc28], 0xfffffffffffffffe
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0xc30], rax
call fcn.01029740
lea rax, [rsp + 0xbb0]
lea rcx, [0x01002200]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x42
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x40], 0x6610
mov qword [rsp + 0xba8], 0
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x60]
call fcn.01029560
nop
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
lea r8, [0x01006310]
xor edx, edx
lea rcx, [0x01068548]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x102925c
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
lea r8, [0x010062b0]
xor edx, edx
lea rcx, [0x01068548]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1029254
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [0x01006288]
mov r8d, 0x1ba
xor edx, edx
mov ecx, 1
call fcn.01033fa0
mov dword [rsp + 0xc00], 0
lea rcx, [rsp + 0x60]
call fcn.01029620
mov eax, dword [rsp + 0xc00]
jmp 0x10294e6
mov dword [rsp + 0x40], 0x6603
lea r9, [0x01068550]
mov r8d, 1
mov edx, dword [rsp + 0x40]
mov rcx, qword [0x01068548]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x10292c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [0x01006270]
mov r8d, 0x1ba
xor edx, edx
mov ecx, 1
call fcn.01033fa0
mov dword [rsp + 0xc04], 0
lea rcx, [rsp + 0x60]
call fcn.01029620
mov eax, dword [rsp + 0xc04]
jmp 0x10294e6
mov dword [rsp + 0xba4], 8
mov qword [rsp + 0x48], 0
cmp dword [rsp + 0x40], 0x6603
jne 0x1029328
mov r8d, 0xec
lea rdx, [0x0100ed70]
lea rcx, [rsp + 0xc08]
call fcn.01029520
mov r8, qword [0x01068548]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.01029700
lea rcx, [rsp + 0x60]
call fcn.0105ebb0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0xba4], 1
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xba4]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x01068550]
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
cmp dword [rsp + 0x44], 0
jne 0x10293a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [0x01006250]
mov r8d, 0x1ba
xor edx, edx
mov ecx, 1
call fcn.01033fa0
mov dword [rsp + 0xc18], 0
lea rcx, [rsp + 0x60]
call fcn.01029620
mov eax, dword [rsp + 0xc18]
jmp 0x10294e6
mov eax, dword [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.MSVCR80.dll_malloc]
mov qword [rsp + 0xba8], rax
cmp qword [rsp + 0xba8], 0
jne 0x102941a
lea rax, [rsp + 0xbb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xc5f
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
lea r9, [0x01006240]
mov r8d, 0x15d
xor edx, edx
mov ecx, 1
call fcn.01033fa0
mov dword [rsp + 0xc1c], 0
lea rcx, [rsp + 0x60]
call fcn.01029620
mov eax, dword [rsp + 0xc1c]
jmp 0x10294e6
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xba8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xba4]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x01068550]
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x10294a1
mov rcx, qword [rsp + 0xba8]
call qword [sym.imp.MSVCR80.dll_free]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [0x01006250]
mov r8d, 0x1ba
xor edx, edx
mov ecx, 1
call fcn.01033fa0
mov dword [rsp + 0xc20], 0
lea rcx, [rsp + 0x60]
call fcn.01029620
mov eax, dword [rsp + 0xc20]
jmp 0x10294e6
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xba8]
call fcn.01028e20
mov dword [rsp + 0xba0], eax
mov rcx, qword [rsp + 0xba8]
call qword [sym.imp.MSVCR80.dll_free]
mov eax, dword [rsp + 0xba0]
mov dword [rsp + 0xc24], eax
lea rcx, [rsp + 0x60]
call fcn.01029620
mov eax, dword [rsp + 0xc24]
mov rcx, qword [rsp + 0xc30]
xor rcx, rsp
call fcn.010588f0
add rsp, 0xc48
pop rdi
pop rsi
ret