Function at 0x1401cb580
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
test byte [0x1402c6f10], 1
jne 0x1401cb81f
lock bts qword [0x1402c6f10], 0x1f
setb al
test al, al
je 0x1401cb5cb
test byte [0x1402c6f10], 1
jne 0x1401cb81f
xor edx, edx
lea rcx, [0x1402c6f10]
call sym.SystemInformer.exe_PhfWaitForEvent
movzx eax, byte [0x1402caf39]
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 0x1401cb649
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 0x1401cb649
cmp dword [0x1402bff40], 0x3e
nop dword [rax + rax]
jae 0x1401cb7d1
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 0x1401cb7d1
mov qword [rsp + 0x48], rbp
mov rsi, rbx
mov ebp, 0x5a4d
cmp word [rbx], bp
jne 0x1401cb6aa
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401cb6aa
cmp dword [rcx + rbx], 0x4550
jne 0x1401cb6aa
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401cb6a7
cmp dword [rdx + 4], 0
je 0x1401cb6a7
xor edi, edi
lea r8, [rbx + rax]
lea r9, str.DnsQuery_W
mov word [rsp + 0x20], di
mov rcx, rbx
call fcn.14017e4c0
jmp 0x1401cb6ae
mov rsi, rbx
xor edi, edi
mov eax, edi
mov qword [0x1402cebe8], rax
cmp word [rbx], bp
jne 0x1401cb707
mov ecx, dword [rsi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401cb707
cmp dword [rcx + rbx], 0x4550
jne 0x1401cb707
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401cb707
cmp dword [rdx + 4], 0
je 0x1401cb707
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsExtractRecordsFromMessage_W
mov rcx, rbx
call fcn.14017e4c0
jmp 0x1401cb70a
mov rax, rdi
mov qword [0x1402cebe0], rax
cmp word [rbx], bp
jne 0x1401cb767
mov ecx, dword ds:[rsi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401cb767
cmp dword [rcx + rbx], 0x4550
jne 0x1401cb767
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401cb767
cmp dword [rdx + 4], 0
je 0x1401cb767
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsWriteQuestionToBuffer_W
mov rcx, rbx
call fcn.14017e4c0
jmp 0x1401cb76a
mov rax, rdi
cmp word [rbx], bp
mov rbp, qword [rsp + 0x48]
mov qword [0x1402cebd8], rax
jne 0x1401cb7c8
mov ecx, dword [rsi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401cb7c8
cmp dword [rcx + rbx], 0x4550
jne 0x1401cb7c8
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401cb7c8
cmp dword [rdx + 4], 0
je 0x1401cb7c8
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsFree
mov rcx, rbx
call fcn.14017e4c0
mov rdi, rax
mov qword [0x1402cebd0], rdi
jmp 0x1401cb7d8
mov rdi, qword [0x1402cebd0]
cmp qword [0x1402cebe8], 0
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
je 0x1401cb80e
cmp qword [0x1402cebe0], 0
je 0x1401cb80e
cmp qword [0x1402cebd8], 0
nop
je 0x1401cb80e
test rdi, rdi
je 0x1401cb80e
mov byte [0x1402caf39], 1
lea rcx, [0x1402c6f10]
call sym.SystemInformer.exe_PhfSetEvent
mov rdi, qword [rsp + 0x30]
movzx eax, byte [0x1402caf39]
add rsp, 0x38
ret