Function at 0x407860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0xc]
push ebx
push esi
push edi
push eax
movzx eax, byte [ebp + 8]
mov bl, dl
push eax
movsx eax, bl
push eax
push ecx
push str.Windows11Bypass_for___s___C:_Check:_u_NRO:_u
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 1
call fcn.004044f0
add esp, 0x14
mov dl, bl
call fcn.00407700
test eax, eax
je 0x407906
cmp byte [ebp + 8], 0
mov ebx, str.SUCCESS
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x4079ce
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemSetup
push 0x80000002
call edi
test eax, eax
je 0x40791c
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_reg_key_SystemSetup__u__u
call fcn.004044f0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 7
push 0
push 0
push 0
push str.LabConfig
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40794b
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_LabConfig_reg___u__u
jmp 0x4078fe
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.BypassRAMCheck
push dword [ebp - 0x10]
call esi
push 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.BypassTPMCheck
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
add esi, eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.BypassSecureBootCheck
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
add esi, eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.BypassCPUCheck
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, eax
mov ecx, str.FAILED
mov eax, ebx
push esi
cmovne eax, ecx
push eax
push str.Create_bypass_check_registry__s__u
call fcn.004044f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0xc
cmp byte [ebp + 0xc], 0
je 0x407a73
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call edi
test eax, eax
je 0x407a0f
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_reg_key_SOFTWAREMicrosoftWindowsCurrentVersionOOBE__u__u
jmp 0x4078fe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 7
push 0
push 0
push 0
push str.OOBE
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x407a41
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_OOBE_reg___u__u
jmp 0x4078fe
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.BypassNRO
push dword [ebp - 0x10]
call esi
push eax
test eax, eax
mov eax, str.FAILED
cmovne ebx, eax
push ebx
push str.Create_BypassNRO_registry__s__u
call fcn.004044f0
add esp, 0xc
call fcn.00404260
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret