Function at 0x1400505f0
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 [0x140148d00]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov edi, r8d
mov rsi, rdx
xor edx, edx
cmp ecx, 0x7b
ja 0x140050641
movsxd rax, ecx
lea rdx, str.Keybind
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movdqa xmm1, xmmword [0x14008af00]
movdqu xmmword [rbp + 7], xmm1
mov byte [rbp - 9], 0
mov rbx, 0xffffffffffffffff
mov r8, rbx
test rdx, rdx
jne 0x1400506d0
movsd xmm0, qword [str.fS__ZNewXG_]
movsd qword [rbp - 0x29], xmm0
movzx ecx, word [0x14008a200]
mov word [rbp - 0x21], cx
movzx eax, byte [0x14008a202]
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 0x1400506c0
lea rdx, [rbp - 0x29]
jmp 0x1400506da
inc r8
cmp byte [rdx + r8], 0
jne 0x1400506d0
lea rcx, [rbp - 9]
call fcn.14005aad0
cmp edi, 1
jne 0x1400508cd
movsd xmm0, qword [str.eDRKJ]
movsd qword [rbp - 0x29], xmm0
mov ecx, dword [0x14008a210]
mov dword [rbp - 0x21], ecx
movzx eax, word [0x14008a214]
mov word [rbp - 0x1d], ax
cmp byte [0x14008a215], 0
je 0x1400508b0
xor r8d, r8d
cmp dword [0x140148d58], 2
jl 0x140050869
movdqa xmm5, xmmword [0x14008afb0]
movdqa xmm6, xmmword [str.4444]
movdqa xmm7, xmmword [0x14008af50]
movdqa xmm2, xmmword [0x140068420]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x14006b920]
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 [0x14008af10]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
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 [0x14008af20]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
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, 0xc
mov eax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x140050880
lea rax, [rbp - 0x29]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400508b4
mov r8, rbx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.14005aad0
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.14003be50
test al, al
je 0x140050917
test edi, edi
jne 0x140050917
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 [0x140064580]
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 [0x140064614]
movss dword [rsp + 0x20], xmm0
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp - 0x19]
call fcn.1400076f0
call fcn.14000c670
mov rdi, rax
lea rbx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rbx, qword [rbp - 9]
movss xmm1, dword [0x1400645a8]
xor ecx, ecx
call fcn.14000b810
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.140021910
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140050a03
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400509fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400509fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005d6d8
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14005d7f0
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