Function at 0x140005090
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x348]
sub rsp, 0x430
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
movaps xmmword [rax - 0x78], xmm11
movaps xmmword [rax - 0x88], xmm12
movaps xmmword [rax - 0x98], xmm13
movaps xmmword [rax - 0xa8], xmm14
movaps xmmword [rax - 0xb8], xmm15
mov rax, qword [0x1400dd180]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor r15d, r15d
movdqa xmm15, xmmword [0x1400c5b20]
movss xmm9, dword [0x1400c5454]
xorps xmm11, xmm11
cmp byte [0x1400dd210], r15b
je 0x140005984
mov rax, qword [0x1400e4ce8]
movss xmm8, dword [rax + 0xe0]
cvtps2pd xmm8, xmm8
movsd xmm0, qword [str.wY_O]
movsd qword [rsp + 0x60], xmm0
mov ecx, dword [0x1400c4010]
mov dword [rsp + 0x68], ecx
movzx eax, byte [0x1400c4014]
mov byte [rsp + 0x6c], al
mov r8d, r15d
cmp dword [0x1400dd1d8], 2
jl 0x1400052bb
movdqa xmm5, xmmword [0x1400c5b80]
movdqa xmm6, xmmword [str.3333HKRC_NGO]
movdqa xmm7, xmmword [0x1400c57f0]
movdqa xmm2, xmmword [0x1400c56c0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
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
movdqa xmm4, xmmword [0x1400c57b0]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movd xmm0, dword [str.wY_O]
xorps xmm2, xmm0
movd dword [rsp + 0x60], xmm2
movdqa xmm2, xmmword [0x1400c5710]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
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
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movd xmm0, dword [rsp + 0x64]
xorps xmm2, xmm0
movd dword [rsp + 0x64], xmm2
movdqa xmm3, xmmword [0x1400c5740]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
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
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm7
movd xmm0, ecx
xorps xmm3, xmm0
movd dword [rsp + 0x68], xmm3
mov r8d, recv
mov eax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x1400052d0
movaps xmm2, xmm8
movq r8, xmm2
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140010530
mov r8, qword [0x1400e4ce8]
movss xmm7, dword [r8 + 0x10]
movss xmm6, dword [0x1400c55bc]
subss xmm7, xmm6
mulss xmm7, xmm9
movss dword [rsp + 0x50], xmm7
movss xmm13, dword [0x1400c556c]
mov dword [rsp + 0x54], 0x41200000
movdqa xmm0, xmmword [0x1400c5870]
movups xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call fcn.1400155e0
mov esi, eax
movups xmmword [rsp + 0x60], xmm15
lea rcx, [rsp + 0x60]
call fcn.1400155e0
mov r14d, eax
mov rcx, qword [r8 + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
movaps xmm8, xmm7
addss xmm8, xmm6
movaps xmm0, xmm7
addss xmm0, xmm6
movss dword [rsp + 0x60], xmm0
mov dword [rsp + 0x64], 0x42700000
mov dword [rsp + 0x28], r15d
movss dword [rsp + 0x20], xmm11
mov r9d, esi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140035ab0
mov rcx, qword [0x1400e4ce8]
mov rcx, qword [rcx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
movss dword [rsp + 0x60], xmm8
mov dword [rsp + 0x64], 0x42700000
movss xmm12, dword [0x1400c548c]
movss dword [rsp + 0x30], xmm12
mov dword [rsp + 0x28], r15d
movss dword [rsp + 0x20], xmm11
mov r9d, r14d
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400359a0
mov rbx, qword [0x1400e4ce8]
mov qword [rsp + 0x30], r15
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
movss xmm14, dword [0x1400c55f4]
movss dword [rsp + 0x20], xmm14
movss xmm3, dword [0x1400c55e8]
movss xmm2, dword [rbx + 0x3c00]
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 0x3bf8]
call fcn.140039af0
movss xmm0, dword [rsp + 0x60]
addss xmm0, dword [0x1400c5484]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss xmm10, dword [0x1400c5598]
movaps xmm2, xmm10
subss xmm2, dword [rsp + 0x64]
mulss xmm2, xmm9
addss xmm2, xmm13
movaps xmm0, xmm6
subss xmm0, xmm1
mulss xmm0, xmm9
addss xmm0, xmm7
movss dword [rsp + 0x60], xmm0
movss dword [rsp + 0x64], xmm2
mov rcx, qword [rbx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
mov r8, rax
movups xmmword [rsp + 0x50], xmm15
lea rcx, [rsp + 0x50]
call fcn.1400155e0
mov r9d, eax
mov rdi, 0xffffffffffffffff
test eax, 0xff000000
je 0x14000555a
lea rax, [rbp - 0x80]
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], r15b
jne 0x1400054f1
lea rdx, [rbp - 0x80]
add rdx, rcx
lea rax, [rbp - 0x80]
cmp rax, rdx
je 0x14000555a
mov rax, qword [r8 + 0x38]
movups xmm0, xmmword [r8 + 0x88]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x48], r15b
movss dword [rsp + 0x40], xmm11
mov qword [rsp + 0x38], rdx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r9d
lea r9, [rsp + 0x60]
movss xmm2, dword [rax + 0x10]
mov rdx, r8
mov rcx, qword [rax + 8]
call fcn.140039d10
cmp byte [0x1400dd210], r15b
je 0x14000598d
mov r8d, dword [0x1400e4cb0]
lea rdx, str.Render_Count:__d
lea rcx, [rbp + 0x80]
call fcn.140001ba0
addss xmm8, xmm13
movss dword [rsp + 0x50], xmm8
mov dword [rsp + 0x54], 0x41200000
mov rcx, qword [0x1400e4ce8]
mov rcx, qword [rcx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
movaps xmm0, xmm8
addss xmm0, xmm6
movss dword [rsp + 0x60], xmm0
mov dword [rsp + 0x64], 0x42700000
mov dword [rsp + 0x28], r15d
movss dword [rsp + 0x20], xmm11
mov r9d, esi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140035ab0
mov rcx, qword [0x1400e4ce8]
mov rcx, qword [rcx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
movaps xmm0, xmm8
addss xmm0, xmm6
movss dword [rsp + 0x60], xmm0
mov dword [rsp + 0x64], 0x42700000
movss dword [rsp + 0x30], xmm12
mov dword [rsp + 0x28], r15d
movss dword [rsp + 0x20], xmm11
mov r9d, r14d
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400359a0
mov rbx, qword [0x1400e4ce8]
mov qword [rsp + 0x30], r15
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
movss dword [rsp + 0x20], xmm14
movss xmm3, dword [0x1400c55e8]
movss xmm2, dword [rbx + 0x3c00]
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 0x3bf8]
call fcn.140039af0
movss xmm0, dword [rsp + 0x60]
addss xmm0, dword [0x1400c5484]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movaps xmm2, xmm10
subss xmm2, dword [rsp + 0x64]
mulss xmm2, xmm9
addss xmm2, xmm13
movaps xmm0, xmm6
subss xmm0, xmm1
mulss xmm0, xmm9
addss xmm0, xmm8
movss dword [rsp + 0x60], xmm0
movss dword [rsp + 0x64], xmm2
mov rcx, qword [rbx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
mov r8, rax
movups xmmword [rsp + 0x50], xmm15
lea rcx, [rsp + 0x50]
call fcn.1400155e0
mov r9d, eax
test eax, 0xff000000
je 0x140005768
lea rax, [rbp + 0x80]
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], r15b
jne 0x1400056f6
lea rdx, [rbp + 0x80]
add rdx, rcx
lea rax, [rbp + 0x80]
cmp rax, rdx
je 0x140005768
mov rax, qword [r8 + 0x38]
movups xmm0, xmmword [r8 + 0x88]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x48], r15b
movss dword [rsp + 0x40], xmm11
mov qword [rsp + 0x38], rdx
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r9d
lea r9, [rsp + 0x60]
movss xmm2, dword [rax + 0x10]
mov rdx, r8
mov rcx, qword [rax + 8]
call fcn.140039d10
cmp byte [0x1400dd210], r15b
je 0x14000598d
mov rax, qword [0x1400e4ce8]
movss xmm2, dword [rax + 0xe0]
cvtps2pd xmm2, xmm2
movq r8, xmm2
lea rdx, str.FPS:__.1f
lea rcx, [rbp + 0x180]
call fcn.140001ba0
subss xmm7, xmm6
subss xmm7, xmm13
movss dword [rsp + 0x50], xmm7
mov dword [rsp + 0x54], 0x41200000
mov rcx, qword [0x1400e4ce8]
mov rcx, qword [rcx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
movaps xmm0, xmm7
addss xmm0, xmm6
movss dword [rsp + 0x60], xmm0
mov dword [rsp + 0x64], 0x42700000
mov dword [rsp + 0x28], r15d
movss dword [rsp + 0x20], xmm11
mov r9d, esi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140035ab0
mov rcx, qword [0x1400e4ce8]
mov rcx, qword [rcx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
movaps xmm0, xmm7
addss xmm0, xmm6
movss dword [rsp + 0x60], xmm0
mov dword [rsp + 0x64], 0x42700000
movss dword [rsp + 0x30], xmm12
mov dword [rsp + 0x28], r15d
movss dword [rsp + 0x20], xmm11
mov r9d, r14d
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400359a0
mov rbx, qword [0x1400e4ce8]
mov qword [rsp + 0x30], r15
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
movss dword [rsp + 0x20], xmm14
movss xmm3, dword [0x1400c55e8]
movss xmm2, dword [rbx + 0x3c00]
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 0x3bf8]
call fcn.140039af0
movss xmm0, dword [rsp + 0x60]
addss xmm0, dword [0x1400c5484]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
subss xmm10, dword [rsp + 0x64]
mulss xmm10, xmm9
addss xmm10, xmm13
subss xmm6, xmm1
mulss xmm6, xmm9
addss xmm6, xmm7
movss dword [rsp + 0x60], xmm6
movss dword [rsp + 0x64], xmm10
mov rcx, qword [rbx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
mov r8, rax
movups xmmword [rsp + 0x50], xmm15
lea rcx, [rsp + 0x50]
call fcn.1400155e0
mov r9d, eax
test eax, 0xff000000
je 0x14000598d
lea rax, [rbp + 0x180]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140005910
lea rcx, [rbp + 0x180]
add rcx, rdi
lea rax, [rbp + 0x180]
cmp rax, rcx
je 0x14000598d
mov rax, qword [r8 + 0x38]
movups xmm0, xmmword [r8 + 0x88]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x48], r15b
movss dword [rsp + 0x40], xmm11
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r9d
lea r9, [rsp + 0x60]
movss xmm2, dword [rax + 0x10]
mov rdx, r8
mov rcx, qword [rax + 8]
call fcn.140039d10
jmp 0x14000598d
movss xmm12, dword [0x1400c548c]
cmp byte [0x1400dd354], r15b
je 0x140005b58
mov rcx, qword [0x1400e4c70]
add rcx, 0x1e34
call fcn.140010590
mov edx, dword [0x1400dd35c]
mov ecx, edx
test al, al
cmovne ecx, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [0x1400dd358], ecx
movd xmm10, edx
cvtdq2ps xmm10, xmm10
movups xmmword [rsp + 0x60], xmm15
lea rcx, [rsp + 0x60]
call fcn.1400155e0
mov r14d, eax
mov eax, dword [0x1400e4d6c]
cdq
sub eax, edx
sar eax, 1
movd xmm13, eax
cvtdq2ps xmm13, xmm13
mov eax, dword [0x1400e4d60]
cdq
sub eax, edx
sar eax, 1
movd xmm14, eax
cvtdq2ps xmm14, xmm14
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov rsi, r15
mov qword [rsp + 0x70], r15
mov edi, r15d
movss xmm12, dword [0x1400c545c]
mov rbx, qword [rsp + 0x68]
nop word [rax + rax]
movd xmm8, edi
cvtdq2ps xmm8, xmm8
mulss xmm8, xmm12
movaps xmm7, xmm10
test dil, 1
je 0x140005a4d
mulss xmm7, xmm9
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm6, xmm0
mulss xmm6, xmm7
addss xmm6, xmm13
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
mulss xmm0, xmm7
addss xmm0, xmm14
movss dword [rsp + 0x50], xmm0
movss dword [rsp + 0x54], xmm6
cmp rbx, rsi
je 0x140005aa2
unpcklps xmm0, xmm6
movsd qword [rsp + 0x50], xmm0
movsd qword [rbx], xmm0
mov rbx, qword [rsp + 0x68]
add rbx, 8
mov qword [rsp + 0x68], rbx
jmp 0x140005ab9
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400121a0
mov rbx, qword [rsp + 0x68]
inc edi
cmp edi, 0xa
jge 0x140005aca
mov rsi, qword [rsp + 0x70]
jmp 0x140005a30
mov rcx, qword [0x1400e4ce8]
mov rcx, qword [rcx + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
sub r8, rdx
sar r8, 3
movss xmm12, dword [0x1400c548c]
movss dword [rsp + 0x28], xmm12
mov dword [rsp + 0x20], 1
mov r9d, r14d
mov rcx, rax
call fcn.140033580
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140005b58
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090de0
cmp byte [0x1400dd353], 0
je 0x140005c56
mov rcx, qword [0x1400e4c70]
add rcx, 0x1e34
call fcn.140010590
mov ecx, dword [0x1400dd35c]
test al, al
cmovne ecx, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [0x1400dd358], ecx
mov rax, qword [0x1400e4ce8]
mov rcx, qword [rax + 0x40a0]
mov rcx, qword [rcx]
call fcn.140018010
mov rbx, rax
movups xmmword [rsp + 0x60], xmm15
lea rcx, [rsp + 0x60]
call fcn.1400155e0
mov edi, eax
movd xmm2, dword [0x1400dd35c]
cvtdq2ps xmm2, xmm2
mov eax, dword [0x1400e4d60]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x60], xmm0
mov eax, dword [0x1400e4d6c]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x64], xmm0
test edi, 0xff000000
je 0x140005c56
comiss xmm9, xmm2
ja 0x140005c56
subss xmm2, xmm9
mov dword [rsp + 0x28], 0xc7
movss xmm0, dword [0x1400c555c]
movss dword [rsp + 0x20], xmm0
movaps xmm3, xmm11
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140034fe0
movss dword [rsp + 0x28], xmm12
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.140033580
mov dword [rbx + 0x78], r15d
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140090dc0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop rbp
ret