Function at 0x180049400
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x180106060]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, qword [0x180107eb0]
mov rdx, qword [0x180107dd0]
movaps xmmword [rsp + 0xb0], xmm7
mov rcx, qword [rax + 0x10]
cmp byte [rdx + 0x168], 0
mov rdi, qword [rcx]
je 0x1800494a2
test rdi, rdi
je 0x1800494a2
mov r8, qword [rdi + 8]
test r8, r8
je 0x1800494a2
mov rax, qword [0x180107ea0]
mov rcx, qword [rax + 0x68]
mov rax, qword [r8 + rcx]
test rax, rax
je 0x1800494a2
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1800494a2
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1800494a2
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1800494a2
mov rax, qword [rax + 0x70]
test rax, rax
je 0x1800494a2
mov rax, qword [rax]
test rax, rax
je 0x1800494a2
mov dword [rax + 0x2c], 0xbf800000
mov rdx, qword [0x180107dd0]
cmp byte [rdx + 0x170], 0
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], rsi
je 0x1800495c0
call fcn.180049140
mov rsi, rax
test rax, rax
je 0x1800495b9
mov rcx, qword [0x180107dd0]
mov ecx, dword [rcx + 0x164]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800495b9
mov rdx, qword [0x180107eb0]
mov rax, qword [rdx + 0x30]
test rax, rax
je 0x180049501
mov rcx, qword [rax]
jmp 0x180049505
mov rcx, qword [rbp - 0x19]
movsd xmm2, qword [rcx + 0x3d0]
movsd xmm4, qword [rcx + 0x60]
movaps xmm0, xmm2
mov eax, dword [rcx + 0x68]
movaps xmm1, xmm2
movss xmm3, dword [0x1800f5264]
mov rbx, qword [rdx + 0x50]
shufps xmm1, xmm1, 0x55
mulss xmm1, xmm3
mov dword [rbp - 0x21], eax
mov eax, dword [rcx + 0x3d8]
mov rcx, rsi
mulss xmm0, xmm3
mov dword [rbp - 0x31], eax
mov rax, qword [rdx + 0x60]
movsd qword [rbp - 0x39], xmm2
addss xmm0, xmm4
movsd qword [rbp - 0x29], xmm4
movss dword [rbp - 0x19], xmm0
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
addss xmm1, xmm0
movss dword [rbp - 0x15], xmm1
movss xmm1, dword [rbp - 0x31]
mulss xmm1, xmm3
addss xmm1, dword [rbp - 0x21]
movss dword [rbp - 0x11], xmm1
call rax
mov ecx, eax
call rbx
mov rax, qword [rsi + 0x30]
xorps xmm0, xmm0
test rax, rax
je 0x180049596
movups xmmword [rax + 0x30], xmm0
mov rax, qword [rsi + 0x30]
movsd xmm1, qword [rbp - 0x19]
mov ecx, dword [rbp - 0x11]
movsd qword [rsi + 0x90], xmm1
mov dword [rsi + 0x98], ecx
test rax, rax
je 0x1800495b9
movsd qword [rax + 0x50], xmm1
mov dword [rax + 0x58], ecx
mov rdx, qword [0x180107dd0]
cmp byte [rdx + 0x169], 0
je 0x18004960f
test rdi, rdi
je 0x18004960f
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18004960f
mov r8, qword [0x180107ea0]
mov rax, qword [r8 + 0x68]
mov rcx, qword [rcx + rax]
test rcx, rcx
je 0x18004960f
mov rax, qword [r8 + 0x20]
mov rcx, qword [rcx + rax]
test rcx, rcx
je 0x18004960f
movd xmm0, dword [rdx + 0x174]
cvtdq2ps xmm0, xmm0
movss dword [rcx + 0x4c], xmm0
mov rdx, qword [0x180107dd0]
cmp byte [rdx + 0x16a], 0
je 0x180049654
test rdi, rdi
je 0x180049654
mov r8, qword [rdi + 8]
test r8, r8
je 0x180049654
mov rax, qword [0x180107ea0]
mov rcx, qword [rax + 0x68]
mov rax, qword [r8 + rcx]
test rax, rax
je 0x180049654
movd xmm0, dword [rdx + 0x174]
cvtdq2ps xmm0, xmm0
movss dword [rax + 0xc3c], xmm0
mov rdx, qword [0x180107dd0]
cmp byte [rdx + 0x171], 0
xorps xmm7, xmm7
movaps xmmword [rsp + 0xc0], xmm6
je 0x18004997b
mov ecx, dword [rdx + 0x120]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x18004968e
cmp byte [0x180107ce3], 0
sete al
mov byte [0x180107ce3], al
jmp 0x180049695
movzx eax, byte [0x180107ce3]
test al, al
je 0x180049937
mov rax, qword [0x180107eb0]
mov r8, qword [rax + 0x30]
test r8, r8
je 0x1800496b2
mov r8, qword [r8]
jmp 0x1800496b6
mov r8, qword [rbp - 0x19]
test r8, r8
je 0x180049974
movaps xmmword [rsp + 0xa0], xmm8
movaps xmmword [rsp + 0x90], xmm9
movaps xmmword [rsp + 0x80], xmm10
test rdi, rdi
je 0x18004977f
mov rcx, qword [rdi + 8]
mov rdx, qword [0x180107ea0]
test rcx, rcx
je 0x18004973d
mov rax, qword [rdx + 0x68]
mov r9, qword [rcx + rax]
test r9, r9
je 0x180049714
mov dword [r9 + 0xc3c], 0
mov rdx, qword [0x180107ea0]
jmp 0x180049719
test rcx, rcx
je 0x18004973d
mov rax, qword [rdx + 0x68]
mov r9, qword [rcx + rax]
test r9, r9
je 0x18004973d
mov rax, qword [r9 + 0x30]
xorps xmm0, xmm0
test rax, rax
je 0x18004973d
movups xmmword [rax + 0x30], xmm0
mov rdx, qword [0x180107ea0]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18004977f
mov rax, qword [rdx + 0x68]
mov rcx, qword [rcx + rax]
test rcx, rcx
je 0x18004977f
movsd xmm0, qword [rcx + 0x90]
mov eax, dword [rcx + 0x98]
movaps xmm9, xmm0
mov dword [rbp - 0x11], eax
movss xmm7, dword [rbp - 0x11]
movsd qword [rbp - 0x19], xmm0
movss xmm8, dword [rbp - 0x19]
shufps xmm9, xmm9, 0x55
jmp 0x180049798
xorps xmm8, xmm8
movss dword [rbp - 0x11], xmm7
xorps xmm9, xmm9
movss dword [rbp - 0x19], xmm8
movss dword [rbp - 0x15], xmm9
mov eax, dword [r8 + 0x3d8]
mov ecx, 0x57
movsd xmm6, qword [r8 + 0x3d0]
mov dword [rbp - 0x31], eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movaps xmm10, xmm6
movsd qword [rbp - 0x39], xmm6
bt ax, 0xf
movss xmm6, dword [rbp - 0x39]
shufps xmm10, xmm10, 0x55
jae 0x1800497f0
addss xmm7, dword [rbp - 0x31]
addss xmm8, xmm6
addss xmm9, xmm10
movss dword [rbp - 0x11], xmm7
movss dword [rbp - 0x19], xmm8
movss dword [rbp - 0x15], xmm9
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x180049822
subss xmm7, dword [rbp - 0x31]
subss xmm8, xmm6
subss xmm9, xmm10
movss dword [rbp - 0x11], xmm7
movss dword [rbp - 0x19], xmm8
movss dword [rbp - 0x15], xmm9
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
movaps xmm10, xmmword [rsp + 0x80]
movaps xmm9, xmmword [rsp + 0x90]
jae 0x180049855
addss xmm8, dword [0x1800f51a4]
movss dword [rbp - 0x19], xmm8
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
movss xmm6, dword [0x1800f5338]
jae 0x18004987a
addss xmm8, xmm6
movss dword [rbp - 0x19], xmm8
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
movaps xmm8, xmmword [rsp + 0xa0]
jae 0x1800498a2
addss xmm7, dword [0x1800f51a4]
movss dword [rbp - 0x11], xmm7
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800498bd
addss xmm7, xmm6
movss dword [rbp - 0x11], xmm7
test rdi, rdi
je 0x180049974
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x180049974
mov rax, qword [0x180107ea0]
mov rcx, qword [rax + 0x68]
mov r8, qword [rdx + rcx]
test r8, r8
je 0x180049903
movsd xmm0, qword [rbp - 0x19]
mov eax, dword [rbp - 0x11]
movsd qword [r8 + 0x90], xmm0
mov dword [r8 + 0x98], eax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x180049974
mov rax, qword [0x180107ea0]
mov rcx, qword [rax + 0x68]
mov rcx, qword [rdx + rcx]
test rcx, rcx
je 0x180049974
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x180049974
movsd xmm0, qword [rbp - 0x19]
mov eax, dword [rbp - 0x11]
movsd qword [rcx + 0x50], xmm0
mov dword [rcx + 0x58], eax
jmp 0x180049974
test rdi, rdi
je 0x180049974
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x180049974
mov rax, qword [0x180107ea0]
mov rcx, qword [rax + 0x68]
mov r8, qword [rdx + rcx]
test r8, r8
je 0x180049974
mov rax, qword [0x180107dd0]
movd xmm0, dword [rax + 0x174]
cvtdq2ps xmm0, xmm0
movss dword [r8 + 0xc3c], xmm0
mov rdx, qword [0x180107dd0]
cmp byte [rdx + 0x172], 0
movaps xmm7, xmmword [rsp + 0xb0]
je 0x180049a78
call fcn.180049140
test rax, rax
jne 0x1800499aa
mov qword [rbp - 0x39], rax
mov esi, eax
movsd xmm6, qword [rbp - 0x39]
mov dword [rbp - 0x31], eax
jmp 0x1800499b8
movsd xmm6, qword [rax + 0x90]
mov esi, dword [rax + 0x98]
mov rax, qword [0x180107eb0]
lea r8, [rbp - 0x15]
mov rbx, qword [0x180107920]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
movsd qword [rbp - 0x29], xmm6
mov dword [rbp - 0x21], esi
mov qword [rbp - 0x19], 0
call qword [rax + gethostname]
movss xmm1, dword [rbp - 0x19]
lea rax, [rbp - 0x29]
mulss xmm1, dword [rbx + 0x10]
mov dword [rsp + 0x30], 0
movss xmm2, dword [rbp - 0x15]
movaps xmm0, xmmword [0x1800f5850]
movss xmm3, dword [0x1800f521c]
movss dword [rbp - 0x19], xmm1
mulss xmm2, dword [rbx + 0x14]
mov qword [rsp + 0x28], rax
movss dword [rsp + 0x20], xmm3
movaps xmmword [rbp - 0x29], xmm0
movss dword [rbp - 0x15], xmm2
call fcn.1800500a0
mov ecx, 5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180049a78
test rdi, rdi
je 0x180049a78
mov rax, qword [rdi + 8]
test rax, rax
je 0x180049a78
movsd qword [rax + 0x90], xmm6
mov dword [rax + 0x98], esi
mov rax, qword [rdi + 8]
test rax, rax
je 0x180049a78
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x180049a78
movsd qword [rcx + 0x50], xmm6
mov dword [rcx + 0x58], esi
movaps xmm6, xmmword [rsp + 0xc0]
mov rsi, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1800bc030
mov rdi, qword [rsp + 0xf0]
add rsp, 0xd0
pop rbp
ret