Function at 0x14003e200
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.140051cd0
sub rsp, rax
movaps xmmword [rsp + 0x1450], xmm6
movaps xmmword [rsp + 0x1440], xmm7
movaps xmmword [rsp + 0x1430], xmm8
mov rax, qword [0x140125040]
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 [0x140127634], eax
mov edi, 1
mov ecx, edi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x140127630], eax
mov ecx, 8
call fcn.140050c40
lea rcx, [0x14003dbf0]
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, [0x14003f230]
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 0x14003e875
cmp dword [rsp + 0x58], ebx
je 0x14003e86c
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 0x14003e86c
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.140050c40
lea rcx, [0x14003d800]
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, [0x14003f230]
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 0x14003e85c
cmp dword [rsp + 0x58], ebx
je 0x14003e853
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 0x14003e853
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.140050c40
lea rcx, [0x14003cff0]
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, [0x14003f230]
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 0x14003e843
cmp dword [rsp + 0x58], ebx
je 0x14003e83a
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 0x14003e83a
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.140050c40
lea rcx, [0x14003c320]
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, [0x14003f230]
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 0x14003e82a
cmp dword [rsp + 0x58], ebx
je 0x14003e821
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 0x14003e821
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, 3
lea rcx, str..Oykyo
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140125ba0], rax
test rax, rax
je 0x14003e4ae
cmp rax, 0xffffffffffffffff
jne 0x14003e4e6
call fcn.140002580
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, 3
lea rcx, str..Oykyo
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140125ba0], rax
cmp byte [0x140125bd0], 0
je 0x14003e7c2
mov esi, 2
mov r14d, 0x80000000
movsd xmm8, qword [0x14011bd30]
movss xmm7, dword [0x14011bda0]
nop
cmp byte [0x140129e88], 0
je 0x14003e7a6
mov ecx, dword [0x140125bfc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14003e7a6
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 0x14003e550
mov dword [rbp - 0x70], 0x270
lea rcx, [0x1401250c0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14003e815
cmp dword [0x14012510c], 0x7fffffff
je 0x14003e7ff
mov eax, dword [0x140125c40]
mov dword [0x140127620], eax
movd xmm0, dword [0x140127624]
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm6, xmm0
movd xmm0, dword [0x140127614]
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 0x14003e5ea
xorps xmm0, xmm0
sqrtsd xmm0, xmm6
jmp 0x14003e5f2
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.14003bee0
mov rax, qword [rsp + 0x40]
sub rax, qword [0x140127628]
cmp rax, 0x4d3f640
jl 0x14003e799
movaps xmm0, xmm6
mulss xmm0, dword [0x140125c68]
mov eax, dword [0x140127614]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm6
mulss xmm1, xmm0
mov ecx, dword [0x140127624]
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
divss xmm2, xmm6
mulss xmm2, xmm0
test eax, eax
jne 0x14003e660
test ecx, ecx
je 0x14003e785
mov rcx, qword [0x140125ba0]
test rcx, rcx
je 0x14003e6f6
cmp rcx, 0xffffffffffffffff
je 0x14003e6b8
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 [0x140125b98]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [0x140125ba0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003e6f6
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 [0x140125b98]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, [rbp - 0x70]
call fcn.14003ef20
mov ecx, eax
lea rax, [rcx + rcx*2]
test eax, eax
jne 0x14003e724
nop dword [rax]
lea rcx, [rbp - 0x70]
call fcn.14003ef20
mov ecx, eax
lea rax, [rcx + rcx*2]
cmp eax, 1
jb 0x14003e710
shr rax, 0x20
sub rax, r14
xor rax, 0xffffffff80000000
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.14003e980
mov rcx, qword [0x140125ba0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003e785
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 [0x140125b98]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, [rsp + 0x48]
call fcn.14003bee0
mov rcx, qword [rax]
mov qword [0x140127628], rcx
lea rcx, [0x1401250c0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x60]
call fcn.14003e980
cmp byte [0x140125bd0], 0
jne 0x14003e510
mov eax, edi
mov rcx, qword [rbp + 0x1320]
xor rcx, rsp
call fcn.140050b00
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 [0x14012510c], 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