Function at 0x18004cb40
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], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x28], xmm6
movups xmm0, xmmword [str._YJsULHJt_8_b671]
movups xmmword [rbp - 9], xmm0
mov eax, dword [str.5_:9._M]
mov dword [rbp + 7], eax
movzx eax, word [0x18010085c]
mov word [rbp + 0xb], ax
movzx eax, byte [0x18010085e]
mov byte [rbp + 0xd], al
xor r8d, r8d
mov edi, dword [0x180121018]
cmp edi, 2
jl 0x18004ccd5
movdqa xmm5, xmmword [0x18010ac80]
movdqa xmm4, xmmword [0x18010ae60]
movdqa xmm6, xmmword [0x18010aca0]
movdqa xmm0, xmmword [str.7777777777777777]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 5]
mov edx, dword [rbp - 0x29]
nop
movd xmm2, r8d
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
psrad xmm1, 4
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, [r8 + 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
psrad xmm1, 4
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 r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x18004cbd0
cmp r8d, 0x17
jge 0x18004cd10
movsxd rax, r8d
lea r9, [rbp - 9]
add r9, rax
nop
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x37
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x17
jl 0x18004cce0
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x27], xmm1
lea rax, [rbp - 9]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18004cd30
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.18001ae00
nop
xor r9d, r9d
lea rcx, [rbp + 0x17]
call fcn.18004d8d0
mov r12, rax
lea rcx, [rbp + 0x17]
call fcn.18001ce20
movsd xmm0, qword [str.cW_WYnNZ__E]
movsd qword [rbp - 0x29], xmm0
mov ecx, dword [0x180100840]
mov dword [rbp - 0x21], ecx
movzx ecx, word [0x180100844]
mov word [rbp - 0x1d], cx
movzx ecx, byte [0x180100846]
mov byte [rbp - 0x1b], cl
xor r8d, r8d
cmp edi, 2
jl 0x18004ce96
movdqa xmm4, xmmword [0x18010ae60]
movdqa xmm2, xmmword [0x18010ac80]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18010aca0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
mov eax, dword [str.7777777777777777]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.cW_WYnNZ__E]
xorps xmm2, xmm0
movd dword [rbp - 0x29], xmm2
movdqa xmm3, xmmword [0x18010ac90]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18010aca0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x25]
xorps xmm2, xmm1
movd dword [rbp - 0x25], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, rax
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x37
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x18004cea0
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
lea rax, [rbp - 0x29]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18004cee3
mov r8, rbx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.18001ae00
nop
xor r9d, r9d
lea rcx, [rbp - 9]
call fcn.18004d8d0
mov r14, rax
lea rcx, [rbp - 9]
call fcn.18001ce20
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str.SwitchLevel
lea rcx, [rbp - 0x29]
call fcn.18001ae00
nop
xor r9d, r9d
lea rcx, [rbp - 0x29]
call fcn.18004d8d0
mov r15, rax
lea rcx, [rbp - 0x29]
call fcn.18001ce20
mov esi, 0x40
lea rbx, [r14 + 0x40]
sub r12, r14
sub r15, r14
mov rdi, qword [r12 + rbx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rdi, rax
jbe 0x18004cfc4
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0x50]
add rdx, rax
cmp rdi, rdx
jae 0x18004cfc4
mov rdi, qword [rbx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rdi, rax
jbe 0x18004cfc4
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0x50]
add rdx, rax
cmp rdi, rdx
jae 0x18004cfc4
mov rdi, qword [r15 + rbx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rdi, rax
jbe 0x18004cfc4
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0x50]
add rdx, rax
cmp rdi, rdx
jb 0x18004d00b
add esi, 8
add rbx, 8
mov rax, rbx
sub rax, r14
cmp rax, 0x140
jl 0x18004cf62
mov dword [0x1801213ac], 0
mov al, 1
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov dword [0x1801213ac], esi
cmp esi, 0xffffffff
setne al
jmp 0x18004cfe5