Function at 0x18007ad80
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov qword ss:[rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x18025a080]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
xor esi, esi
mov edx, dword [0x180259e58]
add rdx, qword [rcx + 0x48]
mov rcx, qword [0x18025ac18]
test rcx, rcx
je 0x18007b058
cmp dword [0x18025ac20], esi
je 0x18007b058
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 4]
lea r8, [0x1802917f8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18007b058
mov eax, dword [0x1802917f8]
nop dword [rax]
cmp eax, 0xffffffff
je 0x18007b058
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x80], rcx
shr eax, 9
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], esi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.18000ab40
mov rbx, rax
lea rcx, [0x18025ada0]
call fcn.180018fe0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [0x18025ac00]
call fcn.18007b2c0
mov qword [0x180291800], rax
nop dword [rax]
test rax, rax
je 0x18007b058
mov ecx, dword [0x1802917f8]
and ecx, 0x1ff
imul edx, ecx, 0x78
add rdx, rax
mov rcx, qword [0x18025ac18]
test rcx, rcx
je 0x18007b058
cmp dword [0x18025ac20], esi
je 0x18007b058
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 8]
lea r8, [0x180291808]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18007b058
lea rdx, [0x180291808]
lea rcx, [0x180259e80]
call fcn.180017c40
test al, al
je 0x18007b058
mov eax, dword [rdi + 0xe8]
cmp eax, 9
ja 0x18007af09
mov ecx, 0x281
bt ecx, eax
jb 0x18007b058
mov rax, qword [0x18025aea0]
cmp byte [rax + 0x60], 0
je 0x18007af39
mov eax, dword [0x180259f78]
nop dword [rax]
cmp dword [rdi + 0xf8], eax
je 0x18007af35
cmp dword [0x180259f6c], 0
jle 0x18007af35
mov al, 1
jmp 0x18007af43
xor al, al
jmp 0x18007af43
cmp dword [0x180259f6c], 0
setg al
mov byte [0x1802917fc], al
test al, al
je 0x18007b058
mov ecx, dword [0x180291d08]
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x180291978], ecx
jg 0x18007b097
lea rcx, ds:[rsp + 0x70]
call fcn.180014c20
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
sub rcx, qword [0x180291970]
movsxd rax, dword [0x18012c178]
imul rdx, rax, 0xf4240
cmp rcx, rdx
je 0x18007afad
jl 0x18007b058
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
test al, al
jne 0x18007b051
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 8
call fcn.1800805c4
test rax, rax
je 0x18007aff9
lea rcx, [0x18007ab80]
mov qword [rax], rcx
jmp 0x18007affc
mov rax, rsi
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x18007aae0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18007b088
cmp dword [rsp + 0x78], 0
je 0x18007b07d
vmovups xmm0, xmmword [rsp + 0x70]
vmovdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x18007b07d
mov qword [0x180291970], rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180080a90
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x78], esi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [0x180291978]
nop
call fcn.180080450
cmp dword [0x180291978], 0xffffffff
jne 0x18007af78
lea rcx, [0x180291970]
call fcn.180014c20
lea rcx, [0x180291978]
call fcn.1800803e4
jmp 0x18007af78