Function at 0x1003f970
Capabilities:
Create process on windows
Create thread
Inspect load icon resource
Lock the desktop
Power down monitor
Set registry value
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9878
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], 0
lea eax, [ecx - 0x13]
mov dword [ebp - 4], 0
cmp eax, 0x24
ja case.0x1003f9bc.20
movzx eax, byte [eax + 0x10040224]
jmp dword [eax*4 + 0x100401d0]
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
test eax, eax
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push eax
push str.Failed_to_TrayProperties__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov edi, dword [ebp - 0x60]
push str.appwiz.cpl
mov eax, dword [edi]
mov ebx, dword [eax + 0x74]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x1004018f
push esi
push edi
mov byte [ebp - 4], 2
call ebx
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push edi
push str.Failed_to_ControlPanelItem_appwiz.cpl___0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push eax
push 0x10103df0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fad9
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa0]
test eax, eax
jns 0x1003faf0
test byte [0x1014b4cc], 4
je 0x1003faf0
push eax
push str.Failed_to_WindowsSecurity__0x08_x
jmp 0x1003fae8
test byte [0x1014b4cc], 4
je 0x1003faf0
push eax
push str.Failed_to_create_dispatch__0x08_x
call fcn.1003bea0
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x10040157
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov bl, 1
jmp 0x1004015d
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
test eax, eax
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push eax
push str.Failed_to_FindFiles__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov eax, dword [ebp - 0x60]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x6c], eax
push 0x1010ca30
mov eax, dword [eax]
mov ebx, dword [eax + 0x80]
call edi
mov dword [ebp - 0x68], eax
test eax, eax
je 0x10040199
push 0x1010ca30
mov byte [ebp - 4], 8
call edi
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x100401a3
push 0x1010ca30
mov byte [ebp - 4], 9
call edi
mov edi, eax
mov dword [ebp - 0x80], edi
test edi, edi
je 0x100401ad
mov byte [ebp - 4], 0xa
push dword [ebp - 0x68]
push esi
push edi
push dword [ebp - 0x6c]
call ebx
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
call edi
push esi
call edi
push dword [ebp - 0x68]
call edi
test ebx, ebx
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push ebx
push str.Failed_to_FindPrinter__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x6c]
test eax, eax
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push eax
push str.Failed_to_FindComputer__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
push 0x2c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x4c], 0x3c
push 0
push eax
mov dword [ebp - 0x48], 0x200
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x1010be30
call fcn.100d6eb0
mov eax, dword fs:[0x2c]
add esp, 0xc
mov ecx, dword [0x1014ad7c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101591b8]
cmp eax, dword [ecx + 4]
jle 0x1003fce8
push 0x101591b8
call fcn.100d4fed
add esp, 4
cmp dword [0x101591b8], 0xffffffff
jne 0x1003fce8
push 0x101591b8
mov dword [0x101591bc], 0
call fcn.100d4fa3
add esp, 4
mov byte [ebp - 0x61], 0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xd
push eax
call fcn.100d3b01
lea eax, [ebp - 0x78]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x61]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push eax
push 0x10047d10
push 0x101591bc
call fcn.100d3ea8
add esp, 0x10
test eax, eax
je 0x1003fd5c
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xf
push eax
call fcn.100d3b10
add esp, 4
mov dword [ebp - 0x3c], 0x10159000
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], str._find
mov dword [ebp - 0x34], str._ProgramFiles_Windows_Mail
mov dword [ebp - 0x30], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov bl, 1
jmp 0x1004015d
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0x10
push eax
call fcn.100d3b31
add esp, 4
mov byte [ebp - 4], 0xe
test al, al
je 0x100401ca
jmp 0x100401b7
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x64]
test eax, eax
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push eax
push str.Failed_to_Help__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
test byte [0x1014b4cc], 4
je 0x10040157
push eax
push str.Failed_to_create_dispatch__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
call fcn.100b0560
mov ecx, 0xa00
cmp ax, cx
jb 0x1003fe19
push 1
push 0
push 0
push str.shell:::2559a1f3_21d7_11d4_bdaf_00c04f60b9f0
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov bl, 1
jmp 0x1004015d
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
test eax, eax
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push eax
push str.Failed_to_FileRun__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x2d
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
xor ecx, ecx
mov edi, eax
cmp byte [0x10158d38], cl
push edi
push 0x1003e010
setne cl
push 0
add ecx, 0x68
push ecx
push dword [0x1014be3c]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
test esi, esi
je 0x10040157
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov bl, 1
jmp 0x1004015d
call fcn.100b0560
mov ecx, 0xa00
cmp ax, cx
jb case.0x1003f9bc.34
sub esp, 8
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
push 2
sub esp, 8
push str.SoftwareMicrosoftWindowsCurrentVersionAuthenticationLogonUIUserSwitch
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100380f0
mov esi, dword [ebp - 0x7c]
test eax, eax
jne 0x1003ff25
push 4
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 1
push eax
push 4
push 0
push str.Enabled
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je case.0x1003f9bc.34
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.WTSAPI32.dll_WTSDisconnectSession]
mov bl, 1
jmp 0x1004015d
call dword [sym.imp.USER32.dll_LockWorkStation]
mov bl, 1
jmp 0x1004015d
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1003ff76
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.WTSAPI32.dll_WTSDisconnectSession]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4c
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.100d6eb0
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.POWRPROF.dll_GetPwrCapabilities]
cmp byte [ebp - 0x48], 0
je 0x10040011
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1014ad7c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101591b0]
cmp eax, dword [ecx + 4]
jle 0x1003fff1
push 0x101591b0
call fcn.100d4fed
add esp, 4
cmp dword [0x101591b0], 0xffffffff
jne 0x1003fff1
push str.NtPowerInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101591b0
mov dword [0x101591b4], eax
call fcn.100d4fa3
add esp, 4
mov eax, dword [0x101591b4]
test eax, eax
je 0x10040157
push 0
push 0
push 0
push 0
push 0x49
call eax
mov bl, 1
jmp 0x1004015d
push 0
push 0
push 0
push 0x1003e370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov bl, 1
jmp 0x1004015d
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10040053
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.WTSAPI32.dll_WTSDisconnectSession]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 1
push 0x1003e370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov bl, 1
jmp 0x1004015d
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push eax
push str.Failed_to_EjectPC__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
push 2
push 0xf170
push 0x112
push dword [sym.ExplorerShellDLL32.dll_struct_HWND____g_TaskBar]
call dword [sym.imp.USER32.dll_SendMessageW]
mov bl, 1
jmp 0x1004015d
lea eax, [ebp - 0x60]
push eax
push 0x10103de0
push 0x15
push 0
push 0x10103e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1003fdcc
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jns 0x10040157
test byte [0x1014b4cc], 4
je 0x10040157
push eax
push str.Failed_to_ShutdownWindows__0x08_x
call fcn.1003bea0
add esp, 8
mov bl, 1
jmp 0x1004015d
call fcn.100b0560
mov ecx, 0x602
cmp ax, cx
jb 0x10040157
push 1
push 0
push 0
push str.shell:appsfolderwindows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov bl, 1
jmp 0x1004015d
call fcn.1003f540
test al, al
je 0x1004015b
mov bl, 1
jmp 0x1004015d
xor bl, bl
mov dword [ebp - 4], 0x21
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x10040171
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.10013970
push 0x8007000e
call fcn.10013970
push 0x8007000e
call fcn.10013970
push 0x8007000e
call fcn.10013970
sub esp, 8
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.10037f40
call fcn.10037fa0
call fcn.100d3f31
nop
add dword es:[eax + edx], eax
xchg ecx, eax
cli
add edx, dword [eax]
ret