Function at 0x140001000
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
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 0x14000103a
mov edx, 1
lea r8, [0x140018660]
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 0x140001074
mov byte [0x1400175c3], r9b
lea r10, [0x140016461]
mov r9d, 1
mov byte [0x140016460], 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 + 0x17560], r9b
inc r9d
cmp r9d, r11d
jl 0x1400010bb
mov rsi, qword [rsp + 0x38]
xor r10d, r10d
mov r14, qword [rsp + 0x34]
mov r15, qword [rsp + 0x2c]
mov r12, qword [rsp + 0x24]
movzx edx, byte [r10 + rdi + 0x16460]
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
movzx eax, byte [r10 + rdi + 0x17560]
mov dword [rdi + r10*4 + 0x16560], ecx
rol ecx, 8
mov dword [rdi + r10*4 + 0x16960], ecx
rol ecx, 8
mov dword [rdi + r10*4 + 0x16d60], ecx
rol ecx, 8
mov dword [rdi + r10*4 + 0x17160], ecx
test al, al
je 0x14000125f
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 0x140001268
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 dword [rdi + r10*4 + 0x17660], r9d
rol r9d, 8
mov dword [rdi + r10*4 + 0x17a60], r9d
rol r9d, 8
mov dword [rdi + r10*4 + 0x17e60], r9d
rol r9d, 8
mov dword [rdi + r10*4 + 0x18260], r9d
inc r10
sub r11, 1
jne 0x140001142
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