Function at 0x1401508b0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
movdqa xmmword [rsp + 0x240], xmm6
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x70]
call fcn.140042650
cmp word [rsp + 0x70], 2
jne 0x1401509ab
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], r15
mov byte [rsp + 0xe8], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xe0], rax
mov dil, 0x3a
mov rbx, r15
jmp 0x140150949
cmp rbx, r15
ja 0x1401509fb
mov cl, 0x3a
mov rdx, r14
mov r8, rbx
call fcn.140045b00
cmp rax, 1
jne 0x1401509fb
mov rbx, rdx
cmp rdx, r15
jae 0x140150940
cmp byte [r14 + rbx], dil
jne 0x140150940
lea r12, [rbx + 1]
lea rdi, [0x141a5cb48]
sub r15, r12
je 0x140150a02
lea rcx, [r14 + rbx]
inc rcx
cmp r15, 1
jne 0x140150a29
movzx eax, byte [rcx]
cmp eax, 0x2b
je 0x140150a02
mov r15d, 1
cmp eax, 0x2d
je 0x140150a02
jmp 0x140150a70
movzx eax, byte [0x141ada129]
mov edx, 0x20
xor ecx, ecx
call fcn.14014fee0
test rax, rax
je 0x140150f52
movdqu xmm0, xmmword [rsp + 0x70]
movdqu xmm1, xmmword [rsp + 0x80]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 1
mov qword [rsi + 0x18], rcx
jmp 0x140150a0d
lea rdi, [0x141a5cb18]
mov qword [rsi + 8], rdi
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x240]
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rcx], 0x2b
jne 0x140150a6a
inc rcx
lea rax, [r15 - 1]
cmp r15, 6
mov r15, rax
jb 0x140150a70
xor r8d, r8d
mov r9w, 0xa
xor eax, eax
mul r9w
jo 0x140150a02
movzx edx, byte [rcx + r8]
add edx, 0xffffffd0
cmp edx, 9
ja 0x140150a02
add ax, dx
jb 0x140150a02
inc r8
cmp r15, r8
jne 0x140150a48
jmp 0x140150aa3
cmp r15, 5
jae 0x140150a3e
xor edx, edx
xor eax, eax
nop word cs:[rax + rax]
movzx r8d, byte [rcx + rdx]
add r8d, 0xffffffd0
cmp r8d, 9
ja 0x140150a02
add eax, eax
lea eax, [rax + rax*4]
add eax, r8d
inc rdx
cmp r15, rdx
jne 0x140150a80
mov word [rsp + 0x22], ax
mov rax, qword [0x141ada0f0]
cmp rax, 3
jne 0x140150f12
lea rax, [rsp + 0x22]
mov qword [rsp + 0x68], rax
cmp rbx, 0x17f
ja 0x140150f2e
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0xc0], 0
cmp rbx, 0xe
ja 0x140150b11
xor ecx, ecx
cmp byte [rsp + rcx + 0xc0], 0
je 0x140150bba
inc rcx
cmp r12, rcx
jne 0x140150af6
jmp 0x140150c23
lea rax, [rsp + 0xc7]
and rax, 0xfffffffffffffff8
sub rax, rdi
jne 0x140150b6d
lea rcx, [rbx - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x14021df30]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rax + 0xc0]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x140150b91
add rax, 0x10
cmp rax, rcx
jbe 0x140150b3a
jmp 0x140150b91
cmp rax, r12
cmovae rax, r12
xor ecx, ecx
cmp byte [rsp + rcx + 0xc0], 0
je 0x140150bba
inc rcx
cmp rax, rcx
jne 0x140150b76
lea rcx, [rbx - 0xf]
cmp rax, rcx
jbe 0x140150b28
sub r12, rax
je 0x140150c23
lea rdx, [rsp + rax]
add rdx, 0xc0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x140150bb7
inc rcx
cmp r12, rcx
jne 0x140150ba7
jmp 0x140150c23
add rcx, rax
cmp rcx, rbx
jne 0x140150c23
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x98], 1
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0xc0]
lea r8, [rsp + 0x90]
lea r9, [rsp + 0x38]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140150c80
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x140150c2f
lea rdi, [0x141a5ce30]
mov qword [rsp + 0x50], rdi
mov eax, 1
test rax, rax
jne 0x140150a02
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140150c6a
movzx r8d, word [rsp + 0x60]
mov rax, qword [rcx + 0x20]
mov r15, qword [rcx + 0x28]
movzx edx, word [rax]
cmp edx, 0x17
je 0x140150cc9
cmp edx, 2
je 0x140150c98
mov rcx, r15
test r15, r15
jne 0x140150c4d
mov rcx, rdi
call sub.ws2_32.dll_freeaddrinfo
mov ecx, 4
xor eax, eax
xor edx, edx
jmp 0x140150ef7
mov rdi, qword [rsp + 0x38]
movzx eax, word [rsp + 0x22]
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x60], ax
xor eax, eax
jmp 0x140150c34
mov dword [rsp + 0x24], r8d
cmp qword [rcx + 0x10], 0xf
jbe 0x140150f52
movzx r14d, word [rax + 2]
rol r14w, 8
mov r12d, dword [rax + 4]
mov r13b, 1
lea rax, [0x141a5cae8]
mov qword [rsp + 0x30], rax
xor ebp, ebp
jmp 0x140150d1a
mov dword [rsp + 0x24], r8d
cmp qword [rcx + 0x10], 0x1b
jbe 0x140150f52
movzx ebx, word [rax + 2]
rol bx, 8
mov ecx, dword [rax + 4]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rax + 0x18]
mov dword [rsp + 0x28], ecx
movdqu xmm0, xmmword [rax + 8]
mov r14d, dword [rax + 8]
mov r12d, r14d
shl r12d, 0x10
pshufd xmm1, xmm0, 0xe9
movq qword [rsp + 0x30], xmm1
pshufd xmm6, xmm0, 0xff
shr r14d, 0x10
mov bp, 1
xor r13d, r13d
movzx eax, byte [0x141ada129]
mov edx, pe_nt_image_headers64
xor ecx, ecx
call fcn.14014fee0
test rax, rax
je 0x140150f52
test r13b, r13b
mov r9d, dword [rsp + 0x24]
cmove ebx, r9d
cmovne r14d, r9d
mov word [rax], bp
mov dword [rax + 2], r12d
mov word [rax + 6], r14w
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
movd dword [rax + 0x10], xmm6
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x14], ecx
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x18], ecx
mov word [rax + 0x1c], bx
mov qword [rsp + 0xc0], 4
mov qword [rsp + 0xc8], rax
mov ebx, 1
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0xd0], rbx
test r15, r15
je 0x140150ed7
mov rdx, r15
mov r10, qword [rdx + 0x20]
mov r15, qword [rdx + 0x28]
movzx r8d, word [r10]
cmp r8d, 0x17
je 0x140150df3
cmp r8d, 2
je 0x140150dcc
mov rdx, r15
test r15, r15
jne 0x140150da7
jmp 0x140150ed7
cmp qword [rdx + 0x10], 0xf
jbe 0x140150f52
mov r14d, dword [r10 + 4]
xor r13d, r13d
mov ebp, r9d
lea r10, [0x141a5cae8]
movzx r12d, word [rsp + 0x2c]
mov r8d, r11d
jmp 0x140150e43
cmp qword [rdx + 0x10], 0x1b
jbe 0x140150f52
movzx edx, word [r10 + 2]
rol dx, 8
mov word [rsp + 0x2c], dx
mov r8d, dword [r10 + 4]
mov edx, dword [r10 + 0x18]
mov dword [rsp + 0x30], edx
movdqu xmm0, xmmword [r10 + 8]
mov ebp, dword [r10 + 8]
mov r14d, ebp
shl r14d, 0x10
pshufd xmm1, xmm0, 0xe9
movq r10, xmm1
pshufd xmm6, xmm0, 0xff
shr ebp, 0x10
mov r13w, 1
mov r12d, r9d
cmp rbx, qword [rsp + 0xc0]
je 0x140150e9c
mov rdx, rbx
shl rdx, 5
mov word [rax + rdx], r13w
mov dword [rax + rdx + 2], r14d
mov word [rax + rdx + 6], bp
mov qword [rax + rdx + 8], r10
movd dword [rax + rdx + 0x10], xmm6
mov r11d, r8d
mov dword [rax + rdx + 0x14], r8d
mov r8d, dword [rsp + 0x30]
mov dword [rax + rdx + 0x18], r8d
mov word [rax + rdx + 0x1c], r12w
inc rbx
mov qword [rsp + 0xd0], rbx
test r15, r15
jne 0x140150da4
jmp 0x140150ed7
mov rdx, rbx
mov dword [rsp + 0x24], r9d
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x40], r10
call fcn.14015bc70
mov r10, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x28]
lea rcx, [rsp + 0xc0]
mov r9d, dword [rsp + 0x24]
mov rax, qword [rsp + 0xc8]
jmp 0x140150e4d
mov rcx, rdi
call sub.ws2_32.dll_freeaddrinfo
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xd0]
shl rax, 5
add rax, rcx
mov qword [rsi], rcx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rax
jmp 0x140150a0d
call fcn.14015cd30
lea rax, [rsp + 0x22]
mov qword [rsp + 0x68], rax
cmp rbx, 0x17f
jbe 0x140150ad0
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call fcn.14015bdf0
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
jmp 0x140150c34
ud2