Function at 0x140052490
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x14033fc00]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov edi, r8d
mov rsi, rdx
xor edx, edx
cmp ecx, 0x7b
ja 0x1400524e1
movsxd rax, ecx
lea rdx, str.Keybind
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movdqa xmm1, xmmword [0x14015ace0]
movdqu xmmword [rbp + 7], xmm1
mov byte [rbp - 9], 0
mov rbx, 0xffffffffffffffff
mov r8, rbx
test rdx, rdx
jne 0x140052570
movsd xmm0, qword [str.fS__ZNewXG_]
movsd qword [rbp - 0x29], xmm0
movzx ecx, word [0x14015a3f0]
mov word [rbp - 0x21], cx
movzx eax, byte [0x14015a3f2]
mov byte [rbp - 0x29], 0x53
xor byte [rbp - 0x28], 0x36
xor byte [rbp - 0x27], 0x37
xor byte [rbp - 0x26], 0x38
xor byte [rbp - 0x25], 0x39
xor byte [rbp - 0x24], 0x3a
xor byte [rbp - 0x23], 0x3b
xor byte [rbp - 0x22], 0x3c
xor cl, 0x3d
mov byte [rbp - 0x21], cl
xor byte [rbp - 0x20], 0x3e
xor al, 0x3f
mov byte [rbp - 0x1f], al
lea rax, [rbp - 0x29]
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140052560
lea rdx, [rbp - 0x29]
jmp 0x14005257a
inc r8
cmp byte [rdx + r8], 0
jne 0x140052570
lea rcx, [rbp - 9]
call fcn.14005b290
cmp edi, 1
jne 0x140052770
movsd xmm0, qword [str.eDRKJ]
movsd qword [rbp - 0x29], xmm0
mov ecx, dword [0x14015a400]
mov dword [rbp - 0x21], ecx
movzx eax, word [0x14015a404]
mov word [rbp - 0x1d], ax
cmp byte [0x14015a405], 0
je 0x140052753
xor r8d, r8d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140052715
movdqa xmm5, xmmword [0x14015ae00]
movdqa xmm6, xmmword [str.9999]
movdqa xmm7, xmmword [0x14015ad30]
movdqa xmm2, xmmword [0x140157030]
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 [0x140159f80]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movd xmm0, dword [str.eDRKJ]
xorps xmm2, xmm0
movd dword [rbp - 0x29], xmm2
movdqa xmm2, xmmword [0x14015acf0]
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 [rbp - 0x25]
xorps xmm2, xmm0
movd dword [rbp - 0x25], xmm2
movdqa xmm3, xmmword [0x14015ad00]
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 [rbp - 0x21], xmm3
mov r8d, recv
mov eax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x140052720
lea rax, [rbp - 0x29]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140052757
mov r8, rbx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.14005b290
mov dword [rbp - 0x11], 0x42f00000
mov dword [rbp - 0xd], 0x41f00000
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rcx, qword [rbp - 9]
lea rdx, [rbp - 0x11]
call fcn.140041b90
test al, al
je 0x1400527ba
test edi, edi
jne 0x1400527ba
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movss xmm8, dword [rbp - 0xd]
movss xmm6, dword [0x140153120]
mulss xmm8, xmm6
movss xmm7, dword [rbp - 0x11]
mulss xmm7, xmm6
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rdx, qword [rbp - 9]
movss xmm0, dword [0x140151784]
movss dword [rsp + 0x20], xmm0
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp - 0x19]
call fcn.140017160
call fcn.14001ba80
mov rdi, rax
lea rbx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rbx, qword [rbp - 9]
movss xmm1, dword [0x14015177c]
xor ecx, ecx
call fcn.14001aed0
movss xmm0, dword [rbp - 0x15]
mulss xmm0, xmm6
subss xmm8, xmm0
movss xmm1, dword [rbp - 0x19]
mulss xmm1, xmm6
subss xmm7, xmm1
movss dword [rbp - 0x29], xmm7
movss dword [rbp - 0x25], xmm8
mov qword [rsp + 0x20], 0
mov r9, rbx
mov r8d, eax
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.1400300c0
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x1400528a6
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400528a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400528a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401428ac
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140142710
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret