Function at 0x404710
Capabilities:
Check os version
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22f4
call fcn.0042b0f0
mov eax, dword [0x446044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7fe
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x111e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x1120], ax
call fcn.00426670
add esp, 0xc
push 0x103
lea edx, [ebp - 0x51f]
push ebx
push edx
mov byte [ebp - 0x520], bl
call fcn.00426670
add esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x520]
push str._advfirewall_firewall_delete_rule_name__s_
push eax
call esi
mov eax, 2
add esp, 0xc
cmp dword [0xc97d30], eax
jbe 0x404797
lea edi, [ebx + 0x64]
cmp dword [0xc97d1c], eax
ja 0x40479c
mov edi, 0x3e8
push 0x103
lea ecx, [ebp - 0x417]
push ebx
push ecx
mov byte [ebp - 0x418], bl
call fcn.00426670
add esp, 0xc
push 0x103
lea edx, [ebp - 0x30f]
push ebx
push edx
mov byte [ebp - 0x310], bl
call fcn.00426670
add esp, 0xc
push 0x104
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x520]
push ecx
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x418]
push str.__s_system32_netsh.exe___s
push eax
call esi
xor eax, eax
add esp, 0x10
lea ecx, [ebp - 0x2260]
push ecx
mov byte [ebp - 0x22a0], bl
mov dword [ebp - 0x229f], eax
mov dword [ebp - 0x229b], eax
mov dword [ebp - 0x2297], eax
mov dword [ebp - 0x2293], eax
mov word [ebp - 0x228f], ax
mov byte [ebp - 0x228d], al
mov dword [ebp - 0x228c], ebx
mov dword [ebp - 0x2288], eax
mov dword [ebp - 0x2284], eax
xor esi, esi
mov dword [ebp - 0x2260], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x2250], 2
jne 0x4048ab
push 1
lea edx, [ebp - 0x22a0]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push ebx
push 1
lea eax, [ebp - 0x22a0]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x22a0]
mov dword [ebp - 0x228c], 0xc
mov dword [ebp - 0x2284], 1
mov dword [ebp - 0x2288], ecx
lea esi, [ebp - 0x228c]
push ebx
push esi
lea edx, [ebp - 0x226c]
push edx
lea eax, [ebp - 0x2264]
push eax
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x226c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40493d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x2264]
cmp eax, ebx
je 0x4048f2
push eax
call esi
mov dword [ebp - 0x2264], ebx
mov eax, dword [ebp - 0x226c]
cmp eax, ebx
je 0x404905
push eax
call esi
mov dword [ebp - 0x226c], ebx
push edi
lea ecx, [ebp - 0x1120]
push 0x4389f0
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x1120]
add esp, 0xc
push edx
call fcn.00403960
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2264]
push ebx
push ebx
lea eax, [ebp - 0x22a8]
push eax
push ecx
mov dword [ebp - 0x22a8], 1
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push 0x44
xor eax, eax
lea edx, [ebp - 0x22f0]
push ebx
push edx
mov dword [ebp - 0x2280], ebx
mov dword [ebp - 0x227c], eax
mov dword [ebp - 0x2278], eax
mov dword [ebp - 0x2274], eax
call fcn.00426670
add esp, 0xc
lea ecx, [ebp - 0x2280]
push ecx
lea edx, [ebp - 0x22f0]
push edx
push ebx
push ebx
push ebx
xor eax, eax
push 1
mov word [ebp - 0x22c0], ax
mov eax, dword [ebp - 0x226c]
push ebx
mov dword [ebp - 0x22b4], eax
mov dword [ebp - 0x22b0], eax
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
mov dword [ebp - 0x22f0], 0x44
mov dword [ebp - 0x22c4], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor esi, esi
cmp edi, ebx
jbe 0x404a07
mov ecx, dword [ebp - 0x2280]
push 0x32
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x2264]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x404a07
inc esi
cmp esi, edi
jb 0x4049e1
push 0x100000
xor edi, edi
call fcn.0041ffaf
add esp, 4
push 0x100000
push ebx
push eax
mov dword [ebp - 0x2270], eax
call fcn.00426670
add esp, 0xc
push 0x1027
lea eax, [ebp - 0x2147]
push ebx
push eax
mov byte [ebp - 0x2148], bl
call fcn.00426670
mov ecx, dword [ebp - 0x2264]
add esp, 0xc
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x404af0
push 0x1027
lea edx, [ebp - 0x2148]
push ebx
push edx
call fcn.00426670
mov edx, dword [ebp - 0x2264]
add esp, 0xc
push ebx
lea eax, [ebp - 0x2268]
push eax
push 0x1026
lea ecx, [ebp - 0x2148]
push ecx
push edx
mov dword [ebp - 0x2268], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2268]
cmp eax, ebx
jbe 0x404ac8
lea esi, [eax + edi]
cmp esi, 0x100000
jae 0x404af0
mov ecx, dword [ebp - 0x2270]
push eax
lea eax, [ebp - 0x2148]
push eax
add ecx, edi
push ecx
call fcn.004259e0
add esp, 0xc
mov edi, esi
mov edx, dword [ebp - 0x2280]
push 0x1f40
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x2264]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x404a5c
mov ecx, dword [ebp - 0x227c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2280]
push edx
mov dword [ebp - 0x227c], ebx
call esi
mov eax, dword [ebp - 0x2264]
push eax
mov dword [ebp - 0x2280], ebx
call esi
mov ecx, dword [ebp - 0x226c]
push ecx
mov dword [ebp - 0x2264], ebx
call esi
mov esi, dword [ebp - 0x2270]
push 0x438a64
push esi
mov dword [ebp - 0x226c], ebx
call fcn.00420080
push 0x438a6c
push esi
mov edi, eax
call fcn.00420080
push 0x438a70
push esi
mov dword [ebp - 0x2268], eax
call fcn.00420080
push str.No_rules_match
push esi
mov dword [ebp - 0x22a4], eax
call fcn.00420080
add esp, 0x20
cmp edi, ebx
jne 0x404b93
cmp dword [ebp - 0x2268], ebx
jne 0x404b93
cmp dword [ebp - 0x22a4], ebx
jne 0x404b93
mov dword [ebp - 0x2268], ebx
cmp eax, ebx
je 0x404b9d
mov dword [ebp - 0x2268], 1
push 0x1ff
lea edx, [ebp - 0x207]
push ebx
push edx
mov byte [ebp - 0x208], bl
call fcn.00426670
add esp, 0xc
push 0x3fe
lea ecx, [ebp - 0x91e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x920], ax
call fcn.00426670
add esp, 0xc
push 0x1fe
push esi
lea edx, [ebp - 0x208]
push 0x200
push edx
call fcn.004204d3
lea eax, [ebp - 0x208]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404c00
sub eax, edx
xor edx, edx
cmp eax, ebx
jbe 0x404c33
nop
mov cl, byte [ebp + edx - 0x208]
cmp cl, 0xd
je 0x404c26
cmp cl, 0xa
je 0x404c26
cmp cl, 9
jne 0x404c2e
mov byte [ebp + edx - 0x208], 0x20
inc edx
cmp edx, eax
jb 0x404c10
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fb0f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x404cb8
lea eax, [edi + edi + 2]
push eax
push ebx
push esi
call fcn.00426670
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x208]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov word [esi + edi*2], dx
lea edx, [ebp - 0x920]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x404ca0
push esi
call fcn.0041ef34
add esp, 4
mov esi, dword [ebp - 0x2270]
push 0x100000
push ebx
push esi
call fcn.00426670
add esp, 0xc
push esi
call fcn.00420138
mov esi, dword [ebp - 0x2268]
add esp, 4
cmp esi, ebx
je 0x404cf5
lea eax, [ebp - 0x920]
push eax
push str._DeleteFwRuleCMM_
lea ecx, [ebp - 0x1120]
push ecx
jmp 0x404d08
lea edx, [ebp - 0x920]
push edx
push 0x438ad8
lea eax, [ebp - 0x1120]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x1120]
add esp, 0xc
push ecx
call fcn.00403960
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e7be
mov esp, ebp
pop ebp
ret