Function at 0x140051520
Capabilities:
Access firewall rule properties via inetfwrule

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x68], rcx
call fcn.140067ee0
lea rdx, str._WinFirewallCtrl.addRule:_Dump_rule_
mov rcx, rax
call fcn.140067c10
call fcn.140067ee0
mov r8, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140051581
mov r8, qword [rsi]
lea rdx, str.name_s
mov rcx, rax
call fcn.140067c10
call fcn.140067ee0
lea r8, [rsi + 0x20]
cmp qword [r8 + 0x18], 0xf
jbe 0x1400515a3
mov r8, qword [r8]
lea rdx, str.protocol_s
mov rcx, rax
call fcn.140067c10
call fcn.140067ee0
lea r8, [rsi + 0xa8]
cmp qword [r8 + 0x18], 0xf
jbe 0x1400515c8
mov r8, qword [r8]
lea rdx, str.direction_s
mov rcx, rax
call fcn.140067c10
call fcn.140067ee0
lea r8, [rsi + 0x88]
cmp qword [r8 + 0x18], 0xf
jbe 0x1400515ed
mov r8, qword [r8]
lea rdx, str.action_s
mov rcx, rax
call fcn.140067c10
mov rcx, rsi
call fcn.140052c20
test al, al
je 0x140051638
call fcn.140067ee0
lea r9, [rsi + 0x68]
cmp qword [r9 + 0x18], 0xf
jbe 0x14005161b
mov r9, qword [r9]
lea r8, [rsi + 0x48]
cmp qword [r8 + 0x18], 0xf
jbe 0x140051629
mov r8, qword [r8]
lea rdx, str.remoteAddr_s__s
mov rcx, rax
call fcn.140067c10
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov rcx, qword [r13]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x90]
mov ebx, eax
test eax, eax
js 0x14005186c
xor r12b, r12b
mov qword [rsp + 0x30], r14
mov rdi, qword [rsp + 0x38]
mov rax, qword [rdi]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x60], rax
mov r15, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140051682
mov r15, qword [rsi]
test r15, r15
je 0x140051703
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, 0xffffffff
mov r8, r15
xor edx, edx
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r13d, eax
lea edx, [rax - 1]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
test rax, rax
je 0x1400516e6
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r15
xor edx, edx
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, r13d
jne 0x140051858
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x140051861
mov r14, rbx
mov rax, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
jmp 0x14005170b
mov rbx, r14
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x30]
mov rdx, r14
mov rcx, rdi
call rax
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x140051766
cmp edi, 0x80070002
jne 0x140051968
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14019c968]
xor edx, edx
mov r8d, 1
lea rcx, [0x14019c958]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x1400518c0
mov r12b, 1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov edx, 0x7fffffff
call qword [rax + 0x130]
mov ebx, eax
test eax, eax
js 0x140051914
mov r8, qword [rsp + 0x30]
mov rdx, rsi
mov rcx, r13
call fcn.140051b50
mov ebx, eax
test eax, eax
js 0x1400519bc
test r12b, r12b
je 0x1400517b8
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x30]
call qword [rax + 0x40]
mov ebx, eax
test eax, eax
js 0x140051804
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400517c9
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400517da
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14016ab50
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.140191ec0
mov dword [rsp + 0x20], ebx
lea r9, str.WinFirewallCtrl.addRule:_Add_rule_failed
lea r8, str._s__0x_08lx
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.140040fd0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
int3
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, 0x8007000e
call fcn.1400182c0
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.140191ec0
mov dword [rsp + 0x20], ebx
lea r9, str.WinFirewallCtrl.addRule:_get_Rules_failed
lea r8, str._s__0x_08lx
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.140040fd0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.140191ec0
mov dword [rsp + 0x20], ebx
lea r9, str.WinFirewallCtrl.addRule:_Create_NetFwRule_failed
lea r8, str._s__0x_08lx
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.140040fd0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
int3
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.140191ec0
mov dword [rsp + 0x20], ebx
lea r9, str.WinFirewallCtrl.addRule:_put_Profiles_failed
lea r8, str._s__0x_08lx
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.140040fd0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
int3
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.140191ec0
mov dword [rsp + 0x20], edi
lea r9, str.WinFirewallCtrl.addRule:_Item_failed
lea r8, str._s__0x_08lx
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.140040fd0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
int3
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.140191ec0
mov dword [rsp + 0x20], ebx
lea r9, str.WinFirewallCtrl.addRule:_Set_firewall_rule_failed
lea r8, str._s__0x_08lx
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.140040fd0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
int3