Function at 0x40c420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x44a044]
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.00427f40
mov edx, dword [0x43effc]
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 0x40c470
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 0x40c4d9
mov eax, dword [ebp - 0xd4]
push esi
lea edx, [ebp - 0xd0]
push edx
push 1
push 0
push 0x43c326
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 0x40c52a
mov edx, dword [ebp - 0xd4]
push esi
lea ecx, [ebp - 0xd0]
push ecx
push 1
push eax
push 0x43c326
push edx
call edi
mov eax, dword [ebp - 0xd4]
push eax
call ebx
mov al, byte [0x43f07e]
mov dx, word [0x43f07c]
mov ecx, dword [0x43f078]
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 0x40c558
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 0x40c5b5
mov ecx, dword [ebp - 0xd4]
push esi
lea eax, [ebp - 0xd0]
push eax
push 1
push 0
push 0x43c326
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 0x40c606
push esi
lea edx, [ebp - 0xd0]
push edx
push 1
push eax
mov eax, dword [ebp - 0xd4]
push 0x43c326
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 0x40c657
mov edx, dword [ebp - 0xd4]
push esi
lea ecx, [ebp - 0xd0]
push ecx
push 1
push eax
push 0x43c326
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 0x40c6a9
mov ecx, dword [ebp - 0xd4]
push esi
lea eax, [ebp - 0xd0]
push eax
push 1
push 0
push 0x43c326
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.00421294
mov esp, ebp
pop ebp
ret