Function at 0x1009c7e0
Capabilities:
Manipulate safe mode programs
Set registry value

Disassembly:
sub esp, 0x628
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x624], eax
mov eax, dword [esp + 0x634]
push ebx
push ebp
mov ebp, dword [esp + 0x638]
push esi
push edi
mov ecx, 0x16
mov esi, str.SYSTEMCurrentControlSetControlSafeBootNetwork36FC9E60_C465_11CF_8056_444553540000
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0xab
lea ecx, [esp + 0x17d]
push ebx
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
movsb byte es:[edi], byte [esi]
call fcn.10116880
mov ecx, 0x16
mov esi, str.SYSTEMCurrentControlSetControlSafeBootMinimal36FC9E60_C465_11CF_8056_444553540000
lea edi, [esp + 0x230]
rep movsd dword es:[edi], dword [esi]
push 0xab
lea edx, [esp + 0x28d]
push ebx
push edx
movsb byte es:[edi], byte [esi]
call fcn.10116880
push ebp
lea eax, [esp + 0x13c]
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_s
push eax
call fcn.1010d6a8
push ebp
lea ecx, [esp + 0x24c]
push str.SYSTEMCurrentControlSetControlSafeBootMinimal_s
push ecx
call fcn.1010d6a8
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 0x30
cmp dword [esp + 0x63c], 1
jne 0x1009c933
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 1
push ebx
lea eax, [esp + 0x12c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call edi
mov esi, eax
push esi
call ebp
test esi, esi
jne 0x1009c8d9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebx, [esi + 1]
jmp 0x1009c8db
xor ebx, ebx
lea edx, [esp + 0x10]
push edx
push 1
push 0
lea eax, [esp + 0x230]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call edi
mov esi, eax
push esi
call ebp
test esi, esi
jne 0x1009c919
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 1
jmp 0x1009c921
mov dword [esp + 0x10], 0
test ebx, ebx
jne 0x1009c933
cmp dword [esp + 0x10], ebx
jne 0x1009c933
lea eax, [ebx + 1]
jmp 0x1009cf51
push 0x103
lea edx, [esp + 0x32d]
push 0
push edx
mov byte [esp + 0x334], 0
call fcn.10116880
add esp, 0xc
lea eax, [esp + 0x328]
push eax
call sym.EncDec.dll_IsSystemUser
cmp byte [esp + 0x328], 0
je 0x1009cf4d
cmp dword [esp + 0x63c], 1
jne 0x1009cc74
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x1009caf6
lea ecx, [esp + 0x328]
push ecx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x434]
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setowner_s
push eax
call fcn.1010d6a8
add esp, 0x10
push 0
push 0xffffffffffffffff
push 2
push 1
lea ecx, [esp + 0x43c]
push ecx
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
test eax, eax
je 0x1009ca0f
push 0x103
lea edx, [esp + 0x21]
push 0
push edx
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
call ebx
push 0x104
mov edi, eax
lea esi, [esp + 0x20]
call fcn.10049ce0
mov eax, esi
push eax
push str._SUBINACL_SF__Failed_to_start_subinacl_A1___Reason:__s
push 0
call fcn.10053700
add esp, 0x10
jmp 0x1009caf6
lea ecx, [esp + 0x328]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x438]
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setowner_s__grant_sf
push ecx
call fcn.1010d6a8
add esp, 0x14
push 0
push 0xffffffffffffffff
push 2
push 1
lea edx, [esp + 0x43c]
push edx
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
test eax, eax
je 0x1009ca95
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
call ebx
push 0x104
mov edi, eax
lea esi, [esp + 0x20]
call fcn.10049ce0
mov ecx, esi
push ecx
push str._SUBINACL_SF__Failed_to_start_subinacl_B1___Reason:__s
push 0
call fcn.10053700
add esp, 0x10
jmp 0x1009caf6
lea edi, [esp + 0x120]
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.10048ba0
cmp eax, 1
jne 0x1009cab1
mov dword [esp + 0x14], eax
jmp 0x1009caf6
push 0x103
lea edx, [esp + 0x21]
push 0
push edx
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
call ebx
push 0x104
mov edi, eax
lea esi, [esp + 0x20]
call fcn.10049ce0
mov eax, esi
push eax
lea ecx, [esp + 0x128]
push ecx
push str._SUBINACL_SF__Error_deleting_key___s___B1___Reason:__s
push 0
call fcn.10053700
add esp, 0x14
cmp dword [esp + 0x10], 0
je 0x1009cf4d
lea edx, [esp + 0x328]
push edx
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x434]
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setowner_s
push ecx
call fcn.1010d6a8
add esp, 0x10
push 0
push 0xffffffffffffffff
push 2
push 1
lea edx, [esp + 0x43c]
push edx
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
test eax, eax
je 0x1009cb87
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
call ebx
push 0x104
mov edi, eax
lea esi, [esp + 0x20]
call fcn.10049ce0
mov ecx, esi
push ecx
push str._SUBINACL_SF__Failed_to_start_subinacl_A2___Reason:__s
push 0
call fcn.10053700
add esp, 0x10
jmp 0x1009cf4d
lea edx, [esp + 0x328]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x438]
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setowner_s__grant_sf
push edx
call fcn.1010d6a8
add esp, 0x14
push 0
push 0xffffffffffffffff
push 2
push 1
lea eax, [esp + 0x43c]
push eax
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
test eax, eax
je 0x1009cc10
push 0x103
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
call ebx
push 0x104
mov edi, eax
lea esi, [esp + 0x20]
call fcn.10049ce0
mov edx, esi
push edx
push str._SUBINACL_SF__Failed_to_start_subinacl_B2___Reason:__s
push 0
call fcn.10053700
add esp, 0x10
jmp 0x1009cf4d
lea edi, [esp + 0x224]
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.10048ba0
cmp eax, 1
je 0x1009cf45
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
call ebx
push 0x104
mov edi, eax
lea esi, [esp + 0x20]
call fcn.10049ce0
mov ecx, esi
push ecx
lea edx, [esp + 0x22c]
push edx
push str._SUBINACL_SF__Error_deleting_key___s___B2___Reason:__s
push 0
call fcn.10053700
add esp, 0x14
jmp 0x1009cf4d
lea ecx, [esp + 0x120]
call fcn.100621d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009cd1e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x124]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1009ccd6
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
inc eax
push eax
push esi
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009cd22
push eax
call ebp
push 0x103
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
call ebx
push 0x104
mov edi, eax
lea esi, [esp + 0x20]
call fcn.10049ce0
mov edx, esi
push edx
lea eax, [esp + 0x128]
push eax
push str._SUBINACL_SF__Error_creating_key___s___B2___Reason:__s
push 0
call fcn.10053700
add esp, 0x14
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x224]
call fcn.100621d0
test eax, eax
jne 0x1009cdc2
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x228]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1009cd7a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009cdc2
push eax
call ebp
push 0x103
lea edx, [esp + 0x21]
push 0
push edx
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
call ebx
push 0x104
mov edi, eax
lea esi, [esp + 0x20]
call fcn.10049ce0
mov eax, esi
push eax
lea ecx, [esp + 0x22c]
push ecx
push str._SUBINACL_SF__Error_creating_key___s___B2___Reason:__s
push 0
call fcn.10053700
add esp, 0x14
lea ecx, [esp + 0x120]
call fcn.100621d0
lea ecx, [esp + 0x224]
mov esi, eax
call fcn.100621d0
mov edi, eax
test esi, esi
jne 0x1009cdff
test edi, edi
jne 0x1009ceaa
push str._SUBINACL_SF__RegKey_Absent_
push esi
call fcn.10053700
add esp, 8
xor eax, eax
jmp 0x1009cf51
lea edx, [esp + 0x328]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x438]
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setowner_s__grant_sr
push edx
call fcn.1010d6a8
add esp, 0x14
push 0
push 0xffffffffffffffff
push 2
push 1
lea eax, [esp + 0x43c]
push eax
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
call fcn.1004fe90
test eax, eax
je 0x1009ce62
lea ecx, [esp + 0x120]
push ecx
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setowner_NT_SERVICETrustedInstaller_
lea edx, [esp + 0x434]
push edx
jmp 0x1009ce77
lea eax, [esp + 0x120]
push eax
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setownerAdministrators
lea ecx, [esp + 0x434]
push ecx
call fcn.1010d6a8
add esp, 0xc
push 0
push 0xffffffffffffffff
push 2
push 1
lea edx, [esp + 0x43c]
push edx
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
mov dword [esp + 0x14], 1
test edi, edi
je 0x1009cf4d
lea eax, [esp + 0x328]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x22c]
push edx
lea eax, [esp + 0x438]
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setowner_s__grant_sr
push eax
call fcn.1010d6a8
add esp, 0x14
push 0
push 0xffffffffffffffff
push 2
push 1
lea ecx, [esp + 0x43c]
push ecx
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
call fcn.1004fe90
test eax, eax
je 0x1009cf0d
lea edx, [esp + 0x224]
push edx
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setowner_NT_SERVICETrustedInstaller_
lea eax, [esp + 0x434]
push eax
jmp 0x1009cf22
lea ecx, [esp + 0x224]
push ecx
push str.SUBINACL__keyreg__HKEY_LOCAL_MACHINE_s___setownerAdministrators
lea edx, [esp + 0x434]
push edx
call fcn.1010d6a8
add esp, 0xc
push 0
push 0xffffffffffffffff
push 2
push 1
lea eax, [esp + 0x43c]
push eax
push 0
xor edx, edx
xor ecx, ecx
call fcn.10047950
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x634]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x628
ret 0xc