Function at 0x14028bb50
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rbx, r8
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], r8
lea rcx, [rsp + 0x40]
call fcn.1400b9bf0
mov r14, rax
test r14b, 1
je 0x14028bc20
mov r15, qword [rsp + 0x48]
test r15, r15
je 0x14028bbee
mov rax, qword [rsp + 0x40]
lea rcx, [r15 - 1]
movzx edx, byte [rax]
inc rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
cmp dl, 0x3a
jne 0x14028bbee
mov dword [rsp + 0xe8], 0xa
mov qword [rsp + 0xd8], 0
mov byte [rsp + 0xec], 1
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0xd8]
call fcn.1400ba4b0
cmp ax, 1
jne 0x14028bbf0
jmp 0x14028bbfa
xor eax, eax
mov qword [rsp + 0x48], r15
test ax, ax
je 0x14028bc20
movabs rax, 0xffffffff00
and r14, rax
shr r14, 8
movzx eax, dx
shl rax, 0x30
shl r14, 0x10
or r14, rax
mov eax, 1
jmp 0x14028bc25
xor r14d, r14d
xor eax, eax
or rax, r14
cmp ax, 1
je 0x14028bd38
movzx ecx, ax
mov rax, rbx
test ecx, ecx
jne 0x14028bd3d
mov rsi, r13
test rbx, rbx
je 0x14028bf05
lea rax, [rbx - 1]
lea rcx, [rdi + 1]
movzx edx, byte [rdi]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
cmp dl, 0x5b
jne 0x14028bf05
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0x40]
call fcn.1400ba150
cmp byte [rsp + 0xd8], 0
je 0x14028bf05
mov r14d, dword [rsp + 0xd9]
mov rax, qword [rsp + 0xdd]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0xe5]
mov dword [rsp + 0x28], eax
mov r12, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
test rcx, rcx
je 0x14028bdf1
cmp byte [r12], 0x25
jne 0x14028be25
lea r10, [rcx - 1]
lea r11, [r12 + 1]
xor r15d, r15d
mov ebp, 0xa
mov qword [rsp + 0x70], r10
mov qword [rsp + 0xa0], r11
xor r13d, r13d
xor r8d, r8d
nop
mov eax, 0
test r10, r10
je 0x14028bd13
movzx r9d, byte [r11]
add r9d, 0xffffffd0
xor eax, eax
cmp r9d, 0xa
setb al
jae 0x14028bd13
dec r10
inc r11
cmp eax, 1
jne 0x14028bdf3
mov eax, r15d
mul ebp
jo 0x14028be10
mov r15d, eax
add r15d, r9d
jb 0x14028be10
inc r13
jmp 0x14028bcf0
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14028bf12
mov edi, r14d
shr edi, 0x10
shr r14, 0x18
xor ebx, ebx
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xa8], rax
movzx eax, byte [0x1406ba220]
mov ecx, 0x20
mov edx, 4
call fcn.140087770
test rax, rax
je 0x14028c435
mov word [rax], bx
mov rcx, r14
shl rcx, 8
movzx edx, dil
or rdx, rcx
shr r14, 0x18
mov word [rax + 6], r14w
mov dword [rax + 2], edx
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 8], rcx
mov ecx, dword [rsp + 0xb0]
mov dword [rax + 0x10], ecx
mov dword [rax + 0x14], 0
mov dword [rax + 0x18], r15d
mov word [rax + 0x1c], bp
mov rcx, rax
add rcx, 0x20
mov qword [r13], rax
mov qword [r13 + 8], 1
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rcx
jmp 0x14028c02e
jmp 0x14028be25
test r13, r13
je 0x14028be0d
mov r8d, 1
mov qword [rsp + 0x70], r10
mov qword [rsp + 0xa0], r11
jmp 0x14028be10
xor r8d, r8d
cmp r8d, 1
jne 0x14028be25
mov r12, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
jmp 0x14028be2c
test r8d, r8d
cmove r15d, r8d
test rcx, rcx
je 0x14028bf05
cmp byte [r12], 0x5d
jne 0x14028bf05
mov r13, rcx
dec r13
je 0x14028bea1
add rcx, 0xfffffffffffffffe
lea rax, [r12 + 2]
movzx edx, byte [r12 + 1]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
cmp dl, 0x3a
jne 0x14028bea1
mov dword [rsp + 0xe8], 0xa
mov qword [rsp + 0xd8], 0
mov byte [rsp + 0xec], 1
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0xd8]
call fcn.1400ba4b0
mov ebp, edx
cmp ax, 1
jne 0x14028bea3
jmp 0x14028beb5
xor eax, eax
inc r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r13
test ax, ax
je 0x14028bf05
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x90], rcx
mov dword [rsp + 0x98], eax
cmp qword [rsp + 0x48], 0
mov r13, rsi
jne 0x14028bf12
shl r14, 8
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0xe0], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xd8], rax
mov bx, 1
xor edi, edi
jmp 0x14028bd52
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
mov r13, rsi
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf8], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0x100], rax
mov sil, 0x3a
mov r14, rbx
jmp 0x14028bf69
cmp r14, rbx
ja 0x14028c01b
mov cl, 0x3a
mov rdx, rdi
mov r8, r14
call fcn.1400be010
cmp rax, 1
jne 0x14028c01b
mov r14, rdx
cmp rdx, rbx
jae 0x14028bf60
cmp byte [rdi + r14], sil
jne 0x14028bf60
lea r12, [r14 + 1]
lea rcx, [rdi + r14]
inc rcx
sub rbx, r12
mov rdx, rbx
call fcn.1400c0de0
mov ebx, eax
test bl, 1
jne 0x14028c042
shr ebx, 0x10
mov rax, qword [0x1406ba158]
cmp rax, 3
jne 0x14028c406
cmp r14, 0x17f
ja 0x14028c418
lea r15, [rsp + 0xd8]
mov rcx, r15
mov rdx, rdi
mov r8, r14
call sub.msvcrt.dll_memcpy
mov byte [rsp + r14 + 0xd8], 0
cmp r14, 0xe
ja 0x14028c04b
xor ecx, ecx
nop word [rax + rax]
cmp byte [rsp + rcx + 0xd8], 0
je 0x14028c0f3
inc rcx
cmp r12, rcx
jne 0x14028c000
jmp 0x14028c14c
lea rax, str.invalid_socket_address
mov qword [r13 + 8], rax
mov qword [r13], 0
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.invalid_port_value
jmp 0x14028c022
lea rax, [rsp + 0xdf]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x14028c081
je 0x14028c081
xor ecx, ecx
cmp byte [rsp + rcx + 0xd8], 0
je 0x14028c0f3
inc rcx
cmp rax, rcx
jne 0x14028c060
lea rcx, [r14 - 0xf]
cmp rax, rcx
jbe 0x14028c087
jmp 0x14028c0c1
lea rcx, [r14 - 0xf]
xor eax, eax
vpbroadcastq xmm0, qword [0x1404b4680]
vpbroadcastb xmm1, byte [0x1404b4688]
nop dword [rax]
vmovdqu xmm2, xmmword [rsp + rax + 0xd8]
vpaddq xmm3, xmm2, xmm0
vpandn xmm2, xmm2, xmm3
vptest xmm2, xmm1
jne 0x14028c0c1
add rax, 0x10
cmp rax, rcx
jbe 0x14028c0a0
sub r12, rax
je 0x14028c14c
lea rdx, [rsp + rax]
add rdx, 0xd8
xor ecx, ecx
nop word [rax + rax]
cmp byte [rdx + rcx], 0
je 0x14028c0f0
inc rcx
cmp r12, rcx
jne 0x14028c0e0
jmp 0x14028c14c
add rcx, rax
cmp rcx, r14
jne 0x14028c14c
vpxor xmm0, xmm0, xmm0
vmovdqu ymmword [rsp + 0x40], ymm0
vmovdqu ymmword [rsp + 0x50], ymm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0xd8]
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x78]
xor edx, edx
vzeroupper
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14028c3eb
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14028c153
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsp + 0x28], rax
mov eax, 1
test rax, rax
je 0x14028c16c
mov rax, qword [rsp + 0x28]
jmp 0x14028c022
vmovdqu xmm0, xmmword [rsp + 0x28]
movzx eax, word [rsp + 0x38]
mov ecx, dword [rsp + 0x3a]
mov dword [rsp + 0xb8], ecx
movzx r8d, word [rsp + 0x3e]
mov word [rsp + 0xbc], r8w
mov word [rsp + 0x90], ax
lea rdx, [rsp + 0x28]
vmovdqu xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x38], ax
mov dword [rsp + 0x3a], ecx
mov word [rsp + 0x3e], r8w
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xd8]
call fcn.14028b5b0
movzx edi, word [rsp + 0xd8]
cmp di, 2
jne 0x14028c1f3
mov rcx, qword [rsp + 0x28]
call sub.ws2_32.dll_freeaddrinfo
mov eax, 4
xor ecx, ecx
xor edi, edi
jmp 0x14028c3cf
mov qword [rsp + 0x70], r13
mov esi, dword [rsp + 0xda]
movzx ebp, word [rsp + 0xde]
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x50], eax
vmovdqu xmm0, xmmword [rsp + 0xe0]
vmovdqa xmmword [rsp + 0x40], xmm0
movzx r15d, word [rsp + 0xf4]
movzx r14d, word [rsp + 0xf6]
mov rax, qword [rsp + 0x20]
movzx r12d, word [rax]
movzx eax, byte [0x1406ba220]
mov ecx, pe_nt_image_headers64
mov edx, 4
call fcn.140087770
test rax, rax
je 0x14028c446
mov rbx, rax
test di, di
cmovne r15d, r12d
cmove ebp, r12d
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x18], eax
vmovaps xmm0, xmmword [rsp + 0x40]
vmovups xmmword [rbx + 8], xmm0
mov word [rbx], di
mov dword [rbx + 2], esi
mov word [rbx + 6], bp
mov word [rbx + 0x1c], r15w
mov word [rbx + 0x1e], r14w
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], 4
mov qword [rsp + 0x88], 1
vmovdqu ymm0, ymmword [rsp + 0x20]
vmovdqu ymmword [rsp + 0x40], ymm0
mov edi, 1
mov r13d, 0x20
jmp 0x14028c317
mov word [rbx + r13], r12w
mov dword [rbx + r13 + 2], r14d
mov word [rbx + r13 + 6], si
vmovdqa xmm0, xmmword [rsp + 0xc0]
vmovdqu xmmword [rbx + r13 + 8], xmm0
mov eax, dword [rsp + 0xd0]
mov dword [rbx + r13 + 0x18], eax
mov word [rbx + r13 + 0x1c], r15w
mov word [rbx + r13 + 0x1e], bp
inc rdi
mov qword [rsp + 0x88], rdi
add r13, 0x20
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0x48]
vzeroupper
call fcn.14028b5b0
movzx r12d, word [rsp + 0xd8]
cmp r12w, 2
je 0x14028c3b3
mov r14d, dword [rsp + 0xda]
movzx esi, word [rsp + 0xde]
lea rcx, [rsp + 0xe0]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0xd0], eax
vmovdqu xmm0, xmmword [rcx]
vmovdqa xmmword [rsp + 0xc0], xmm0
mov rax, qword [rsp + 0x40]
movzx r15d, word [rax]
test r12w, r12w
jne 0x14028c386
mov esi, r15d
movzx r15d, word [rsp + 0xf4]
movzx ebp, word [rsp + 0xf6]
cmp rdi, qword [rsp + 0x80]
jne 0x14028c2d0
lea rcx, [rsp + 0x78]
mov rdx, rdi
call fcn.14028b710
mov rbx, qword [rsp + 0x78]
jmp 0x14028c2d0
mov rcx, qword [rsp + 0x48]
call sub.ws2_32.dll_freeaddrinfo
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov r13, qword [rsp + 0x70]
shl rdi, 5
add rdi, rax
mov qword [r13], rax
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rdi
jmp 0x14028c02e
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x38], bx
xor eax, eax
jmp 0x14028c15d
call fcn.14028b7d0
cmp r14, 0x17f
jbe 0x14028bfd0
lea rcx, [rsp + 0x20]
mov rdx, rdi
mov r8, r14
mov r9d, ebx
call fcn.14028b830
mov rax, qword [rsp + 0x20]
jmp 0x14028c15d
mov ecx, 4
mov edx, 0x20
call fcn.1400a9a20
ud2
mov ecx, 4
mov edx, pe_nt_image_headers64
call fcn.1400a9a20
ud2