Function at 0x408190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc7
lea eax, [ebp - 0xcf]
push 0
push eax
call fcn.004238b0
mov edx, dword [0x436ff4]
mov ecx, dword [str.Service]
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xcc], edx
add esp, 0xc
mov dword [ebp - 0xd0], ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4081e0
sub eax, edx
mov esi, eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xd4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolsetcontrol_safebootMinimalwin_win7
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408249
mov eax, dword [ebp - 0xd4]
push esi
lea edx, [ebp - 0xd0]
push edx
push 1
push 0
push 0x435770
push eax
call edi
mov ecx, dword [ebp - 0xd4]
push ecx
call ebx
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0xd4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolsetcontrol_safebootNetworkwin_win7
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40829a
mov edx, dword [ebp - 0xd4]
push esi
lea ecx, [ebp - 0xd0]
push ecx
push 1
push eax
push 0x435770
push edx
call edi
mov eax, dword [ebp - 0xd4]
push eax
call ebx
mov al, byte [0x437076]
mov dx, word [0x437074]
mov ecx, dword [0x437070]
mov byte [ebp - 0xca], al
lea eax, [ebp - 0xd0]
mov word [ebp - 0xcc], dx
mov dword [ebp - 0xd0], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4082c8
sub eax, edx
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xd4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolsetcontrol_safebootMinimalWM7F.sys
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408325
mov ecx, dword [ebp - 0xd4]
push esi
lea eax, [ebp - 0xd0]
push eax
push 1
push 0
push 0x435770
push ecx
call edi
mov edx, dword [ebp - 0xd4]
push edx
call ebx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xd4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolsetcontrol_safebootNetworkWM7F.sys
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408376
push esi
lea edx, [ebp - 0xd0]
push edx
push 1
push eax
mov eax, dword [ebp - 0xd4]
push 0x435770
push eax
call edi
mov ecx, dword [ebp - 0xd4]
push ecx
call ebx
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0xd4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolsetcontrol_safebootMinimalcbfsregistry2017.sys
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4083c7
mov edx, dword [ebp - 0xd4]
push esi
lea ecx, [ebp - 0xd0]
push ecx
push 1
push eax
push 0x435770
push edx
call edi
mov eax, dword [ebp - 0xd4]
push eax
call ebx
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xd4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolsetcontrol_safebootNetworkcbfsregistry2017.sys
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408419
mov ecx, dword [ebp - 0xd4]
push esi
lea eax, [ebp - 0xd0]
push eax
push 1
push 0
push 0x435770
push ecx
call edi
mov edx, dword [ebp - 0xd4]
push edx
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret