Function at 0x10017270
Capabilities:
Get file attributes
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021618
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
push str.iSafeKrnl.sys
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.10001b40
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x100172e2
push dword [ebp - 0x18]
push str.iSafeKrnl.sys
push str._Failed_to_find__s_from__s.
call fcn.10019db0
add esp, 0xc
xor esi, esi
jmp 0x1001764f
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.10001020
test eax, eax
je 0x1001763f
push str.FltMgr
push 1
push 2
push str.FSFilter_Activity_Monitor
push str.YAC_Mini_Filter_Driver
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push str.iSafeKrnl
call fcn.10001610
test eax, eax
je 0x1001763f
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x14]
call fcn.100019d0
push 9
push str.iSafeKrnl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10001d80
sub esp, 0x14
mov dword [ebp - 0x3c], 0
push dword [ebp - 0x14]
mov dword [ebp - 0x38], 0
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
call fcn.10018ff0
test eax, eax
je 0x1001738b
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1001761b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001761b
mov esi, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x10028980
push esi
mov dword [ebp - 0x1c], 4
call ebx
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.DebugFlags
push esi
mov dword [ebp - 0x1c], 0
call ebx
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.SupportedFeatures
push esi
mov dword [ebp - 0x1c], 3
call ebx
sub esp, 8
lea ecx, [ebp - 0x3c]
call fcn.10018f00
push 1
push str.YAC_Mini_Filter_Driver
push str.Description
lea ecx, [ebp - 0x3c]
call fcn.100022d0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1001740b
push esi
call ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push str.Instances
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.10001b40
sub esp, 0x10
push dword [eax]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10018ff0
mov edx, dword [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0xd]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017464
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x10017611
push str.iSafeKrnl
lea ecx, [ebp - 0x20]
call fcn.100019d0
push str._Instance
mov edx, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.10001b40
add esp, 4
lea ecx, [ebp - 0x3c]
push 1
push dword [eax]
push str.DefaultInstance
call fcn.100022d0
test eax, eax
lea ecx, [ebp - 0x1c]
setne bl
call fcn.10001a80
lea ecx, [ebp - 0x20]
call fcn.10001a80
test bl, bl
jne 0x1001760b
lea ecx, [ebp - 0x3c]
call fcn.10002400
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push str.Instances_
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.10001b40
add esp, 4
push str.iSafeKrnl
mov edx, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.10001b40
add esp, 4
push str._Instance
mov edx, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.10001b40
sub esp, 0x10
push dword [eax]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10018ff0
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.10001a80
lea ecx, [ebp - 0x1c]
call fcn.10001a80
lea ecx, [ebp - 0x24]
call fcn.10001a80
test bl, bl
jne 0x10017601
push 1
push str.382390
push str.Altitude
lea ecx, [ebp - 0x3c]
call fcn.100022d0
test eax, eax
jne 0x10017601
push 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10017601
lea ecx, [ebp - 0x3c]
call fcn.10002400
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push str.Parameters
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.10001b40
sub esp, 0x10
push dword [eax]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10018ff0
test eax, eax
lea ecx, [ebp - 0x24]
setne bl
call fcn.10001a80
test bl, bl
jne 0x10017601
mov eax, dword [ebp - 0x28]
push 1
push dword [eax]
lea ecx, [ebp - 0x3c]
push str.InstallPath
call fcn.100022d0
test eax, eax
jne 0x10017601
lea ecx, [ebp - 0x3c]
call fcn.10002400
mov esi, 1
jmp 0x1001761d
lea ecx, [ebp - 0x3c]
call fcn.10002400
jmp 0x1001761b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1001761b
push eax
call ebx
xor esi, esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017641
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10017641
xor esi, esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1001764f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10017670
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret