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

Disassembly:
sub rsp, 8
mov r10, r8
mov rdx, rcx
test rcx, rcx
je 0x140001b41
test r8, r8
je 0x140001b41
mov dword [r8 + 0xf0], 0xe
movzx eax, byte [rcx + 1]
movzx r9d, byte [rcx]
shl r9d, 8
xor r9d, eax
mov qword [rsp], rbx
movzx eax, byte [rcx + 2]
shl r9d, 8
xor r9d, eax
movzx eax, byte [rcx + 3]
shl r9d, 8
xor r9d, eax
mov dword [r8], r9d
movzx ecx, byte [rcx + 4]
shl ecx, 8
movzx eax, byte [rdx + 5]
xor ecx, eax
movzx eax, byte [rdx + 6]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 7]
shl ecx, 8
xor ecx, eax
mov dword [r8 + 4], ecx
movzx eax, byte [rdx + 9]
movzx ecx, byte [rdx + 8]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0xa]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0xb]
shl ecx, 8
xor ecx, eax
mov dword [r8 + 8], ecx
movzx eax, byte [rdx + 0xd]
movzx ecx, byte [rdx + 0xc]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0xe]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 0xf]
shl ecx, 8
xor ecx, eax
mov dword [r8 + 0xc], ecx
movzx eax, byte [rdx + 0x11]
movzx ecx, byte [rdx + 0x10]
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]
shl ecx, 8
movzx eax, byte [rdx + 0x1d]
lea r11, str.ccccwwww
xor ecx, eax
lea rbx, [0x14029830c]
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 [r11 + rcx*4]
movzx ecx, al
btc r8d, 0x18
and r8d, 0xff000000
mov eax, dword [r11 + rcx*4]
and eax, 0xff0000
xor r8d, eax
mov eax, edx
shr rax, 0x18
movzx eax, byte [r11 + rax*4]
xor r8d, eax
movzx eax, dl
mov ecx, dword [r11 + rax*4]
lea rax, [r10 + 0x30]
and ecx, 0xff00
xor r8d, ecx
xor r8d, r9d
mov dword [r10 + 0x20], r8d
xor r8d, dword [r10 + 4]
mov dword [r10 + 0x24], r8d
xor r8d, dword [r10 + 8]
mov dword [r10 + 0x28], r8d
xor r8d, dword [r10 + 0xc]
mov dword [r10 + 0x2c], r8d
lea r10, [0x1402982f4]
nop
mov r8d, dword [rax - 4]
lea rax, [rax + 0x20]
mov ecx, r8d
shr rcx, 0x10
movzx edx, cl
mov ecx, r8d
shr rcx, 8
mov r9d, dword [r11 + rdx*4]
movzx edx, cl
and r9d, 0xff0000
mov ecx, dword [r11 + rdx*4]
and ecx, 0xff00
xor r9d, ecx
mov ecx, r8d
shr rcx, 0x18
mov edx, dword [r11 + rcx*4]
and edx, 0xff000000
movzx ecx, r8b
xor r9d, edx
movzx edx, byte [r11 + rcx*4]
mov ecx, dword [rax - 0x3c]
xor r9d, edx
xor r9d, dword [rax - 0x40]
mov edx, dword [rax - 0x38]
xor ecx, r9d
mov dword [rax - 0x1c], ecx
xor edx, ecx
mov ecx, dword [rax - 0x34]
xor ecx, edx
mov dword [rax - 0x20], r9d
mov dword [rax - 0x14], ecx
mov dword [rax - 0x18], edx
mov r8d, dword [rax - 0x14]
mov ecx, r8d
shr rcx, 8
movzx edx, cl
mov ecx, r8d
shr rcx, 0x10
mov r9d, dword [r11 + rdx*4]
movzx edx, cl
and r9d, 0xff0000
mov ecx, dword [r11 + rdx*4]
and ecx, 0xff000000
xor r9d, ecx
mov ecx, r8d
shr rcx, 0x18
movzx ecx, byte [r11 + rcx*4]
xor r9d, ecx
movzx ecx, r8b
mov edx, dword [r11 + rcx*4]
and edx, 0xff00
xor r9d, edx
xor r9d, dword [rax - 0x30]
xor r9d, dword [r10]
add r10, 4
mov dword [rax - 0x10], r9d
mov ecx, dword [rax - 0x2c]
xor ecx, r9d
mov dword [rax - 0xc], ecx
mov edx, dword [rax - 0x28]
xor edx, ecx
mov dword [rax - 8], edx
mov ecx, dword [rax - 0x24]
xor ecx, edx
mov dword [rax - 4], ecx
cmp r10, rbx
jne 0x140001a40
xor eax, eax
mov rbx, qword [rsp]
add rsp, 8
ret
or eax, 0xffffffff
add rsp, 8
ret