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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1360]
mov eax, 0x1460
call fcn.14005fd60
sub rsp, rax
movaps xmmword [rsp + 0x1450], xmm6
movaps xmmword [rsp + 0x1440], xmm7
movaps xmmword [rsp + 0x1430], xmm8
mov rax, qword [0x140090040]
xor rax, rsp
mov qword [rbp + 0x1320], rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x14030a978], eax
mov edi, 1
mov ecx, edi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x14030a95c], eax
mov ecx, 8
call fcn.14005ece0
lea rcx, [0x14005add0]
mov qword [rax], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x14005e0e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14005ba15
cmp dword [rsp + 0x58], ebx
je 0x14005ba0c
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14005ba0c
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.14005ece0
lea rcx, [0x14005a9e0]
mov qword [rax], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x14005e0e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14005b9fc
cmp dword [rsp + 0x58], ebx
je 0x14005b9f3
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14005b9f3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.14005ece0
lea rcx, [0x140042070]
mov qword [rax], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x14005e0e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14005b9e3
cmp dword [rsp + 0x58], ebx
je 0x14005b9da
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14005b9da
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.14005ece0
lea rcx, [0x1400413a0]
mov qword [rax], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x14005e0e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14005b9ca
cmp dword [rsp + 0x58], ebx
je 0x14005b9c1
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14005b9c1
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
call fcn.140005740
mov rax, qword [0x140309bd8]
inc rax
test rax, 0xfffffffffffffffe
jne 0x14005b681
call fcn.1400057e0
call fcn.140005740
cmp byte [0x140309cc4], 0
je 0x14005b962
mov esi, 2
mov r14d, 0x80000000
movsd xmm8, qword [0x1400868a0]
movss xmm7, dword [0x140086904]
nop word [rax + rax]
cmp byte [0x14030bf0c], 0
je 0x14005b946
mov ecx, dword [0x140309c3c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14005b946
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x1314], 0xffffffff
mov dword [rbp - 0x6c], eax
mov rcx, rdi
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x6c], edx
inc rcx
cmp rcx, 0x270
jb 0x14005b6f0
mov dword [rbp - 0x70], 0x270
lea rcx, [0x1403097a0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14005b9b5
cmp dword [0x1403097ec], 0x7fffffff
je 0x14005b99f
mov eax, dword [0x140309c88]
mov dword [0x14030a944], eax
movd xmm0, dword [0x14030a958]
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm6, xmm0
movd xmm0, dword [0x14030a97c]
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm6, xmm0
xorps xmm1, xmm1
ucomisd xmm1, xmm6
ja 0x14005b78a
xorps xmm0, xmm0
sqrtsd xmm0, xmm6
jmp 0x14005b792
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm0
minss xmm6, xmm7
lea rcx, [rsp + 0x40]
call fcn.140040f60
mov rax, qword [rsp + 0x40]
sub rax, qword [0x14030a968]
cmp rax, 0x4d3f640
jl 0x14005b939
movaps xmm0, xmm6
mulss xmm0, dword [0x140309cb8]
mov eax, dword [0x14030a97c]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm6
mulss xmm1, xmm0
mov ecx, dword [0x14030a958]
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
divss xmm2, xmm6
mulss xmm2, xmm0
test eax, eax
jne 0x14005b800
test ecx, ecx
je 0x14005b925
mov rcx, qword [0x140309bd8]
test rcx, rcx
je 0x14005b896
cmp rcx, 0xffffffffffffffff
je 0x14005b858
cvttss2si eax, xmm1
mov dword [rbp - 0x80], eax
cvttss2si eax, xmm2
mov dword [rbp - 0x7c], eax
mov word [rbp - 0x78], bx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 0xc
lea r8, [rbp - 0x80]
mov edx, dword [0x140309bd0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [0x140309bd8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005b896
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x78], di
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 0xc
lea r8, [rsp + 0x70]
mov edx, dword [0x140309bd0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, [rbp - 0x70]
call fcn.14005ddd0
mov ecx, eax
lea rax, [rcx + rcx*2]
test eax, eax
jne 0x14005b8c4
nop dword [rax]
lea rcx, [rbp - 0x70]
call fcn.14005ddd0
mov ecx, eax
lea rax, [rcx + rcx*2]
cmp eax, 1
jb 0x14005b8b0
shr rax, 0x20
sub rax, r14
xor rax, 0xffffffff80000000
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.14005bec0
mov rcx, qword [0x140309bd8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005b925
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x58], si
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 0xc
lea r8, [rsp + 0x50]
mov edx, dword [0x140309bd0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, [rsp + 0x48]
call fcn.140040f60
mov rcx, qword [rax]
mov qword [0x14030a968], rcx
lea rcx, [0x1403097a0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x60]
call fcn.14005bec0
cmp byte [0x140309cc4], 0
jne 0x14005b6b0
mov eax, edi
mov rcx, qword [rbp + 0x1320]
xor rcx, rsp
call fcn.14005eba0
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret
mov dword [0x1403097ec], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3