Function at 0x140047880
Capabilities:
Encode data using xor
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
cmp qword [0x1400dfc88], 0
jne 0x14004789f
call fcn.140025730
mov rcx, qword [0x1400dfca8]
lea rdx, [rbp - 0x29]
mov rdi, qword [0x1400dfbb0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x21]
lea rcx, [rbp + 0x77]
sub eax, dword [rbp - 0x29]
movd xmm1, eax
mov eax, dword [rbp - 0x1d]
sub eax, dword [rbp - 0x25]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0x77]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1400dfcb0]
cvtsi2ss xmm0, qword [0x1400dfcb8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1400dfcb0], rcx
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_select
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x1400dfbb0]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], 0
mov byte [rdi + 0x132], al
cmp byte [rcx + 0x3af], 0
lea rbx, [rcx + 0x118]
je 0x1400479a6
cvttss2si eax, dword [rbx]
lea rdx, [rbp + 0x67]
mov dword [rbp + 0x67], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x1400dfca8]
mov dword [rbp + 0x6b], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp + 0x6b]
mov ecx, dword [rbp + 0x67]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1400dfca8]
jne 0x1400479fe
lea rcx, [rbp + 0x6f]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400479fe
mov rcx, qword [0x1400dfca8]
lea rdx, [rbp + 0x6f]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400479fe
movd xmm0, dword [rbp + 0x6f]
movd xmm1, dword [rbp + 0x73]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], 0
mov rbx, 0xffffffffffffffff
je 0x140047a12
mov eax, ebx
jmp 0x140047a1f
mov rax, qword [0x1400dfbb0]
mov eax, dword [rax + 0x1d70]
cmp dword [0x1400db298], eax
je 0x140047a32
mov dword [0x1400db298], eax
call fcn.140025880
call fcn.140007280
call fcn.140045390
cmp byte [0x1400dacc2], 0
mov rcx, qword [0x1400dfc40]
je 0x140047a53
mov edx, setsockopt
jmp 0x140047a55
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8001
test cx, ax
je 0x140047a8b
cmp byte [0x1400e00e0], 0
jne 0x140047a87
cmp byte [0x1400dacc0], 0
sete byte [0x1400dacc0]
mov al, 1
jmp 0x140047a8d
xor al, al
xor edi, edi
mov byte [0x1400e00e0], al
cmp byte [0x1400dacc1], dil
je 0x140047ca1
cmp byte [0x1400c7d9b], dil
movsd xmm0, qword [str.jtcg]
mov eax, dword [0x1400c7d98]
movsd qword [rbp - 0x29], xmm0
mov dword [rbp - 0x21], eax
je 0x140047c31
cmp dword [0x1400da008], 2
mov r8d, edi
jl 0x140047bec
movdqa xmm2, xmmword [0x1400c82b0]
mov eax, 4
movdqa xmm4, xmmword [0x1400c8370]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400c82c0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov r8d, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0xa0], xmm6
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c82e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.jtcg]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400c82f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x29], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0xa0]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c82e0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x25]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c82f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
xorps xmm2, xmm0
movd dword [rbp - 0x25], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x140047c00
mov rax, qword [0x1400dfbb0]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
movss xmm2, dword [rax + 0x3b4]
cvtps2pd xmm2, xmm2
movq r8, xmm2
call fcn.140030470
xorps xmm0, xmm0
mov qword [rbp - 0x19], rdi
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], rdi
lea rax, [rbp - 9]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x140047c70
mov r8, rbx
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.140031a20
mov edx, 0x2c
lea r9, [rbp - 0x29]
lea r8, [0x1400dad30]
lea ecx, [rdx - 0xe]
call fcn.14003d5f0
cmp byte [0x1400dacc0], dil
je 0x140047ccc
call fcn.140043840
cmp byte [0x1400dacc0], dil
je 0x140047ccc
movaps xmm0, xmmword [0x1400c8360]
lea rcx, [rbp - 0x29]
movaps xmmword [rbp - 0x29], xmm0
call fcn.140046e10
call fcn.140008550
mov rcx, qword [0x1400dfcc8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400dfcc8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400dfcc8]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400dfcc8]
mov r9d, 1
movss xmm0, dword [0x1400c8120]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x1400dfcc8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140047d8b
call fcn.1400089e0
mov rcx, qword [0x1400dfbb0]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140024e50
mov rcx, qword [0x1400dfcc8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400dfcc8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140047e4d
mov rcx, qword [0x1400dfcc8]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140047e4d
cmp qword [0x1400dfc98], rdi
je 0x140047e31
mov rcx, qword [0x1400dfca0]
test rcx, rcx
je 0x140047ded
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1400dfca0], rdi
mov rcx, qword [0x1400dfc90]
test rcx, rcx
je 0x140047e06
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1400dfc90], rdi
mov rcx, qword [0x1400dfc88]
mov rbx, qword [0x1400dfbb0]
test rcx, rcx
je 0x140047e1f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1400dfc88], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x1400dfcc8]
lea rdx, [0x1400dfbd0]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140025730
add rsp, 0xb0
pop rdi
pop rbx
pop rbp
ret