Function at 0x140002190
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x800
xor r8d, r8d
lea r9, [rax - 0x418]
mov r11d, 0x100
lea edx, [r8 + 1]
movsxd rax, edx
mov dword [r9], edx
mov dword [rsp + rax*4], r8d
mov eax, edx
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
add r8d, 1
add r9, 4
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
cmp r8d, r11d
movzx edx, cl
jl 0x1400021c4
mov edx, 1
lea r8, [0x1400c2f20]
lea r9d, [rdx + 9]
mov eax, edx
mov dword [r8], edx
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
add r8, 4
and ecx, 0x1b
xor ecx, eax
sub r9, 1
movzx edx, cl
jne 0x140002200
mov byte [0x1400c47b3], r9b
lea r8d, [r9 + 1]
mov byte [0x1400c2620], 0x63
lea r9, [0x1400c2621]
lea r10, [rsp + 4]
lea rbx, [0x140000000]
movsxd rcx, dword [r10]
lea rax, [rsp + 0x7fc]
add r10, 4
shl rcx, 2
sub rax, rcx
mov edx, dword [rax]
mov ecx, edx
sar ecx, 7
lea eax, [rdx + rdx]
or ecx, eax
movzx eax, cl
xor edx, eax
mov ecx, eax
add eax, eax
sar ecx, 7
or ecx, eax
movzx eax, cl
xor edx, eax
mov ecx, eax
add eax, eax
sar ecx, 7
or ecx, eax
movzx eax, cl
xor edx, eax
mov ecx, eax
add eax, eax
sar ecx, 7
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor edx, eax
movsxd rax, edx
mov byte [r9], dl
add r9, 1
mov byte [rax + rbx + 0xc4750], r8b
add r8d, 1
cmp r8d, r11d
jl 0x140002245
mov ebp, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x2c]
mov r12d, dword [rsp + 0x24]
xor r10d, r10d
movzx edx, byte [r10 + rbx + 0xc2620]
movzx r9d, byte [r10 + rbx + 0xc4750]
mov eax, edx
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, eax
mov dword [rbx + r10*4 + 0xc4350], ecx
rol ecx, 8
mov dword [rbx + r10*4 + 0xc3f50], ecx
rol ecx, 8
mov dword [rbx + r10*4 + 0xc3b50], ecx
rol ecx, 8
test r9d, r9d
mov dword [rbx + r10*4 + 0xc3750], ecx
je 0x140002365
movsxd rax, r9d
mov ecx, dword [rsp + rax*4]
mov eax, 0x80808081
lea r8d, [rbp + rcx]
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xff
sub r8d, edx
movsxd rax, r8d
mov esi, dword [rsp + rax*4 + 0x400]
jmp 0x140002367
xor esi, esi
test r9d, r9d
je 0x1400023a0
movsxd rax, r9d
mov ecx, dword [rsp + rax*4]
mov eax, 0x80808081
lea r8d, [r12 + rcx]
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xff
sub r8d, edx
movsxd rax, r8d
mov edi, dword [rsp + rax*4 + 0x400]
jmp 0x1400023a2
xor edi, edi
test r9d, r9d
je 0x1400023dc
movsxd rax, r9d
mov ecx, dword [rsp + rax*4]
mov eax, 0x80808081
lea r8d, [r13 + rcx]
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xff
sub r8d, edx
movsxd rax, r8d
mov ebx, dword [rsp + rax*4 + 0x400]
jmp 0x1400023de
xor ebx, ebx
test r9d, r9d
je 0x140002415
mov ecx, dword [rsp + r9*4]
mov eax, 0x80808081
lea r8d, [r14 + rcx]
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xff
sub r8d, edx
movsxd rax, r8d
mov ecx, dword [rsp + rax*4 + 0x400]
jmp 0x140002417
xor ecx, ecx
shl ecx, 8
add r10, 1
xor ecx, ebx
lea rbx, [0x140000000]
shl ecx, 8
xor ecx, edi
shl ecx, 8
xor ecx, esi
mov dword [rbx + r10*4 + 0xc334c], ecx
rol ecx, 8
mov dword [rbx + r10*4 + 0xc2f4c], ecx
rol ecx, 8
mov dword [rbx + r10*4 + 0xc2b1c], ecx
rol ecx, 8
sub r11, 1
mov dword [rbx + r10*4 + 0xc271c], ecx
jne 0x1400022ca
lea r11, [rsp + 0x800]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret