Function at 0x140031830
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x60
cmp byte [0x140042227], 0
mov rsi, rcx
mov rax, qword [0x140042220]
mov qword [r11 + 0x20], rbp
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r13
mov r13, rdx
mov qword [r11 - 0x38], rax
je 0x140031993
xor r8d, r8d
cmp dword [0x140049090], 2
jl 0x140031952
movdqa xmm2, xmmword [0x1400427b0]
movdqa xmm4, xmmword [0x140042a90]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.5555]
psubd xmm2, xmm0
movd xmm0, dword [rsp + 0x30]
andps xmm2, xmmword [0x140042820]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140042830]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x1400427c0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.5555]
psubd xmm2, xmm0
movd xmm0, dword [rsp + 0x34]
andps xmm2, xmmword [0x140042820]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140042830]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
jmp 0x140031993
lea r9, [rsp + 0x30]
nop word [rax + rax]
mov eax, 0x3521cfb3
lea r9, [r9 + 1]
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x35
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x140031960
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400319a0
cmp qword [rsi + 0x18], 0xf
mov rbp, rsi
mov rax, qword [rsi + 0x10]
jbe 0x1400319ba
mov rbp, qword [rsi]
cmp rdi, rax
ja 0x140031aa9
mov qword [rsp + 0x80], rbx
sub rax, rdi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
test rdi, rdi
je 0x140031a4c
movsx r15d, byte [rsp + 0x30]
lea r14, [rax + rbp]
lea r8, [r14 + 1]
mov edx, r15d
sub r8, rbp
mov rcx, rbp
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140031a97
nop word [rax + rax]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140031a43
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov rcx, rbx
mov edx, r15d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140031a10
jmp 0x140031a97
sub rbx, rbp
cmp rbx, 0xffffffffffffffff
je 0x140031a97
lea rcx, [r13 + 0x18c8]
call fcn.140039630
test rax, rax
je 0x140031a97
mov r9d, 2
mov qword [rsp + 0x20], 0
mov ecx, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_mouse_event]
mov r9d, 4
mov qword [rsp + 0x20], 0
mov ecx, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_mouse_event]
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
mov rdx, qword [rsi + 0x18]
mov r13, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x88]
cmp rdx, 0xf
jbe 0x140031af1
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140031aec
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031b0a
mov rcx, r8
call fcn.14003ac64
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
add rsp, 0x60
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3