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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140077020]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x20], 0
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14000e811
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x14000e7ee
movzx eax, byte [rsp + 0xc8]
test eax, eax
je 0x14000e798
mov dword [rsp + 0x34], 8
jmp 0x14000e7a0
mov dword [rsp + 0x34], 0xf0000008
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9d, 0x18
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14000e7ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.log:CymMimi::CryptoInit::CryptAcquireContextW_1__error__d_n
mov rcx, qword [0x140079cc8]
call fcn.140004980
xor al, al
jmp 0x14000eb49
jmp 0x14000e811
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.log:CymMimi::CryptoInit::CryptAcquireContextW_2__error__d_n
mov rcx, qword [0x140079cc8]
call fcn.140004980
xor al, al
jmp 0x14000eb49
mov byte [rsp + 0x40], 8
mov byte [rsp + 0x41], 2
xor eax, eax
mov word [rsp + 0x42], ax
mov dword [rsp + 0x44], 0x6610
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xc0]
lea rcx, [rsp + 0x4c]
mov rdi, rcx
mov rsi, qword [rsp + 0xb8]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x2c
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14000e8cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.log:CymMimi::CryptoInit::CryptImportKey___error__d_n
mov rcx, qword [0x140079cc8]
call fcn.140004980
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
je 0x14000e8c5
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14000eb49
xor r9d, r9d
lea r8, [rsp + 0x38]
mov edx, 4
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x14000e951
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.log:CymMimi::CryptoInit::CryptSetKeyParam_first__error__d_n
mov rcx, qword [0x140079cc8]
call fcn.140004980
mov rax, qword [rsp + 0xa0]
cmp qword [rax], 0
je 0x14000e929
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
je 0x14000e94a
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14000eb49
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x30]
mov edx, 8
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
jne 0x14000e9e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.log:CymMimi::CryptoInit::CryptGetKeyParam___error__d_n
mov rcx, qword [0x140079cc8]
call fcn.140004980
mov rax, qword [rsp + 0xa0]
cmp qword [rax], 0
je 0x14000e9b8
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
je 0x14000e9d9
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14000eb49
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 8
div ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call fcn.14003a28c
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax], 0
jne 0x14000ea78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.log:CymMimi::CryptoInit::malloc_iv__error__d_n
mov rcx, qword [0x140079cc8]
call fcn.140004980
mov rax, qword [rsp + 0xa0]
cmp qword [rax], 0
je 0x14000ea50
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
je 0x14000ea71
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14000eb49
mov eax, dword [rsp + 0x30]
mov edx, eax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call fcn.14000e6b0
xor r9d, r9d
mov rax, qword [rsp + 0xb0]
mov r8, qword [rax]
mov edx, 1
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x14000eb47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.log:CymMimi::CryptoInit::CryptSetKeyParam_second__error__d_n
mov rcx, qword [0x140079cc8]
call fcn.140004980
mov rax, qword [rsp + 0xb0]
cmp qword [rax], 0
je 0x14000eb03
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call fcn.1400398b4
mov rax, qword [rsp + 0xb0]
mov qword [rax], 0
mov rax, qword [rsp + 0xa0]
cmp qword [rax], 0
je 0x14000eb22
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
je 0x14000eb43
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14000eb49
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001ec40
add rsp, 0x88
pop rdi
pop rsi
ret