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

Disassembly:
push rbx
mov eax, 0x1410
call fcn.1801a9c40
sub rsp, rax
mov rax, qword [0x18026adc0]
xor rax, rsp
mov qword [rsp + 0x13f0], rax
call fcn.1800e8e70
mov rbx, rax
cmp byte [rax + 0x458], 0
je 0x1801429fe
call fcn.1800e8e70
cmp byte [rax + 0x2d8], 0
jne 0x1801429fe
call fcn.1800e8e70
cmp byte [rax + 0x330], 0
jne 0x1801429fe
mov qword [rsp + 0x1428], rdi
call fcn.1800e87e0
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 3]
lea rdi, [rcx + 7]
add rdi, rax
je 0x1801429f6
mov rax, qword [rdi]
test rax, rax
je 0x1801429f6
mov rcx, qword [rax]
test rcx, rcx
je 0x1801429f6
cmp qword [rcx + 0x3c0], 0
je 0x1801429f6
movabs rcx, 0xa5edc40ef369b48d
mov qword [rsp + 0x1420], rsi
call fcn.1800ea350
mov edx, eax
movabs rcx, 0x43a66c31c68491c0
call fcn.1800ea410
call fcn.1800e8e70
mov r8d, dword [rbx + 0x4a4]
mov esi, dword [rax + 0x514]
lea eax, [r8 - 3]
cmp eax, 3
lea ecx, [r8 + 1]
cmova ecx, r8d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1801429c1
cmp dword [rbx + 0x4a4], 0
je 0x1801429c1
cmp byte [rbx + 0x489], 0
jne 0x18014278f
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180141e70
mov edx, dword [rax]
mov dword [0x18026d9d8], edx
mov eax, dword [rax + 4]
mov dword [0x18026d9dc], eax
jmp 0x180142795
mov edx, dword [0x18026d9d8]
movabs rcx, 0x7239b21a38f536ba
call fcn.1800ea410
test eax, eax
je 0x1801429df
cmp esi, 0xa2719263
je 0x1801429df
test esi, esi
je 0x1801429df
mov ecx, dword [rbx + 0x498]
movaps xmmword [rsp + 0x1400], xmm7
test ecx, ecx
je 0x180142803
sub ecx, 1
je 0x1801427fc
sub ecx, 1
je 0x1801427f5
sub ecx, 1
je 0x1801427ee
cmp ecx, 1
jne 0x180142803
mov edi, dword [0x18026d9dc]
jmp 0x180142808
mov edi, 0x9995
jmp 0x180142808
mov edi, 0x2e28
jmp 0x180142808
mov edi, 0x29d2
jmp 0x180142808
mov edi, 0x796e
mov edx, dword [0x18026d9d8]
mov r8d, edi
movabs rcx, 0x3f428d08be5aae31
call fcn.1800ee790
mov r8d, dword [0x18026d9d8]
lea rcx, [rsp + 0x40]
mov r9d, eax
movabs rdx, 0x46f8696933a63c9b
call fcn.1800e9250
movabs rdx, 0x14d6f5678d8f1b37
lea rcx, [rsp + 0x28]
call fcn.1801366a0
movss xmm0, dword [rsp + 0x30]
subss xmm0, dword [rsp + 0x48]
movss xmm1, dword [0x1801e2ed8]
call fcn.1801be530
movss xmm1, dword [0x1801e2ed8]
movaps xmm7, xmm0
movss xmm0, dword [rsp + 0x28]
subss xmm0, dword [rsp + 0x40]
call fcn.1801be530
movss xmm1, dword [0x1801e2ed8]
addss xmm7, xmm0
movss xmm0, dword [rsp + 0x38]
subss xmm0, dword [rsp + 0x50]
call fcn.1801be530
addss xmm7, xmm0
xorps xmm1, xmm1
ucomiss xmm1, xmm7
ja 0x1801428b9
xorps xmm0, xmm0
sqrtss xmm0, xmm7
jmp 0x1801428c1
movaps xmm0, xmm7
call fcn.1801bf6ac
comiss xmm0, dword [rbx + 0x494]
movaps xmm7, xmmword [rsp + 0x1400]
ja 0x1801429df
mov edx, dword [0x18026d9d8]
movabs rcx, 0xeef059fad016d209
call fcn.1800ea410
movd xmm1, eax
mov eax, dword [rbx + 0x4a0]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x18014290c
test eax, eax
jg 0x1801429df
call fcn.1801ac750
mov dword [rsp + 0x64], eax
mov edx, 1
mov dword [rsp + 0x13e4], 0xffffffff
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x64], eax
inc rdx
cmp rdx, 0x270
jb 0x180142930
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 0x270
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.180142a20
mov eax, eax
imul rcx, rax, 0x65
cmp ecx, 0x43
ja 0x18014298b
lea rcx, [rsp + 0x20]
call fcn.180142a20
mov eax, eax
imul rcx, rax, 0x65
cmp ecx, 0x44
jb 0x180142976
movss xmm0, dword [rbx + 0x48c]
shr rcx, 0x20
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x1801429df
mov ebx, dword [0x18026d9d8]
call fcn.1800e87e0
mov dword [rax + 0x220], ebx
call fcn.1800e87e0
mov dword [rax + 0x21c], edi
jmp 0x1801429ee
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180141e70
mov ecx, dword [rax]
mov dword [0x18026d9d8], ecx
mov eax, dword [rax + 4]
mov dword [0x18026d9dc], eax
call fcn.1800e87e0
mov dword [rax + 0x220], 0xffffffff
mov rsi, qword [rsp + 0x1420]
mov rdi, qword [rsp + 0x1428]
mov rcx, qword [rsp + 0x13f0]
xor rcx, rsp
call fcn.1801a9830
add rsp, 0x1410
pop rbx
ret