Function at 0x1800036c0
Capabilities:
Connect socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x240
mov rsi, qword [rcx + 0x20]
xor eax, eax
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
lea r13d, [rax + 2]
lea rdx, [r11 + 8]
lea r8d, [rax + 1]
mov word [rsp + 0x20], r13w
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call fcn.180020f74
mov ebx, eax
test eax, eax
jne 0x1800039e7
movzx r8d, byte [rsp + 0x270]
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x140]
call fcn.180020f74
mov ebx, eax
test eax, eax
jne 0x1800039e7
mov r8b, byte [rsp + 0x270]
xor cl, cl
test r8b, r8b
je 0x18000376a
cmp qword [rsi + 0x90], 0
movzx eax, cl
mov dl, byte [rsp + rax + 0x140]
je 0x18000375d
cmp dl, r13b
jmp 0x18000375f
test dl, dl
je 0x180003771
inc cl
cmp cl, r8b
jb 0x180003744
jmp 0x180003771
mov dl, byte [rsp + 0x270]
cmp cl, r8b
mov rcx, qword [rdi + 0x38]
movzx ebx, dl
mov eax, 0xff
lea rdx, [rsp + 0x278]
mov r8d, r13d
cmove ebx, eax
xor r9d, r9d
mov byte [rsp + 0x278], 5
mov byte [rsp + 0x279], bl
call qword [sym.imp.WS2_32.dll_send]
cmp eax, r13d
je 0x1800037b5
mov ebx, 0x4d4
jmp 0x1800039e7
cmp bl, r13b
jne 0x18000391f
mov r8, qword [rsi + 0x98]
mov rdx, qword [rsi + 0x90]
mov rcx, qword [rdi + 0x38]
call fcn.18001ac6c
mov ebx, eax
test eax, eax
jne 0x1800039e7
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x278]
xor r9d, r9d
mov r8d, r13d
mov byte [rsp + 0x278], 1
mov byte [rsp + 0x279], al
call qword [sym.imp.WS2_32.dll_send]
cmp eax, r13d
jne 0x1800037ab
mov rcx, qword [rdi + 0x38]
mov r15d, 4
lea rdx, [rsp + 0x30]
mov r8d, r15d
call fcn.180020f74
mov ebx, eax
test eax, eax
jne 0x1800039e7
cmp byte [rsp + 0x30], 5
mov esi, r15d
jne 0x1800039ba
cmp byte [rsp + 0x31], 1
jne 0x1800039ba
mov al, byte [rsp + 0x33]
cmp al, 1
je 0x180003931
cmp al, 3
jne 0x1800039ba
mov rcx, qword [rdi + 0x38]
lea r8d, [r15 - 3]
lea rdx, [rsp + 0x34]
call fcn.180020f74
mov ebx, eax
test eax, eax
jne 0x1800039bf
lea esi, [rax + 5]
mov al, byte [rsp + 0x34]
test al, al
je 0x1800039ba
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x35]
movzx r8d, al
call fcn.180020f74
mov ebx, eax
test eax, eax
jne 0x1800039bf
movzx esi, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x34]
lea rcx, [rsp + 0x35]
mov byte [rsp + rax + 0x35], bl
add esi, 5
call qword [sym.imp.WS2_32.dll_gethostbyname]
movzx ecx, byte [rsp + 0x34]
mov r8d, r13d
mov rbp, rax
lea rdx, [rsp + rcx + 0x35]
mov rcx, qword [rdi + 0x38]
call fcn.180020f74
mov ebx, eax
test eax, eax
jne 0x1800039ac
add esi, r13d
test rbp, rbp
je 0x18000399d
cmp word [rbp + 0x10], r13w
jne 0x18000399d
cmp word [rbp + 0x12], r15w
jne 0x18000399d
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x24], eax
movzx eax, byte [rsp + 0x34]
movzx ecx, word [rsp + rax + 0x35]
mov word [rsp + 0x22], cx
jmp 0x180003960
test bl, bl
je 0x18000380b
mov ebx, 0x57
jmp 0x1800039e7
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 6
call fcn.180020f74
mov ebx, eax
test eax, eax
jne 0x1800039bf
lea esi, [rax + 0xa]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x22], ax
mov edx, 1
mov ecx, r13d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1800039a4
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1800039ac
lea rcx, [rdi + 0x40]
call fcn.1800162b0
mov ebx, 0x4d0
jmp 0x1800039ac
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x1800039e7
test ebx, ebx
jne 0x1800039bf
mov byte [rsp + 0x31], bl
jmp 0x1800039c4
mov ebx, 0x57
mov byte [rsp + 0x31], 3
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, esi
call qword [sym.imp.WS2_32.dll_send]
mov ecx, ebx
mov ebx, 0x4d4
cmp eax, esi
cmovne ecx, ebx
mov ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x280]
add rsp, 0x240
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret