Function at 0x1800ba500
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x180121040]
xor rax, rsp
mov qword [rbp + 8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov r8d, 0xe
lea rdx, str.LevelStreaming
lea rcx, [rbp - 0x78]
call fcn.18001ae00
nop
xor r9d, r9d
lea rcx, [rbp - 0x78]
call fcn.18004d8d0
mov r14, rax
lea rcx, [rbp - 0x78]
call fcn.18001ce20
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov r8d, socket
lea rdx, str.LevelStreamingKismet
lea rcx, [rsp + 0x68]
call fcn.18001ae00
nop
xor r9d, r9d
lea rcx, [rsp + 0x68]
call fcn.18004d8d0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 0x11
lea rdx, str.SetShouldBeLoaded
lea rcx, [rsp + 0x48]
call fcn.18001ae00
nop
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180097d90
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.18001ce20
nop
lea rcx, [rsp + 0x68]
call fcn.18001ce20
test rbx, rbx
jne 0x1800ba6ca
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea r8d, [rbx + 0x15]
lea rdx, str.LevelStreamingDynamic
lea rcx, [rbp - 0x30]
call fcn.18001ae00
nop
xor r9d, r9d
lea rcx, [rbp - 0x30]
call fcn.18004d8d0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 0x11
lea rdx, str.SetShouldBeLoaded
lea rcx, [rsp + 0x48]
call fcn.18001ae00
nop
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180097d90
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.18001ce20
nop
lea rcx, [rbp - 0x30]
call fcn.18001ce20
test rbx, rbx
jne 0x1800ba6ca
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea r8d, [rbx + 0x11]
lea rdx, str.SetShouldBeLoaded
lea rcx, [rsp + 0x48]
call fcn.18001ae00
nop
lea rdx, [rsp + 0x48]
xor ecx, ecx
call fcn.180097d90
nop
lea rcx, [rsp + 0x48]
call fcn.18001ce20
xor edi, edi
lea esi, [rdi + 1]
movsd xmm0, qword [0x180122c90]
movsd xmm6, qword [0x18010a858]
mov eax, dword [0x180122c98]
comisd xmm0, xmm6
jb 0x1800ba812
cmp eax, 0x17
jge 0x1800ba812
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea r8d, [rdi + 0x12]
lea rdx, str.SetShouldBeVisible
lea rcx, [rsp + 0x48]
call fcn.18001ae00
nop
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.180097d90
mov ecx, edi
test rax, rax
je 0x1800ba73e
movsxd rcx, dword [0x1801213ac]
mov rcx, qword [rcx + rax]
mov qword [rbp], rcx
lea rcx, [rsp + 0x48]
call fcn.18001ce20
mov dword [rsp + 0x40], 0x20c48348
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov edx, 4
lea rcx, [rsp + 0x68]
call fcn.18002dcf0
mov rcx, qword [rsp + 0x68]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
lea rax, [rcx + 4]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], edi
mov r9b, 1
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x10]
lea rcx, [rbp]
call fcn.18004a120
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.18002dcf0
mov rcx, qword [rsp + 0x48]
mov byte [rcx], 0xe8
inc rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.18004a120
mov rdx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x1800ba7fd
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
mov qword [rdx], rcx
mov qword [0x1801247b0], rcx
movsd xmm0, qword [0x180122c90]
mov eax, dword [0x180122c98]
comisd xmm0, xmmword [0x18010a948]
jb 0x1800bab2b
cmp eax, 0x17
jge 0x1800bad39
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 0x1f
lea rdx, str.SetIsRequestingUnloadAndRemoval
lea rcx, [rsp + 0x48]
call fcn.18001ae00
nop
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.180097d90
mov rcx, rdi
test rax, rax
je 0x1800ba872
movsxd rcx, dword [0x1801213ac]
mov rcx, qword [rcx + rax]
mov qword [rbp], rcx
lea rcx, [rsp + 0x48]
call fcn.18001ce20
mov dword [rsp + 0x40], 0x20c48348
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov edx, 4
lea rcx, [rsp + 0x48]
call fcn.18002dcf0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
lea rax, [rcx + 4]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], edi
mov r9b, 1
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x30]
lea rcx, [rbp]
call fcn.18004a120
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.18002dcf0
mov rcx, qword [rsp + 0x68]
mov byte [rcx], 0xe8
inc rcx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.18004a120
mov rdx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x1800ba931
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
mov qword [rdx], rcx
movsd xmm0, qword [0x180122c90]
ucomisd xmm0, qword [0x18010a9a8]
jp 0x1800bad32
jne 0x1800bad32
movups xmm0, xmmword [0x1801087c0]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [0x1801087d0]
movups xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [0x1801087e0]
movups xmmword [rbp - 0x58], xmm0
mov eax, dword [0x1801087f0]
mov dword [rbp - 0x48], eax
movzx eax, word [0x1801087f4]
mov word [rbp - 0x44], ax
movzx eax, byte [0x1801087f6]
mov byte [rbp - 0x42], al
cmp dword [0x180121018], 2
jl 0x1800baada
movdqa xmm5, xmmword [0x18010ac80]
movdqa xmm4, xmmword [0x18010aeb0]
movdqa xmm6, xmmword [0x18010acb0]
movdqa xmm0, xmmword [str.7777777777777777]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x74]
mov edx, dword [rbp - 0x30]
nop word [rax + rax]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdi + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edi, 8
mov eax, edi
lea rcx, [rcx + 8]
cmp edi, 0x30
jl 0x1800ba9d0
cmp eax, 0x37
jge 0x1800bab1f
movsxd rax, edi
lea r8, [rbp - 0x78]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, dil
sub al, cl
add al, 0x37
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0x37
jl 0x1800baaf0
xor r8d, r8d
lea rdx, [rbp - 0x78]
jmp 0x1800bad26
comisd xmm0, xmm6
jb 0x1800bad39
comisd xmm0, xmmword [0x18010a898]
jb 0x1800bab44
cmp eax, 7
jl 0x1800bab46
mov esi, edi
mov eax, dword [0x1801087b8]
movups xmm0, xmmword [0x180108780]
mov dword [rbp - 0x40], eax
movups xmmword [rbp - 0x78], xmm0
movzx eax, word [0x1801087bc]
movups xmm0, xmmword [0x1801087a0]
mov word [rbp - 0x3c], ax
movups xmmword [rbp - 0x58], xmm0
movzx eax, byte [0x1801087be]
movsd xmm0, qword [0x1801087b0]
movups xmm1, xmmword [0x180108790]
mov byte [rbp - 0x3a], al
movsd qword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x68], xmm1
cmp dword [0x180121018], 2
jl 0x1800bacda
movdqa xmm5, xmmword [0x18010ac80]
movdqa xmm4, xmmword [0x18010aeb0]
movdqa xmm6, xmmword [0x18010acb0]
movdqa xmm0, xmmword [str.7777777777777777]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x74]
mov edx, dword [rbp - 0x30]
nop dword [rax + rax]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdi + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edi, 8
mov eax, edi
lea rcx, [rcx + 8]
cmp edi, 0x38
jl 0x1800babd0
cmp eax, 0x3f
jge 0x1800bad1f
movsxd rax, edi
lea r8, [rbp - 0x78]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, dil
sub al, cl
add al, 0x37
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0x3f
jl 0x1800bacf0
mov r8d, esi
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x30]
call fcn.18001c7b0
mov rcx, qword [rax]
mov qword [0x1801247c0], rcx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1800cc550
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret