Function at 0x4fde60
Capabilities:
Copy file
Create service
Get common file path
Persist via windows service
Set file attributes

Disassembly:
jmp 0x4fde60
push 0xffffffffffffffff
push 0x78a538
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x31c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x334]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34c]
mov esi, dword [esp + 0x348]
mov edi, dword [esp + 0x350]
mov ebp, dword [esp + 0x344]
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edi
cmp dword [esi + 0x14], eax
je 0x4fe687
cmp dword [edi + 0x14], eax
je 0x4fe687
push edi
call fcn.004045b6
mov byte [esp + 0x16], al
mov byte [esp + 0x15], 0
test al, al
je 0x4fe02b
push 0
mov ecx, ebx
push edi
call fcn.00405d53
cmp byte [esp + 0x354], 0
jne 0x4fdf31
test al, al
jne 0x4fdf20
push 0
push edi
push ebp
mov ecx, ebx
call fcn.00408ac6
jmp 0x4fe6a2
push 0x7bb84a
mov ecx, ebp
call fcn.004062df
jmp 0x4fe6a2
test al, al
je 0x4fe02b
push str.CWFP::InstallWFP___Stopping_WFP_for_update
lea ecx, [esp + 0xd8]
call fcn.004062df
lea ecx, [esp + 0xd4]
push 0
push ecx
mov dword [esp + 0x344], 0
call fcn.004024eb
mov ecx, eax
call fcn.00403bb1
lea ecx, [esp + 0xd4]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00402ed7
push edi
lea edx, [esp + 0xa0]
push edx
mov ecx, ebx
call fcn.00401208
cmp dword [esp + 0xb0], 0
mov dword [esp + 0x33c], 1
je 0x4fe01a
push str.CWFP::InstallWFP___Failed_to_call_stop_WFP:
lea ecx, [esp + 0xd8]
call fcn.004062df
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x348], 2
call fcn.00401e38
lea ecx, [esp + 0xd4]
push 0
push ecx
call fcn.004024eb
mov ecx, eax
call fcn.004020ae
lea edx, [esp + 0xd4]
push edx
mov ecx, ebp
call fcn.0040521d
lea ecx, [esp + 0xd4]
call fcn.00402ed7
lea ecx, [esp + 0x9c]
call fcn.00402ed7
jmp 0x4fe6a2
lea ecx, [esp + 0x9c]
mov byte [esp + 0x15], 1
call fcn.00402ed7
xor eax, eax
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], ax
mov dword [esp + 0x33c], 3
call fcn.00408a76
mov ecx, eax
call fcn.0040364d
test al, al
je 0x4fe0b6
cmp dword [0x8699c4], 0
je 0x4fe078
cmp dword [0x8699c0], 0
jne 0x4fe0b6
push 0x7bb8a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4fe0ab
push 0x7bb8b8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x7bb8d8
push esi
mov dword [0x8699c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x8699c0], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x1c]
push 0x208
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x128]
push edx
lea ecx, [esp + 0xbc]
call fcn.00403706
mov byte [esp + 0x33c], 4
call fcn.00408a76
mov ecx, eax
call fcn.0040364d
test al, al
je 0x4fe11a
cmp dword [0x8699c0], 0
je 0x4fe107
cmp dword [0x8699c4], 0
jne 0x4fe11a
push 0x7bb8f8
lea ecx, [esp + 0xbc]
call fcn.004050a1
jmp 0x4fe12d
push 0x12
push 0x7bb920
lea ecx, [esp + 0xc0]
call fcn.00403323
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xc4]
call fcn.004019a1
mov dword [esp + 0x18], 0
call fcn.00408a76
mov ecx, eax
call fcn.0040364d
test al, al
je 0x4fe232
cmp dword [0x8699c0], 0
je 0x4fe232
mov eax, dword [0x8699c4]
test eax, eax
je 0x4fe232
lea ecx, [esp + 0x18]
push ecx
call eax
test eax, eax
jne 0x4fe232
push str.CWFP::InstallWFP___Failed_to_call_Wow64RevertWow64FsRedirection:
lea ecx, [esp + 0xa0]
call fcn.004062df
mov bl, 5
mov byte [esp + 0x33c], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xd8]
push edx
call fcn.004083af
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x348], 6
call fcn.00401e38
lea ecx, [esp + 0xd4]
mov byte [esp + 0x33c], bl
call fcn.00402ed7
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.004024eb
mov ecx, eax
call fcn.004020ae
lea ecx, [esp + 0x9c]
push ecx
mov ecx, ebp
call fcn.0040521d
lea ecx, [esp + 0x9c]
call fcn.00402ed7
lea ecx, [esp + 0xb8]
call fcn.00403a26
lea ecx, [esp + 0xf0]
call fcn.00403a26
jmp 0x4fe6a2
lea edx, [esp + 0xb8]
push edx
call fcn.00405b9b
add esp, 4
test al, al
je 0x4fe2f8
push str.CWFP::InstallWFP___Detected_existing_WFP
lea ecx, [esp + 0xa0]
call fcn.004062df
lea eax, [esp + 0x9c]
push 1
push eax
mov byte [esp + 0x344], 7
call fcn.004024eb
mov ecx, eax
call fcn.00403bb1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x33c], 4
call fcn.00402ed7
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x4fe2a5
lea eax, [esp + 0xbc]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4fe2f8
push str.CWFP::InstallWFP___Failed_to_call_SetFileAttributesW
lea ecx, [esp + 0xa0]
call fcn.004062df
lea ecx, [esp + 0x9c]
push 0
push ecx
mov byte [esp + 0x344], 8
call fcn.004024eb
mov ecx, eax
call fcn.004020ae
lea ecx, [esp + 0x9c]
mov byte [esp + 0x33c], 4
call fcn.00402ed7
mov ecx, dword [esp + 0xbc]
mov eax, 8
cmp dword [esp + 0xd0], eax
jae 0x4fe314
lea ecx, [esp + 0xbc]
cmp dword [esi + 0x18], eax
jb 0x4fe31e
mov eax, dword [esi + 4]
jmp 0x4fe321
lea eax, [esi + 4]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne byte [esp + 0x17]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00408a76
mov ecx, eax
call fcn.0040364d
test al, al
je 0x4fe363
mov eax, dword [0x8699c0]
test eax, eax
je 0x4fe363
cmp dword [0x8699c4], 0
je 0x4fe363
mov edx, dword [esp + 0x18]
push edx
call eax
cmp byte [esp + 0x17], 0
jne 0x4fe4b4
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x68]
push str.CWFP::InstallWFP___Failed_to_copy_file_from:
push ecx
call fcn.0040571d
push 0x7bb9f0
push eax
lea edx, [esp + 0xe8]
push edx
mov byte [esp + 0x354], 9
call fcn.0040657d
lea ecx, [esp + 0xd0]
push ecx
push eax
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0x360], 0xa
call fcn.00402b67
add esp, 0x24
lea ecx, [esp + 0xd4]
call fcn.00403a26
mov bl, 0xd
lea ecx, [esp + 0x64]
mov byte [esp + 0x33c], bl
call fcn.00403a26
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.004083af
push eax
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x34c], 0xe
call fcn.00406bef
push eax
lea edx, [esp + 0x94]
push 0x7bb9fc
push edx
mov byte [esp + 0x358], 0xf
call fcn.0040571d
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x348], 0x10
call fcn.004019a1
lea ecx, [esp + 0x80]
call fcn.00403a26
lea ecx, [esp + 0x48]
call fcn.00403a26
lea ecx, [esp + 0x2c]
mov byte [esp + 0x33c], bl
call fcn.00402ed7
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00407662
add esp, 8
push 0
push eax
mov byte [esp + 0x344], 0x11
call fcn.004024eb
mov ecx, eax
call fcn.004020ae
lea ecx, [esp + 0x2c]
mov byte [esp + 0x33c], bl
call fcn.00402ed7
lea edx, [esp + 0x9c]
push edx
push ebp
call fcn.00407662
add esp, 8
lea ecx, [esp + 0x9c]
call fcn.00403a26
jmp 0x4fe215
cmp byte [esp + 0x16], 0
je 0x4fe4c9
cmp byte [esp + 0x354], 0
jne 0x4fe5b1
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x4fe4ec
push str.CWFP::InstallWFP___Failed_to_open_SCM
mov ecx, ebp
call fcn.004062df
jmp 0x4fe215
cmp dword [esp + 0xd0], 8
mov esi, dword [esp + 0xbc]
jae 0x4fe504
lea esi, [esp + 0xbc]
mov edx, dword [edi + 0x18]
lea eax, [edi + 4]
cmp edx, 8
jb 0x4fe513
mov ecx, dword [eax]
jmp 0x4fe515
mov ecx, eax
cmp edx, 8
jb 0x4fe51c
mov eax, dword [eax]
push 0
push 0
push 0x7bba9c
push 0
push str.networkprovider
push esi
push 1
push 2
push 1
push 0x10
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
xor edi, edi
test esi, esi
jne 0x4fe54e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
test edi, edi
je 0x4fe5a9
lea eax, [esp + 0x48]
push edi
push eax
call fcn.004083af
add esp, 8
mov esi, eax
push str.Failed_to_register_service_with_error
lea ecx, [esp + 0x30]
mov byte [esp + 0x340], 0x12
call fcn.004062df
push esi
push eax
push ebp
mov byte [esp + 0x348], 0x13
call fcn.00402fd1
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00402ed7
lea ecx, [esp + 0x48]
jmp 0x4fe210
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
push 1
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.00406a2d
lea ecx, [esp + 0x2c]
call fcn.00402ed7
push 0
lea edx, [esp + 0x110]
push edx
mov ecx, ebx
mov byte [ebx + 4], 1
mov byte [ebx + 5], 1
call fcn.00406a2d
cmp byte [esp + 0x15], 0
mov byte [esp + 0x33c], 0x14
je 0x4fe66c
push str.CWFP::InstallWFP___Starting_stopped_WFP
lea ecx, [esp + 0xa0]
call fcn.004062df
lea eax, [esp + 0x9c]
push 0
push eax
mov byte [esp + 0x344], 0x15
call fcn.004024eb
mov ecx, eax
call fcn.00403bb1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x33c], 0x14
call fcn.00402ed7
push 0
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.00408ac6
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x118]
mov byte [esp + 0x348], 0x16
call fcn.00403fb2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x33c], 0x14
call fcn.00402ed7
lea edx, [esp + 0x10c]
push edx
mov ecx, ebp
call fcn.0040521d
lea ecx, [esp + 0x10c]
jmp 0x4fe210
push 0x1d
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], eax
push str.CWFP::InstallWFP___Wrong_data
mov ecx, ebp
mov byte [ebp + 4], al
call fcn.00405920
mov eax, ebp
mov ecx, dword [esp + 0x334]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.00564b24
add esp, 0x32c
ret 0x14