Function at 0x140039828
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x1400ccc00]
xor rax, rsp
mov qword [rsp + 0x168], rax
call fcn.14001d8b4
call fcn.14001e244
call fcn.14000cd74
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x140039899
movzx eax, byte [reloc.WS2_32.dll_accept]
test eax, eax
jne 0x14003987b
mov dword [rsp + 0x50], 1
jmp 0x140039883
mov dword [rsp + 0x50], 0
mov al, byte [rsp + 0x50]
mov byte [reloc.WS2_32.dll_accept], al
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
movzx eax, byte [reloc.WS2_32.dll_accept]
test eax, eax
je 0x140039ea3
call fcn.140008a48
mov qword [rsp + 0xc0], rax
movss xmm2, dword [0x1400a7350]
movss xmm1, dword [0x1400a7350]
lea rcx, [rsp + 0xc8]
call fcn.14002cd98
mov rdx, rax
mov ecx, 1
call fcn.14000d7d8
nop
movss xmm2, dword [0x1400ad63c]
movss xmm1, dword [0x1400ad640]
lea rcx, [rsp + 0xd0]
call fcn.14002cd98
mov rdx, rax
mov ecx, 4
call fcn.14000d7d8
nop
mov r8d, Ordinal_45
xor edx, edx
lea rcx, str.Psycho_Public
call fcn.14000308c
nop
movss xmm2, dword [0x1400ab514]
movss xmm1, dword [0x1400ad630]
lea rcx, [rsp + 0xd8]
call fcn.14002cd98
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x40]
call fcn.14002e4e0
mov rcx, rax
call fcn.14002db60
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.140021c04
movzx eax, al
test eax, eax
je 0x140039998
mov dword [0x1400cde50], 0
movss xmm1, dword [0x1400ad628]
xorps xmm0, xmm0
call fcn.14000e610
nop
movss xmm2, dword [0x1400ab514]
movss xmm1, dword [0x1400ad630]
lea rcx, [rsp + 0xe0]
call fcn.14002cd98
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x41]
call fcn.14002e774
mov rcx, rax
call fcn.14002db80
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140021c04
movzx eax, al
test eax, eax
je 0x140039a27
mov dword [0x1400cde50], 1
movss xmm1, dword [0x1400ad628]
xorps xmm0, xmm0
call fcn.14000e610
nop
movss xmm2, dword [0x1400ab514]
movss xmm1, dword [0x1400ad630]
lea rcx, [rsp + 0xe8]
call fcn.14002cd98
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x42]
call fcn.14002e9d0
mov rcx, rax
call fcn.14002db40
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
call fcn.140021c04
movzx eax, al
test eax, eax
je 0x140039ab6
mov dword [0x1400cde50], 2
mov eax, dword [0x1400cde50]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x140039ae2
cmp dword [rsp + 0x4c], 1
je 0x140039cbd
cmp dword [rsp + 0x4c], 2
je 0x140039e45
jmp 0x140039e93
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x43]
call fcn.14002ec00
mov rcx, rax
call fcn.14002db60
lea rdx, [0x1400cd853]
mov rcx, rax
call fcn.1400222b4
nop
movss xmm1, dword [0x1400a7384]
xorps xmm0, xmm0
call fcn.14000e610
mov r8d, dword [0x1400cda44]
lea rdx, [0x14002f3e0]
mov ecx, dword [0x1400cd824]
call fcn.140031d04
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x44]
call fcn.14002eca4
mov rcx, rax
call fcn.14002db20
lea rdx, [0x1400cd855]
mov rcx, rax
call fcn.1400222b4
nop
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x45]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x45]
call fcn.14002ed1c
mov rcx, rax
call fcn.14002de80
lea rdx, [0x1400cd854]
mov rcx, rax
call fcn.1400222b4
nop
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x46]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x46]
call fcn.14002eda0
mov rcx, rax
call fcn.14002de80
lea rdx, [0x1400cd856]
mov rcx, rax
call fcn.1400222b4
nop
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x47]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x47]
call fcn.14002edf8
mov rcx, rax
call fcn.14002db60
movss xmm0, dword [0x1400a732c]
movss dword [rsp + 0x28], xmm0
lea rcx, [0x1400ac3f0]
mov qword [rsp + 0x20], rcx
movss xmm3, dword [0x1400a7350]
movss xmm2, dword [0x1400a732c]
lea rdx, [0x1400cb344]
mov rcx, rax
call fcn.1400264cc
nop
jmp 0x140039e93
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x48]
call fcn.14002ee50
mov rcx, rax
call fcn.14002db20
lea rdx, [0x1400cd859]
mov rcx, rax
call fcn.1400222b4
nop
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x49]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x49]
call fcn.14002e09c
mov rcx, rax
call fcn.14002dba0
lea rdx, [0x1400cd85d]
mov rcx, rax
call fcn.1400222b4
nop
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x4a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x4a]
call fcn.14002e0f4
mov rcx, rax
call fcn.14002dec0
lea rdx, [0x1400cd85a]
mov rcx, rax
call fcn.1400222b4
nop
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
movss xmm0, dword [0x1400a732c]
movss dword [rsp + 0x28], xmm0
lea rax, [0x1400ac3f8]
mov qword [rsp + 0x20], rax
movss xmm3, dword [0x1400a733c]
movss xmm2, dword [0x1400a732c]
lea rdx, [0x1400cb350]
lea rcx, str.Skeleton_Thickness
call fcn.1400264cc
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
movss xmm0, dword [0x1400a732c]
movss dword [rsp + 0x28], xmm0
lea rax, str._.3f
mov qword [rsp + 0x20], rax
movss xmm3, dword [0x1400a733c]
movss xmm2, dword [0x1400a732c]
lea rdx, [0x1400cb354]
lea rcx, str.Box_Thickness
call fcn.1400264cc
nop
jmp 0x140039e93
call fcn.1400269bc
movss xmm0, dword [0x1400a7350]
call fcn.14000eb0c
nop
lea rax, [rsp + 0x4b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x4b]
call fcn.14002e14c
mov rcx, rax
call fcn.14002dea0
lea rdx, [0x1400cd857]
mov rcx, rax
call fcn.1400222b4
nop
call fcn.140006f80
mov ecx, 2
call fcn.14000d508
nop
call fcn.14002fbd0
call fcn.140007534
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rax, qword [rax + 0x1c8]
mov qword [rsp + 0x88], rax
xor r8d, r8d
mov edx, 7
mov rcx, qword [0x1400cde20]
call qword [rsp + 0x88]
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rax, qword [rax + 0x1c8]
mov qword [rsp + 0xb0], rax
xor r8d, r8d
mov edx, reloc.WLDAP32.dll_Ordinal_27
mov rcx, qword [0x1400cde20]
call qword [rsp + 0xb0]
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rax, qword [rax + 0x1c8]
mov qword [rsp + 0xb8], rax
xor r8d, r8d
mov edx, 0xae
mov rcx, qword [0x1400cde20]
call qword [rsp + 0xb8]
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rax, qword [rax + 0x158]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0
movss xmm0, dword [0x1400a732c]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1400cde20]
call qword [rsp + 0x68]
nop
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rcx, qword [0x1400cde20]
call qword [rax + 0x148]
test eax, eax
jl 0x140039fca
call fcn.14000d8dc
call fcn.14000890c
mov rcx, rax
call fcn.14001d8cc
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rcx, qword [0x1400cde20]
call qword [rax + 0x150]
nop
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rax, qword [rax + 0x88]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1400cde20]
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x88760868
jne 0x14003a058
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rcx, qword [0x1400cde20]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x14003a058
call fcn.14001d83c
mov rax, qword [0x1400cde20]
mov rax, qword [rax]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x78], rax
lea rdx, [0x1400cd950]
mov rcx, qword [0x1400cde20]
call qword [rsp + 0x78]
call fcn.14001d6d4
nop
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400a2370
add rsp, 0x170
pop rdi
ret