Function at 0x1029bf0
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 [0x010667f0]
xor rax, rsp
mov qword [rsp + 0xc30], rax
call fcn.0102a1e0
lea rax, [rsp + 0xbb0]
lea rcx, [0x01002220]
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.0102a000
nop
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
lea r8, [0x01006560]
xor edx, edx
lea rcx, [0x01069548]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1029cfc
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
lea r8, [0x01006500]
xor edx, edx
lea rcx, [0x01069548]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1029cf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [0x010064d8]
mov r8d, 0x1ba
xor edx, edx
mov ecx, 1
call fcn.01034b80
mov dword [rsp + 0xc00], 0
lea rcx, [rsp + 0x60]
call fcn.0102a0c0
mov eax, dword [rsp + 0xc00]
jmp 0x1029f86
mov dword [rsp + 0x40], 0x6603
lea r9, [0x01069550]
mov r8d, 1
mov edx, dword [rsp + 0x40]
mov rcx, qword [0x01069548]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x1029d62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [0x010064c0]
mov r8d, 0x1ba
xor edx, edx
mov ecx, 1
call fcn.01034b80
mov dword [rsp + 0xc04], 0
lea rcx, [rsp + 0x60]
call fcn.0102a0c0
mov eax, dword [rsp + 0xc04]
jmp 0x1029f86
mov dword [rsp + 0xba4], 8
mov qword [rsp + 0x48], 0
cmp dword [rsp + 0x40], 0x6603
jne 0x1029dc8
mov r8d, 0xec
lea rdx, [0x0100eff0]
lea rcx, [rsp + 0xc08]
call fcn.01029fc0
mov r8, qword [0x01069548]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.0102a1a0
lea rcx, [rsp + 0x60]
call fcn.0105fbf0
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 [0x01069550]
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
cmp dword [rsp + 0x44], 0
jne 0x1029e43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [0x010064a0]
mov r8d, 0x1ba
xor edx, edx
mov ecx, 1
call fcn.01034b80
mov dword [rsp + 0xc18], 0
lea rcx, [rsp + 0x60]
call fcn.0102a0c0
mov eax, dword [rsp + 0xc18]
jmp 0x1029f86
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 0x1029eba
lea rax, [rsp + 0xbb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xd5f
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
lea r9, [0x01006490]
mov r8d, 0x15d
xor edx, edx
mov ecx, 1
call fcn.01034b80
mov dword [rsp + 0xc1c], 0
lea rcx, [rsp + 0x60]
call fcn.0102a0c0
mov eax, dword [rsp + 0xc1c]
jmp 0x1029f86
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 [0x01069550]
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x1029f41
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, [0x010064a0]
mov r8d, 0x1ba
xor edx, edx
mov ecx, 1
call fcn.01034b80
mov dword [rsp + 0xc20], 0
lea rcx, [rsp + 0x60]
call fcn.0102a0c0
mov eax, dword [rsp + 0xc20]
jmp 0x1029f86
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xba8]
call fcn.010298c0
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.0102a0c0
mov eax, dword [rsp + 0xc24]
mov rcx, qword [rsp + 0xc30]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0xc48
pop rdi
pop rsi
ret