Function at 0x100d038
Capabilities:
Create thread
Query environment variable
Query or enumerate registry value

Disassembly:
call fcn.0100badf
test eax, eax
je 0x100d173
call fcn.0100b542
test eax, eax
je 0x100d173
call fcn.0100b71c
call fcn.0100b65e
call fcn.0100b7fc
test eax, eax
je 0x100d173
lea eax, [ebp - 0xc]
push eax
push 0x1008b60
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x100f6a8
call fcn.0100b8a8
call fcn.0100b853
call fcn.0100b6ed
test eax, eax
je 0x100d173
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.USER32.dll_RegisterServicesProcess]
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x10024d0
inc ebx
push ebx
call fcn.010072ce
test eax, eax
jne 0x100d173
call fcn.0100b9c4
test eax, eax
jne 0x100d173
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
push 0x101671a
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push 0x1e0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x100b3a5
call sub.SCESRV.dll_ScesrvInitializeServer
test eax, eax
jne 0x100d173
push 0x1005975
push 0x1006f6d
call sub.umpnpmgr.dll_RegisterScmCallback
call fcn.0100b295
call fcn.0100b143
lea eax, [ebp - 8]
push eax
call fcn.01008bc7
test eax, eax
jne 0x100d173
xor esi, esi
cmp dword [0x101b564], esi
jne 0x100f782
cmp dword [0x101b560], esi
jne 0x100f7aa
test byte [0x101b54c], 2
jne 0x100f7aa
lea eax, [ebp - 8]
push eax
call fcn.010074ab
push 4
lea eax, [ebp - 0x20]
push eax
push 5
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
call fcn.01008cf4
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov dword [0x101b3c0], esi
push esi
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov edi, edi
push ebp
mov ebp, esp
call fcn.0100c595
push dword [ebp + 0xc]
push dword [ebp + 8]
call 0x100d038
nop
nop
nop
nop
nop
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
push 0x1016a43
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], 9
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x100d278
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebp - 0x24], eax
je 0x100f755
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
lea eax, [ebp - 2]
push eax
mov ebx, 0x100d230
push ebx
call esi
mov edi, eax
cmp edi, 1
jbe 0x100d0bd
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [0x101b520], eax
je 0x100d173
push edi
push eax
push ebx
call esi
cmp eax, edi
ja 0x100d173
push 1
lea eax, [ebp - 2]
push eax
mov ebx, 0x100d1f0
push ebx
call esi
mov edi, eax
cmp edi, 1
jbe 0x100d0f4
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [0x101b574], eax
je 0x100d173
push edi
push eax
push ebx
call esi
cmp eax, edi
ja 0x100d173
call fcn.0100d327
test eax, eax
jl 0x100d173
push 0x101b554
push 0xf003f
xor esi, esi
push esi
push 0x100d180
mov edi, 0x80000002
push edi
call fcn.01002cdf
test eax, eax
jne 0x100d138
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
je 0x100f680
push esi
push eax
call fcn.010092f9
lea eax, [ebp - 4]
push eax
call fcn.0100cea7
test eax, eax
je 0x100d173
call fcn.0100c442
test eax, eax
jne 0x100d173
push 0x101b7dc
call dword [sym.imp.ntdll.dll_RtlGetNtProductType]
test al, al
je 0x100d173
call fcn.0100c171
test eax, eax
je 0x100d173
call fcn.0100d2a7
test eax, eax
jne 0x100f69e
xor esi, esi
jmp 0x100f755
push dword [0x101b554]
call dword [sym.imp.ntdll.dll_NtClose]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [0x101b554], esi
jmp 0x100d138
call fcn.01016a6f
jmp 0x1008a10
lea eax, [ebp - 0x10]
push eax
push 0x101b55c
xor esi, esi
push esi
push esi
push 0x100f8b8
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100f6d4
mov dword [0x101b55c], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x101b55c]
cmp eax, esi
je 0x1008a59
dec eax
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [0x101b310], 0x2a
je 0x100f71f
dec eax
je 0x100f718
dec eax
jne 0x100f734
push 0x100f8a4
push 0x101b854
call esi
add dword [0x101b310], 8
jmp 0x100f732
push 0x100f894
jmp 0x100f724
push 0x100f884
push 0x101b854
call esi
add dword [0x101b310], 7
pop ecx
pop ecx
mov eax, dword [0x101b310]
lea eax, [eax*2 + str.systemcurrentcontrolsetcontrol_safeboot_]
push 0x1009adc
push eax
call esi
inc dword [0x101b310]
pop ecx
pop ecx
jmp 0x1008a59
mov dword [0x101b3c0], esi
call fcn.01015c2e
call fcn.01016a54
cmp dword [ebp - 8], esi
je 0x100f773
lea eax, [ebp - 8]
push eax
call fcn.010074ab
push 0x1016e5b
call sub.SCESRV.dll_ScesrvTerminateServer
jmp 0x1008b56
lea eax, [ebp - 4]
push eax
call fcn.010169db
push dword [ebp - 4]
push 0x1c
call fcn.0100633d
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.010169cc
jmp 0x1008b0f
cmp dword [0x7ffe0264], ebx
je 0x1008b28
cmp dword [0x101b55c], esi
jne 0x1008b28
push esi
push esi
call fcn.0100a18d
test eax, eax
jne 0x1008b28
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x10087c0
push edi
mov bl, 1
mov dword [ebp - 4], esi
call fcn.01002cdf
test eax, eax
jne 0x100f837
push 4
pop edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push 0x100f864
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
call fcn.01002e7e
test eax, eax
jne 0x100f81f
cmp dword [ebp - 0x18], edi
jne 0x100f81f
cmp dword [ebp - 0x1c], esi
je 0x100f81f
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test bl, bl
je 0x1008b28
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x101b560]
push 0x1016740
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1008b28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008b28