Function at 0x140002530
Capabilities:
Act as tcp client
Check for time delay via queryperformancecounter
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Create thread
Initialize winsock library
Log keystrokes via polling
Send data
Send data on socket
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r15d, r15d
mov qword [rbp - 0x30], send
mov qword [rbp - 0x28], send
movsd xmm0, qword [str.192.168.178.187]
movsd qword [rbp - 0x40], xmm0
mov eax, dword [0x140007608]
mov dword [rbp - 0x38], eax
movzx eax, word [0x14000760c]
mov word [rbp - 0x34], ax
movzx eax, byte [0x14000760e]
mov byte [rbp - 0x32], al
mov byte [rbp - 0x31], r15b
mov ecx, 0x202
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x1400025fc
lea rdx, str.WSAStartup_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e20
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140003000]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
mov ebx, 2
mov r8d, 6
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x14000a0b8], rax
cmp rax, 0xffffffffffffffff
jne 0x14000266a
lea rdx, str.Socket_creation_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e20
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140003000]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x60], bx
mov ecx, 0x535
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
lea r8, [rsp + 0x64]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, send
lea rdx, [rsp + 0x60]
mov rcx, qword [0x14000a0b8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140002715
lea rdx, str.Connect_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e20
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140003000]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x14000a0b8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140004110
call fcn.140003bc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rdx, qword [rax]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x30]
call fcn.140002c90
mov rcx, rax
call fcn.140003750
mov ecx, 8
call fcn.140004ee0
lea rcx, [0x1400023e0]
mov qword [rax], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140003200]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x50], rax
test rax, rax
je 0x140002c19
cmp dword [rbp - 0x48], 0
je 0x140002c0d
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140002c0d
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov ecx, 0x38
call fcn.140004ee0
mov rbx, rax
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r15
mov qword [rax + 0x28], r15
mov qword [rax + 0x30], r15
mov rcx, rax
call fcn.1400015f0
nop
mov qword [rsp + 0x50], rbx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov r14, r15
mov qword [rbp - 0x78], r15
movsd xmm6, qword [0x1400077e8]
movsd xmm7, qword [0x1400077e0]
mov rsi, qword [rsp + 0x78]
nop dword [rax]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
jne 0x140002866
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
jne 0x140002866
mov ecx, 5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x140002873
test rbx, rbx
je 0x140002873
mov rcx, rbx
call fcn.140001200
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x140002a97
mov r8d, 9
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140001dc0
mov rbx, rax
lea rax, [rsp + 0x78]
cmp rax, rbx
je 0x14000290a
test rsi, rsi
je 0x1400028e7
sub r14, rsi
and r14, 0xfffffffffffffffc
mov rax, rsi
cmp r14, 0x1000
jb 0x1400028dc
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002bff
mov rdx, r14
mov rcx, rsi
call fcn.140004f24
mov rsi, qword [rbx]
mov qword [rsp + 0x78], rsi
mov rax, qword [rbx + 8]
mov qword [rbp - 0x80], rax
mov r14, qword [rbx + 0x10]
mov qword [rbp - 0x78], r14
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000294a
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002945
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002bff
call fcn.140004f24
mov eax, dword [rsi]
test eax, eax
jne 0x140002955
cmp dword [rsi + 4], eax
je 0x1400029c4
mov dword [rbp + 0x180], eax
mov eax, dword [rsi + 4]
mov dword [rbp + 0x184], eax
mov dword [rbp + 0x188], r15d
xor r9d, r9d
mov r8d, 0xc
lea rdx, [rbp + 0x180]
mov rcx, qword [0x14000a0b8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400029c4
lea rdx, str.Send_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e20
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140003000]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rsp + 0x50]
call fcn.140001a10
test al, al
je 0x140002a8d
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x70]
sub rax, qword [rbp - 0x60]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
mulsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp - 0x68]
divsd xmm1, xmm0
comisd xmm1, xmm7
jbe 0x140002a8d
mov qword [rbp + 0x190], r15
mov dword [rbp + 0x198], 1
xor r9d, r9d
mov r8d, 0xc
lea rdx, [rbp + 0x190]
mov rcx, qword [0x14000a0b8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002a83
lea rdx, str.Send_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e20
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140003000]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [rsp + 0x50]
jmp 0x140002be7
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x140002be7
cvttsd2si r8d, qword [0x14000a770]
add r8d, 9
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140001dc0
mov rdi, rax
lea rax, [rsp + 0x78]
cmp rax, rdi
je 0x140002b35
test rsi, rsi
je 0x140002b12
sub r14, rsi
and r14, 0xfffffffffffffffc
mov rax, rsi
cmp r14, 0x1000
jb 0x140002b07
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c06
mov rdx, r14
mov rcx, rsi
call fcn.140004f24
mov rsi, qword [rdi]
mov qword [rsp + 0x78], rsi
mov rax, qword [rdi + 8]
mov qword [rbp - 0x80], rax
mov r14, qword [rdi + 0x10]
mov qword [rbp - 0x78], r14
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002b75
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c06
call fcn.140004f24
mov eax, dword [rsi]
test eax, eax
jne 0x140002b80
cmp dword [rsi + 4], eax
je 0x140002be7
mov dword [rsp + 0x60], eax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], r15d
xor r9d, r9d
mov r8d, 0xc
lea rdx, [rsp + 0x60]
mov rcx, qword [0x14000a0b8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002be7
lea rdx, str.Send_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e20
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140003000]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0x70], 1
lea rcx, [rsp + 0x70]
call fcn.140003040
jmp 0x140002830
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x48], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3