Function at 0x140031830
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
lea rax, [0x1400317d0]
mov qword [rbp + 8], rcx
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x10]
lea rax, str.Chr0nicxHack3r_Overlay_Class
mov dword [rbp - 0x10], 0x50
xor r12d, r12d
mov qword [rbp + 0x30], rax
xorps xmm0, xmm0
mov qword [rbp], r12
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x10], xmm0
mov ebx, r9d
movdqa xmmword [rbp + 0x20], xmm1
mov qword [rbp + 0x38], r12
mov dword [rbp - 0xc], 3
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [rbp + 8]
lea r8, str.Chr0nicxHack3rs_Inside_the_Backrooms_Trainer
mov rdx, qword [rbp + 0x30]
mov r9d, 0x80000000
mov qword [rsp + 0x58], r12
mov ecx, 0x80008
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 0x438
mov dword [rsp + 0x30], 0x780
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r9d, [r12 + 2]
mov r8b, 0xff
mov rcx, rax
xor edx, edx
mov rsi, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
xorps xmm0, xmm0
lea rdx, [rbp + 0x48]
mov rcx, rsi
movups xmmword [rbp + 0x48], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
xorps xmm0, xmm0
lea rdx, [rbp + 0x58]
mov rcx, rsi
movups xmmword [rbp + 0x58], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r12
mov rcx, rsi
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x60]
lea rdx, [rbp + 0x98]
mov dword [rbp + 0x98], eax
mov rcx, rsi
mov eax, dword [rsp + 0x64]
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0xa0], eax
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0xa4], eax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x4c], r12
mov qword [rbp - 0x44], 1
mov qword [rbp - 0x38], 2
mov qword [rbp - 0x20], 2
mov dword [rbp - 0x58], 0x3c
mov dword [rbp - 0x54], 1
mov dword [rbp - 0x50], 0x1c
mov dword [rbp - 0x3c], 0x20
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 1
mov dword [rbp + 0xa8], 0xb000
mov dword [rbp + 0xac], 0xa000
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
mov dword [rbp + 0x40], r12d
mov qword [rsp + 0x58], rax
lea edx, [r12 + 1]
lea rax, [rbp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x50], rax
xor r8d, r8d
lea rax, [rsp + 0x78]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xa8]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov rcx, qword [rsp + 0x70]
lea r9, [rbp - 0x78]
mov qword [rbp - 0x78], r12
lea r8, [0x14003a8f0]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x1400320c8
mov rcx, qword [rsp + 0x78]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x1f8], rdi
xor r8d, r8d
mov qword [rsp + 0x200], r14
mov qword [rsp + 0x1c0], r15
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rdi, qword [0x140041748]
test rdi, rdi
je 0x140031ad0
inc dword [rdi + 0xf4]
mov ecx, 0x5dd8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140031aec
xor edx, edx
mov rcx, rax
call fcn.1400012e0
jmp 0x140031aef
mov rax, r12
mov qword [0x140041748], rax
call fcn.140004b60
movaps xmm2, xmmword [0x14003ac40]
lea rcx, [rbp + 0x48]
mov rbx, qword [0x140041748]
test rdi, rdi
movaps xmm0, xmmword [0x14003ac10]
movaps xmm1, xmmword [0x14003ac70]
cmovne rbx, rdi
mov qword [0x140041748], rbx
mov dword [rbx + 0x37f4], 0x40a00000
movups xmmword [rbx + 0x38a8], xmm0
movaps xmm0, xmmword [0x14003ac30]
movups xmmword [rbx + 0x39c8], xmm0
movups xmmword [rbx + 0x38c8], xmm1
movaps xmm0, xmm2
movaps xmm1, xmm2
movaps xmm0, xmmword [0x14003ab40]
movaps xmm1, xmmword [0x14003ac20]
movups xmmword [rbx + 0x3938], xmm0
movups xmmword [rbx + 0x38f8], xmm2
movups xmmword [rbx + 0x3a58], xmm2
movups xmmword [rbx + 0x3948], xmm2
movups xmmword [rbx + 0x3958], xmm2
movups xmmword [rbx + 0x3918], xmm2
movups xmmword [rbx + 0x3928], xmm1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140031cda
lea rcx, [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140031cda
mov rax, qword [0x140041748]
test rax, rax
je 0x140031bc9
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140031bf6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x140031bf9
mov rdi, r12
or dword [rbx + 0xc], 6
lea rax, [0x14003a5e8]
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x98], rdi
mov rbx, r12
mov qword [rdi], rsi
mov rax, qword [rbp + 0x48]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x98]
mov qword [rdi + 0x18], rax
mov rax, qword [0x140041748]
mov dword [rdi + 0x28], 9
mov rcx, qword [rax + 0x4878]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rbp + 0x68], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0x70], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x78], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x80], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x88], rax
mov byte [rdi + 0x2d], 1
nop dword [rax + rax]
mov rcx, qword [rbp + rbx*8 + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
jne 0x140031cae
inc rbx
cmp rbx, 5
jl 0x140031c90
jmp 0x140031cda
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x30], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, r14
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [0x140041748]
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x78]
test rdi, rdi
je 0x140031cf6
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140031d37
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov dword [rax + 0x70], 0x1388
mov dword [rax + 0x74], 0x2710
jmp 0x140031d3a
mov rbx, r12
or dword [rdi + 0xc], 8
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
lea r8, [rsp + 0x60]
mov qword [rdi + 0xa0], rbx
lea rdx, [0x14003a5b8]
mov rax, qword [r14]
mov rcx, r14
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x70], r12
mov qword [rbp + 0x58], r12
call qword [rax]
test eax, eax
jne 0x140031dba
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x70]
lea rdx, [0x14003a5c8]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x140031dba
mov rcx, qword [rbp - 0x70]
lea r8, [rbp + 0x58]
lea rdx, [0x14003a5d8]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x140031dba
mov qword [rbx], r14
mov qword [rbx + 8], r15
mov rax, qword [rbp + 0x58]
mov qword [rbx + 0x10], rax
mov rcx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x1c0]
test rcx, rcx
je 0x140031dd2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140031de1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
mov bl, 1
movzx r14d, bl
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x68]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140031e65
nop
lea rcx, [rbp + 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rbp + 0x70], 0x12
lea rcx, [rbp + 0x68]
movzx ebx, bl
cmove ebx, r12d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140031e20
test bl, bl
je 0x140031f56
mov rax, qword [0x140041748]
test rax, rax
je 0x140031e7a
mov rcx, qword [rax + 0xa0]
jmp 0x140031e7d
mov rcx, r12
cmp qword [rcx + 0x48], r12
jne 0x140031e88
call fcn.14002ab60
call fcn.14002b980
call fcn.140006de0
call fcn.1400195b0
mov rcx, rsi
test r14b, r14b
je 0x140031eaf
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rsi
jmp 0x140031ebe
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140041758]
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140031eda
test r14b, r14b
sete r14b
call fcn.140008e00
mov rcx, qword [rsp + 0x68]
lea r8, [rbp - 0x80]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0x98], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [rsp + 0x68]
lea r8, [rbp + 0x98]
mov rdx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x140041748]
mov rcx, qword [rax + 0x4878]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0x48
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.14002a0f0
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
jmp 0x140031e00
mov rdi, qword [0x140041748]
mov r14, qword [rsp + 0x200]
test rdi, rdi
je 0x140031f73
mov rbx, qword [rdi + 0xa0]
jmp 0x140031f76
mov rbx, r12
call fcn.14002b0a0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140031f8a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140031f98
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140031fa7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140041748]
mov qword [rdi + 0x90], r12
mov qword [rdi + 0xa0], r12
test rax, rax
je 0x140031fc7
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140041748]
test rax, rax
je 0x140031fe5
mov rbx, qword [rax + 0x98]
jmp 0x140031fe8
mov rbx, r12
mov rcx, qword [rbx + 0x30]
lea rdi, [rax + 8]
test rcx, rcx
je 0x140032002
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140041748]
mov qword [rdi + 0x80], r12
mov qword [rdi + 0x90], r12
mov rdi, qword [rsp + 0x1f8]
test rax, rax
je 0x140032023
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140041748]
mov qword [0x140041748], rbx
call fcn.140004f40
mov qword [0x140041748], r12
test rbx, rbx
je 0x14003206e
mov rcx, rbx
call fcn.140018be0
mov rax, qword [0x140041748]
test rax, rax
je 0x140032065
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003207e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003208e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14003209e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400320ad
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
jmp 0x1400320cd
mov eax, 1
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140032100
add rsp, 0x1c8
pop r12
pop rsi
pop rbx
pop rbp
ret