Function at 0x140073dc0
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x90
mov rax, qword [rcx]
mov r12d, r9d
movzx ebp, r8w
mov r14, rdx
mov rbx, rcx
call qword [rax + 0x170]
test eax, eax
je 0x1400741d6
xor esi, esi
mov r13d, 1
mov edi, esi
xor eax, eax
lock cmpxchg dword [rbx + 0x180], r13d
je 0x140073e35
mov eax, edi
and eax, 0xfff
cmp eax, 0xfff
jne 0x140073e26
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
inc edi
jmp 0x140073e01
mov eax, edi
and eax, 0x3f
cmp al, 0x3f
jne 0x140073e31
pause
inc edi
jmp 0x140073e01
nop
mov eax, dword [rbx + 0x6c]
cmp eax, 3
jne 0x1400741c1
mov dword [rbx + 0x6c], esi
mov rcx, rbx
mov dword [rbx + 0x180], esi
mov rax, qword [rbx]
call qword [rax + 0x178]
lea rax, [rsp + 0x70]
mov dword [rbx + 0x18], r13d
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
mov rax, qword [rsp + 0xe0]
movzx r9d, bp
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov qword [rbx + 0x1c], 5
mov dword [rbx + 0x24], r13d
mov word [rsp + 0x30], si
mov word [rsp + 0x70], si
call fcn.140072e90
test eax, eax
je 0x140074180
movzx eax, word [rsp + 0x70]
mov ebp, 0x1c
lea r14d, [rbp - 0xc]
cmp ax, 2
je 0x140073f59
cmp ax, 0x17
je 0x140073f59
movzx edi, word [rsp + 0xe8]
test di, di
je 0x140073fd5
cmp ax, 2
je 0x140073f75
cmp ax, 0x17
je 0x140073f75
mov rax, qword gs:[0x58]
mov ecx, dword [0x1403f32f0]
mov edx, 4
mov qword [rsp + 0xc0], r15
movzx r15d, word [rsp + 0x30]
mov r14, qword [rax + rcx*8]
add r14, rdx
mov eax, dword [r14]
cmp dword [0x1403f0fe4], eax
jg 0x14007424f
mov eax, dword [r14]
cmp dword [0x1403f1004], eax
jg 0x1400741f4
cmp r15w, 2
lea rax, [0x1403f0fc8]
mov r15, qword [rsp + 0xc0]
lea rcx, [0x1403f0fe8]
cmovne rax, rcx
mov r14d, reloc.WS2_32.dll_recv
jmp 0x140073f7a
movzx edi, word [rsp + 0xe8]
test di, di
jne 0x140073ed7
cmp ax, 2
lea rdx, [rsp + 0x70]
jmp 0x140073fad
lea rax, [rsp + 0x70]
movups xmm0, xmmword [rax]
movzx ecx, di
movsd xmm1, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x68], eax
movsd qword [rsp + 0x60], xmm1
call qword [sym.imp.WS2_32.dll_htons]
cmp word [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
mov word [rsp + 0x52], ax
mov rcx, qword [rbx + 0x28]
mov r8d, ebp
cmove r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140073fd5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x64], 4
jmp 0x14007418d
call fcn.14006fb30
xor ecx, ecx
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [rbx + 0x28]
call qword [rax + 0x100]
cmp eax, 2
je 0x140074167
mov rcx, qword [rbx + 0x28]
mov edi, esi
test r12d, r12d
je 0x1400740a2
mov rdx, qword [rbx + 0x30]
mov r8d, gethostbyname
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x140074058
cmp word [rsp + 0x30], 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0x28]
cmove ebp, r14d
mov r8d, ebp
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140074055
cmp eax, 0xffffffff
jne 0x140074058
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140074058
mov edi, r13d
test edi, edi
je 0x140074111
lea rax, [rbx + 0x60]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140074440]
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call fcn.140258020
mov qword [rbx + 0x58], rax
test rax, rax
je 0x140074159
mov rcx, qword [rbx + 8]
mov esi, r13d
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, r13d
jmp 0x1400741d8
cmp word [rsp + 0x30], 2
lea rdx, [rsp + 0x30]
cmove ebp, r14d
mov r8d, ebp
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140074111
mov rdx, qword [rbx + 0x30]
mov r8d, 0x23
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x140074111
mov dword [rbx + 0x68], r13d
xor ecx, ecx
mov dword [rbx + 0x6c], r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x108]
cmp eax, 2
jne 0x140074120
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x64], reloc.WS2_32.dll_inet_addr
jmp 0x14007418d
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140074060
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140074060
test eax, eax
jne 0x140074244
jmp 0x140074060
mov dword [rbx + 0x64], 8
mov ecx, 0x65f
jmp 0x14007418f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
mov dword [rbx + 0x64], 5
test eax, eax
cmove eax, ecx
jmp 0x14007418d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x64], 3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rbx + 0x18], esi
mov qword [rbx + 0x1c], 5
mov dword [rbx + 0x24], r13d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov rcx, rbx
mov edi, eax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x1400741d8
mov ecx, 0x139f
mov dword [rbx + 0x64], r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rbx + 0x180], esi
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x1403f1004]
call fcn.140249928
cmp dword [0x1403f1004], 0xffffffff
jne 0x140073f32
mov eax, reloc.WS2_32.dll_socket
lea rcx, [0x1403f1004]
mov word [0x1403f0fe8], ax
xorps xmm0, xmm0
xor eax, eax
mov qword [0x1403f0ffa], rax
mov word [0x1403f1002], ax
movups xmmword [0x1403f0fea], xmm0
call fcn.1402498bc
jmp 0x140073f32
mov ecx, 0x80004005
call fcn.140021b30
int3
lea rcx, [0x1403f0fe4]
call fcn.140249928
cmp dword [0x1403f0fe4], 0xffffffff
jne 0x140073f23
mov eax, 2
lea rcx, [0x1403f0fe4]
mov word [0x1403f0fc8], ax
xorps xmm0, xmm0
xor eax, eax
mov qword [0x1403f0fda], rax
mov word [0x1403f0fe2], ax
movups xmmword [0x1403f0fca], xmm0
call fcn.1402498bc
jmp 0x140073f23