Function at 0x140001000
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, 0x800
xor r8d, r8d
lea r9, [rsp + 0x400]
mov edx, 1
mov r10d, 0x100
nop word [rax + rax]
mov eax, edx
mov dword [r9], edx
lea r9, [r9 + 4]
mov dword [rsp + rax*4], r8d
mov eax, edx
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
inc r8d
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
movzx edx, cl
cmp r8d, r10d
jl 0x140001040
mov edx, 1
lea r8, [0x14002a4f0]
lea r9d, [rdx + 9]
nop word [rax + rax]
mov eax, edx
mov dword [r8], edx
and al, 0x80
lea r8, [r8 + 4]
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx edx, cl
sub r9, 1
jne 0x140001080
mov byte [0x14002a453], r9b
lea r11, [0x140029ef1]
mov r9d, 1
mov byte [0x140029ef0], 0x63
lea rbx, [rsp + 4]
lea rbp, [0x140000000]
nop word [rax + rax]
mov eax, 0xff
lea r11, [r11 + 1]
sub eax, dword [rbx]
lea rbx, [rbx + 4]
cdqe
mov r8d, dword [rsp + rax*4 + 0x400]
mov ecx, r8d
sar ecx, 7
lea eax, [r8 + r8]
or ecx, eax
movzx eax, cl
xor r8d, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx eax, cl
xor r8d, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx edx, cl
mov ecx, edx
shr ecx, 7
lea eax, [rdx + rdx]
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor eax, edx
xor r8d, eax
movsxd rax, r8d
mov byte [r11 - 1], r8b
mov byte [rax + rbp + 0x2a3f0], r9b
inc r9d
cmp r9d, r10d
jl 0x1400010d0
mov esi, dword [rsp + 0x38]
xor r11d, r11d
mov r14d, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x2c]
mov r12d, dword [rsp + 0x24]
nop dword [rax + rax]
movzx r8d, byte [r11 + rbp + 0x29ef0]
mov eax, r8d
and al, 0x80
neg al
lea eax, [r8 + r8]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, r8d
mov edx, ecx
shl edx, 8
xor edx, r8d
shl edx, 8
xor edx, r8d
shl edx, 8
xor edx, eax
movzx eax, byte [r11 + rbp + 0x2a3f0]
mov dword [rbp + r11*4 + 0x2b920], edx
shl edx, 8
or edx, ecx
mov dword [rbp + r11*4 + 0x2b520], edx
shl edx, 8
or edx, r8d
mov dword [rbp + r11*4 + 0x2a920], edx
shl edx, 8
or edx, r8d
mov dword [rbp + r11*4 + 0x2a520], edx
test eax, eax
je 0x140001295
mov ecx, dword [rsp + rax*4]
mov r9d, eax
add ecx, r15d
mov eax, 0x80808081
imul ecx
mov r8d, dword [rsp + r9*4]
add edx, ecx
add r8d, r14d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
mov eax, 0x80808081
imul r8d
movsxd rcx, ecx
add edx, r8d
sar edx, 7
mov eax, edx
mov ecx, dword [rsp + rcx*4 + 0x400]
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
mov r8d, dword [rsp + r9*4]
add r8d, r12d
mov ebx, dword [rsp + rax*4 + 0x400]
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
mov r8d, dword [rsp + r9*4]
add r8d, esi
mov edi, dword [rsp + rax*4 + 0x400]
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
mov edx, dword [rsp + rax*4 + 0x400]
jmp 0x14000129d
xor ecx, ecx
xor ebx, ebx
xor edi, edi
xor edx, edx
shl ecx, 8
xor ecx, ebx
shl ecx, 8
xor ecx, edi
shl ecx, 8
xor ecx, edx
mov edx, ecx
mov dword [rbp + r11*4 + 0x2b120], ecx
shr edx, 0x18
shl ecx, 8
or edx, ecx
mov eax, edx
mov dword [rbp + r11*4 + 0x2ad20], edx
shr eax, 0x18
shl edx, 8
or eax, edx
mov dword [rbp + r11*4 + 0x2bd20], eax
ror eax, 0x18
mov dword [rbp + r11*4 + 0x29ff0], eax
inc r11
sub r10, 1
jne 0x140001160
lea r11, [rsp + 0x800]
mov dword [0x14002a518], 1
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