Function at 0x1401cacc0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
test byte [0x1402c6ef0], 1
jne 0x1401caf5f
lock bts qword [0x1402c6ef0], 0x1f
setb al
test al, al
je 0x1401cad0b
test byte [0x1402c6ef0], 1
jne 0x1401caf5f
xor edx, edx
lea rcx, [0x1402c6ef0]
call sym.SystemInformer.exe_PhfWaitForEvent
movzx eax, byte [0x1402caf19]
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
lea rcx, str.dnsapi.dll
mov qword [rsp + 0x50], rsi
xor edx, edx
mov r8d, 0x800
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1401cad89
xor edx, edx
lea rcx, str.dnsapi.dll
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1401cad89
cmp dword [0x1402bff40], 0x3e
nop dword [rax + rax]
jae 0x1401caf11
xor r8d, r8d
lea rcx, str.dnsapi.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x1401caf11
mov qword [rsp + 0x48], rbp
mov rsi, rbx
mov ebp, 0x5a4d
cmp word [rbx], bp
jne 0x1401cadea
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401cadea
cmp dword [rcx + rbx], 0x4550
jne 0x1401cadea
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401cade7
cmp dword [rdx + 4], 0
je 0x1401cade7
xor edi, edi
lea r8, [rbx + rax]
lea r9, str.DnsQuery_W
mov word [rsp + 0x20], di
mov rcx, rbx
call fcn.14017dc40
jmp 0x1401cadee
mov rsi, rbx
xor edi, edi
mov eax, edi
mov qword [0x1402cebc8], rax
cmp word [rbx], bp
jne 0x1401cae47
mov ecx, dword [rsi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401cae47
cmp dword [rcx + rbx], 0x4550
jne 0x1401cae47
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401cae47
cmp dword [rdx + 4], 0
je 0x1401cae47
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsExtractRecordsFromMessage_W
mov rcx, rbx
call fcn.14017dc40
jmp 0x1401cae4a
mov rax, rdi
mov qword [0x1402cebc0], rax
cmp word [rbx], bp
jne 0x1401caea7
mov ecx, dword ds:[rsi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401caea7
cmp dword [rcx + rbx], 0x4550
jne 0x1401caea7
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401caea7
cmp dword [rdx + 4], 0
je 0x1401caea7
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsWriteQuestionToBuffer_W
mov rcx, rbx
call fcn.14017dc40
jmp 0x1401caeaa
mov rax, rdi
cmp word [rbx], bp
mov rbp, qword [rsp + 0x48]
mov qword [0x1402cebb8], rax
jne 0x1401caf08
mov ecx, dword [rsi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401caf08
cmp dword [rcx + rbx], 0x4550
jne 0x1401caf08
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401caf08
cmp dword [rdx + 4], 0
je 0x1401caf08
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsFree
mov rcx, rbx
call fcn.14017dc40
mov rdi, rax
mov qword [0x1402cebb0], rdi
jmp 0x1401caf18
mov rdi, qword [0x1402cebb0]
cmp qword [0x1402cebc8], 0
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
je 0x1401caf4e
cmp qword [0x1402cebc0], 0
je 0x1401caf4e
cmp qword [0x1402cebb8], 0
nop
je 0x1401caf4e
test rdi, rdi
je 0x1401caf4e
mov byte [0x1402caf19], 1
lea rcx, [0x1402c6ef0]
call sym.SystemInformer.exe_PhfSetEvent
mov rdi, qword [rsp + 0x30]
movzx eax, byte [0x1402caf19]
add rsp, 0x38
ret