Function at 0x14003e260
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.140051c90
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 [0x140126864], eax
mov edi, 1
mov ecx, edi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x140126860], eax
mov ecx, 8
call fcn.140050c10
lea rcx, [0x14003dc50]
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, [0x14003f290]
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 0x14003e8d5
cmp dword [rsp + 0x58], ebx
je 0x14003e8cc
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 0x14003e8cc
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.140050c10
lea rcx, [0x14003d860]
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, [0x14003f290]
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 0x14003e8bc
cmp dword [rsp + 0x58], ebx
je 0x14003e8b3
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 0x14003e8b3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.140050c10
lea rcx, [0x14003d040]
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, [0x14003f290]
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 0x14003e8a3
cmp dword [rsp + 0x58], ebx
je 0x14003e89a
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 0x14003e89a
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, 8
call fcn.140050c10
lea rcx, [0x14003c370]
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, [0x14003f290]
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 0x14003e88a
cmp dword [rsp + 0x58], ebx
je 0x14003e881
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 0x14003e881
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
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..X9
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140125ba0], rax
test rax, rax
je 0x14003e50b
cmp rax, 0xffffffffffffffff
jne 0x14003e540
call fcn.140002580
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..X9
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140125ba0], rax
cmp byte [0x140125bd0], 0
je 0x14003e822
mov esi, 2
mov r14d, 0x80000000
movsd xmm8, qword [0x14011bce0]
movss xmm7, dword [0x14011bd50]
nop dword [rax]
cmp byte [0x1401290b8], 0
je 0x14003e806
mov ecx, dword [0x140125bfc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14003e806
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 0x14003e5b0
mov dword [rbp - 0x70], 0x270
lea rcx, [0x1401250c0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14003e875
cmp dword [0x14012510c], 0x7fffffff
je 0x14003e85f
mov eax, dword [0x140125c40]
mov dword [0x140126850], eax
movd xmm0, dword [0x140126854]
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm6, xmm0
movd xmm0, dword [0x140126844]
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 0x14003e64a
xorps xmm0, xmm0
sqrtsd xmm0, xmm6
jmp 0x14003e652
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.14003bf30
mov rax, qword [rsp + 0x40]
sub rax, qword [0x140126858]
cmp rax, 0x4d3f640
jl 0x14003e7f9
movaps xmm0, xmm6
mulss xmm0, dword [0x140125c68]
mov eax, dword [0x140126844]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm6
mulss xmm1, xmm0
mov ecx, dword [0x140126854]
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
divss xmm2, xmm6
mulss xmm2, xmm0
test eax, eax
jne 0x14003e6c0
test ecx, ecx
je 0x14003e7e5
mov rcx, qword [0x140125ba0]
test rcx, rcx
je 0x14003e756
cmp rcx, 0xffffffffffffffff
je 0x14003e718
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 0x14003e756
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.14003ef80
mov ecx, eax
lea rax, [rcx + rcx*2]
test eax, eax
jne 0x14003e784
nop dword [rax]
lea rcx, [rbp - 0x70]
call fcn.14003ef80
mov ecx, eax
lea rax, [rcx + rcx*2]
cmp eax, 1
jb 0x14003e770
shr rax, 0x20
sub rax, r14
xor rax, 0xffffffff80000000
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.14003e9e0
mov rcx, qword [0x140125ba0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003e7e5
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.14003bf30
mov rcx, qword [rax]
mov qword [0x140126858], rcx
lea rcx, [0x1401250c0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x60]
call fcn.14003e9e0
cmp byte [0x140125bd0], 0
jne 0x14003e570
mov eax, edi
mov rcx, qword [rbp + 0x1320]
xor rcx, rsp
call fcn.140050ad0
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