Function at 0x1400359dc
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rdx, rcx
test rcx, rcx
je 0x140035ca3
test r8, r8
je 0x140035ca3
mov dword [r8 + 0xf0], 0xe
movzx eax, byte [rcx + 1]
movzx ebx, byte [rcx]
shl ebx, 8
xor ebx, eax
movzx eax, byte [rcx + 2]
shl ebx, 8
xor ebx, eax
movzx eax, byte [rcx + 3]
shl ebx, 8
xor ebx, eax
mov dword [r8], ebx
movzx eax, byte [rcx + 5]
movzx r11d, byte [rcx + 4]
shl r11d, 8
xor r11d, eax
movzx eax, byte [rcx + 6]
shl r11d, 8
xor r11d, eax
movzx eax, byte [rcx + 7]
shl r11d, 8
xor r11d, eax
mov dword [r8 + 4], r11d
movzx eax, byte [rcx + 9]
movzx r10d, byte [rcx + 8]
shl r10d, 8
xor r10d, eax
movzx eax, byte [rcx + 0xa]
shl r10d, 8
xor r10d, eax
movzx eax, byte [rcx + 0xb]
shl r10d, 8
xor r10d, eax
mov dword [r8 + 8], r10d
movzx eax, byte [rcx + 0xd]
movzx r9d, byte [rcx + 0xc]
shl r9d, 8
xor r9d, eax
movzx eax, byte [rcx + 0xe]
shl r9d, 8
xor r9d, eax
movzx eax, byte [rcx + 0xf]
shl r9d, 8
xor r9d, eax
mov dword [r8 + 0xc], r9d
movzx ecx, byte [rcx + 0x10]
movzx eax, byte [rdx + 0x11]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0x12]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0x13]
shl ecx, 8
xor ecx, eax
mov dword [r8 + 0x10], ecx
movzx eax, byte [rdx + 0x15]
movzx ecx, byte [rdx + 0x14]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0x16]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0x17]
shl ecx, 8
xor ecx, eax
mov dword [r8 + 0x14], ecx
movzx eax, byte [rdx + 0x19]
movzx ecx, byte [rdx + 0x18]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0x1a]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0x1b]
shl ecx, 8
xor ecx, eax
mov dword [r8 + 0x18], ecx
movzx ecx, byte [rdx + 0x1c]
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
xor ecx, eax
lea rsi, str.ccccwwww
movzx eax, byte [rdx + 0x1e]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0x1f]
shl ecx, 8
xor ecx, eax
mov edx, ecx
mov dword [r8 + 0x1c], edx
mov eax, ecx
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 8
mov r8d, dword [rsi + rcx*4]
btc r8d, 0x18
movzx ecx, al
and r8d, 0xff000000
mov eax, dword [rsi + rcx*4]
and eax, 0xff0000
xor r8d, eax
mov eax, edx
shr rax, 0x18
movzx eax, byte [rsi + rax*4]
xor r8d, eax
movzx eax, dl
mov ecx, dword [rsi + rax*4]
and ecx, 0xff00
xor r8d, ecx
xor r8d, ebx
lea rbx, [rdi + 0x30]
mov dword [rdi + 0x20], r8d
xor r8d, r11d
mov dword [rdi + 0x24], r8d
xor r8d, r10d
mov dword [rdi + 0x28], r8d
xor r8d, r9d
mov dword [rdi + 0x2c], r8d
lea rdi, [0x1400d0f84]
mov edx, dword [rbx - 4]
mov eax, edx
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 8
mov r8d, dword [rsi + rcx*4]
and r8d, 0xff0000
movzx ecx, al
mov eax, dword [rsi + rcx*4]
and eax, 0xff00
xor r8d, eax
mov eax, edx
shr rax, 0x18
mov ecx, dword [rsi + rax*4]
and ecx, 0xff000000
movzx eax, dl
xor r8d, ecx
movzx ecx, byte [rsi + rax*4]
xor r8d, ecx
xor r8d, dword [rbx - 0x20]
mov dword [rbx], r8d
xor r8d, dword [rbx - 0x1c]
mov dword [rbx + 4], r8d
xor r8d, dword [rbx - 0x18]
mov dword [rbx + 8], r8d
xor r8d, dword [rbx - 0x14]
mov dword [rbx + 0xc], r8d
call fcn.140054d0c
lea rbx, [rbx + 0x20]
mov edx, dword [rbx - 0x14]
mov eax, edx
shr rax, 8
movzx ecx, al
mov eax, edx
shr rax, 0x10
mov r8d, dword [rsi + rcx*4]
and r8d, 0xff0000
movzx ecx, al
mov eax, dword [rsi + rcx*4]
and eax, 0xff000000
xor r8d, eax
mov eax, edx
shr rax, 0x18
movzx eax, byte [rsi + rax*4]
xor r8d, eax
movzx eax, dl
mov ecx, dword [rsi + rax*4]
lea rax, [0x1400d0f9c]
and ecx, 0xff00
xor r8d, ecx
xor r8d, dword [rbx - 0x30]
xor r8d, dword [rdi]
add rdi, 4
mov dword [rbx - 0x10], r8d
xor r8d, dword [rbx - 0x2c]
mov dword [rbx - 0xc], r8d
xor r8d, dword [rbx - 0x28]
mov dword [rbx - 8], r8d
xor r8d, dword [rbx - 0x24]
mov dword [rbx - 4], r8d
cmp rdi, rax
jne 0x140035bb2
xor eax, eax
jmp 0x140035ca6
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret