Function at 0x14003a9a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x38], 0xffffffff
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xd0]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov rax, rcx
mov dword [rsp + 0x94], eax
mov qword [rsp + 0xa8], 0
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x98], 0
lea rax, [rsp + 0x99]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohs
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 0xffffffff
mov r8d, 9
mov rdx, qword [rsp + 0xd0]
lea rcx, str._CRYPTEX_
call fcn.1400487a0
test eax, eax
jne 0x14003aa7d
mov dword [rsp + 0x90], 9
mov dword [rsp + 0x30], 0
mov r8d, 0xa
mov rdx, qword [rsp + 0xd0]
lea rcx, str._CRYPTEX3_
call fcn.1400487a0
test eax, eax
jne 0x14003aaae
mov dword [rsp + 0x90], 0xa
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x94], eax
jbe 0x14003ad3e
cmp dword [rsp + 0x90], 0
jle 0x14003ad3e
mov dword [rsp + 0xb0], 0
cmp dword [rsp + 0x30], 1
jne 0x14003ab1e
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x90]
mov rdx, qword [rsp + 0xd0]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov edx, eax
call fcn.14003a170
jmp 0x14003ab40
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
sub ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 2
div ecx
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xb0]
mov rcx, rax
call fcn.140048900
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x14003ad3e
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x60]
call fcn.140039b60
cmp dword [rsp + 0x30], 1
jne 0x14003abc0
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x90]
mov rdx, qword [rsp + 0xd0]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov edx, eax
call fcn.14003a170
jmp 0x14003abff
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x90]
mov rdx, qword [rsp + 0xd0]
add rdx, rcx
mov rcx, rdx
mov r9d, dword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov edx, eax
call fcn.14003a270
call fcn.140038ee0
test eax, eax
je 0x14003ac14
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0xf0000000
mov r9d, Ordinal_27
mov r8, qword [rsp + 0x48]
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14003ac3d
jmp 0x14003ad3e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, Ordinal_46
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14003ac71
jmp 0x14003ad3e
xor r9d, r9d
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x14003ac95
jmp 0x14003ad3e
xor r9d, r9d
lea r8, [rsp + 0x34]
mov edx, 3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x14003acb6
jmp 0x14003ad3e
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x14003acec
jmp 0x14003ad3e
mov eax, dword [rsp + 0xb0]
sub eax, 3
mov eax, eax
mov rcx, qword [rsp + 0xa8]
add rcx, 3
mov edx, dword [rsp + 0x94]
mov r9, rax
mov r8, rcx
mov rcx, qword [rsp + 0xd0]
call fcn.140041310
mov eax, dword [rsp + 0xb0]
sub eax, 3
mov eax, eax
mov rcx, qword [rsp + 0xd0]
mov byte [rcx + rax], 0
mov dword [rsp + 0x38], 1
cmp qword [rsp + 0x40], 0
je 0x14003ad51
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp qword [rsp + 0x50], 0
je 0x14003ad66
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp qword [rsp + 0xa8], 0
je 0x14003ad7e
mov rcx, qword [rsp + 0xa8]
call fcn.140046f30
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140041910
add rsp, 0xc0
pop rdi
ret