Function at 0x7ff7ed42b6e4
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rbp + 8], rax
mov sil, r8b
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
or rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rdx + r8], r14b
jne 0x7ff7ed42b72e
lea rcx, [rbp - 0x48]
call fcn.7ff7ed383aa8
nop
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x48]
call fcn.7ff7ed42b3b8
nop
mov rax, qword [rsp + 0x50]
sub rax, qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6610
mov r15d, 0x20
mov dword [rbp - 0x20], r15d
test sil, sil
jne 0x7ff7ed42b7bf
movdqa xmm0, xmmword [0x7ff7ed749bd0]
movdqu xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x7ff7ed749b80]
movdqu xmmword [rbp - 0x60], xmm1
mov byte [rbp - 0x50], r14b
mov rax, r14
movdqu xmm0, xmmword [rbp + rax - 0x70]
psubb xmm0, xmmword [0x7ff7ed749b20]
movdqu xmmword [rbp + rax - 0x70], xmm0
add rax, 0x10
cmp rax, r15
jb 0x7ff7ed42b79c
lea rdx, [rbp - 0x70]
jmp 0x7ff7ed42b7ff
movdqa xmm0, xmmword [0x7ff7ed749b60]
movdqu xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x7ff7ed749ba0]
movdqu xmmword [rsp + 0x78], xmm1
mov word [rbp - 0x78], 0x7d
mov rcx, r14
mov al, cl
add al, byte [rsp + 0x68]
xor byte [rsp + rcx + 0x69], al
inc rcx
cmp rcx, r15
jb 0x7ff7ed42b7e4
mov byte [rbp - 0x77], r14b
lea rdx, [rsp + 0x69]
mov r8, r15
lea rcx, [rbp - 0x1c]
call fcn.7ff7ed6b67f0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8d, [r9 + 0x2c]
lea rdx, [rbp - 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, r14
test sil, sil
jne 0x7ff7ed42b888
movdqa xmm0, xmmword [0x7ff7ed749b30]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x78], 0x1a
mov al, byte [rsp + 0x68]
xor byte [rsp + rcx + 0x69], al
inc rcx
cmp rcx, 0x10
jb 0x7ff7ed42b86b
mov byte [rsp + 0x79], r14b
lea r8, [rsp + 0x69]
jmp 0x7ff7ed42b8b5
movdqa xmm0, xmmword [0x7ff7ed749bb0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x60], 0x74
mov al, cl
add al, byte [rbp - 0x70]
xor byte [rbp + rcx - 0x6f], al
inc rcx
cmp rcx, 0x10
jb 0x7ff7ed42b89b
mov byte [rbp - 0x5f], r14b
lea r8, [rbp - 0x6f]
xor r9d, r9d
lea edx, [r9 + 1]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov rdx, qword [rsp + 0x48]
inc rdi
cmp byte [rdx + rdi], r14b
jne 0x7ff7ed42b901
mov r8, rdi
mov rcx, rbx
call fcn.7ff7ed383aa8
lea rdi, [rbp - 0x1c]
xor eax, eax
mov rcx, r15
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
sub rcx, rdi
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov edi, 0x1000
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x7ff7ed42b98f
mov rdx, qword [rsp + 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, rdi
jb 0x7ff7ed42b97c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ed42b9ee
call fcn.7ff7ed6b5394
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x7ff7ed42b9c2
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, rdi
jb 0x7ff7ed42b9bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ed42b9e8
call fcn.7ff7ed6b5394
mov rax, rbx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.7ff7ed6b54e0
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.7ff7ed6bc794
nop
call fcn.7ff7ed6bc794
nop