Function at 0x14001f590
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, 0x210
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x200], rax
xor r8d, r8d
lea r9, [rsp + 0x100]
mov dl, 1
mov r11d, pe_nt_image_headers64
nop word [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 0x14001f5e0
mov dl, 1
lea r8, [0x140077990]
mov r9d, 0xa
nop word [rax + rax]
movzx eax, dl
movzx ecx, dl
mov dword [r8], eax
lea r8, [r8 + 4]
movzx eax, dl
sar cl, 7
and cl, 0x1b
add al, al
movzx edx, cl
xor dl, al
sub r9, 1
jne 0x14001f620
mov byte [0x1400778f3], r9b
lea r12, [0x140000000]
mov r9d, 1
mov byte [0x140077390], 0x63
xor r10d, r10d
movzx eax, byte [rsp + r10 + 1]
lea rcx, [rsp + 0x1ff]
sub rcx, rax
lea r10, [r10 + 1]
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 byte [r10 + r12 + 0x77390], cl
mov byte [rax + r12 + 0x77890], r9b
inc r9d
cmp r9d, r11d
jl 0x14001f661
mov rsi, qword [rsp + 0xe]
xor edi, edi
mov rbp, qword [rsp + 0xd]
mov r14, qword [rsp + 0xb]
mov r15, qword [rsp + 9]
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rdi + r12 + 0x77390]
movzx eax, dl
movzx ecx, dl
mov r8d, edx
sar cl, 7
and cl, 0x1b
add al, al
xor cl, al
movzx eax, cl
mov ecx, eax
xor ecx, edx
mov edx, ecx
shl edx, 8
xor edx, r8d
shl edx, 8
xor edx, r8d
shl edx, 8
xor edx, eax
movzx eax, byte [rdi + r12 + 0x77890]
mov dword [r12 + rdi*4 + 0x78dc0], edx
shl edx, 8
or edx, ecx
mov dword [r12 + rdi*4 + 0x789c0], edx
shl edx, 8
or edx, r8d
mov dword [r12 + rdi*4 + 0x77dc0], edx
shl edx, 8
or edx, r8d
mov dword [r12 + rdi*4 + 0x779c0], edx
test al, al
je 0x14001f80a
movzx r8d, byte [rsp + rax]
mov r9d, eax
mov eax, 0x80808081
movzx ecx, r15b
add ecx, r8d
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
movzx ecx, bpl
add ecx, r8d
movzx r10d, byte [rsp + rax + 0x100]
mov eax, 0x80808081
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
movsxd rax, ecx
movzx ecx, r14b
add ecx, r8d
movzx r8d, byte [rsp + r9]
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, byte [rsp + rax + 0x100]
movzx eax, sil
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 0x14001f813
xor r10d, r10d
xor ebx, ebx
xor ecx, ecx
xor edx, edx
shl ecx, 8
xor ecx, ebx
shl ecx, 8
xor ecx, r10d
shl ecx, 8
xor ecx, edx
mov edx, ecx
mov dword [r12 + rdi*4 + 0x785c0], ecx
shr edx, 0x18
shl ecx, 8
or edx, ecx
mov eax, edx
mov dword [r12 + rdi*4 + 0x781c0], edx
shr eax, 0x18
shl edx, 8
or eax, edx
mov dword [r12 + rdi*4 + 0x791c0], eax
ror eax, 0x18
mov dword [r12 + rdi*4 + 0x77490], eax
inc rdi
sub r11, 1
jne 0x14001f6f0
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14002c2f0
lea r11, [rsp + 0x210]
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