Function at 0x1800513c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x318
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r8d, 1
xor r9d, r9d
mov edx, r8d
movsxd rax, r9d
mov byte [rsp + rax + 0x100], dl
mov byte [rsp + rax + 0x1ff], dl
movsxd rax, edx
mov byte [rsp + rax], r9b
mov eax, edx
inc r9d
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
and ecx, 0x11b
xor ecx, eax
xor edx, ecx
cmp edx, r8d
jne 0x1800513e5
lea rdx, [0x18010bb90]
mov r9d, 0x1e
nop word [rax + rax]
mov eax, r8d
mov byte [rdx], r8b
and al, 0x80
neg al
lea eax, [r8 + r8]
sbb ecx, ecx
inc rdx
and ecx, 0x11b
mov r8d, ecx
xor r8d, eax
sub r9, 1
jne 0x180051430
xor r10d, r10d
lea r11, [0x180000000]
xor r8d, r8d
test r10b, r10b
je 0x18005147f
movzx eax, r10b
movzx ecx, byte [rsp + rax]
lea rax, [rsp + 0x1ff]
sub rax, rcx
movzx ecx, byte [rax]
jmp 0x180051481
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 + 0x10bcb0], dl
mov byte [r11 + r8*4 + 0x10ab91], dl
mov byte [r11 + r8*4 + 0x10ab90], dl
mov byte [r11 + r8*4 + 0x10af93], dl
mov byte [r11 + r8*4 + 0x10af90], dl
mov byte [r11 + r8*4 + 0x10b393], dl
mov byte [r11 + r8*4 + 0x10b392], dl
mov byte [r11 + r8*4 + 0x10b792], dl
mov byte [r11 + r8*4 + 0x10b791], dl
je 0x1800514f7
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x119]
jmp 0x1800514f9
xor eax, eax
mov byte [r11 + r8*4 + 0x10ab93], al
mov byte [r11 + r8*4 + 0x10af92], al
mov byte [r11 + r8*4 + 0x10b391], al
mov byte [r11 + r8*4 + 0x10b790], al
test dl, dl
je 0x18005152e
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x101]
jmp 0x180051530
xor eax, eax
mov byte [r11 + r8*4 + 0x10ab92], al
mov byte [r11 + r8*4 + 0x10af91], al
mov byte [r11 + r8*4 + 0x10b390], al
mov byte [r11 + r8*4 + 0x10b793], al
movzx r9d, r10b
lea eax, [r9*8]
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 0x1800515ac
lea edx, [r9*8]
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
movzx edx, byte [rcx]
jmp 0x1800515ae
xor dl, dl
mov byte [r8 + r11 + 0x10bbb0], dl
test dl, dl
je 0x1800515cb
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x168]
jmp 0x1800515cd
xor eax, eax
movzx ecx, dl
mov byte [r11 + r8*4 + 0x109b92], al
mov byte [r11 + r8*4 + 0x109f91], al
mov byte [r11 + r8*4 + 0x10a390], al
mov byte [r11 + r8*4 + 0x10a793], al
mov byte [r11 + rcx*4 + 0x108b92], al
mov byte [r11 + rcx*4 + 0x108f91], al
mov byte [r11 + rcx*4 + 0x109390], al
mov byte [r11 + rcx*4 + 0x109793], al
test dl, dl
je 0x180051623
movzx eax, byte [rsp + rcx]
movzx r9d, byte [rsp + rax + 0x1c7]
jmp 0x180051626
xor r9d, r9d
mov byte [r11 + r8*4 + 0x109b90], r9b
mov byte [r11 + r8*4 + 0x109f93], r9b
mov byte [r11 + r8*4 + 0x10a392], r9b
mov byte [r11 + r8*4 + 0x10a791], r9b
mov byte [r11 + rcx*4 + 0x108b90], r9b
mov byte [r11 + rcx*4 + 0x108f93], r9b
mov byte [r11 + rcx*4 + 0x109392], r9b
mov byte [r11 + rcx*4 + 0x109791], r9b
test dl, dl
je 0x180051679
movzx eax, byte [rsp + rcx]
movzx r9d, byte [rsp + rax + 0x1ee]
jmp 0x18005167c
xor r9d, r9d
mov byte [r11 + r8*4 + 0x109b91], r9b
mov byte [r11 + r8*4 + 0x109f90], r9b
mov byte [r11 + r8*4 + 0x10a393], r9b
mov byte [r11 + r8*4 + 0x10a792], r9b
mov byte [r11 + rcx*4 + 0x108b91], r9b
mov byte [r11 + rcx*4 + 0x108f90], r9b
mov byte [r11 + rcx*4 + 0x109393], r9b
mov byte [r11 + rcx*4 + 0x109792], r9b
test dl, dl
je 0x1800516ce
movzx eax, byte [rsp + rcx]
movzx edx, byte [rsp + rax + 0x1df]
jmp 0x1800516d0
xor edx, edx
inc r10d
mov byte [r11 + r8*4 + 0x109b93], dl
mov byte [r11 + r8*4 + 0x109f92], dl
mov byte [r11 + r8*4 + 0x10a391], dl
mov byte [r11 + r8*4 + 0x10a790], dl
inc r8
cmp r10d, 0x100
mov byte [r11 + rcx*4 + 0x108b93], dl
mov byte [r11 + rcx*4 + 0x108f92], dl
mov byte [r11 + rcx*4 + 0x109391], dl
mov byte [r11 + rcx*4 + 0x109790], dl
jl 0x180051462
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x318
ret