Function at 0x180055870
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x2a0]
add rax, 0x600
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0xe4], 0
mov dword [rsp + 8], 2
jmp 0x1800558c7
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0x40
jae 0x180055a45
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0x2a0]
movzx eax, byte [rcx + rax + 0x2b54]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
shr eax, 1
dec eax
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x50]
and eax, 1
or eax, 2
mov ecx, dword [rsp + 0x14]
shl eax, cl
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0x1c]
shl rax, 1
mov rcx, qword [rsp + 0x2a0]
lea rax, [rcx + rax*2 + 0x2254]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 8]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x14]
mov ecx, 1
mov dword [rsp + 0x68], ecx
movzx ecx, al
mov eax, dword [rsp + 0x68]
shl eax, cl
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 0x1c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x1c], eax
cmp dword [rsp + 0x14], 0
je 0x1800559d8
mov eax, dword [rsp + 0x3c]
and eax, 1
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x3c]
shr eax, 1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x54]
neg ecx
and ecx, 0x7ff
xor eax, ecx
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x30]
lea eax, [rax + rcx*2]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x14]
dec eax
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 0
jne 0x18005596f
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x1c]
mov dword [rsp + rcx*4 + 0x80], eax
mov eax, dword [rsp + 0x58]
xor eax, 0x7ff
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x6c]
mov edx, dword [rsp + 0x1c]
add edx, ecx
mov ecx, edx
mov ecx, ecx
mov dword [rsp + rcx*4 + 0x80], eax
jmp 0x1800558bd
mov dword [rsp + 0x18], 0
jmp 0x180055a59
mov eax, dword [rsp + 0x18]
inc eax
mov dword [rsp + 0x18], eax
cmp dword [rsp + 0x18], 4
jae 0x180055e55
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0xec]
inc eax
shr eax, 1
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x18]
imul rax, rax, 0x100
mov rcx, qword [rsp + 0x2a0]
lea rax, [rcx + rax + 0x10d4]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x18]
imul rax, rax, 0x80
mov rcx, qword [rsp + 0x2a0]
lea rax, [rcx + rax + 0x2054]
mov qword [rsp + 0x40], rax
mov dword [rsp + 4], 0
jmp 0x180055ace
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 4], eax
jae 0x180055ca4
mov eax, dword [rsp + 4]
add eax, 0x20
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x10]
neg ecx
and ecx, 0x7ff
xor eax, ecx
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp]
and eax, 1
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x10]
neg ecx
and ecx, 0x7ff
xor eax, ecx
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp]
and eax, 1
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x10]
neg ecx
and ecx, 0x7ff
xor eax, ecx
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp]
and eax, 1
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x10]
neg ecx
and ecx, 0x7ff
xor eax, ecx
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp]
and eax, 1
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x10]
neg ecx
and ecx, 0x7ff
xor eax, ecx
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2 + 0x40]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 4]
shl rcx, 1
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x5c]
xor eax, 0x7ff
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 4]
shl rcx, 1
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x180055ac4
mov dword [rsp + 0x38], 0x20
mov dword [rsp + 4], 7
jmp 0x180055cc0
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 4], eax
jae 0x180055d1d
mov eax, dword [rsp + 4]
shl rax, 1
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4]
add eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 4]
shl rcx, 1
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 4]
shl rax, 1
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4 + 4]
add eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 4]
shl rcx, 1
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx*4 + 4], eax
mov eax, dword [rsp + 0x38]
add eax, 0x10
mov dword [rsp + 0x38], eax
jmp 0x180055cb6
mov eax, dword [rsp + 0x18]
imul rax, rax, 0x200
mov rcx, qword [rsp + 0x2a0]
lea rax, [rcx + rax + 0x14d4]
mov qword [rsp + 0x48], rax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x20]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x20]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x20]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 3
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x20]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov dword [rsp + 8], 4
jmp 0x180055dde
mov eax, dword [rsp + 8]
add eax, 2
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0x80
jae 0x180055e50
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0x2a0]
movzx eax, byte [rcx + rax + 0x2b54]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 8]
mov eax, dword [rsp + rax*4 + 0x80]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 8]
mov rdx, qword [rsp + 0x48]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 8]
inc eax
mov eax, eax
mov eax, dword [rsp + rax*4 + 0x80]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 8]
inc ecx
mov ecx, ecx
mov rdx, qword [rsp + 0x48]
mov dword [rdx + rcx*4], eax
jmp 0x180055dd3
jmp 0x180055a4f
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180033640
add rsp, 0x298
ret