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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rsi, qword [rdx + 0x18]
xor r15d, r15d
xor r14b, r14b
mov qword [rsp + 0x38], r15
mov rdi, rdx
movzx ebx, cl
mov qword [rsp + 0x40], r15
cmp qword [rdx + 0x38], r15
jne 0x140079ae3
mov al, 1
jmp 0x140079eff
xorps xmm0, xmm0
mov qword [rbp - 0x78], 0x368
xorps xmm1, xmm1
mov dword [rbp - 0x70], r15d
movzx eax, bl
mov dword [rbp - 0x64], r15d
neg al
movdqa xmmword [rbp - 0x60], xmm0
mov eax, dword [rdx + 0x2b0]
mov r8d, 0xff
mov rdx, qword [rdx + 0x140]
sbb ecx, ecx
add ecx, 6
mov dword [rbp - 0x68], eax
mov dword [rbp - 0x80], ecx
xor eax, eax
lea rcx, [rbp - 0x64]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmmword [rbp - 0x10], xmm1
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
movdqa xmmword [rbp + 0xa0], xmm0
movdqa xmmword [rbp + 0xb0], xmm1
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmmword [rbp + 0xd0], xmm1
movdqa xmmword [rbp + 0xe0], xmm0
movdqa xmmword [rbp + 0xf0], xmm1
movdqa xmmword [rbp + 0x100], xmm0
movdqa xmmword [rbp + 0x110], xmm1
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x130], xmm1
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x150], xmm1
movdqa xmmword [rbp + 0x160], xmm0
movdqa xmmword [rbp + 0x170], xmm1
movdqa xmmword [rbp + 0x180], xmm0
movdqa xmmword [rbp + 0x190], xmm1
movdqa xmmword [rbp + 0x1a0], xmm0
movdqa xmmword [rbp + 0x1b0], xmm1
movdqa xmmword [rbp + 0x1c0], xmm0
movdqa xmmword [rbp + 0x1d0], xmm1
movdqa xmmword [rbp + 0x1e0], xmm0
movdqa xmmword [rbp + 0x1f0], xmm1
movdqa xmmword [rbp + 0x200], xmm0
movdqa xmmword [rbp + 0x210], xmm1
movdqa xmmword [rbp + 0x220], xmm0
movdqa xmmword [rbp + 0x230], xmm1
movdqa xmmword [rbp + 0x240], xmm0
movdqa xmmword [rbp + 0x250], xmm1
movdqa xmmword [rbp + 0x260], xmm0
movdqa xmmword [rbp + 0x270], xmm1
movdqa xmmword [rbp + 0x280], xmm0
mov qword [rbp + 0x290], r15
mov word [rbp + 0x298], r15w
mov dword [rbp + 0x29a], 0x20000
movaps xmmword [rbp + 0x2a0], xmm0
movaps xmmword [rbp + 0x2b0], xmm0
movaps xmmword [rbp + 0x2c0], xmm0
movaps xmmword [rbp + 0x2d0], xmm0
mov qword [rbp + 0x2e0], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rdx, qword [rdi + 0x38]
lea rcx, [rbp + 0x9c]
mov r8d, 0x1ff
mov byte [rbp + 0x9b], r14b
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
cmp dword [0x1400cfe94], 4
mov byte [rbp + 0x29b], r14b
jb 0x140079d1e
mov ecx, 0x34000004
call fcn.14000e3d0
test al, al
je 0x140079d1e
lea rax, str.Setting
test bl, bl
lea r8, str.Deleting
mov ecx, 0x34000004
cmovne r8, rax
lea r9, [rbp - 0x64]
mov eax, dword [rbp - 0x68]
lea rdx, str._s_dns_domain_on__s__if_index___d__using_service
mov dword [rsp + 0x20], eax
call fcn.14000e000
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], r15
mov r8d, 0x368
mov qword [rsp + 0x50], r15
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140079e64
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r15
mov r8d, 0x20
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140079e64
cmp dword [rsp + 0x70], r15d
je 0x140079e20
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x140079efb
mov ecx, dword [rsp + 0x70]
lea rdx, [rsp + 0x38]
call fcn.14000ebf0
mov r9, rax
lea r8, str.deleting
test bl, bl
lea rax, str.adding
lea rdx, str.TUN:__s_dns_domain_failed_using_service:__s__status_u_if_name_s_
mov ecx, 0x40
cmovne r8, rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.14000e000
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140079df2
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 0x140079de1
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140079efb
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 0x140079e00
jmp 0x140079efb
cmp dword [0x1400cfe94], 1
jb 0x140079e5c
mov ecx, 1
call fcn.14000e3d0
test al, al
je 0x140079e5c
test bl, bl
lea rax, [0x1400b6534]
lea r8, str.deleted
mov ecx, 1
cmovne r8, rax
lea rdx, str.DNS_domain__s_using_service
call fcn.14000e000
mov r14b, 1
jmp 0x140079efb
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x140079efb
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, [0x1400b6430]
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 0x140079ed1
nop dword [rax]
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 0x140079ec0
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140079efb
nop dword [rax + 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 0x140079ee0
movzx eax, r14b
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140088150
mov rbx, qword [rsp + 0x440]
add rsp, 0x400
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret