Function at 0x140017380
Capabilities:
Resolve dns

Disassembly:
jmp 0x140017380
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x1400298a8]
xor rax, rbp
mov qword [rbp + 0x140], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400012ad
mov qword [rbp + 0x48], 0
call qword [sym.imp.ucrtbased.dll__errno]
mov dword [rax], 0
cmp qword [rbp + 0x170], 0
je 0x1400173fa
mov ecx, 0x1e0
call fcn.14000111d
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14001740d
lea rcx, str.gethostpoop_fuxored
call fcn.140001046
mov rax, qword [rbp + 0x48]
lea rdx, str._UNKNOWN_
mov rcx, rax
call sub.ucrtbased.dll_strcpy
mov rcx, qword [rbp + 0x170]
call sub.WS2_32.dll_inet_addr
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x1400175fe
movzx eax, word [rbp + 0x178]
test eax, eax
je 0x140017457
mov rdx, qword [rbp + 0x170]
lea rcx, str.Cant_parse__s_as_an_IP_address
call fcn.140001046
mov rcx, qword [rbp + 0x170]
call sub.WS2_32.dll_gethostbyname
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140017489
call sub.WS2_32.dll_WSAGetLastError
mov r8d, eax
mov rdx, qword [rbp + 0x170]
lea rcx, str._s:_forward_host_lookup_failed:_h_errno__d
call fcn.140001046
mov rax, qword [rbp + 0x48]
mov r8d, pe_nt_image_headers64
mov rcx, qword [rbp + 8]
mov rdx, qword [rcx]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_strncpy]
mov dword [rbp + 0x64], 0
jmp 0x1400174b4
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
movsxd rax, dword [rbp + 0x64]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x140017545
cmp dword [rbp + 0x64], 8
jge 0x140017545
movsxd rax, dword [rbp + 0x64]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x18]
movsxd rdx, dword [rbp + 0x64]
mov r8, qword [rbp + 0x48]
lea rdx, [r8 + rdx*4 + 0x1c0]
mov qword [rbp + 0x138], rdx
mov r8d, 4
mov rdx, qword [rcx + rax*8]
mov rax, qword [rbp + 0x138]
mov rcx, rax
call sub.VCRUNTIME140D.dll_memcpy
movsxd rax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + rax*4 + 0x1c0]
call sub.WS2_32.dll_inet_ntoa
movsxd rcx, dword [rbp + 0x64]
imul rcx, rcx, 0x18
mov rdx, qword [rbp + 0x48]
lea rcx, [rdx + rcx + 0x100]
mov r8d, 0x18
mov rdx, rax
call qword [sym.imp.ucrtbased.dll_strncpy]
jmp 0x1400174ac
movzx eax, word [0x140029f54]
test eax, eax
jne 0x140017559
mov rax, qword [rbp + 0x48]
jmp 0x140017721
mov dword [rbp + 0x64], 0
jmp 0x14001756a
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
movsxd rax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x48]
cmp dword [rcx + rax*4 + 0x1c0], 0
je 0x1400175f9
cmp dword [rbp + 0x64], 8
jge 0x1400175f9
movsxd rax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x48]
lea rax, [rcx + rax*4 + 0x1c0]
mov r8d, 2
mov edx, 4
mov rcx, rax
call sub.WS2_32.dll_gethostbyaddr
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400175ba
mov rax, qword [rbp + 8]
cmp qword [rax], 0
jne 0x1400175e7
call sub.WS2_32.dll_WSAGetLastError
movsxd rcx, dword [rbp + 0x64]
imul rcx, rcx, 0x18
mov rdx, qword [rbp + 0x48]
lea rcx, [rdx + rcx + 0x100]
mov r8d, eax
mov rdx, rcx
lea rcx, str.Warning:_inverse_host_lookup_failed_for__s:_h_errno__d
call fcn.14000105f
jmp 0x1400175f4
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x48]
call fcn.14000128a
jmp 0x140017562
jmp 0x14001771d
mov rax, qword [rbp + 0x48]
add rax, 0x1c0
mov r8d, 4
lea rdx, [rbp + 0x24]
mov rcx, rax
call sub.VCRUNTIME140D.dll_memcpy
mov ecx, dword [rbp + 0x24]
call sub.WS2_32.dll_inet_ntoa
mov ecx, 0x18
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x48]
lea rcx, [rdx + rcx + 0x100]
mov r8d, 0xc0
mov rdx, rax
call qword [sym.imp.ucrtbased.dll_strncpy]
movzx eax, word [rbp + 0x178]
test eax, eax
je 0x14001765a
mov rax, qword [rbp + 0x48]
jmp 0x140017721
movzx eax, word [0x140029f54]
test eax, eax
jne 0x14001766e
mov rax, qword [rbp + 0x48]
jmp 0x140017721
mov r8d, 2
mov edx, 4
lea rcx, [rbp + 0x24]
call sub.WS2_32.dll_gethostbyaddr
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400176aa
call sub.WS2_32.dll_WSAGetLastError
mov r8d, eax
mov rdx, qword [rbp + 0x170]
lea rcx, str._s:_inverse_host_lookup_failed:_h_errno__d
call fcn.14000105f
jmp 0x14001771d
mov rax, qword [rbp + 0x48]
mov r8d, 0xfe
mov rcx, qword [rbp + 8]
mov rdx, qword [rcx]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_strncpy]
mov rax, qword [rbp + 0x48]
mov rcx, rax
call sub.WS2_32.dll_gethostbyname
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400176f3
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + rcx], 0
jne 0x140017710
call sub.WS2_32.dll_WSAGetLastError
mov rcx, qword [rbp + 0x48]
mov r8d, eax
mov rdx, rcx
lea rcx, str.Warning:_forward_host_lookup_failed_for__s:_h_errno__d
call fcn.14000105f
jmp 0x14001771d
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x48]
call fcn.14000128a
mov rax, qword [rbp + 0x48]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.14000124e
mov rax, rdi
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.140001154
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret