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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140139a80]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, r8d
mov rsi, rdx
xor edx, edx
cmp ecx, 0x7b
ja 0x140049890
movsxd rax, ecx
lea rdx, str.Keybind
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x14007e240]
movdqu xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0x30], 0
mov rbx, 0xffffffffffffffff
mov r8, rbx
test rdx, rdx
jne 0x140049920
movsd xmm0, qword [str.gPZR_M]
movsd qword [rbp - 0x40], xmm0
movzx ecx, word [0x14007d6a8]
mov word [rbp - 0x38], cx
movzx eax, byte [0x14007d6aa]
mov byte [rbp - 0x40], 0x53
xor byte [rbp - 0x3f], 0x35
xor byte [rbp - 0x3e], 0x36
xor byte [rbp - 0x3d], 0x37
xor byte [rbp - 0x3c], 0x38
xor byte [rbp - 0x3b], 0x39
xor byte [rbp - 0x3a], 0x3a
xor byte [rbp - 0x39], 0x3b
xor cl, 0x3c
mov byte [rbp - 0x38], cl
xor byte [rbp - 0x37], 0x3d
xor al, 0x3e
mov byte [rbp - 0x36], al
lea rax, [rbp - 0x40]
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140049910
lea rdx, [rbp - 0x40]
jmp 0x14004992a
inc r8
cmp byte [rdx + r8], 0
jne 0x140049920
lea rcx, [rbp - 0x30]
call fcn.14004f7f0
cmp edi, 1
jne 0x140049b30
movsd xmm0, qword [str.dGSDK]
movsd qword [rbp - 0x40], xmm0
mov ecx, dword [0x14007d6b8]
mov dword [rbp - 0x38], ecx
movzx eax, word [0x14007d6bc]
mov word [rbp - 0x34], ax
cmp byte [0x14007d6bd], 0
je 0x140049b13
xor r8d, r8d
cmp dword [0x140139ad0], 2
jl 0x140049acd
movdqa xmm5, xmmword [0x14007e350]
movdqa xmm2, xmmword [0x14005e190]
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, xmmword [str.8888]
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x14007e290]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14007e2a0]
movd xmm0, dword [str.dGSDK]
xorps xmm2, xmm0
movd dword [rbp - 0x40], xmm2
movdqa xmm2, xmmword [0x14007e250]
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, xmmword [str.8888]
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14007e2a0]
movd xmm0, dword [rbp - 0x3c]
xorps xmm2, xmm0
movd dword [rbp - 0x3c], xmm2
movdqa xmm3, xmmword [0x14007e260]
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, xmmword [str.8888]
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x14007e2a0]
movd xmm0, ecx
xorps xmm3, xmm0
movd dword [rbp - 0x38], xmm3
mov r8d, 0xc
mov eax, r8d
lea r9, [rbp - 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x140049ae0
lea rax, [rbp - 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140049b17
mov r8, rbx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.14004f7f0
mov dword [rbp - 0x40], 0x42f00000
mov dword [rbp - 0x3c], 0x41a00000
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x40]
call fcn.140039a70
test al, al
je 0x140049b7b
test edi, edi
jne 0x140049b7b
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]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140049bb9
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049bb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049bb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005419c
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400542b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret