Function at 0x140016c08
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x318
mov rax, qword [0x140036890]
xor rax, rsp
mov qword [rsp + 0x300], rax
xor r8d, r8d
mov r10d, 0x11b
lea edx, [r8 + 1]
movsxd rax, r8d
mov byte [rsp + rax + 0x100], dl
mov byte [rsp + rax + 0x1ff], dl
movsxd rax, edx
mov byte [rsp + rax], r8b
mov eax, edx
inc r8d
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
and ecx, r10d
xor ecx, eax
xor edx, ecx
cmp edx, 1
jne 0x140016c2e
lea r8, [0x140040b00]
lea r9d, [rdx + 0x1d]
mov eax, edx
mov byte [r8], dl
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
inc r8
and ecx, r10d
mov edx, ecx
xor edx, eax
sub r9, 1
jne 0x140016c6b
xor r10d, r10d
lea r11, [0x140000000]
xor r8d, r8d
test r10b, r10b
je 0x140016cb3
movzx eax, r10b
movzx ecx, byte [rsp + rax]
lea rax, [rsp + 0x1ff]
sub rax, rcx
movzx ecx, byte [rax]
jmp 0x140016cb5
xor ecx, ecx
lea eax, [rcx + rcx]
xor eax, ecx
add eax, eax
xor eax, ecx
add eax, eax
xor eax, ecx
add eax, eax
xor ecx, eax
mov edx, ecx
sar edx, 8
xor dl, cl
xor dl, 0x63
mov byte [r8 + r11 + 0x40c20], dl
mov byte [r11 + r8*4 + 0x3fb01], dl
mov byte [r11 + r8*4 + 0x3fb00], dl
mov byte [r11 + r8*4 + 0x3ff03], dl
mov byte [r11 + r8*4 + 0x3ff00], dl
mov byte [r11 + r8*4 + 0x40303], dl
mov byte [r11 + r8*4 + 0x40302], dl
mov byte [r11 + r8*4 + 0x40702], dl
mov byte [r11 + r8*4 + 0x40701], dl
je 0x140016d2b
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x119]
jmp 0x140016d2d
xor eax, eax
mov byte [r11 + r8*4 + 0x3fb03], al
mov byte [r11 + r8*4 + 0x3ff02], al
mov byte [r11 + r8*4 + 0x40301], al
mov byte [r11 + r8*4 + 0x40700], al
test dl, dl
je 0x140016d62
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x101]
jmp 0x140016d64
xor eax, eax
mov byte [r11 + r8*4 + 0x3fb02], al
mov byte [r11 + r8*4 + 0x3ff01], al
mov byte [r11 + r8*4 + 0x40300], al
mov byte [r11 + r8*4 + 0x40703], al
movzx r9d, r10b
mov eax, r9d
shl eax, 3
xor eax, r9d
shl eax, 2
xor eax, r9d
add eax, eax
mov ecx, eax
sar ecx, 8
xor cl, al
xor cl, 5
je 0x140016ddb
mov edx, r9d
shl edx, 3
xor edx, r9d
shl edx, 2
xor edx, r9d
add edx, edx
mov eax, edx
sar eax, 8
movzx ecx, al
movzx eax, dl
xor rcx, rax
xor rcx, 5
movzx eax, byte [rsp + rcx]
lea rcx, [rsp + 0x1ff]
sub rcx, rax
mov dl, byte [rcx]
jmp 0x140016ddd
xor dl, dl
mov byte [r8 + r11 + 0x40b20], dl
test dl, dl
je 0x140016dfa
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x168]
jmp 0x140016dfc
xor eax, eax
movzx ecx, dl
mov byte [r11 + r8*4 + 0x3eb02], al
mov byte [r11 + r8*4 + 0x3ef01], al
mov byte [r11 + r8*4 + 0x3f300], al
mov byte [r11 + r8*4 + 0x3f703], al
mov byte [r11 + rcx*4 + 0x3db02], al
mov byte [r11 + rcx*4 + 0x3df01], al
mov byte [r11 + rcx*4 + 0x3e300], al
mov byte [r11 + rcx*4 + 0x3e703], al
test dl, dl
je 0x140016e52
movzx eax, byte [rsp + rcx]
movzx r9d, byte [rsp + rax + 0x1c7]
jmp 0x140016e55
xor r9d, r9d
mov byte [r11 + r8*4 + 0x3eb00], r9b
mov byte [r11 + r8*4 + 0x3ef03], r9b
mov byte [r11 + r8*4 + 0x3f302], r9b
mov byte [r11 + r8*4 + 0x3f701], r9b
mov byte [r11 + rcx*4 + 0x3db00], r9b
mov byte [r11 + rcx*4 + 0x3df03], r9b
mov byte [r11 + rcx*4 + 0x3e302], r9b
mov byte [r11 + rcx*4 + 0x3e701], r9b
test dl, dl
je 0x140016ea8
movzx eax, byte [rsp + rcx]
movzx r9d, byte [rsp + rax + 0x1ee]
jmp 0x140016eab
xor r9d, r9d
mov byte [r11 + r8*4 + 0x3eb01], r9b
mov byte [r11 + r8*4 + 0x3ef00], r9b
mov byte [r11 + r8*4 + 0x3f303], r9b
mov byte [r11 + r8*4 + 0x3f702], r9b
mov byte [r11 + rcx*4 + 0x3db01], r9b
mov byte [r11 + rcx*4 + 0x3df00], r9b
mov byte [r11 + rcx*4 + 0x3e303], r9b
mov byte [r11 + rcx*4 + 0x3e702], r9b
test dl, dl
je 0x140016efd
movzx eax, byte [rsp + rcx]
movzx edx, byte [rsp + rax + 0x1df]
jmp 0x140016eff
xor edx, edx
inc r10d
mov byte [r11 + r8*4 + 0x3eb03], dl
mov byte [r11 + r8*4 + 0x3ef02], dl
mov byte [r11 + r8*4 + 0x3f301], dl
mov byte [r11 + r8*4 + 0x3f700], dl
inc r8
cmp r10d, 0x100
mov byte [r11 + rcx*4 + 0x3db03], dl
mov byte [r11 + rcx*4 + 0x3df02], dl
mov byte [r11 + rcx*4 + 0x3e301], dl
mov byte [r11 + rcx*4 + 0x3e700], dl
jl 0x140016c96
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140021ea0
add rsp, 0x318
ret