Function at 0x14003ff08
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x318
mov rax, qword [0x140072fc0]
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 0x14003ff2e
lea r8, [0x14008c3f0]
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 0x14003ff6b
xor r10d, r10d
lea r11, [0x140000000]
xor r8d, r8d
test r10b, r10b
je 0x14003ffb3
movzx eax, r10b
movzx ecx, byte [rsp + rax]
lea rax, [rsp + 0x1ff]
sub rax, rcx
movzx ecx, byte [rax]
jmp 0x14003ffb5
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 + 0x8c510], dl
mov byte [r11 + r8*4 + 0x8b3f1], dl
mov byte [r11 + r8*4 + 0x8b3f0], dl
mov byte [r11 + r8*4 + 0x8b7f3], dl
mov byte [r11 + r8*4 + 0x8b7f0], dl
mov byte [r11 + r8*4 + 0x8bbf3], dl
mov byte [r11 + r8*4 + 0x8bbf2], dl
mov byte [r11 + r8*4 + 0x8bff2], dl
mov byte [r11 + r8*4 + 0x8bff1], dl
je 0x14004002b
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x119]
jmp 0x14004002d
xor eax, eax
mov byte [r11 + r8*4 + 0x8b3f3], al
mov byte [r11 + r8*4 + 0x8b7f2], al
mov byte [r11 + r8*4 + 0x8bbf1], al
mov byte [r11 + r8*4 + 0x8bff0], al
test dl, dl
je 0x140040062
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x101]
jmp 0x140040064
xor eax, eax
mov byte [r11 + r8*4 + 0x8b3f2], al
mov byte [r11 + r8*4 + 0x8b7f1], al
mov byte [r11 + r8*4 + 0x8bbf0], al
mov byte [r11 + r8*4 + 0x8bff3], 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 0x1400400db
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 0x1400400dd
xor dl, dl
mov byte [r8 + r11 + 0x8c410], dl
test dl, dl
je 0x1400400fa
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x168]
jmp 0x1400400fc
xor eax, eax
movzx ecx, dl
mov byte [r11 + r8*4 + 0x8a3f2], al
mov byte [r11 + r8*4 + 0x8a7f1], al
mov byte [r11 + r8*4 + 0x8abf0], al
mov byte [r11 + r8*4 + 0x8aff3], al
mov byte [r11 + rcx*4 + 0x893f2], al
mov byte [r11 + rcx*4 + 0x897f1], al
mov byte [r11 + rcx*4 + 0x89bf0], al
mov byte [r11 + rcx*4 + 0x89ff3], al
test dl, dl
je 0x140040152
movzx eax, byte [rsp + rcx]
movzx r9d, byte [rsp + rax + 0x1c7]
jmp 0x140040155
xor r9d, r9d
mov byte [r11 + r8*4 + 0x8a3f0], r9b
mov byte [r11 + r8*4 + 0x8a7f3], r9b
mov byte [r11 + r8*4 + 0x8abf2], r9b
mov byte [r11 + r8*4 + 0x8aff1], r9b
mov byte [r11 + rcx*4 + 0x893f0], r9b
mov byte [r11 + rcx*4 + 0x897f3], r9b
mov byte [r11 + rcx*4 + 0x89bf2], r9b
mov byte [r11 + rcx*4 + 0x89ff1], r9b
test dl, dl
je 0x1400401a8
movzx eax, byte [rsp + rcx]
movzx r9d, byte [rsp + rax + 0x1ee]
jmp 0x1400401ab
xor r9d, r9d
mov byte [r11 + r8*4 + 0x8a3f1], r9b
mov byte [r11 + r8*4 + 0x8a7f0], r9b
mov byte [r11 + r8*4 + 0x8abf3], r9b
mov byte [r11 + r8*4 + 0x8aff2], r9b
mov byte [r11 + rcx*4 + 0x893f1], r9b
mov byte [r11 + rcx*4 + 0x897f0], r9b
mov byte [r11 + rcx*4 + 0x89bf3], r9b
mov byte [r11 + rcx*4 + 0x89ff2], r9b
test dl, dl
je 0x1400401fd
movzx eax, byte [rsp + rcx]
movzx edx, byte [rsp + rax + 0x1df]
jmp 0x1400401ff
xor edx, edx
inc r10d
mov byte [r11 + r8*4 + 0x8a3f3], dl
mov byte [r11 + r8*4 + 0x8a7f2], dl
mov byte [r11 + r8*4 + 0x8abf1], dl
mov byte [r11 + r8*4 + 0x8aff0], dl
inc r8
cmp r10d, 0x100
mov byte [r11 + rcx*4 + 0x893f3], dl
mov byte [r11 + rcx*4 + 0x897f2], dl
mov byte [r11 + rcx*4 + 0x89bf1], dl
mov byte [r11 + rcx*4 + 0x89ff0], dl
jl 0x14003ff96
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140054e00
add rsp, 0x318
ret