Function at 0x14004a620
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400e5040]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x48], r12
movabs rax, 0xbd51ad2256a34920
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movabs rbx, 0x357aba87b3871498
mov qword [rsp + 0x20], rbx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
movabs r15, 0x861de16609f70c67
mov qword [rsp + 0x20], r15
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x160], rax
mov qword [rsp + 0x20], rbx
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x168], rax
movdqa xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rbp + 0x160]
movdqa xmmword [rsp + 0x30], xmm0
mov r8, rdx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140047b10
nop
mov ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14004a7de
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14004a754
inc rdx
mov rcx, qword [rsp + 0x58]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14004a74f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ab30
call fcn.140086344
movdqa xmm0, xmmword [0x1400d55a0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14004a7a1
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14004a79c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004ab37
mov rcx, r8
call fcn.140086344
mov byte [rdi], 0
mov qword [rdi + 0x18], recv
mov qword [rdi + 0x10], r12
mov rax, rsi
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140085f80
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword [rbp - 0x70], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 6
movabs rax, 0x861de15338c73c55
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r15
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x160], rax
mov qword [rsp + 0x20], rbx
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x168], rax
movdqa xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rbp + 0x160]
movdqa xmmword [rsp + 0x30], xmm0
movabs rax, 0xa82fd75727ce3f56
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x160], rax
movabs rax, 0x357a8bb29db627a9
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x168], rax
mov qword [rsp + 0x20], r15
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x170], rax
mov qword [rsp + 0x20], rbx
mov rax, qword [rsp + 0x20]
mov qword [rbp + 0x178], rax
movdqa xmm0, xmmword [rbp + 0x160]
xorps xmm0, xmmword [rbp + 0x170]
movdqa xmmword [rbp + 0x160], xmm0
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x160]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14004a8f6
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14004a70c
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14004a95c
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14004a8eb
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14004a957
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14004a900
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14004a70c
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp r14, 0xffffffffffffffff
je 0x14004a8eb
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14004a9a6
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14004a70c
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov qword [rbp - 0x78], r12
nop dword [rax]
nop word [rax + rax]
xor edx, edx
mov r8d, 0x201
lea rcx, [rbp + 0x180]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rbp + 0x180]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14004aa3e
movsxd r15, eax
mov rbx, r12
mov rdx, qword [rbp - 0x80]
nop dword [rax + rax]
movzx eax, byte [rbp + rbx + 0x180]
mov byte [rsp + 0x28], al
cmp rdx, qword [rbp - 0x78]
je 0x14004aa21
mov byte [rdx], al
mov rdx, qword [rbp - 0x80]
inc rdx
mov qword [rbp - 0x80], rdx
jmp 0x14004aa34
lea r8, [rsp + 0x28]
lea rcx, [rsp + 0x78]
call fcn.14004acf0
mov rdx, qword [rbp - 0x80]
inc rbx
cmp rbx, r15
jb 0x14004aa00
jmp 0x14004a9c0
mov edx, 1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, r14
cmp eax, 0xffffffff
jne 0x14004aabf
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14004a717
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004aaa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004aaa8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140086344
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
jmp 0x14004a717
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbp - 0x78]
mov qword [rbp - 0x78], r12
mov rcx, qword [rbp - 0x80]
mov qword [rbp - 0x80], r12
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x78], r12
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14004a754
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a74f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a74f
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