Function at 0x1800036b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13f0]
mov eax, 0x14f0
call fcn.180046e30
sub rsp, rax
movaps xmmword [rsp + 0x14e0], xmm6
movaps xmmword [rsp + 0x14d0], xmm7
movaps xmmword [rsp + 0x14c0], xmm8
movaps xmmword [rsp + 0x14b0], xmm9
movaps xmmword [rsp + 0x14a0], xmm10
movaps xmmword [rsp + 0x1490], xmm11
movaps xmmword [rsp + 0x1480], xmm12
movaps xmmword [rsp + 0x1470], xmm13
movaps xmmword [rsp + 0x1460], xmm14
mov rax, qword [0x180057040]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov qword [rsp + 0x78], rdx
xor r13d, r13d
mov ecx, dword [0x180057c0c]
mov rax, qword gs:[0x58]
mov r12d, 4
mov r14, qword [rax + rcx*8]
mov eax, dword [r14 + r12]
cmp dword [0x180057c74], eax
jle 0x180003797
lea rcx, [0x180057c74]
call fcn.180045cb8
cmp dword [0x180057c74], 0xffffffff
jne 0x180003797
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
cmp byte [0x1800570a4], r13b
jne 0x1800037b6
mov qword [rbp - 0x80], 0xa
lea rcx, [rbp - 0x80]
call fcn.180004c00
jmp 0x1800041e5
mov qword [rbp - 0x78], r13
call fcn.180001d20
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.180043210
mov rbx, rax
mov ecx, 0x10
call fcn.180045d30
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x78]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], r13
call fcn.180001d20
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.1800432d0
mov rbx, rax
mov ecx, 0x10
call fcn.180045d30
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x78]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rbp - 0x70], rax
call fcn.180001d20
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.180043370
mov rbx, rax
mov ecx, 0x10
call fcn.180045d30
mov r15, rax
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x78]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], rax
cmp qword [rbp - 0x78], 0
je 0x180004159
cmp qword [rbp - 0x70], 0
je 0x180004159
call fcn.180004840
cmp byte [rax + 0x58], 0
jne 0x180004159
call fcn.180001d20
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.1800434b0
test al, al
jne 0x180004159
mov eax, dword [r14 + r12]
cmp dword [0x180057c74], eax
jle 0x180003900
lea rcx, [0x180057c74]
call fcn.180045cb8
cmp dword [0x180057c74], 0xffffffff
jne 0x180003900
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
movss xmm12, dword [0x18004f2a0]
movss xmm11, dword [0x18004f290]
movsd xmm14, qword [0x18004eea8]
movss xmm8, dword [0x18004ef08]
movss xmm9, dword [0x18004ef70]
movss xmm7, dword [0x18004ef6c]
movss xmm10, dword [0x18004ef18]
cmp byte [0x1800570b7], 0
je 0x180003b2d
cmp qword [0x180057d48], 0
je 0x180003b2d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x78]
call fcn.180043740
movaps xmm6, xmm0
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, qword [0x180057d48]
call fcn.1800435e0
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x60]
mov rcx, qword [rbp - 0x78]
call fcn.1800435e0
movsd xmm1, qword [rsp + 0x30]
subsd xmm1, qword [rsp + 0x60]
movsd xmm0, qword [rsp + 0x40]
subsd xmm0, qword [rsp + 0x70]
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2
mulsd xmm0, xmm14
divsd xmm0, qword [0x18004ee70]
subsd xmm0, qword [0x18004ee98]
cvtsd2ss xmm0, xmm0
subss xmm6, xmm0
xorps xmm6, xmm12
comiss xmm6, xmm8
jb 0x1800039eb
nop word [rax + rax]
addss xmm6, xmm9
comiss xmm6, xmm8
jae 0x1800039e0
comiss xmm7, xmm6
jbe 0x1800039fa
addss xmm6, xmm10
comiss xmm7, xmm6
ja 0x1800039f0
mov rbx, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x78]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov rax, qword [0x180057d50]
test rax, rax
je 0x180003a1c
lock inc dword [rax + 8]
movups xmm0, xmmword [0x180057d48]
movups xmmword [rsp + 0x30], xmm0
mov eax, dword [r14 + r12]
cmp dword [0x180057c74], eax
jle 0x180003a61
lea rcx, [0x180057c74]
call fcn.180045cb8
cmp dword [0x180057c74], 0xffffffff
jne 0x180003a61
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180043aa0
movss xmm1, dword [0x1800570b0]
cvtps2pd xmm1, xmm1
comisd xmm0, xmm1
ja 0x180003b2d
andps xmm6, xmm11
mov eax, dword [0x180057c74]
cmp eax, dword [r14 + r12]
jle 0x180003acb
lea rcx, [0x180057c74]
call fcn.180045cb8
mov eax, dword [0x180057c74]
cmp eax, 0xffffffff
jne 0x180003acb
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
mov eax, dword [0x180057c74]
comiss xmm6, dword [0x1800570ac]
ja 0x180003b2d
cmp eax, dword [r14 + r12]
jle 0x180003b07
lea rcx, [0x180057c74]
call fcn.180045cb8
cmp dword [0x180057c74], 0xffffffff
jne 0x180003b07
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
cmp byte [0x1800570a5], 0
je 0x180003b20
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180003b2d
mov rax, qword [0x180057d48]
cmp qword [rax], 0
jne 0x180003b7a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.180004250
mov rdx, rax
call fcn.180004a00
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x180003b7a
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x180003b7a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x180003b7a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov r8, qword [rsp + 0x78]
lea rdx, [rbp - 0x68]
mov rcx, qword [rbp - 0x78]
call fcn.1800437f0
nop
mov ebx, dword [0x180057c74]
cmp ebx, dword [r14 + r12]
jle 0x180003bce
lea rcx, [0x180057c74]
call fcn.180045cb8
mov ebx, dword [0x180057c74]
cmp ebx, 0xffffffff
jne 0x180003bce
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
mov ebx, dword [0x180057c74]
cmp byte [0x1800570b5], 0
je 0x180003be6
lea rcx, [rbp - 0x68]
call fcn.180004ae0
cmp rax, 0xffffffffffffffff
je 0x180003c3e
cmp ebx, dword [r14 + r12]
jle 0x180003c19
lea rcx, [0x180057c74]
call fcn.180045cb8
cmp dword [0x180057c74], 0xffffffff
jne 0x180003c19
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
cmp byte [0x1800570a5], 0
je 0x180003c34
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 8
jae 0x180003c3e
cmp qword [0x180057d48], 0
jne 0x180003c54
mov qword [rbp - 0x80], 0xa
lea rcx, [rbp - 0x80]
call fcn.180004c00
jmp 0x180004109
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x78]
call fcn.180043740
movaps xmm12, xmm0
mov rsi, qword [rsp + 0x78]
mov rax, qword [rsi]
mov r8, qword [rax + 0xf8]
mov rdx, qword [r15]
mov rcx, rsi
call r8
mov rdi, rax
mov rcx, qword [rsi]
mov r10, qword [rcx + 0x2f0]
lea r9, [0x180048ad4]
lea r8, str.mouseSensitivity
mov rdx, rax
mov rcx, rsi
call r10
mov rbx, rax
mov rcx, qword [rsi]
mov r8, qword [rcx + 0xb8]
mov rdx, rdi
mov rcx, rsi
call r8
mov rcx, qword [rsi]
mov r9, qword [rcx + 0x330]
mov r8, rbx
mov rdx, qword [r15]
mov rcx, rsi
call r9
movaps xmm13, xmm0
mov eax, dword [r14 + r12]
cmp dword [0x180057c74], eax
jle 0x180003d0b
lea rcx, [0x180057c74]
call fcn.180045cb8
cmp dword [0x180057c74], 0xffffffff
jne 0x180003d0b
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
movss xmm0, dword [0x1800570a8]
cvtps2pd xmm0, xmm0
divsd xmm0, qword [0x18004ee60]
cvtpd2ps xmm11, xmm0
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x180057d48]
call fcn.1800435e0
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbp - 0x78]
call fcn.1800435e0
movsd xmm1, qword [rsp + 0x60]
subsd xmm1, qword [rsp + 0x48]
movsd xmm0, qword [rsp + 0x70]
subsd xmm0, qword [rsp + 0x58]
call sub.api_ms_win_crt_math_l1_1_0.dll_atan2
mulsd xmm0, xmm14
divsd xmm0, qword [0x18004ee70]
subsd xmm0, qword [0x18004ee98]
cvtsd2ss xmm0, xmm0
movaps xmm6, xmm12
subss xmm6, xmm0
movss xmm14, dword [0x18004f2a0]
xorps xmm6, xmm14
comiss xmm6, xmm8
jb 0x180003dab
nop dword [rax]
addss xmm6, xmm9
comiss xmm6, xmm8
jae 0x180003da0
comiss xmm7, xmm6
jbe 0x180003dba
addss xmm6, xmm10
comiss xmm7, xmm6
ja 0x180003db0
movaps xmm7, xmm6
movss xmm10, dword [0x18004f290]
andps xmm7, xmm10
mov eax, dword [r14 + r12]
cmp dword [0x180057c74], eax
jle 0x180003e03
lea rcx, [0x180057c74]
call fcn.180045cb8
cmp dword [0x180057c74], 0xffffffff
jne 0x180003e03
lea rcx, [0x180047b70]
call fcn.1800460c4
lea rcx, [0x180057c74]
call fcn.180045c4c
movss xmm0, dword [0x1800570ac]
comiss xmm0, xmm7
jb 0x180004109
cvtps2pd xmm0, xmm7
comisd xmm0, xmmword [0x18004ee30]
jbe 0x180004109
mulss xmm13, dword [0x18004ede0]
addss xmm13, dword [0x18004edbc]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm13
movsd xmm1, qword [0x18004ee68]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
mulsd xmm0, qword [0x18004ee48]
xorps xmm9, xmm9
cvtsd2ss xmm9, xmm0
movss xmm1, dword [0x18004eeb4]
movss xmm8, dword [0x18004ee50]
comiss xmm1, xmm7
jb 0x180003f22
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1344], 0xffffffff
mov dword [rbp - 0x3c], eax
mov edx, 1
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x3c], eax
inc rdx
cmp rdx, 0x270
jb 0x180003e90
mov dword [rbp - 0x40], 0x270
xorps xmm3, xmm3
xorps xmm1, xmm1
movsd xmm5, qword [0x18004ee40]
movaps xmm2, xmm5
mov ebx, 2
movsd xmm4, qword [0x18004eee8]
lea rcx, [rbp - 0x40]
call fcn.180004e80
mov eax, eax
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
subsd xmm0, xmm3
mulsd xmm0, xmm2
addsd xmm1, xmm0
mulsd xmm2, xmm4
sub rbx, 1
jne 0x180003ed4
divsd xmm1, xmm2
mulsd xmm1, qword [0x18004ee78]
addsd xmm1, xmm5
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
comiss xmm8, xmm0
jb 0x180003f22
mulss xmm6, dword [0x18004ef58]
movaps xmm1, xmm6
andps xmm1, xmm10
movss xmm0, dword [0x18004eed0]
comiss xmm0, xmm1
jbe 0x180003f50
movss xmm1, dword [0x18004ee1c]
movss xmm0, dword [0x18004ee08]
call fcn.180004d00
mulss xmm11, xmm0
movaps xmm7, xmm11
comiss xmm6, xmm11
ja 0x180003f62
xorps xmm7, xmm14
maxss xmm7, xmm6
movss xmm1, dword [0x18004ee24]
movss xmm0, dword [0x18004edec]
call fcn.180004d00
mulss xmm7, xmm0
movss xmm2, dword [0x18004eef4]
subss xmm2, xmm11
divss xmm7, xmm2
addss xmm12, xmm7
subss xmm12, dword [0x180057cf8]
movaps xmm1, xmm9
movaps xmm0, xmm12
call sub.api_ms_win_crt_math_l1_1_0.dll_fmodf
subss xmm12, xmm0
addss xmm12, dword [0x180057cf8]
mov r14, qword [rbp - 0x78]
mov rsi, qword [rsp + 0x78]
mov rdx, qword [r14]
test rdx, rdx
je 0x180004033
mov rax, qword [rsi]
mov r8, qword [rax + 0xf8]
mov rcx, rsi
call r8
mov rdi, rax
mov rcx, qword [rsi]
mov r10, qword [rcx + 0x2f0]
lea r9, [0x180048ad4]
lea r8, str.rotationYaw
mov rdx, rax
mov rcx, rsi
call r10
mov rbx, rax
mov rcx, qword [rsi]
mov r8, qword [rcx + 0xb8]
mov rdx, rdi
mov rcx, rsi
call r8
mov rcx, qword [rsi]
mov r9, qword [rcx + 0x378]
movaps xmm3, xmm12
mov r8, rbx
mov rdx, qword [r14]
mov rcx, rsi
call r9
mov r14, qword [rbp - 0x78]
mov rsi, qword [rsp + 0x78]
mov rdx, qword [r14]
test rdx, rdx
je 0x18000409f
mov rax, qword [rsi]
mov r8, qword [rax + 0xf8]
mov rcx, rsi
call r8
mov rdi, rax
mov rcx, qword [rsi]
mov r10, qword [rcx + 0x2f0]
lea r9, [0x180048ad4]
lea r8, str.prevRotationYaw
mov rdx, rax
mov rcx, rsi
call r10
mov rbx, rax
mov rdx, qword [rsi]
mov r8, qword [rdx + 0xb8]
mov rdx, rdi
mov rcx, rsi
call r8
mov r8, qword [rsi]
mov r9, qword [r8 + 0x378]
movaps xmm3, xmm12
mov r8, rbx
mov rdx, qword [r14]
mov rcx, rsi
call r9
movss xmm1, dword [0x18004eec8]
movss xmm6, dword [0x18004ee18]
movaps xmm0, xmm6
call fcn.180004d00
movss xmm2, dword [0x18004ee90]
comiss xmm2, xmm0
jb 0x1800040f3
movaps xmm1, xmm8
xorps xmm0, xmm0
call fcn.180004d00
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor edx, edx
mov ecx, 1
comiss xmm6, xmm0
mov r8d, 0xffffffff
jae 0x1800040ed
mov r8d, ecx
call qword [sym.imp.USER32.dll_mouse_event]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x78]
call fcn.180043740
movss dword [0x180057cf8], xmm0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x180004147
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004142
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004142
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800460e4
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
jmp 0x18000416b
mov qword [rbp - 0x80], 0xa
lea rcx, [rbp - 0x80]
call fcn.180004c00
nop
mov rcx, qword [r15 + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb8]
mov rdx, qword [r15]
call r8
nop
mov edx, 0x10
mov rcx, r15
call fcn.1800460e4
nop
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x1800041ba
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb8]
mov rdx, qword [rbx]
call r8
nop
mov edx, 0x10
mov rcx, rbx
call fcn.1800460e4
nop
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x1800041e5
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb8]
mov rdx, qword [rbx]
call r8
nop
mov edx, 0x10
mov rcx, rbx
call fcn.1800460e4
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.180045bf0
lea r11, [rsp + 0x14f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret