Function at 0x140006430
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
test rcx, rcx
je 0x1400067c7
push rbx
sub rsp, 0x30
test dword [rcx + 0x18c], 0x2000
mov rbx, rcx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
je 0x14000645c
call fcn.140003640
mov eax, dword [rbx + 0x18c]
xor r14d, r14d
mov r15, qword [rbx + 0x150]
and eax, 8
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov byte [rbx + 0x170], 1
test al, al
je 0x1400066f5
cmp qword [rbx + 0xc8], r14
je 0x140006658
mov edi, r14d
cmp dword [rbx + 0xf0], r14d
jbe 0x140006515
nop word [rax + rax]
mov eax, edi
imul rcx, rax, 0x1e8
mov rax, qword [rbx + 0xc8]
mov byte [rcx + rax + 0x170], 1
mov rax, qword [rbx + 0xc8]
cmp qword [rcx + rax + 0x160], 0xffffffffffffffff
je 0x14000650b
mov rcx, qword [rcx + rax + 0x168]
lea rdx, [0x1400b6254]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14000650b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400065dd
inc edi
cmp edi, dword [rbx + 0xf0]
jb 0x1400064b0
mov esi, r14d
cmp dword [rbx + 0xf0], r14d
jbe 0x1400065cb
nop word [rax + rax]
mov rcx, qword [rbx + 0xc8]
or edx, 0xffffffff
mov ebp, esi
imul rdi, rbp, 0x1e8
mov rcx, qword [rdi + rcx + 0xf8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140006636
mov rcx, qword [rbx + 0xc8]
mov rcx, qword [rdi + rcx + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0xc8]
mov rcx, qword [rdi + rax + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x1400065a6
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0xc8]
test eax, eax
jne 0x1400065ff
mov rcx, qword [rdi + rcx + 0x168]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x140006614
mov rcx, qword [rbx + 0xc8]
add rcx, 0x128
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
inc esi
cmp esi, dword [rbx + 0xf0]
jb 0x140006530
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400066fd
mov rcx, qword [0x1400c1658]
lea r9, str.Failed_to_signal_shutdown_via_inter_thread_communication_channel.
mov r8d, 0x18c6
lea rdx, [0x1400b8d60]
call qword [0x1400c1670]
int3
imul rax, rbp, 0x1e8
mov rcx, qword [rax + rcx + 0x168]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x1400c1658]
lea r9, [0x1400b7f08]
mov r8d, 0x18e0
lea rdx, [0x1400b8ef0]
call qword [0x1400c1670]
int3
mov rcx, qword [0x1400c1658]
lea r9, [0x1400b8db8]
mov r8d, 0x18d6
lea rdx, [0x1400b8e40]
call qword [0x1400c1670]
int3
cmp qword [rbx + 0x160], 0xffffffffffffffff
je 0x1400066b0
mov rcx, qword [rbx + 0x168]
lea rdx, [0x1400b6484]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400066b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400066b0
mov rcx, qword [0x1400c1658]
lea r9, str.Failed_to_signal_shutdown_via_inter_thread_communication_channel
mov r8d, 0x18eb
lea rdx, [0x1400b9060]
call qword [0x1400c1670]
int3
mov rcx, qword [rbx + 0xf8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400066d3
mov rcx, qword [rbx + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400066fd
mov rcx, qword [0x1400c1658]
lea r9, str.Failed_to_join_a_thread_n
mov r8d, 0x18f9
lea rdx, [0x1400b9120]
call qword [0x1400c1670]
int3
mov rcx, rbx
call fcn.140006010
cmp r15, 0xffffffffffffffff
je 0x14000673d
movzx eax, byte [rbx + 0x171]
test al, al
jne 0x14000673d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14000673d
mov rcx, qword [0x1400c1658]
lea r9, str.Close_socket_failed._n
mov r8d, 0x1905
lea rdx, [0x1400b9190]
call qword [0x1400c1670]
int3
mov rcx, qword [rbx + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x14000676c
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x168]
test eax, eax
jne 0x1400067c8
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
sete r14b
test r14d, r14d
je 0x1400067ce
mov rcx, qword [rbx + 0x1a0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rbx + 0x128]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x1400c1658]
lea r9, str.Failed_to_destroy_ITC._n
mov r8d, 0x1908
lea rdx, [0x1400b9230]
call qword [0x1400c1670]
int3