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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x200
xor r8d, r8d
lea r9, [rsp + 0x100]
mov dl, 1
mov r11d, 0x100
nop dword [rax]
nop dword [rax + rax]
movzx eax, dl
movzx ecx, dl
sar cl, 7
mov byte [r9], dl
lea r9, [r9 + 1]
and cl, 0x1b
mov byte [rsp + rax], r8b
movzx eax, dl
add al, al
inc r8d
xor cl, al
xor dl, cl
cmp r8d, r11d
jl 0x140020d20
mov dl, 1
lea r8, [0x14003e320]
mov r9d, 0xa
nop word [rax + rax]
movzx eax, dl
lea r8, [r8 + 4]
shl eax, 0x18
movzx ecx, dl
mov dword [r8 - 4], eax
movzx eax, dl
sar cl, 7
add al, al
and cl, 0x1b
movzx edx, cl
xor dl, al
sub r9, 1
jne 0x140020d60
mov dword [0x14003e8dc], r9d
lea r10, [rsp + 1]
mov r9d, 1
mov dword [0x14003ef50], 0x63
lea rbx, [0x14003ef54]
lea r12, [0x140000000]
movzx eax, byte [r10]
lea rcx, [rsp + 0x1ff]
sub rcx, rax
lea r10, [r10 + 1]
lea rbx, [rbx + 4]
movzx r8d, byte [rcx]
movzx eax, r8b
movzx ecx, r8b
shr cl, 7
add al, al
or cl, al
xor r8b, cl
movzx edx, cl
add cl, cl
shr dl, 7
or dl, cl
movzx eax, dl
xor r8b, dl
shr al, 7
add dl, dl
or al, dl
movzx ecx, al
ror cl, 7
xor cl, al
xor cl, r8b
xor cl, 0x63
movzx eax, cl
mov dword [rbx - 4], eax
movzx eax, cl
mov dword [r12 + rax*4 + 0x3e750], r9d
inc r9d
cmp r9d, r11d
jl 0x140020db1
mov rsi, qword [rsp + 0xe]
xor r10d, r10d
mov rbp, qword [rsp + 0xd]
mov r14, qword [rsp + 0xb]
mov r15, qword [rsp + 9]
movzx r8d, byte [r10 + r12 + 0x3ef50]
movzx eax, r8b
movzx ecx, r8b
sar cl, 7
mov edx, r8d
and cl, 0x1b
add al, al
xor cl, al
movzx eax, cl
mov ecx, eax
shl ecx, 8
xor ecx, r8d
shl ecx, 8
xor ecx, r8d
xor r8d, eax
mov eax, ecx
shl eax, 8
xor eax, r8d
bswap r8d
or r8d, ecx
mov dword [r10 + r12 + 0x3c720], eax
movzx eax, byte [r10 + r12 + 0x3e750]
mov dword [r10 + r12 + 0x3cf20], r8d
shr r8d, 8
bswap edx
or r8d, edx
mov dword [r10 + r12 + 0x3db20], r8d
shr r8d, 8
or r8d, edx
mov dword [r10 + r12 + 0x3df20], r8d
test al, al
je 0x140020f55
movzx r8d, byte [rsp + rax]
mov r9d, eax
mov eax, 0x80808081
movzx ecx, bpl
add ecx, r8d
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
movzx ecx, r15b
add ecx, r8d
movzx ebx, byte [rsp + rax + 0x100]
mov eax, 0x80808081
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
movzx ecx, sil
add ecx, r8d
movzx r8d, byte [rsp + r9]
movzx edi, byte [rsp + rax + 0x100]
mov eax, 0x80808081
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
movzx ecx, byte [rsp + rax + 0x100]
movzx eax, r14b
add r8d, eax
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx edx, byte [rsp + rax + 0x100]
jmp 0x140020f5d
xor ebx, ebx
xor edi, edi
xor ecx, ecx
xor edx, edx
shl ecx, 8
xor ecx, edi
shl ecx, 8
xor ecx, ebx
shl ecx, 8
xor ecx, edx
mov edx, ecx
mov dword [r10 + r12 + 0x3d320], ecx
shl edx, 0x18
shr ecx, 8
or edx, ecx
mov eax, edx
mov dword [r10 + r12 + 0x3d720], edx
shl eax, 0x18
shr edx, 8
or eax, edx
mov dword [r10 + r12 + 0x3bf20], eax
ror eax, 8
mov dword [r10 + r12 + 0x3eb50], eax
add r10, 4
sub r11, 1
jne 0x140020e33
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret