Function at 0x1800508b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x318
mov rax, qword [0x18010f050]
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 0x1800508d5
lea rdx, [0x18011bed0]
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 0x180050920
xor r10d, r10d
lea r11, [0x180000000]
xor r8d, r8d
test r10b, r10b
je 0x18005096f
movzx eax, r10b
movzx ecx, byte [rsp + rax]
lea rax, [rsp + 0x1ff]
sub rax, rcx
movzx ecx, byte [rax]
jmp 0x180050971
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 + 0x11bff0], dl
mov byte [r11 + r8*4 + 0x11aed1], dl
mov byte [r11 + r8*4 + 0x11aed0], dl
mov byte [r11 + r8*4 + 0x11b2d3], dl
mov byte [r11 + r8*4 + 0x11b2d0], dl
mov byte [r11 + r8*4 + 0x11b6d3], dl
mov byte [r11 + r8*4 + 0x11b6d2], dl
mov byte [r11 + r8*4 + 0x11bad2], dl
mov byte [r11 + r8*4 + 0x11bad1], dl
je 0x1800509e7
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x119]
jmp 0x1800509e9
xor eax, eax
mov byte [r11 + r8*4 + 0x11aed3], al
mov byte [r11 + r8*4 + 0x11b2d2], al
mov byte [r11 + r8*4 + 0x11b6d1], al
mov byte [r11 + r8*4 + 0x11bad0], al
test dl, dl
je 0x180050a1e
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x101]
jmp 0x180050a20
xor eax, eax
mov byte [r11 + r8*4 + 0x11aed2], al
mov byte [r11 + r8*4 + 0x11b2d1], al
mov byte [r11 + r8*4 + 0x11b6d0], al
mov byte [r11 + r8*4 + 0x11bad3], 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 0x180050a9c
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 0x180050a9e
xor dl, dl
mov byte [r8 + r11 + 0x11bef0], dl
test dl, dl
je 0x180050abb
movzx eax, dl
movzx ecx, byte [rsp + rax]
movzx eax, byte [rsp + rcx + 0x168]
jmp 0x180050abd
xor eax, eax
movzx ecx, dl
mov byte [r11 + r8*4 + 0x119ed2], al
mov byte [r11 + r8*4 + 0x11a2d1], al
mov byte [r11 + r8*4 + 0x11a6d0], al
mov byte [r11 + r8*4 + 0x11aad3], al
mov byte [r11 + rcx*4 + 0x118ed2], al
mov byte [r11 + rcx*4 + 0x1192d1], al
mov byte [r11 + rcx*4 + 0x1196d0], al
mov byte [r11 + rcx*4 + 0x119ad3], al
test dl, dl
je 0x180050b13
movzx eax, byte [rsp + rcx]
movzx r9d, byte [rsp + rax + 0x1c7]
jmp 0x180050b16
xor r9d, r9d
mov byte [r11 + r8*4 + 0x119ed0], r9b
mov byte [r11 + r8*4 + 0x11a2d3], r9b
mov byte [r11 + r8*4 + 0x11a6d2], r9b
mov byte [r11 + r8*4 + 0x11aad1], r9b
mov byte [r11 + rcx*4 + 0x118ed0], r9b
mov byte [r11 + rcx*4 + 0x1192d3], r9b
mov byte [r11 + rcx*4 + 0x1196d2], r9b
mov byte [r11 + rcx*4 + 0x119ad1], r9b
test dl, dl
je 0x180050b69
movzx eax, byte [rsp + rcx]
movzx r9d, byte [rsp + rax + 0x1ee]
jmp 0x180050b6c
xor r9d, r9d
mov byte [r11 + r8*4 + 0x119ed1], r9b
mov byte [r11 + r8*4 + 0x11a2d0], r9b
mov byte [r11 + r8*4 + 0x11a6d3], r9b
mov byte [r11 + r8*4 + 0x11aad2], r9b
mov byte [r11 + rcx*4 + 0x118ed1], r9b
mov byte [r11 + rcx*4 + 0x1192d0], r9b
mov byte [r11 + rcx*4 + 0x1196d3], r9b
mov byte [r11 + rcx*4 + 0x119ad2], r9b
test dl, dl
je 0x180050bbe
movzx eax, byte [rsp + rcx]
movzx edx, byte [rsp + rax + 0x1df]
jmp 0x180050bc0
xor edx, edx
inc r10d
mov byte [r11 + r8*4 + 0x119ed3], dl
mov byte [r11 + r8*4 + 0x11a2d2], dl
mov byte [r11 + r8*4 + 0x11a6d1], dl
mov byte [r11 + r8*4 + 0x11aad0], dl
inc r8
cmp r10d, 0x100
mov byte [r11 + rcx*4 + 0x118ed3], dl
mov byte [r11 + rcx*4 + 0x1192d2], dl
mov byte [r11 + rcx*4 + 0x1196d1], dl
mov byte [r11 + rcx*4 + 0x119ad0], dl
jl 0x180050952
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x318
ret