Function at 0x7d27e2d0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
movzx esi, r9b
mov rdi, r8
mov rbx, rcx
cmp rdx, 0x12340003
je 0x7d27e30c
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x7d27e545
lea rdx, str.SBIE_ProcessId
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, [rbp - 0x10]
mov rcx, rbx
test sil, sil
je 0x7d27e354
mov eax, dword [0x7d2abf98]
mov r9d, 4
mov dword [rbp + 0x18], eax
xor r8d, r8d
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
jmp 0x7d27e35a
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
lea rdx, str.SBIE_CurrentState
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rdi + 4]
lea rdx, [rbp - 0x10]
mov dword [rbp + 0x18], eax
mov r9d, 4
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rdx, str.SBIE_StartTicks
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [rdi + 4], 2
jne 0x7d27e3e1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0x10]
mov dword [rbp + 0x18], eax
mov r9d, 4
lea rax, [rbp + 0x18]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
jmp 0x7d27e3ee
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
lea rdx, str.SBIE_ControlsAccepted
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rdi + 8]
lea rdx, [rbp - 0x10]
mov dword [rbp + 0x18], eax
mov r9d, 4
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rdx, str.SBIE_Win32ExitCode
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rdi + 0xc]
lea rdx, [rbp - 0x10]
mov dword [rbp + 0x18], eax
mov r9d, 4
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rdx, str.SBIE_ServiceSpecificExitCode
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rdi + 0x10]
lea rdx, [rbp - 0x10]
mov dword [rbp + 0x18], eax
mov r9d, 4
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rdx, str.SBIE_CheckPoint
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rdi + 0x14]
lea rdx, [rbp - 0x10]
mov dword [rbp + 0x18], eax
mov r9d, 4
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rdx, str.SBIE_WaitHint
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rdi + 0x18]
lea rdx, [rbp - 0x10]
mov dword [rbp + 0x18], eax
mov r9d, 4
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov eax, dword [rdi + 4]
cmp eax, 4
jne 0x7d27e535
mov byte [0x7d2ad540], 1
jmp 0x7d27e540
cmp eax, 1
jne 0x7d27e540
mov byte [0x7d2ad541], al
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret