Function at 0x140003720
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x3c0
mov ecx, reloc.WS2_32.dll_WSAStartup
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
jne 0x14000374f
mov ecx, reloc.WLDAP32.dll_Ordinal_45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x140003777
movzx eax, byte [reloc.WS2_32.dll_accept]
test eax, eax
jne 0x140003764
mov dword [rsp + 0x54], 1
jmp 0x14000376c
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov byte [reloc.WS2_32.dll_accept], al
movzx eax, byte [reloc.WS2_32.dll_accept]
test eax, eax
jne 0x140003787
jmp 0x14000419e
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x252]
lea rcx, [rsp + 0x30]
call fcn.1400041b0
mov rcx, rax
call fcn.140006840
mov r8d, reloc.WLDAP32.dll_Ordinal_32
xor edx, edx
mov rcx, rax
call fcn.140061230
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1a3]
lea rcx, [rsp + 0x31]
call fcn.140004250
mov rcx, rax
call fcn.140006820
xor edx, edx
mov rcx, rax
call fcn.1400b5ba0
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xaa]
lea rcx, [rsp + 0x32]
call fcn.1400042f0
mov rcx, rax
call fcn.140006800
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400b88a0
movzx eax, al
test eax, eax
je 0x140003a6d
call fcn.1400a16a0
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xbf]
lea rcx, [rsp + 0x33]
call fcn.140004390
mov rcx, rax
call fcn.1400067e0
lea rdx, [0x1401cebac]
mov rcx, rax
call fcn.1400a0a60
movss xmm1, dword [0x14019778c]
xorps xmm0, xmm0
call fcn.14006be70
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xfd]
lea rcx, [rsp + 0x34]
call fcn.140004420
mov rcx, rax
call fcn.1400067c0
xor r8d, r8d
lea rdx, [0x1401cebb0]
mov rcx, rax
call fcn.1400aeef0
lea rax, [rsp + 0x35]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x12f]
lea rcx, [rsp + 0x35]
call fcn.1400044c0
mov rcx, rax
call fcn.1400067a0
lea rdx, [0x1401cebe2]
mov rcx, rax
call fcn.1400a0a60
movss xmm1, dword [0x14019778c]
xorps xmm0, xmm0
call fcn.14006be70
lea rax, [rsp + 0x36]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x13d]
lea rcx, [rsp + 0x36]
call fcn.140004560
mov rcx, rax
call fcn.1400067a0
xor r8d, r8d
lea rdx, [0x1401cebbc]
mov rcx, rax
call fcn.1400aeef0
lea rax, [rsp + 0x37]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd7]
lea rcx, [rsp + 0x37]
call fcn.140004590
mov rcx, rax
call fcn.140006780
lea rdx, [0x1401cebe1]
mov rcx, rax
call fcn.1400a0a60
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x115]
lea rcx, [rsp + 0x38]
call fcn.140004630
mov rcx, rax
call fcn.140006760
lea rdx, [0x1401cebe3]
mov rcx, rax
call fcn.1400a0a60
movss xmm1, dword [0x14019778c]
xorps xmm0, xmm0
call fcn.14006be70
lea rax, [rsp + 0x39]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x193]
lea rcx, [rsp + 0x39]
call fcn.1400046d0
mov rcx, rax
call fcn.140006740
xor r8d, r8d
lea rdx, [0x1401cebc8]
mov rcx, rax
call fcn.1400aeef0
lea rax, [rsp + 0x3a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x175]
lea rcx, [rsp + 0x3a]
call fcn.140004770
mov rcx, rax
call fcn.140006720
mov dword [rsp + 0x28], 0
lea rcx, [0x140167584]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2710
mov r8d, 0x64
lea rdx, [0x1401cebe4]
mov rcx, rax
call fcn.1400a59e0
call fcn.1400b8980
lea rax, [rsp + 0x3b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x9c]
lea rcx, [rsp + 0x3b]
call fcn.140004810
mov rcx, rax
call fcn.140006800
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400b88a0
movzx eax, al
test eax, eax
je 0x140003dc3
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xc7]
lea rcx, [rsp + 0x3c]
call fcn.140004840
mov rcx, rax
call fcn.1400067e0
lea rdx, [0x1401cebec]
mov rcx, rax
call fcn.1400e1c70
lea rax, [rsp + 0x3d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xa3]
lea rcx, [rsp + 0x3d]
call fcn.140004810
mov rcx, rax
call fcn.140006800
lea rdx, [0x1401ceb60]
mov rcx, rax
call fcn.1400a0a60
lea rax, [rsp + 0x3e]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x3e]
call fcn.140004860
mov rcx, rax
call fcn.140006780
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 2
lea r8, [0x1401cd5d0]
lea rdx, [0x1401ceb6c]
mov rcx, rax
call fcn.1400a2f40
lea rax, [rsp + 0x3f]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe9]
lea rcx, [rsp + 0x3f]
call fcn.140004890
mov rcx, rax
call fcn.140006700
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 2
lea r8, [0x1401cd5e8]
lea rdx, [0x1401ceb70]
mov rcx, rax
call fcn.1400a2f40
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xb1]
lea rcx, [rsp + 0x40]
call fcn.140004930
mov rcx, rax
call fcn.140006800
mov dword [rsp + 0x28], 0
lea rcx, [0x140167588]
mov qword [rsp + 0x20], rcx
movss xmm3, dword [0x140197604]
xorps xmm2, xmm2
lea rdx, [0x1401ceba8]
mov rcx, rax
call fcn.1400a5980
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x41]
call fcn.140004960
mov rcx, rax
call fcn.1400066e0
lea rdx, [0x1401ceba4]
mov rcx, rax
call fcn.1400a0a60
movss xmm1, dword [0x14019778c]
xorps xmm0, xmm0
call fcn.14006be70
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x14b]
lea rcx, [rsp + 0x42]
call fcn.1400049f0
mov rcx, rax
call fcn.1400067a0
xor r8d, r8d
lea rdx, [0x1401ceb98]
mov rcx, rax
call fcn.1400aeef0
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xf3]
lea rcx, [rsp + 0x43]
call fcn.140004a20
mov rcx, rax
call fcn.140006700
mov dword [rsp + 0x28], 0
lea rcx, [0x140167590]
mov qword [rsp + 0x20], rcx
movss xmm3, dword [0x140197728]
movss xmm2, dword [0x1401976ac]
lea rdx, [0x1401ceb94]
mov rcx, rax
call fcn.1400a5980
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x109]
lea rcx, [rsp + 0x44]
call fcn.140004a50
mov rcx, rax
call fcn.1400067c0
lea rdx, [0x1401cebe0]
mov rcx, rax
call fcn.1400a0a60
movss xmm1, dword [0x14019778c]
xorps xmm0, xmm0
call fcn.14006be70
lea rax, [rsp + 0x45]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x159]
lea rcx, [rsp + 0x45]
call fcn.140004a80
mov rcx, rax
call fcn.1400067a0
xor r8d, r8d
lea rdx, [0x1401cebd4]
mov rcx, rax
call fcn.1400aeef0
lea rax, [rsp + 0x46]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x46]
call fcn.140004ab0
mov rcx, rax
call fcn.140006800
lea rdx, [0x1401ceb74]
mov rcx, rax
call fcn.1400a0a60
call fcn.1400b8980
lea rax, [rsp + 0x47]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x95]
lea rcx, [rsp + 0x47]
call fcn.140004ae0
mov rcx, rax
call fcn.140006800
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400b88a0
movzx eax, al
test eax, eax
je 0x140004194
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x122]
lea rcx, [rsp + 0x48]
call fcn.140004b10
mov rcx, rax
call fcn.140006760
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x64
lea rdx, [0x1401cf680]
mov rcx, rax
call fcn.1400a6770
lea rcx, [0x1401cf200]
call fcn.140006690
mov dword [rsp + 0x60], eax
lea rcx, [0x1401cf200]
call fcn.1400066c0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x49]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x184]
lea rcx, [rsp + 0x49]
call fcn.140004b40
mov rcx, rax
call fcn.140006720
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rdx, [0x1401ce9d0]
mov rcx, qword [rsp + 0x78]
call fcn.1400a2f40
movss xmm2, dword [0x1401976c4]
movss xmm1, dword [0x1401976f0]
lea rcx, [rsp + 0x68]
call fcn.140002df0
lea rax, [rsp + 0x4a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x4a]
call fcn.140004b70
mov rcx, rax
call fcn.140006640
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.14009f260
movzx eax, al
test eax, eax
je 0x140003fd0
movsxd rax, dword [0x1401ce9d0]
mov rdx, rax
lea rcx, [0x1401cf200]
call fcn.140006660
mov r8d, 0x9c
lea rdx, [0x1401ceb60]
mov rcx, qword [rax]
call fcn.140045300
movzx eax, al
test eax, eax
je 0x140003f98
lea rax, [rsp + 0x4b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x202]
lea rcx, [rsp + 0x4b]
call fcn.140004c10
mov rcx, rax
call fcn.140006620
mov edx, 0x40
mov rcx, rax
call fcn.1400e8760
jmp 0x140003fd0
lea rax, [rsp + 0x4c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x286]
lea rcx, [rsp + 0x4c]
call fcn.140004cb0
mov rcx, rax
call fcn.140006600
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call fcn.1400e8760
movss xmm1, dword [0x14019778c]
xorps xmm0, xmm0
call fcn.14006be70
movss xmm2, dword [0x1401976c4]
movss xmm1, dword [0x1401976f0]
lea rcx, [rsp + 0x80]
call fcn.140002df0
lea rax, [rsp + 0x4d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xcf]
lea rcx, [rsp + 0x4d]
call fcn.140004d50
mov rcx, rax
call fcn.1400067e0
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14009f260
movzx eax, al
test eax, eax
je 0x14000418f
lea rax, [0x1401cf680]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
cmp byte [rax + rcx], 0
jne 0x14000405b
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x1400040ba
lea rax, [rsp + 0x4e]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1ba]
lea rcx, [rsp + 0x4e]
call fcn.140004d70
mov rcx, rax
call fcn.1400065e0
mov edx, Ordinal_50
mov rcx, rax
call fcn.1400e8760
jmp 0x14000418f
lea rax, [rsp + 0x4f]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x167]
lea rcx, [rsp + 0x4f]
call fcn.140004e10
mov rcx, rax
call fcn.1400067a0
lea r8, [0x1401cf680]
mov rdx, rax
lea rcx, [rsp + 0x2c0]
call fcn.140002860
mov r8d, 0x9c
lea rdx, [0x1401ceb60]
lea rcx, [rsp + 0x2c0]
call fcn.1400451a0
movzx eax, al
test eax, eax
je 0x140004157
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x22a]
lea rcx, [rsp + 0x50]
call fcn.140004e40
mov rcx, rax
call fcn.140006620
mov edx, 0x40
mov rcx, rax
call fcn.1400e8760
jmp 0x14000418f
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1de]
lea rcx, [rsp + 0x51]
call fcn.140004e70
mov rcx, rax
call fcn.1400065e0
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call fcn.1400e8760
call fcn.1400b8980
call fcn.1400b6140
call fcn.140064a40
add rsp, 0x3c0
pop rdi
ret