Function at 0x4047e0
Capabilities:
Create process on windows
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x19c], eax
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1a0], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x194], esi
movlpd qword [ebp - 0x1f4], xmm0
movlpd qword [ebp - 0x1ec], xmm0
movlpd qword [ebp - 0x1e4], xmm0
movlpd qword [ebp - 0x1dc], xmm0
movlpd qword [ebp - 0x1d4], xmm0
movlpd qword [ebp - 0x1c6], xmm0
movlpd qword [ebp - 0x1be], xmm0
mov word [ebp - 0x1b6], ax
mov dword [ebp - 0x1f8], 0x44
mov dword [ebp - 0x1cc], 1
mov word [ebp - 0x1c8], ax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x198], edi
movups xmmword [ebp - 0x1b4], xmm0
cmp ecx, 1
jne 0x404906
movups xmm0, xmmword [str.cmd__K_netsh.exe_advfirewall_show_currentprofile]
mov al, byte [0x41757c]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x5c], al
lea edx, [ecx + 1]
movups xmmword [ebp - 0x8c], xmm0
movups xmm0, xmmword [0x41755c]
movups xmmword [ebp - 0x7c], xmm0
movups xmm0, xmmword [0x41756c]
movups xmmword [ebp - 0x6c], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4048c8
sub ecx, edx
lea eax, [ecx + 0x208]
push eax
push 0x40
call fcn.00405c20
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x194], eax
mov edx, eax
add esp, 8
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4048f4
jmp 0x404a81
cmp ecx, 2
je 0x404914
cmp ecx, 3
jne 0x404a81
mov ax, word [0x416398]
mov word [ebp - 8], ax
mov al, byte [0x41639a]
mov byte [ebp - 6], al
movups xmm0, xmmword [0x416388]
movups xmmword [ebp - 0x18], xmm0
cmp ecx, 2
jne 0x4049c2
mov ecx, 0x20
lea edi, [ebp - 0x110]
mov esi, str.cmd__K_netsh.exe_advfirewall_firewall_add_rule_name___APPLONGNAME____dirin_actionallow_program___APPEXELOCATION____enableyes
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
movsw word es:[edi], word [esi]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404957
sub ecx, edx
lea edx, [ebp - 0x18]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404966
sub edx, esi
mov esi, dword [ebp - 0x19c]
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404978
sub esi, edi
add ecx, 0x208
lea eax, [esi + edx]
add eax, ecx
push eax
push 0x40
call fcn.00405c20
mov esi, eax
lea ecx, [ebp - 0x110]
mov edx, esi
mov dword [ebp - 0x194], esi
mov eax, ecx
add esp, 8
sub edx, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4049b0
jmp 0x404a50
cmp ecx, 3
jne 0x404a56
mov ecx, 0x19
lea edi, [ebp - 0xf4]
mov esi, str.cmd__K_netsh.exe_advfirewall_firewall_delete_rule_name___APPLONGNAME____program___APPEXELOCATION___
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xf4]
lea edx, [ecx + 1]
movsw word es:[edi], word [esi]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4049e8
sub ecx, edx
lea edx, [ebp - 0x18]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4049f7
sub edx, esi
mov esi, dword [ebp - 0x19c]
lea edi, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x404a10
sub esi, edi
add ecx, 0x208
lea eax, [esi + edx]
add eax, ecx
push eax
push 0x40
call fcn.00405c20
mov esi, eax
lea ecx, [ebp - 0xf4]
mov edx, esi
mov dword [ebp - 0x194], esi
mov eax, ecx
add esp, 8
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404a43
mov edi, dword [ebp - 0x198]
push 0
push 1
lea eax, [ebp - 0x18]
push eax
push str.__APPLONGNAME__
push esi
call fcn.004069b0
push 0
push 1
push dword [ebp - 0x19c]
push str.__APPEXELOCATION__
push esi
call fcn.004069b0
add esp, 0x28
mov eax, dword [0x41769c]
xor esi, esi
movq xmm0, qword [str.netsh_output]
mov dword [ebp - 0xc], eax
mov al, byte [0x4176a0]
mov byte [ebp - 8], al
lea eax, [ebp - 0x14]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x190]
push str._s_s.txt
push eax
movq qword [ebp - 0x14], xmm0
call edi
add esp, 0x10
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x194]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404ad2
lea eax, [ebp - 0x190]
sub ecx, edx
push eax
mov eax, dword [ebp - 0x194]
add eax, ecx
push str._____s_
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 0x194]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 0x1b4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea eax, [ebp - 0x190]
push eax
call fcn.004021f0
add esp, 4
test eax, eax
jne 0x404b64
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0xa
jge 0x404b64
push 0x1f4
call edi
lea eax, [ebp - 0x190]
inc esi
push eax
call fcn.004021f0
add esp, 4
test eax, eax
je 0x404b44
lea eax, [ebp - 0x190]
push eax
call fcn.004021f0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
test eax, eax
je 0x404d66
cmp dword [ebp - 0x1a0], ebx
je 0x404cee
movups xmm0, xmmword [str._r_n_Show_currentprofile__r_n]
movzx eax, word [0x4176d0]
lea esi, [ebp - 0x58]
mov word [ebp - 0x40], ax
lea ecx, [esi + 1]
mov eax, dword [0x4176dc]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x20], eax
movq xmm0, qword [0x4176c8]
movzx eax, word [0x4176e0]
movq qword [ebp - 0x48], xmm0
movq xmm0, qword [str._r_n_Add_rule__r_n]
mov word [ebp - 0x1c], ax
mov al, byte [0x4176e2]
movq qword [ebp - 0x28], xmm0
movups xmm0, xmmword [str._r_n_Delete_rule__r_n]
mov byte [ebp - 0x1a], al
movzx eax, word [0x4176f4]
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x2c], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x404bf4
sub esi, ecx
lea ecx, [ebp - 0x28]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404c03
sub ecx, edx
lea edx, [ebp - 0x3c]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404c12
sub edx, edi
cmp ecx, edx
mov eax, edx
cmova eax, ecx
cmp esi, eax
ja 0x404c2d
cmp ecx, edx
mov esi, edx
cmova esi, ecx
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00402a00
mov edi, eax
mov eax, dword [ebp - 0x198]
inc eax
add eax, esi
push eax
push 0x40
call fcn.00405c20
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x404c7f
lea ecx, [ebp - 0x58]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404c70
jmp 0x404cbd
cmp eax, 2
jne 0x404c9f
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404c90
jmp 0x404cbd
cmp eax, 3
jne 0x404cbd
lea ecx, [ebp - 0x3c]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404cb0
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404cc2
push 0
sub ecx, edx
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x198]
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea eax, [ebp - 0x190]
mov esi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x404d66
push 0
push 0
push 0x4176f8
push 0x4176fc
push ebx
call fcn.004069b0
add esp, 0x14
test eax, eax
jne 0x404d01
nop dword [eax]
push 0
push 0
push 0x416b50
push str._r_n_r_n
push ebx
call fcn.004069b0
add esp, 0x14
test eax, eax
jne 0x404d20
push dword [ebp - 0x194]
call fcn.00405c70
push 0x417700
push esi
mov ebx, esi
call fcn.00409070
add esp, 0xc
test eax, eax
je 0x404d74
mov dword [ebp - 0x1a4], 1
jmp 0x404d74
push dword [ebp - 0x194]
call fcn.00405c70
add esp, 4
mov eax, dword [ebp - 0x1a0]
test eax, eax
je 0x404d82
mov dword [eax], ebx
jmp 0x404d8b
push ebx
call fcn.00405c70
add esp, 4
push dword [ebp - 0x1b4]
call edi
push dword [ebp - 0x1b0]
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret