Function at 0x1400a9d64
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r12, r8
mov r15, rcx
and qword [rbp + 0x30], 0
lea rcx, [rbp - 0x30]
call fcn.14006c728
nop
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x40], rax
mov rbx, qword [rbp - 0x30]
or edi, 0xffffffff
cmp dword [rbx - 8], 0
jle 0x1400a9dbd
lea edx, [rdi + 0x41]
mov rcx, rbx
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
jne 0x1400a9dc1
mov eax, edi
jmp 0x1400a9dc7
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea r14, [rbx - 0xc]
mov r9d, dword [r14 + 4]
sub r9d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.14006eaa0
nop
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.14006c8f4
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x1400a9e1c
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400a9e1c
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
call fcn.1400b0a54
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x50], rax
mov r8, qword [rbp - 0x40]
lea rdx, str.Quering_MX_record_of_domain__s
lea rcx, [rbp - 0x50]
call fcn.14006d4dc
mov rbx, qword [rbp - 0x50]
lea rdi, [rbx - 0xc]
mov esi, 1
cmp dword [rdi], 0
jl 0x1400a9e56
mov qword [rbp + 0x48], rbx
lock add dword [rdi], esi
jmp 0x1400a9e78
mov rax, qword [0x1400ef018]
mov qword [rbp + 0x48], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp + 0x48]
call fcn.14006b5e4
mov r9b, sil
mov r8d, 2
lea rdx, [rbp + 0x48]
mov rcx, qword [r15 + 0x28]
call fcn.140070150
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 - 0x40]
call sub.DNSAPI.dll_DnsQuery_W
mov rcx, qword [rbp + 0x30]
mov rbx, rcx
test eax, eax
jne 0x1400a9f43
test rcx, rcx
je 0x1400a9f35
lea r15d, [rax + 0xf]
cmp word [rcx + 0x10], r15w
jne 0x1400a9f29
mov rdx, qword [rcx + 0x20]
lea rcx, [rbp - 0x28]
call fcn.14006c728
nop
mov r8, qword [rbp + 0x30]
add r8, 0x28
lea rdx, [rbp - 0x18]
mov rcx, r12
call fcn.1400a8fe0
mov rcx, qword [rax]
add rcx, 0x28
lea rdx, [rbp - 0x28]
call fcn.14006c8f4
nop
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x1400a9f25
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x1400a9f25
call fcn.1400b0a54
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx]
mov qword [rbp + 0x30], rcx
test rcx, rcx
jne 0x1400a9ec9
mov edx, esi
mov rcx, rbx
call sub.DNSAPI.dll_DnsFree
xor esi, esi
jmp 0x1400a9fa5
mov r8d, eax
lea rdx, str.DNS_query_failed_with_code__d
lea rcx, [rbp - 0x50]
call fcn.14006d4dc
mov rbx, qword [rbp - 0x50]
lea rdi, [rbx - 0xc]
cmp dword [rdi], 0
jl 0x1400a9f6c
mov qword [rbp - 0x48], rbx
lock add dword [rdi], esi
jmp 0x1400a9f8e
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x48], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.14006b5e4
mov r9b, sil
mov r8d, 2
lea rdx, [rbp - 0x48]
mov rcx, qword [r15 + 0x28]
call fcn.140070150
nop
or ebx, 0xffffffff
cmp rdi, qword [0x1400ef010]
je 0x1400a9fc6
mov eax, ebx
lock xadd dword [rdi], eax
add eax, ebx
test eax, eax
jg 0x1400a9fc6
mov rcx, rdi
call fcn.1400b0a54
nop
mov rcx, qword [rbp - 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x1400a9fe9
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400a9fe9
call fcn.1400b0a54
nop
cmp r14, qword [0x1400ef010]
je 0x1400aa007
mov edx, ebx
lock xadd dword [r14], edx
add edx, ebx
test edx, edx
jg 0x1400aa007
mov rcx, r14
call fcn.1400b0a54
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 r12
pop rdi
pop rbp
ret