Function at 0x140002d80
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbx
push rbp
push r12
push r15
sub rsp, 0x48
mov rax, qword [0x140254018]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r12d, r12d
movsxd r11, r8d
mov rax, r11
mov qword [rsp + 0x80], rdi
shl rax, 4
lea r9, [rdx + 2]
mov qword [rsp + 0x40], r14
add r9, rax
mov r14, rdx
mov rbx, rcx
mov r10d, r12d
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9 - 2]
lea r9, [r9 + 4]
mov byte [rsp + r10 + 0x20], al
movzx eax, byte [r9 - 5]
mov byte [rsp + r10 + 0x24], al
movzx eax, byte [r9 - 4]
mov byte [rsp + r10 + 0x28], al
movzx eax, byte [r9 - 3]
mov byte [rsp + r10 + 0x2c], al
inc r10
cmp r10, 4
jl 0x140002dd0
lea rax, [rsp + 0x2f]
mov ebp, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r15, [rcx + 0xf]
cmp rbx, rax
ja 0x140002e53
lea rax, [rsp + 0x20]
cmp r15, rax
jb 0x140002e53
lea r8, [rsp + 0x20]
add rcx, r12
sub r8, rbx
mov edx, ebp
sub rdx, r12
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140002e40
jmp 0x140002e65
movdqu xmm1, xmmword [rcx]
movdqu xmm0, xmmword [rsp + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx], xmm1
lea eax, [r11 - 1]
movsxd rdi, eax
test eax, eax
jle 0x140002eea
mov qword [rsp + 0x78], rsi
mov rax, rdi
shl rax, 4
lea rsi, [r14 + 2]
add rsi, rax
nop dword [rax]
nop word [rax + rax]
mov rdx, r12
mov rcx, rsi
nop word [rax + rax]
movzx eax, byte [rcx - 2]
lea rcx, [rcx + 4]
mov byte [rsp + rdx + 0x20], al
movzx eax, byte [rcx - 5]
mov byte [rsp + rdx + 0x24], al
movzx eax, byte [rcx - 4]
mov byte [rsp + rdx + 0x28], al
movzx eax, byte [rcx - 3]
mov byte [rsp + rdx + 0x2c], al
inc rdx
cmp rdx, 4
jl 0x140002ea0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002bc0
dec rdi
sub rsi, rbp
test rdi, rdi
jg 0x140002e90
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
lea rcx, [r14 + 2]
mov r14, qword [rsp + 0x40]
mov rdx, r12
nop
movzx eax, byte [rcx - 2]
lea rcx, [rcx + 4]
mov byte [rsp + rdx + 0x20], al
movzx eax, byte [rcx - 5]
mov byte [rsp + rdx + 0x24], al
movzx eax, byte [rcx - 4]
mov byte [rsp + rdx + 0x28], al
movzx eax, byte [rcx - 3]
mov byte [rsp + rdx + 0x2c], al
inc rdx
cmp rdx, 4
jl 0x140002f00
mov r9d, r12d
mov rax, rbx
test r9b, r9b
je 0x140002f60
movzx r8d, r9b
nop dword [rax]
movzx ecx, byte [rax + 2]
movzx edx, byte [rax + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rax + 1]
mov byte [rax + 2], cl
movzx ecx, byte [rax]
mov byte [rax + 1], cl
mov byte [rax], dl
sub r8, 1
jne 0x140002f40
inc r9d
add rax, 4
cmp r9d, 4
jl 0x140002f33
movzx eax, byte [rbx]
lea rcx, [0x140222960]
movzx eax, byte [rax + rcx]
mov byte [rbx], al
movzx eax, byte [rbx + 1]
movzx eax, byte [rax + rcx]
mov byte [rbx + 1], al
movzx eax, byte [rbx + 2]
movzx eax, byte [rax + rcx]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 3]
movzx eax, byte [rax + rcx]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 4]
movzx eax, byte [rax + rcx]
mov byte [rbx + 4], al
movzx eax, byte [rbx + 5]
movzx eax, byte [rax + rcx]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 6]
movzx eax, byte [rax + rcx]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
movzx eax, byte [rax + rcx]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 8]
movzx eax, byte [rax + rcx]
mov byte [rbx + 8], al
movzx eax, byte [rbx + 9]
movzx eax, byte [rax + rcx]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 0xa]
movzx eax, byte [rax + rcx]
mov byte [rbx + 0xa], al
movzx eax, byte [rbx + 0xb]
movzx eax, byte [rax + rcx]
mov byte [rbx + 0xb], al
movzx eax, byte [rbx + 0xc]
movzx eax, byte [rax + rcx]
mov byte [rbx + 0xc], al
movzx eax, byte [rbx + 0xd]
movzx eax, byte [rax + rcx]
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 0xe]
movzx eax, byte [rax + rcx]
mov byte [rbx + 0xe], al
movzx eax, byte [r15]
movzx eax, byte [rax + rcx]
mov byte [r15], al
lea rax, [rsp + 0x2f]
cmp rbx, rax
ja 0x140003062
lea rax, [rsp + 0x20]
cmp r15, rax
jb 0x140003062
lea rdx, [rsp + 0x20]
sub rdx, rbx
lea rcx, [r12 + rbx]
sub rbp, r12
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rbp, 1
jne 0x140003050
jmp 0x140003074
movdqu xmm1, xmmword [rbx]
movdqu xmm0, xmmword [rsp + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140005870
add rsp, 0x48
pop r15
pop r12
pop rbp
pop rbx
ret