Function at 0x1400b7e6c
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 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.14006874c
nop
mov rax, qword [0x140108018]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0x48]
or r13d, 0xffffffff
cmp dword [rax - 8], 0
jle 0x1400b7ece
lea edx, [r13 + 0x41]
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_wcschr]
test rax, rax
jne 0x1400b7ed3
mov eax, r13d
jmp 0x1400b7eda
sub rax, qword [rbp + 0x48]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x48]
call fcn.14006a8f0
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140068904
nop
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400b7f25
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
test eax, eax
jg 0x1400b7f25
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov rax, qword [0x140108018]
mov qword [rbp - 0x40], rax
mov r8, qword [rbp - 0x38]
lea rdx, str.Quering_MX_record_of_domain__s
lea rcx, [rbp - 0x40]
call fcn.140069514
mov rbx, qword [rbp - 0x40]
lea rdi, [rbx - 0xc]
mov esi, 1
cmp dword [rdi], 0
jl 0x1400b7f5f
mov qword [rbp - 0x30], rbx
lock add dword [rdi], esi
jmp 0x1400b7f81
mov rax, qword [0x140108018]
mov qword [rbp - 0x30], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.140067304
mov r9b, sil
mov r8d, 2
lea rdx, [rbp - 0x30]
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
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 0x1400b8042
test rcx, rcx
je 0x1400b8034
lea r14d, [rax + 0xf]
cmp word [rcx + 0x10], r14w
jne 0x1400b8028
mov rdx, qword [rcx + 0x20]
lea rcx, [rbp - 0x18]
call fcn.14006874c
nop
mov rdx, qword [rbp + 0x30]
add rdx, 0x28
mov rcx, r15
call fcn.1400b7368
mov rcx, rax
lea rdx, [rbp - 0x18]
call fcn.140068904
nop
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400b8024
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
test eax, eax
jg 0x1400b8024
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx]
mov qword [rbp + 0x30], rcx
test rcx, rcx
jne 0x1400b7fce
mov edx, esi
mov rcx, rbx
call sub.DNSAPI.dll_DnsFree
xor esi, esi
jmp 0x1400b80a4
mov r8d, eax
lea rdx, str.DNS_query_failed_with_code__d
lea rcx, [rbp - 0x40]
call fcn.140069514
mov rbx, qword [rbp - 0x40]
lea rdi, [rbx - 0xc]
cmp dword [rdi], 0
jl 0x1400b806b
mov qword [rbp - 0x28], rbx
lock add dword [rdi], esi
jmp 0x1400b808d
mov rax, qword [0x140108018]
mov qword [rbp - 0x28], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x28]
call fcn.140067304
mov r9b, sil
mov r8d, 2
lea rdx, [rbp - 0x28]
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
nop
cmp rdi, qword [0x140108010]
je 0x1400b80c4
mov eax, r13d
lock xadd dword [rdi], eax
add eax, r13d
test eax, eax
jg 0x1400b80c4
mov rcx, rdi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400b80e9
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
test eax, eax
jg 0x1400b80e9
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400b810d
mov edx, r13d
lock xadd dword [rcx], edx
add edx, r13d
test edx, edx
jg 0x1400b810d
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret