Function at 0x140085b70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xorps xmm0, xmm0
mov dword [rbp - 0x68], edx
xorps xmm1, xmm1
mov qword [rbp - 0x78], pe_nt_image_headers64
xor r14d, r14d
movdqa xmmword [rbp - 0x60], xmm0
movzx eax, cl
mov qword [rsp + 0x38], r14
movzx ebx, cl
mov qword [rsp + 0x40], r14
mov rdi, r8
mov dword [rbp - 0x70], r14d
xor sil, sil
mov dword [rbp - 0x64], r14d
neg al
movdqa xmmword [rbp - 0x50], xmm1
lea r9, [rsp + 0x30]
movdqa xmmword [rbp - 0x40], xmm0
sbb ecx, ecx
movdqa xmmword [rbp - 0x30], xmm1
add ecx, 0xb
movdqa xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x80], ecx
lea rdx, [rbp - 0x80]
mov rcx, rdi
movdqa xmmword [rbp - 0x10], xmm1
mov r8d, pe_nt_image_headers64
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm1
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmmword [rbp + 0x50], xmm1
movdqa xmmword [rbp + 0x60], xmm0
movdqa xmmword [rbp + 0x70], xmm1
movdqa xmmword [rbp + 0x80], xmm0
movdqa xmmword [rbp + 0x90], xmm1
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140085d71
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r14
lea r8d, [r14 + 0x20]
mov rcx, rdi
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140085d71
cmp dword [rsp + 0x70], r14d
je 0x140085d25
lea ecx, [r14 + 0x40]
call fcn.14000e3d0
test al, al
je 0x140085dfb
mov ecx, dword [rsp + 0x70]
lea rdx, [rsp + 0x38]
call fcn.14000ebf0
mov r9, rax
lea r8, str.deleting
lea rax, str.adding
test bl, bl
lea rdx, str.Block_DNS:__s_block_dns_filters_using_service_failed:__s__status0x_x_if_index_d_
cmovne r8, rax
lea ecx, [r14 + 0x40]
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.14000e000
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140085cf7
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140085ce6
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140085dfb
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rdi]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140085d05
jmp 0x140085dfb
cmp dword [0x1400cfe94], 1
mov sil, 1
jb 0x140085dfb
mov ecx, 1
call fcn.14000e3d0
test al, al
je 0x140085dfb
test bl, bl
lea rax, str.Blocking
lea r8, str.Unblocking
mov ecx, 1
cmovne r8, rax
lea rdx, str._s_outside_dns_using_service_succeeded.
call fcn.14000e000
jmp 0x140085dfb
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x140085dfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x48]
call fcn.14000ebf0
mov r9, rax
mov dword [rsp + 0x20], ebx
lea r8, str.Block_DNS
mov ecx, 0x40
lea rdx, str._s:_could_not_talk_to_service:__s___lu_
call fcn.14000e000
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140085dd3
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140085dc2
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140085dfb
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rbx]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x140085de0
movzx eax, sil
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140088150
add rsp, 0x1b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret