Function at 0x10001bb0
Capabilities:
Check os version
Get common file path
Persist via windows service
Query or enumerate registry value
Resolve function by parsing pe exports
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000b0fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x194c
call fcn.10002990
mov eax, dword [0x1000f040]
push ebx
push esi
push edi
mov dword [esp + 0x1954], eax
call fcn.1000a7e0
xor eax, eax
mov word [esp + 0x320], 0
mov ecx, 0xff
lea edi, [esp + 0x322]
rep stosd dword es:[edi], eax
push str.diskpt
stosw word es:[edi], ax
lea eax, [esp + 0x10c]
push str.SYSTEMCurrentControlSetServices_s
mov ebx, 0x400
push eax
mov dword [esp + 0x1c], ebx
call fcn.1000253d
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x324]
push edx
lea eax, [esp + 0x20]
push eax
push str.Sync
lea ecx, [esp + 0x118]
push ecx
push 0x80000002
call edi
test eax, eax
je 0x10001c65
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000216d
lea edx, [esp + 0x930]
push edx
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x1000216d
lea eax, [esp + 0x930]
push 0x5c
push eax
call fcn.1000250d
add esp, 8
test eax, eax
je 0x10001cb7
lea ecx, [esp + 0x930]
push 0x5c
push ecx
mov word [eax], 0
call fcn.1000250d
add esp, 8
test eax, eax
jne 0x10001cc4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000216d
lea edx, [esp + 0x930]
push 0x1000c498
push edx
mov word [eax], 0
call fcn.100024e3
lea eax, [esp + 0x328]
push 0x1000c494
push eax
call fcn.100024e3
lea ecx, [esp + 0x940]
push ecx
lea edx, [esp + 0x334]
push edx
call fcn.100024e3
lea eax, [esp + 0x338]
push eax
call fcn.100024cd
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0x1c
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x324]
push ecx
push 1
push str.Sync
lea edx, [esp + 0x118]
push edx
push 0x80000002
mov dword [esp + 0x28], eax
call esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x324]
push ecx
lea edx, [esp + 0x20]
push edx
push str.GUID
lea eax, [esp + 0x118]
push eax
push 0x80000002
mov dword [esp + 0x28], ebx
call edi
lea ecx, [esp + 0x320]
push str._BLANKPWD
push ecx
call fcn.100024e3
add esp, 8
lea ecx, [esp + 0x68]
call fcn.10001920
lea edx, [esp + 0x320]
push edx
mov dword [esp + 0x1968], 0
call fcn.100024cd
add esp, 4
shl eax, 1
push eax
lea eax, [esp + 0x324]
push eax
lea ecx, [esp + 0x70]
call fcn.10001970
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x6c]
call fcn.10001a40
movzx edx, byte [esp + 0x53]
movzx eax, byte [esp + 0x52]
movzx ecx, byte [esp + 0x51]
push edx
movzx edx, byte [esp + 0x54]
push eax
movzx eax, byte [esp + 0x57]
push ecx
movzx ecx, byte [esp + 0x5a]
push edx
movzx edx, byte [esp + 0x5d]
push eax
movzx eax, byte [esp + 0x60]
push ecx
push edx
push eax
movzx ecx, byte [esp + 0x6b]
movzx edx, byte [esp + 0x6a]
movzx eax, byte [esp + 0x69]
push ecx
movzx ecx, byte [esp + 0x6c]
push edx
movzx edx, byte [esp + 0x6f]
push eax
movzx eax, byte [esp + 0x72]
push ecx
movzx ecx, byte [esp + 0x75]
push edx
movzx edx, byte [esp + 0x78]
push eax
push ecx
push edx
lea eax, [esp + 0x360]
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push eax
call fcn.1000253d
add esp, 0x48
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xb3c]
push edx
lea eax, [esp + 0x20]
push eax
push str.Path
push str.SOFTWAREShadow_Defender
push 0x80000002
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x10001e90
push 0x104
lea ecx, [esp + 0xb3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0xb38]
push 0x5c
push edx
call fcn.1000250d
add esp, 8
mov word [eax], 0
lea eax, [esp + 0x208]
push eax
mov dword [esp + 0x20c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20c], 5
jne 0x10001f20
mov eax, dword [esp + 0x210]
test eax, eax
jne 0x10001f20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push str.Control
lea ecx, [esp + 0x118]
push ecx
mov ebx, 4
push 0x80000002
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x10001ef6
mov dword [esp + 0x14], 0x10000000
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x18]
push edx
and eax, 0xfffffffe
push ebx
mov dword [esp + 0x20], eax
push str.Control
lea eax, [esp + 0x118]
push eax
push 0x80000002
mov dword [esp + 0x28], ebx
call esi
lea ecx, [esp + 0xb38]
push ecx
lea edx, [esp + 0x1554]
push str._suser.dat
push edx
call fcn.1000253d
add esp, 0xc
push 0x80
lea eax, [esp + 0x1554]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x1550]
push ecx
lea edx, [esp + 0x324]
push edx
push str.hash
push str.common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0xb38]
push eax
lea ecx, [esp + 0xf3c]
push str._sDefender.exe
push ecx
call fcn.1000253d
lea edx, [esp + 0xb44]
push edx
lea eax, [esp + 0x1150]
push str._sCommit.exe
push eax
call fcn.1000253d
lea ecx, [esp + 0xb50]
push ecx
lea edx, [esp + 0x1364]
push str._sDefenderDaemon.exe
push edx
call fcn.1000253d
add esp, 0x24
lea eax, [esp + 0x1348]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1140]
push 3
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0xf40]
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 3
call fcn.1000aef0
lea edx, [esp + 0xb38]
push edx
lea eax, [esp + 0x724]
push str._sShellExt.dll
push eax
call fcn.1000253d
add esp, 0xc
lea ecx, [esp + 0x720]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10002055
push str.DllRegisterServer
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000204e
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x1000c2cc
push str.CLSID78C3F4BC_C7BC_48E4_AD72_2DD16F6704A9
mov ebx, 0x10
push 0x80000000
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x10002159
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push ebx
lea eax, [esp + 0x38]
push eax
push 3
push 0x1000c2cc
push str.CLSID78C3F4BC_C7BC_48E4_AD72_2DD16F6704A9
push 0x80000000
mov dword [esp + 0x28], ebx
call esi
push 0x104
lea ecx, [esp + 0x724]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x720]
push str._shell32.dll
push edx
call fcn.100024e3
lea eax, [esp + 0x728]
push eax
call fcn.100024cd
add esp, 0xc
shl eax, 1
push eax
lea ecx, [esp + 0x724]
push ecx
push 1
push 0x1000c2cc
push str.CLSID78C3F4BC_C7BC_48E4_AD72_2DD16F6704A9InprocServer32
push 0x80000000
call esi
mov ecx, dword [0x1000c1c8]
mov edx, dword [str.Apartment]
mov eax, dword [0x1000c1c4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x54], edx
mov edx, dword [0x1000c1cc]
mov dword [esp + 0x58], eax
mov eax, dword [0x1000c1d0]
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
call fcn.100024cd
add esp, 4
shl eax, 1
push eax
lea edx, [esp + 0x58]
push edx
push 1
push str.ThreadingModel
push str.CLSID78C3F4BC_C7BC_48E4_AD72_2DD16F6704A9InprocServer32
push 0x80000000
call esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x1964], 0xffffffff
call fcn.10001000
mov ecx, dword [esp + 0x195c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1954]
call fcn.100024bf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret