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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401767c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, r8d
mov r14, rdx
xor r9d, r9d
cmp ecx, 0x7b
ja 0x14004f54f
movsxd rax, ecx
lea r9, str.Keybind
mov r9, qword [r9 + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov rdi, 0xffffffffffffffff
mov rbx, rdi
test r9, r9
jne 0x14004f7d0
movsd xmm0, qword [str.d_U_XH]
movsd qword [rbp - 0x38], xmm0
movzx ecx, word [0x14013bbf8]
mov word [rbp - 0x30], cx
movzx eax, byte [0x14013bbfa]
mov byte [rbp - 0x38], 0x53
xor byte [rbp - 0x37], 0x38
xor byte [rbp - 0x36], 0x39
xor byte [rbp - 0x35], 0x3a
xor byte [rbp - 0x34], 0x3b
xor byte [rbp - 0x33], 0x3c
xor byte [rbp - 0x32], 0x3d
xor byte [rbp - 0x31], 0x3e
xor cl, 0x3f
mov byte [rbp - 0x30], cl
xor byte [rbp - 0x2f], 0x40
xor al, 0x41
mov byte [rbp - 0x2e], al
lea rax, [rbp - 0x38]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004f5d0
lea rcx, [rbp - 0x28]
cmp rbx, 0xf
ja 0x14004f5fa
mov qword [rbp - 0x18], rbx
mov r8, rbx
lea rdx, [rbp - 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx - 0x28], 0
jmp 0x14004f60b
lea r9, [rbp - 0x38]
movzx r8d, byte [rbp - 0x40]
mov rdx, rbx
call fcn.14004ac40
cmp esi, 1
jne 0x14004f816
movsd xmm0, qword [str.gJIH]
movsd qword [rbp - 0x38], xmm0
mov eax, dword [0x14013bc08]
mov dword [rbp - 0x30], eax
movzx eax, word [0x14013bc0c]
mov word [rbp - 0x2c], ax
cmp byte [0x14013bc0d], 0
je 0x14004f791
xor r8d, r8d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14004f74b
movdqa xmm4, xmmword [0x14013d570]
movdqa xmm2, xmmword [0x1400eaa10]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14013d530]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14013d550]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14013d5b0]
movd xmm0, dword [str.gJIH]
xorps xmm2, xmm0
movd dword [rbp - 0x38], xmm2
movdqa xmm3, xmmword [0x14013d520]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14013d530]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14013d550]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14013d5b0]
movd xmm0, dword [rbp - 0x34]
xorps xmm2, xmm0
movd dword [rbp - 0x34], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x38]
add r9, rax
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x37
add cl, r8b
xor byte [r9], cl
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x14004f760
lea rax, [rbp - 0x38]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14004f795
mov rax, qword [rbp - 0x10]
cmp rdi, rax
ja 0x14004f801
lea rbx, [rbp - 0x28]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x28]
mov qword [rbp - 0x18], rdi
mov r8, rdi
lea rdx, [rbp - 0x38]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
jmp 0x14004f816
inc rbx
cmp byte [r9 + rbx], 0
jne 0x14004f7d0
lea rcx, [rbp - 0x28]
cmp rbx, 0xf
ja 0x14004f5fe
mov qword [rbp - 0x18], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x28], 0
jmp 0x14004f60b
lea r9, [rbp - 0x38]
movzx r8d, byte [rbp - 0x40]
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.14004ac40
mov dword [rbp - 0x38], 0x431b0000
mov dword [rbp - 0x34], 0x42200000
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x38]
call fcn.14003bb70
test al, al
je 0x14004f861
test esi, esi
jne 0x14004f861
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14004f89f
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f89a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f89a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400df194
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400df2b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret