Function at 0x401c9e
Capabilities:
Register network filter via wfp api

Disassembly:
push rbp
push rdi
sub rsp, 0x3b8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x350], rcx
mov dword [rbp + 0x32c], 0
mov qword [rbp + 0x318], 0
lea rdx, [rbp + 0x110]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x328], 0x104
mov qword [rbp + 0xe0], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xf0], 0
mov qword [rbp + 0xf8], 0
mov qword [rbp + 0x100], 0
lea rdx, [rbp + 0x10]
mov eax, 0
mov ecx, 0x19
mov rdi, rdx
rep stosq qword [rdi], rax
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 8], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov dword [rbp + 0x324], 0
lea rax, [rbp + 0x318]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0xffffffff
mov ecx, 0
call sym.FwpmEngineOpen0
mov dword [rbp + 0x32c], eax
cmp dword [rbp + 0x32c], 0
je 0x401df0
mov eax, dword [rbp + 0x32c]
mov edx, eax
lea rcx, str.blah_blah_____F_w_pmEngineOpen0_failed_with_error_code:_0x_x._n
call sym.printf
jmp 0x402166
lea rax, [rbp + 0x110]
mov r8d, 0x104
mov rdx, rax
mov rcx, qword [rbp + 0x350]
call sym.CharArrayToWCharArray
lea rdx, [rbp - 0x48]
lea rax, [rbp + 0x110]
mov rcx, rax
call sym.CustomFwpmGetAppIdFromFileName0
mov dword [rbp + 0x324], eax
cmp dword [rbp + 0x324], 0
je 0x401ee4
cmp dword [rbp + 0x324], 5
ja case.0x401e64.0
mov eax, dword [rbp + 0x324]
lea rdx, [rax*4]
lea rax, [0x00406b4c]
mov eax, dword [rdx + rax]
movsxd rdx, eax
lea rax, [0x00406b4c]
add rax, rdx
jmp rax
lea rax, [rbp + 0x110]
mov rdx, rax
lea rcx, str.blah_blah_____CustomF_w_pmGetAppIdFromFileName0_failed_to_convert_the___S__to_app_ID_format._The_file_path_cannot_be_found._n
call sym.printf
jmp 0x401edf
lea rax, [rbp + 0x110]
mov rdx, rax
lea rcx, str.blah_blah_____CustomF_w_pmGetAppIdFromFileName0_failed_to_convert_the___S__to_app_ID_format._Error_occurred_in_allocating_memory_for_appId._n
call sym.printf
jmp 0x401edf
lea rax, [rbp + 0x110]
mov rdx, rax
lea rcx, str.blah_blah_____CustomF_w_pmGetAppIdFromFileName0_failed_to_convert_the___S__to_app_ID_format._Please_check_your_input._n
call sym.printf
jmp 0x401edf
lea rax, [rbp + 0x110]
mov rdx, rax
lea rcx, str.blah_blah_____CustomF_w_pmGetAppIdFromFileName0_failed_to_convert_the___S__to_app_ID_format._The_drive_name_cannot_be_found._n
call sym.printf
jmp 0x401edf
lea rax, [rbp + 0x110]
mov rdx, rax
lea rcx, str.blah_blah_____CustomF_w_pmGetAppIdFromFileName0_failed_to_convert_the___S__to_app_ID_format._Failed_to_convert_drive_name_to_DOS_device_name._n
call sym.printf
jmp 0x401edf
nop
jmp 0x402166
mov rax, qword [str.Custom_Outbound_Filter]
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x30], 1
mov dword [rbp + 0x50], 0xc38d57d1
mov word [rbp + 0x54], 0x5a7
mov word [rbp + 0x56], 0x4c33
mov byte [rbp + 0x58], 0x90
mov byte [rbp + 0x59], 0x4f
mov byte [rbp + 0x5a], 0x7f
mov byte [rbp + 0x5b], 0xbc
mov byte [rbp + 0x5c], 0xee
mov byte [rbp + 0x5d], 0xe6
mov byte [rbp + 0x5e], 0xe
mov byte [rbp + 0x5f], 0x82
mov dword [rbp + 0x90], 0x1001
mov dword [rbp + 0xe0], 0xd78e1e87
mov word [rbp + 0xe4], 0x8644
mov word [rbp + 0xe6], 0x4ea5
mov byte [rbp + 0xe8], 0x94
mov byte [rbp + 0xe9], 0x37
mov byte [rbp + 0xea], 0xd8
mov byte [rbp + 0xeb], 9
mov byte [rbp + 0xec], 0xec
mov byte [rbp + 0xed], 0xef
mov byte [rbp + 0xee], 0xc9
mov byte [rbp + 0xef], 0x71
mov dword [rbp + 0xf0], 0
mov dword [rbp + 0xf8], 0xc
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x100], rax
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x88], rax
mov dword [rbp + 0x80], 1
mov rax, qword [str.Microsoft_Windows_W_F_P_Built_in_custom_provider.]
lea rdx, [rbp - 0x40]
mov rcx, rax
call sym.GetProviderGUIDByDescription
test eax, eax
je 0x401fdf
lea rax, [rbp - 0x40]
mov qword [rbp + 0x38], rax
jmp 0x402059
mov rax, qword [str.Microsoft_Corporation]
mov qword [rbp - 0x20], rax
mov rax, qword [str.Microsoft_Windows_W_F_P_Built_in_custom_provider.]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], 1
mov rax, qword [rbp + 0x318]
lea rdx, [rbp - 0x30]
mov r8d, 0
mov rcx, rax
call sym.FwpmProviderAdd0
mov dword [rbp + 0x32c], eax
cmp dword [rbp + 0x32c], 0
je 0x40203a
mov eax, dword [rbp + 0x32c]
mov edx, eax
lea rcx, str.blah_blah_____FwpmProviderAdd0_failed_with_error_code:_0x_x._n
call sym.printf
jmp 0x402059
mov rax, qword [str.Microsoft_Windows_W_F_P_Built_in_custom_provider.]
lea rdx, [rbp - 0x40]
mov rcx, rax
call sym.GetProviderGUIDByDescription
test eax, eax
je 0x402059
lea rax, [rbp - 0x40]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x318]
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x10]
mov r9, rcx
mov r8d, 0
mov rcx, rax
call sym.FwpmFilterAdd0
mov dword [rbp + 0x32c], eax
cmp dword [rbp + 0x32c], 0
jne 0x4020a4
mov rax, qword [rbp - 0x50]
mov r8, rax
mov rdx, qword [rbp + 0x350]
lea rcx, str.blah_blah_Added_WFP_filter_for___s___Filter_id:__d__IPv4_layer_._n
call sym.printf
jmp 0x4020b8
mov eax, dword [rbp + 0x32c]
mov edx, eax
lea rcx, str.blah_blah_____Failed_to_add_filter_in_IPv4_layer_with_error_code:_0x_x._n
call sym.printf
mov dword [rbp + 0x50], 0x4a72393b
mov word [rbp + 0x54], 0x319f
mov word [rbp + 0x56], 0x44bc
mov byte [rbp + 0x58], 0x84
mov byte [rbp + 0x59], 0xc3
mov byte [rbp + 0x5a], 0xba
mov byte [rbp + 0x5b], 0x54
mov byte [rbp + 0x5c], 0xdc
mov byte [rbp + 0x5d], 0xb3
mov byte [rbp + 0x5e], 0xb6
mov byte [rbp + 0x5f], 0xb4
mov rax, qword [rbp + 0x318]
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x10]
mov r9, rcx
mov r8d, 0
mov rcx, rax
call sym.FwpmFilterAdd0
mov dword [rbp + 0x32c], eax
cmp dword [rbp + 0x32c], 0
jne 0x402136
mov rax, qword [rbp - 0x50]
mov r8, rax
mov rdx, qword [rbp + 0x350]
lea rcx, str.blah_blah_Added_WFP_filter_for___s___Filter_id:__d__IPv6_layer_._n
call sym.printf
jmp 0x40214a
mov eax, dword [rbp + 0x32c]
mov edx, eax
lea rcx, str.blah_blah_____Failed_to_add_filter_in_IPv6_layer_with_error_code:_0x_x._n
call sym.printf
mov rax, qword [rbp - 0x48]
mov rcx, rax
call sym.FreeAppId
mov rax, qword [rbp + 0x318]
mov rcx, rax
call sym.FwpmEngineClose0
nop
add rsp, 0x3b8
pop rdi
pop rbp
ret