Function at 0x1401578f0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x80]
call fcn.14003eba0
cmp word [rsp + 0x80], 2
jne 0x1401579db
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], r15
mov byte [rsp + 0x100], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xf8], rax
mov dil, 0x3a
mov rbx, r15
jmp 0x140157979
cmp rbx, r15
ja 0x140157a2e
mov cl, 0x3a
mov rdx, r14
mov r8, rbx
call fcn.140041f50
cmp rax, 1
jne 0x140157a2e
mov rbx, rdx
cmp rdx, r15
jae 0x140157970
cmp byte [r14 + rbx], dil
jne 0x140157970
lea r12, [rbx + 1]
lea rdi, [0x141a7ab68]
sub r15, r12
je 0x140157a35
lea rcx, [r14 + rbx]
inc rcx
cmp r15, 1
jne 0x140157a54
movzx eax, byte [rcx]
cmp eax, 0x2b
je 0x140157a35
mov r15d, 1
cmp eax, 0x2d
je 0x140157a35
jmp 0x140157a9b
movzx eax, byte [0x141af8129]
mov edx, 0x20
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x140157f66
movdqu xmm0, xmmword [rsp + 0x80]
movdqu xmm1, xmmword [rsp + 0x90]
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 0x140157a40
lea rdi, [0x141a7ab38]
mov qword [rsi + 8], rdi
mov qword [rsi], 0
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 0x140157a95
inc rcx
lea rax, [r15 - 1]
cmp r15, 6
mov r15, rax
jb 0x140157a9b
xor r8d, r8d
mov r9w, 0xa
xor eax, eax
mul r9w
jo 0x140157a35
movzx edx, byte [rcx + r8]
add edx, 0xffffffd0
cmp edx, 9
ja 0x140157a35
add ax, dx
jb 0x140157a35
inc r8
cmp r15, r8
jne 0x140157a73
jmp 0x140157ac3
cmp r15, 5
jae 0x140157a69
xor edx, edx
xor eax, eax
nop
movzx r8d, byte [rcx + rdx]
add r8d, 0xffffffd0
cmp r8d, 9
ja 0x140157a35
add eax, eax
lea eax, [rax + rax*4]
add eax, r8d
inc rdx
cmp r15, rdx
jne 0x140157aa0
mov word [rsp + 0x2e], ax
mov rax, qword [0x141af8100]
cmp rax, 3
jne 0x140157f26
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x78], rax
cmp rbx, 0x17f
ja 0x140157f42
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0xd8], 0
cmp rbx, 0xe
ja 0x140157b31
xor ecx, ecx
cmp byte [rsp + rcx + 0xd8], 0
je 0x140157bda
inc rcx
cmp r12, rcx
jne 0x140157b16
jmp 0x140157c43
lea rax, [rsp + 0xdf]
and rax, 0xfffffffffffffff8
sub rax, rdi
jne 0x140157b8d
lea rcx, [rbx - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x14021b3e0]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rax + 0xd8]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x140157bb1
add rax, 0x10
cmp rax, rcx
jbe 0x140157b5a
jmp 0x140157bb1
cmp rax, r12
cmovae rax, r12
xor ecx, ecx
cmp byte [rsp + rcx + 0xd8], 0
je 0x140157bda
inc rcx
cmp rax, rcx
jne 0x140157b96
lea rcx, [rbx - 0xf]
cmp rax, rcx
jbe 0x140157b48
sub r12, rax
je 0x140157c43
lea rdx, [rsp + rax]
add rdx, 0xd8
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x140157bd7
inc rcx
cmp r12, rcx
jne 0x140157bc7
jmp 0x140157c43
add rcx, rax
cmp rcx, rbx
jne 0x140157c43
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0xa8], 1
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0xd8]
lea r8, [rsp + 0xa0]
lea r9, [rsp + 0x48]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140157ca5
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x140157c4f
lea rdi, [0x141a7ac10]
mov qword [rsp + 0x60], rdi
mov eax, 1
test rax, rax
jne 0x140157a35
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140157c8f
movzx r8d, word [rsp + 0x70]
mov dword [rsp + 0x3c], r8d
mov rax, qword [rcx + 0x20]
mov r15, qword [rcx + 0x28]
movzx edx, word [rax]
cmp edx, 0x17
je 0x140157ce8
cmp edx, 2
je 0x140157cbd
mov rcx, r15
test r15, r15
jne 0x140157c72
mov rcx, rdi
call sub.ws2_32.dll_freeaddrinfo
mov ecx, 4
xor eax, eax
xor edx, edx
jmp 0x140157f0b
mov rdi, qword [rsp + 0x48]
movzx eax, word [rsp + 0x2e]
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x70], ax
xor eax, eax
jmp 0x140157c54
cmp qword [rcx + 0x10], 0xf
jbe 0x140157f66
movzx ebx, word [rax + 2]
rol bx, 8
mov r13d, dword [rax + 4]
mov r14b, 1
lea rax, [0x141a7ab08]
mov qword [rsp + 0x40], rax
xor r12d, r12d
jmp 0x140157d2e
cmp qword [rcx + 0x10], 0x1b
jbe 0x140157f66
mov ebx, dword [rax + 8]
mov rcx, qword [rax + 0xc]
mov qword [rsp + 0x40], rcx
movzx ebp, word [rax + 2]
rol bp, 8
mov ecx, dword [rax + 0x14]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x34], ecx
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x30], eax
mov r13d, ebx
shl r13d, 0x10
shr ebx, 0x10
mov r12w, 1
xor r14d, r14d
movzx eax, byte [0x141af8129]
mov edx, pe_nt_image_headers64
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x140157f66
test r14b, r14b
mov ecx, dword [rsp + 0x3c]
cmove ebp, ecx
cmovne ebx, ecx
mov word [rax], r12w
mov dword [rax + 2], r13d
mov word [rax + 6], bx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 8], rcx
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0x10], ecx
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x14], ecx
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x18], ecx
mov word [rax + 0x1c], bp
mov qword [rsp + 0xd8], 4
mov qword [rsp + 0xe0], rax
mov ebx, 1
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0xe8], rbx
test r15, r15
je 0x140157eeb
mov rdx, r15
mov r10, qword [rdx + 0x20]
mov r15, qword [rdx + 0x28]
movzx r8d, word [r10]
cmp r8d, 0x17
je 0x140157e0e
cmp r8d, 2
je 0x140157ddf
mov rdx, r15
test r15, r15
jne 0x140157dba
jmp 0x140157eeb
cmp qword [rdx + 0x10], 0xf
jbe 0x140157f66
mov ebp, dword [r10 + 4]
xor r13d, r13d
mov r14d, dword [rsp + 0x3c]
lea rdx, [0x141a7ab08]
movzx r12d, word [rsp + 0x38]
mov r8d, r11d
mov r10d, r9d
mov r9, rdx
jmp 0x140157e55
cmp qword [rdx + 0x10], 0x1b
jbe 0x140157f66
mov r14d, dword [r10 + 8]
mov r9, qword [r10 + 0xc]
movzx edx, word [r10 + 2]
rol dx, 8
mov word [rsp + 0x38], dx
mov r8d, dword [r10 + 0x14]
mov edx, dword [r10 + 4]
mov dword [rsp + 0x40], edx
mov r10d, dword [r10 + 0x18]
mov ebp, r14d
shl ebp, 0x10
shr r14d, 0x10
mov r13w, 1
mov edx, dword [rsp + 0x3c]
mov r12d, edx
cmp rbx, qword [rsp + 0xd8]
je 0x140157eb0
mov rdx, rbx
shl rdx, 5
mov word [rax + rdx], r13w
mov dword [rax + rdx + 2], ebp
mov word [rax + rdx + 6], r14w
mov qword [rax + rdx + 8], r9
mov r11d, r8d
mov dword [rax + rdx + 0x10], r8d
mov r8d, dword [rsp + 0x40]
mov dword [rax + rdx + 0x14], r8d
mov r9d, r10d
mov dword [rax + rdx + 0x18], r10d
mov word [rax + rdx + 0x1c], r12w
inc rbx
mov qword [rsp + 0xe8], rbx
test r15, r15
jne 0x140157db7
jmp 0x140157eeb
mov rdx, rbx
mov dword [rsp + 0x34], r8d
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x50], r9
call fcn.1401463e0
mov r9, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
lea rcx, [rsp + 0xd8]
mov rax, qword [rsp + 0xe0]
jmp 0x140157e5f
mov rcx, rdi
call sub.ws2_32.dll_freeaddrinfo
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xe8]
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 0x140157a40
call fcn.140156380
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x78], rax
cmp rbx, 0x17f
jbe 0x140157af0
lea rcx, [rsp + 0x58]
lea r9, [rsp + 0x78]
mov rdx, r14
mov r8, rbx
call fcn.1401525c0
mov rax, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
jmp 0x140157c54
ud2