Function at 0x14000884c
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movzx esi, dx
movzx edi, cx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_downlevel_ole32_l1_1_1.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x1400088aa
mov rcx, qword [rbp + 0x5f]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbhttpsrvexe_service.cpp
mov edx, 0x4c
call fcn.140003684
jmp 0x140008b28
mov byte [rbp - 0x30], 1
and qword [rbp - 0x39], 0
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [0x1400fc940]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400fc930]
call qword [sym.imp.api_ms_win_downlevel_ole32_l1_1_1.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x1400088f9
mov rcx, qword [rbp + 0x5f]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbhttpsrvexe_service.cpp
mov edx, 0x53
call fcn.140003684
jmp 0x140008b06
and qword [rbp - 0x41], 0
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
lea rdx, [rbp - 0x41]
mov rax, qword [rax + 0x90]
call qword [0x1400f5e38]
mov ebx, eax
test eax, eax
jns 0x140008939
mov rcx, qword [rbp + 0x5f]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbhttpsrvexe_service.cpp
mov edx, 0x58
call fcn.140003684
jmp 0x140008aea
lea rax, str._firewallapi.dll__60050
mov qword [rbp - 0x19], rax
mov word [rbp - 0x11], di
lea rax, str._firewallapi.dll__60051
mov qword [rbp - 9], rax
mov word [rbp - 1], si
lea rax, str._firewallapi.dll__60052
mov qword [rbp + 7], rax
mov word [rbp + 0xf], di
lea rax, str._firewallapi.dll__60053
mov qword [rbp + 0x17], rax
mov word [rbp + 0x1f], si
lea rbx, [rbp - 0x19]
mov esi, 0xa
and qword [rbp - 0x59], 0
mov rdx, qword [rbx]
lea rcx, [rbp - 0x49]
call fcn.140013e98
nop
mov rdi, qword [rbp - 0x41]
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1400089af
and qword [rbp - 0x59], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
mov rax, qword [rdi]
lea r8, [rbp - 0x59]
mov rdx, qword [rbp - 0x49]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [0x1400f5e38]
test eax, eax
js 0x140008aac
and qword [rbp - 0x51], 0
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
lea rdx, [rbp - 0x51]
mov rax, qword [rax + 0x38]
call qword [0x1400f5e38]
test eax, eax
js 0x140008a9c
movzx ecx, word [rbx + 8]
mov r9d, esi
mov r8, rsi
lea rdx, [rbp + 0x27]
call qword [sym.imp.msvcrt.dll__ultow_s]
test eax, eax
jne 0x140008a9c
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
or edx, 0xffffffff
mov rax, qword [rax + 0x110]
call qword [0x1400f5e38]
test eax, eax
js 0x140008a9c
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
lea rdx, [rbp + 0x27]
mov rax, qword [rax + 0x90]
call qword [0x1400f5e38]
test eax, eax
js 0x140008a9c
cmp dword [0x140142444], 4
jb 0x140008a66
lea r9, [rbp + 0x27]
mov r8, qword [rbp - 0x51]
lea rdx, str.Updated_firewall_rule__S:_port___S.
mov ecx, 4
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140008a9c
test byte [rcx + 0x1c], 2
je 0x140008a9c
cmp byte [rcx + 0x19], 4
jb 0x140008a9c
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x51]
mov rcx, qword [rcx + 0x10]
call fcn.140008794
nop
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140008aac
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140008abc
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140008ad7
and qword [rbp - 0x59], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
add rbx, 0x10
lea rax, [rbp + 0x27]
cmp rbx, rax
jne 0x14000897e
xor ebx, ebx
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140008b06
and qword [rbp - 0x41], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
nop
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140008b22
and qword [rbp - 0x39], 0
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x1400f5e38]
nop
call qword [sym.imp.api_ms_win_downlevel_ole32_l1_1_1.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret