Function at 0x1400a8b54
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r15, r8
mov r14, rcx
and qword [rbp + 0x30], 0
lea rcx, [rbp + 0x48]
call fcn.140067e3c
nop
mov rax, qword [0x140174018]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0x48]
or r13d, 0xffffffff
cmp dword [rax - 8], 0
jle 0x1400a8bb8
lea edx, [r13 + 0x41]
mov rcx, rax
call fcn.1400b2680
test rax, rax
jne 0x1400a8bbd
mov eax, r13d
jmp 0x1400a8bc4
sub rax, qword [rbp + 0x48]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x48]
call fcn.140069d14
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140067f7c
nop
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x1400a8c0f
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
test eax, eax
jg 0x1400a8c0f
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff4
call fcn.1400b0230
mov rax, qword [0x140174018]
mov qword [rbp - 0x48], rax
mov r8, qword [rbp - 0x38]
lea rdx, str.Quering_MX_record_of_domain__s
lea rcx, [rbp - 0x48]
call fcn.14006895c
mov rbx, qword [rbp - 0x48]
lea rdi, [rbx - 0xc]
mov esi, 1
cmp dword [rdi], 0
jl 0x1400a8c49
mov qword [rbp - 0x50], rbx
lock add dword [rdi], esi
jmp 0x1400a8c6b
mov rax, qword [0x140174018]
mov qword [rbp - 0x50], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400670f0
mov r9b, sil
mov r8d, 2
lea rdx, [rbp - 0x50]
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
mov edx, reloc.WS2_32.dll_ntohs
and qword [rsp + 0x28], 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x38]
call sub.DNSAPI.dll_DnsQuery_W
mov rcx, qword [rbp + 0x30]
mov rbx, rcx
test eax, eax
jne 0x1400a8d39
test rcx, rcx
je 0x1400a8d2b
lea r14d, [rax + 0xf]
cmp word [rcx + 0x10], r14w
jne 0x1400a8d1f
mov rdx, qword [rcx + 0x20]
lea rcx, [rbp - 0x28]
call fcn.140067e3c
nop
mov r8, qword [rbp + 0x30]
add r8, 0x28
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.1400a7fbc
mov rcx, qword [rbp - 0x10]
add rcx, 0x28
lea rdx, [rbp - 0x28]
call fcn.140067f7c
nop
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x1400a8d1b
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
test eax, eax
jg 0x1400a8d1b
call fcn.1400b0230
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx]
mov qword [rbp + 0x30], rcx
test rcx, rcx
jne 0x1400a8cbc
mov edx, esi
mov rcx, rbx
call sub.DNSAPI.dll_DnsFree
xor esi, esi
jmp 0x1400a8d9b
mov r8d, eax
lea rdx, str.DNS_query_failed_with_code__d
lea rcx, [rbp - 0x48]
call fcn.14006895c
mov rbx, qword [rbp - 0x48]
lea rdi, [rbx - 0xc]
cmp dword [rdi], 0
jl 0x1400a8d62
mov qword [rbp - 0x40], rbx
lock add dword [rdi], esi
jmp 0x1400a8d84
mov rax, qword [0x140174018]
mov qword [rbp - 0x40], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.1400670f0
mov r9b, sil
mov r8d, 2
lea rdx, [rbp - 0x40]
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
nop
cmp rdi, qword [0x140174010]
je 0x1400a8dbb
mov eax, r13d
lock xadd dword [rdi], eax
add eax, r13d
test eax, eax
jg 0x1400a8dbb
mov rcx, rdi
call fcn.1400b0230
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x1400a8de0
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
test eax, eax
jg 0x1400a8de0
call fcn.1400b0230
nop
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x1400a8e04
mov edx, r13d
lock xadd dword [rcx], edx
add edx, r13d
test edx, edx
jg 0x1400a8e04
call fcn.1400b0230
mov eax, esi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret