Function at 0x140001c90
Capabilities:
Delete network filter via wfp api

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov esi, ecx
cmp ecx, 2
jl 0x1400020eb
mov rcx, qword [rdi + 8]
lea rdx, [0x1400055b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400020eb
mov rcx, qword [rdi + 8]
lea rdx, str.__help
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400020eb
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r15
xor r15d, r15d
mov qword [rbp - 0x30], r15
mov r14d, r15d
mov dword [rbp - 0x28], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rbp - 0x30]
lea edx, [r15 + 8]
lea r8d, [r15 + 1]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140001dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x140001d80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenThreadToken_failed_with_error_code:_0x_x._n
call fcn.140001010
mov eax, 1
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov r15, qword [rsp + 0x98]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400024e0
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcessToken_failed_with_error_code:_0x_x._n
jmp 0x140001d4a
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x28]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 0x19]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001dfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140001dfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetTokenInformation_failed_with_error_code:_0x_x._n
call fcn.140001010
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001d4f
mov edx, dword [rbp - 0x28]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140001e35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LocalAlloc_failed_with_error_code:_0x_x._n
call fcn.140001010
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001d4f
mov r9d, dword [rbp - 0x28]
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
mov r8, rbx
mov edx, 0x19
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001e84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetTokenInformation_failed_with_error_code:_0x_x._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001d4f
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ecx, byte [rax]
dec cl
movzx edx, cl
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
cmp dword [rax], 0x3000
jb 0x140001eae
mov r14d, 1
jmp 0x140001eba
lea rcx, str.____This_program_requires_to_run_in_high_integrity_level._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
je 0x140001d4f
mov rbx, qword [rdi + 8]
lea rdx, str.blockedr
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001ef9
call fcn.140001070
xor eax, eax
jmp 0x140001d54
mov rcx, r15
lea rdx, str.block
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140001f3c
cmp rcx, 6
jne 0x140001f03
cmp esi, 3
jge 0x140001f2c
lea rcx, str.____Missing_second_argument._Please_provide_the_full_path_of_the_process_to_block._n
call fcn.140001010
jmp 0x140001d4f
mov rcx, qword [rdi + 0x10]
call fcn.140001680
xor eax, eax
jmp 0x140001d54
lea rdx, str.unblockall
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001f5b
call fcn.1400019e0
xor eax, eax
jmp 0x140001d54
mov rcx, r15
lea rdx, str.unblock
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x1400020d7
cmp rcx, 8
jne 0x140001f65
cmp esi, 3
jge 0x140001f92
lea rcx, str.____Missing_argument_for_unblock_command._Please_provide_the_filter_id._n
call fcn.140001010
jmp 0x140001d4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0xa
lea rdx, [rbp - 0x28]
mov dword [rax], r15d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoull]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], r15d
je 0x140001fd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rcx, str.____strtoull_failed_with_error_code:_0x_x._n
mov edx, dword [rax]
jmp 0x140001d4a
mov rax, qword [rdi + 0x10]
cmp qword [rbp - 0x28], rax
jne 0x140001fec
lea rcx, str.____Please_provide_filter_id_in_digits._n
call fcn.140001010
jmp 0x140001d4f
xorps xmm0, xmm0
mov qword [rbp - 0x30], r15
lea rax, [rbp - 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0xffffffff
xor ecx, ecx
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
test eax, eax
je 0x14000202c
mov edx, eax
lea rcx, str.____FwpmEngineOpen0_failed_with_error_code:_0x_x._n
call fcn.140001010
xor eax, eax
jmp 0x140001d54
mov rcx, qword [rbp - 0x30]
mov rdx, rbx
call qword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
test eax, eax
jne 0x14000204e
mov rdx, rbx
lea rcx, str.Deleted_filter_id:__llu._n
call fcn.140001010
jmp 0x140002075
cmp eax, 0x80320003
jne 0x140002063
lea rcx, str.____The_filter_does_not_exist._n
call fcn.140001010
jmp 0x140002075
mov r8d, eax
lea rcx, str.____Failed_to_delete_filter_id:__llu_with_error_code:_0x_x._n
mov rdx, rbx
call fcn.140001010
lea rdx, [rbp - 0x20]
call fcn.140002340
test eax, eax
je 0x1400020c6
mov rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x20]
call qword [sym.imp.fwpuclnt.dll_FwpmProviderDeleteByKey0]
test eax, eax
je 0x1400020ba
cmp eax, 0x8032000a
je 0x1400020c6
mov edx, eax
lea rcx, str.____FwpmProviderDeleteByKey0_failed_with_error_code:_0x_x._n
call fcn.140001010
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
xor eax, eax
jmp 0x140001d54
lea rcx, str.Deleted_custom_WFP_provider._n
call fcn.140001010
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
xor eax, eax
jmp 0x140001d54
mov rdx, rbx
lea rcx, str.____Invalid_argument:___s_._n
call fcn.140001010
jmp 0x140001d4f
call fcn.140001c10
mov eax, 1
jmp 0x140001d6c