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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov eax, dword [rdx + 4]
mov r9d, dword [rdx]
mov ebx, dword [rdx + 0xc]
mov r14, rcx
mov ecx, dword [rdx + 8]
xor eax, dword [r14 + 8]
xor r9d, dword [r14 + 4]
xor ecx, dword [r14 + 0xc]
xor ebx, dword [r14 + 0x10]
mov r15d, eax
mov eax, dword [r14]
cmp eax, 1
mov dword [rsp + 0xc], eax
jbe 0x6fd032cc
lea edx, [rax - 2]
mov qword [rsp + 0x70], r8
mov eax, r15d
lea r12, [r14 + 0x14]
shl rdx, 4
lea rsi, [r14 + rdx + 0x24]
mov edx, r9d
lea rdi, [0x6fd2b6a0]
mov r8, rsi
nop word [rax + rax]
mov r9d, edx
movzx esi, dh
shr r9d, 0x18
mov r11d, dword [rdi + rsi*4]
mov r15d, dword [rdi + r9*4]
mov r9d, edx
movzx edx, dl
shr r9d, 0x10
movzx r9d, r9b
mov ebp, dword [rdi + r9*4]
mov r9d, eax
rol r11d, 8
shr r9d, 0x18
ror r15d, 8
mov r13d, dword [rdi + r9*4]
mov r9d, eax
shr r9d, 0x10
movzx r9d, r9b
rol ebp, 0x10
mov r10d, dword [rdi + r9*4]
mov r9d, ecx
shr r9d, 0x18
ror r13d, 8
mov esi, dword [rdi + r9*4]
mov r9d, dword [rdi + rdx*4]
mov edx, ebx
shr edx, 0x18
xor r9d, dword [r12]
rol r10d, 0x10
mov edx, dword [rdi + rdx*4]
ror esi, 8
ror edx, 8
xor r9d, edx
movzx edx, ah
movzx eax, al
mov eax, dword [rdi + rax*4]
xor eax, dword [r12 + 4]
mov edx, dword [rdi + rdx*4]
xor r15d, eax
movzx eax, ch
mov eax, dword [rdi + rax*4]
rol edx, 8
xor r9d, edx
mov edx, ecx
movzx ecx, cl
mov ecx, dword [rdi + rcx*4]
shr edx, 0x10
xor ecx, dword [r12 + 8]
movzx edx, dl
rol eax, 8
mov edx, dword [rdi + rdx*4]
xor r15d, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, r13d
mov eax, dword [rdi + rax*4]
rol edx, 0x10
xor edx, r9d
rol eax, 0x10
xor eax, r15d
mov r15d, ecx
movzx ecx, bh
mov r13d, dword [rdi + rcx*4]
mov ecx, r15d
movzx ebx, bl
mov ebx, dword [rdi + rbx*4]
rol r13d, 8
xor ecx, r13d
xor ecx, ebp
xor ebx, dword [r12 + 0xc]
add r12, 0x10
xor ebx, esi
xor ebx, r11d
xor ebx, r10d
cmp r12, r8
jne 0x6fd031c0
mov r8, qword [rsp + 0x70]
mov r9d, edx
mov r15d, eax
mov r10d, ebx
mov eax, r15d
movzx r11d, bl
lea rdx, [0x6fd2bba0]
shr r10d, 0x18
movzx esi, ah
movzx r12d, byte [rdx + r10]
movzx r10d, r9b
movzx eax, bh
shr ebx, 0x10
movzx r10d, byte [rdx + r10]
movzx ebx, bl
movzx r11d, byte [rdx + r11]
movzx ebx, byte [rdx + rbx]
shl r12d, 0x18
or r12d, r10d
movzx r10d, byte [rdx + rsi]
movzx esi, ch
shl ebx, 0x10
shl r10d, 8
or r12d, r10d
mov r10d, r9d
shr r10d, 0x18
movzx edi, byte [rdx + r10]
movzx r10d, r15b
movzx r10d, byte [rdx + r10]
shl edi, 0x18
or edi, r10d
movzx r10d, byte [rdx + rsi]
shl r10d, 8
or edi, r10d
mov r10d, r15d
shr r10d, 0x18
or edi, ebx
movzx esi, byte [rdx + r10]
movzx r10d, cl
movzx r10d, byte [rdx + r10]
shl esi, 0x18
or esi, r10d
movzx r10d, byte [rdx + rax]
mov eax, r9d
shr r9d, 0x10
movzx eax, ah
movzx r9d, r9b
movzx r9d, byte [rdx + r9]
shl r10d, 8
or esi, r10d
mov r10d, ecx
shr ecx, 0x10
shr r10d, 0x18
movzx ebp, cl
shl r9d, 0x10
movzx r10d, byte [rdx + r10]
or esi, r9d
movzx ecx, byte [rdx + rbp]
shl r10d, 0x18
or r10d, r11d
movzx r11d, byte [rdx + rax]
shl ecx, 0x10
mov eax, r15d
or ecx, r12d
shl r11d, 8
or r10d, r11d
mov r11d, dword [rsp + 0xc]
shl r11d, 2
lea ebx, [r11 + 1]
mov ebp, r11d
lea r9d, [r11 + 2]
xor ecx, dword [r14 + rbp*4 + 4]
xor edi, dword [r14 + rbx*4 + 4]
xor esi, dword [r14 + r9*4 + 4]
shr eax, 0x10
movzx eax, al
movzx eax, byte [rdx + rax]
movzx edx, ch
mov ebx, edi
shl eax, 0x10
or r10d, eax
lea eax, [r11 + 3]
xor r10d, dword [r14 + rax*4 + 4]
mov byte [r8 + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [r8], cl
mov byte [r8 + 2], dl
mov edx, edi
shr ecx, 0x18
shr edx, 0x10
mov byte [r8 + 3], cl
movzx ecx, bh
shr ebx, 0x18
mov byte [r8 + 6], dl
mov edx, esi
mov eax, r10d
mov byte [r8 + 5], cl
shr edx, 0x10
mov ecx, esi
mov byte [r8 + 7], bl
movzx ebx, ch
mov byte [r8 + 0xa], dl
mov edx, r10d
mov byte [r8 + 8], sil
shr edx, 0x10
shr esi, 0x18
mov byte [r8 + 9], bl
movzx ebx, ah
shr eax, 0x18
mov byte [r8 + 4], dil
mov byte [r8 + 0xb], sil
mov byte [r8 + 0xc], r10b
mov byte [r8 + 0xd], bl
mov byte [r8 + 0xe], dl
mov byte [r8 + 0xf], al
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret