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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x718]
sub rsp, 0x800
cmp dword [0x140142230], 0
jne 0x140001451
xor r8d, r8d
lea r9, [rbp + 0x300]
mov r11d, 0x100
lea edx, [r8 + 1]
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, r11d
jl 0x1400011a7
mov edx, 1
lea r8, [0x140141e00]
lea r9d, [rdx + 9]
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 0x1400011e1
mov byte [0x140141d63], r9b
lea r10, [0x140141801]
mov r9d, 1
mov byte [0x140141800], 0x63
lea rbx, [rsp + 4]
lea rdi, [0x140000000]
mov eax, 0xff
sub eax, dword [rbx]
lea rbx, [rbx + 4]
cdqe
mov r8d, dword [rbp + rax*4 + 0x300]
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 [r10], r8b
inc r10
mov byte [rax + rdi + 0x141d00], r9b
inc r9d
cmp r9d, r11d
jl 0x140001228
mov rsi, qword [rsp + 0x38]
xor r10d, r10d
mov r14, qword [rsp + 0x34]
mov r15, qword [rsp + 0x2c]
mov r12, qword [rsp + 0x24]
movzx r8d, byte [r10 + rdi + 0x141800]
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 [r10 + rdi + 0x141d00]
mov dword [rdi + r10*4 + 0x143240], edx
shl edx, 8
or edx, ecx
mov dword [rdi + r10*4 + 0x142e40], edx
shl edx, 8
or edx, r8d
mov dword [rdi + r10*4 + 0x142240], edx
shl edx, 8
or edx, r8d
mov dword [rdi + r10*4 + 0x141e30], edx
test al, al
je 0x1400013db
mov ecx, dword [rsp + rax*4]
mov r8d, eax
add ecx, r15d
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
mov ecx, dword [rsp + r8*4]
add ecx, r14d
mov r9d, dword [rbp + rax*4 + 0x300]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
mov ecx, dword [rsp + r8*4]
add ecx, r12d
mov ebx, dword [rbp + rax*4 + 0x300]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
mov ecx, dword [rsp + r8*4]
add ecx, esi
mov edi, dword [rbp + rax*4 + 0x300]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
mov ecx, dword [rbp + rax*4 + 0x300]
jmp 0x1400013e4
xor r9d, r9d
xor ebx, ebx
xor edi, edi
xor ecx, ecx
shl r9d, 8
xor r9d, ebx
shl r9d, 8
xor r9d, edi
lea rdi, [0x140000000]
shl r9d, 8
xor r9d, ecx
mov ecx, r9d
mov dword [rdi + r10*4 + 0x142a40], r9d
shr ecx, 0x18
shl r9d, 8
or ecx, r9d
mov eax, ecx
mov dword [rdi + r10*4 + 0x142640], ecx
shr eax, 0x18
shl ecx, 8
or eax, ecx
mov dword [rdi + r10*4 + 0x143640], eax
ror eax, 0x18
mov dword [rdi + r10*4 + 0x141900], eax
inc r10
sub r11, 1
jne 0x1400012af
mov dword [0x140142230], 1
lea r11, [rsp + 0x800]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret