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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x370
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rbp + 0x260], rax
lea rax, str.RegistryMachineSystemCurrentControlSetControlMiniNT
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x58], rax
xor r13d, r13d
lea rax, str.Sessions
mov dword [rbp - 0x60], 0x740072
mov qword [rbp - 0x28], rax
mov r15, rcx
lea rax, str.RegistryMachineSystemCurrentControlSetControlSession_ManagerEnvironment
mov dword [rbp - 0x30], 0x140012
mov qword [rbp - 0x48], rax
mov r12d, r13d
lea rax, str.NUMBER_OF_PROCESSORS
mov dword [rbp - 0x50], 0x9e009c
mov qword [rbp - 0x38], rax
lea rax, [0x140024220]
mov qword [0x140024228], rax
mov qword [0x140024220], rax
lea rax, [0x140024230]
mov qword [0x140024238], rax
mov qword [0x140024230], rax
lea rax, [0x140024240]
mov qword [0x140024248], rax
mov qword [0x140024240], rax
lea rax, [0x140024250]
mov qword [0x140024258], rax
mov qword [0x140024250], rax
lea rax, [0x140024360]
mov qword [0x140024368], rax
mov qword [0x140024360], rax
lea rax, [0x140024260]
mov qword [0x140024268], rax
mov qword [0x140024260], rax
lea rax, [0x140024270]
mov qword [0x140024278], rax
mov qword [0x140024270], rax
lea rax, [0x140024280]
mov qword [0x140024288], rax
mov qword [0x140024280], rax
lea rax, [0x140024290]
mov qword [0x140024298], rax
mov qword [0x140024290], rax
lea rax, [0x1400242a0]
mov qword [0x1400242a8], rax
mov qword [0x1400242a0], rax
lea rax, [0x1400242b0]
mov qword [0x1400242b8], rax
mov qword [0x1400242b0], rax
lea rax, [0x140024350]
mov qword [0x140024358], rax
mov qword [0x140024350], rax
mov dword [rbp - 0x40], 0x2a0028
mov dword [0x1400242c0], r13d
call qword [sym.imp.ntdll.dll_RtlGetNtSystemRoot]
nop dword [rax + rax]
lea r8, str.___s
mov edx, 0x20a
mov r9, rax
lea rcx, [0x140024000]
call fcn.14000202c
lea rdx, [0x140024000]
lea rcx, [0x140024210]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea ebx, [r13 + 1]
mov cl, bl
lea rdx, [0x140024a40]
call qword [sym.imp.ntdll.dll_RtlCreateEnvironment]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jns 0x1400096e4
mov rax, qword [sym.imp.ntdll.dll_RtlCreateEnvironment]
mov dword [0x140023dd0], 0x815
mov dword [0x140023dd4], ecx
mov qword [0x140023dd8], rax
mov eax, ecx
jmp 0x140009f48
mov edi, 0x30
mov qword [rsp + 0x50], r13
lea rax, [rbp - 0x60]
mov dword [rsp + 0x48], edi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
mov r14d, 0xf003f
lea r8, [rsp + 0x48]
lea esi, [rdi + 0x10]
mov edx, r14d
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x60], esi
movdqu xmmword [rsp + 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x140009745
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov byte [0x140024374], bl
call fcn.140005a50
lea rax, [rbp - 0x50]
mov dword [rsp + 0x48], edi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x48]
mov qword [rsp + 0x50], r13
mov edx, r14d
mov dword [rsp + 0x60], esi
lea rcx, [rsp + 0x38]
movdqu xmmword [rsp + 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x140009f48
mov rcx, qword [rsp + 0x38]
lea rdx, [0x140016a50]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
nop dword [rax + rax]
movsx r9d, byte [0x140024338]
lea r8, [0x140017cfc]
mov edx, 0x200
lea rcx, [rbp + 0x60]
call fcn.14000202c
lea rcx, [rbp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400097c7
mov rcx, qword [rsp + 0x38]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0x60]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
test eax, eax
js 0x140009f48
mov rcx, qword [0x140024a40]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_RtlSetCurrentEnvironment]
nop dword [rax + rax]
xor r9d, r9d
mov qword [rsp + 0x20], r13
lea r8, [0x140023100]
lea rdx, str.Session_Manager
lea ecx, [r9 + 2]
call qword [sym.imp.ntdll.dll_RtlQueryRegistryValuesEx]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jns 0x140009861
mov rax, qword [sym.imp.ntdll.dll_RtlQueryRegistryValuesEx]
mov dword [0x140023dd0], 0x887
jmp 0x1400096d0
call fcn.140005af0
test eax, eax
jns 0x14000988d
mov dword [0x140023dd0], 0x894
lea rcx, [fcn.140005af0]
mov dword [0x140023dd4], eax
mov qword [0x140023dd8], rcx
jmp 0x140009f48
lea rax, [0x140023dc0]
mov r8d, ebx
lea r9, [0x140023db8]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400236b0]
lea rcx, [0x1400236c0]
call fcn.1400012b0
test eax, eax
jns 0x1400098db
mov qword [0x140023db8], r13
lea rcx, [fcn.1400012b0]
mov qword [0x140023dc0], r13
mov dword [0x140023dd0], 0x8aa
jmp 0x14000987b
cmp byte [0x140023d28], r13b
mov eax, dword [0x140024af8]
cmovne eax, ebx
mov dword [0x140024af8], eax
test eax, eax
je 0x140009912
call fcn.14000ea88
mov ecx, eax
mov eax, dword [0x140024af8]
test ecx, ecx
cmovs eax, r13d
mov dword [0x140024af8], eax
test eax, eax
jne 0x140009919
call fcn.140007950
mov ecx, eax
test ecx, ecx
jns 0x140009933
mov dword [0x140023dd0], 0x8ca
lea rax, [fcn.140007950]
jmp 0x1400096d0
call fcn.14000a770
test eax, eax
jns 0x140009952
mov dword [0x140023dd0], 0x8d1
lea rcx, [fcn.14000a770]
jmp 0x14000987b
mov rcx, qword [rbp - 0x80]
lea rdx, [0x140024a40]
call qword [sym.imp.ntdll.dll_RtlSetCurrentEnvironment]
nop dword [rax + rax]
call fcn.140009150
test eax, eax
jns 0x140009988
mov dword [0x140023dd0], 0x8e6
lea rcx, [fcn.140009150]
jmp 0x14000987b
lea rax, [rbp - 0x30]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x48]
mov rax, qword [0x140023e28]
lea rcx, [0x140023fb0]
mov edx, 0xf000f
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x60], 0xd0
mov qword [rsp + 0x70], r13
call qword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jns 0x1400099ec
mov rax, qword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
mov dword [0x140023dd0], 0x906
jmp 0x1400096d0
call fcn.140005bf0
test eax, eax
jns 0x140009a0b
mov dword [0x140023dd0], 0x917
lea rcx, [fcn.140005bf0]
jmp 0x14000987b
cmp byte [0x140024ae8], r13b
mov r14, r13
mov qword [rsp + 0x78], r13
jne 0x140009a23
mov esi, 0xc0000001
jmp 0x140009a73
cmp byte [0x140024374], r13b
jne 0x140009a55
cmp dword [0x140023710], 0xffffffff
jne 0x140009a55
cmp byte [0x140023fb9], r13b
jne 0x140009a55
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x20]
call fcn.140006768
mov r14, qword [rsp + 0x78]
mov esi, eax
jmp 0x140009a73
mov esi, 0xc0000001
call fcn.140014c28
test al, al
je 0x140009a73
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call fcn.140014d8c
mov rcx, qword [0x140024220]
lea rdx, [0x140024220]
mov rax, qword [0x140024250]
mov rbx, rax
cmp rcx, rdx
je 0x140009ae3
cmp qword [rcx], rdx
jne 0x140009b0e
lea rdi, [rcx + 0x10]
mov r8b, 1
mov rdx, rdi
lea rcx, [0x140016a10]
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
nop dword [rax + rax]
test al, al
jne 0x140009adc
cmp byte [0x140023d28], r13b
je 0x140009b0e
mov r8b, 1
lea rcx, [0x140016a20]
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
nop dword [rax + rax]
test al, al
je 0x140009b0e
mov rax, qword [0x140024250]
lea rcx, [0x140024250]
cmp rax, rcx
je 0x140009b0a
cmp qword [rbx], rcx
jne 0x140009b0e
cmp byte [0x140023d28], r13b
je 0x140009b0e
lea rdx, [rbx + 0x10]
call fcn.14000ed70
test al, al
je 0x140009b0e
test esi, esi
js 0x140009b35
call fcn.140009490
test eax, eax
jns 0x140009b35
mov dword [0x140023dd0], 0x977
mov dword [0x140023dd4], eax
mov rax, qword [sym.imp.ntdll.dll_NtSerializeBoot]
mov qword [0x140023dd8], rax
lea rcx, [0x140018068]
call fcn.140009f80
mov rbx, qword [0x140024240]
jmp 0x140009b74
cmp byte [0x140024ae8], r13b
mov rdi, rbx
je 0x140009b69
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor edx, edx
call fcn.140004558
mov rbx, qword [rbx]
mov rcx, rdi
call fcn.140005a00
lea rax, [0x140024240]
cmp rbx, rax
jne 0x140009b4a
lea rcx, [0x1400180d8]
call fcn.140009f80
lea rcx, [0x140018008]
call fcn.140009f80
mov rdi, qword [0x140024220]
lea rax, [0x140024220]
cmp rdi, rax
je 0x140009bdb
lea r12, [0x140024220]
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor edx, edx
mov rbx, rdi
call fcn.140004558
mov rdi, qword [rdi]
mov rcx, rbx
call fcn.140005a00
cmp rdi, r12
jne 0x140009bb2
mov r12, r13
lea rcx, [0x140018028]
call fcn.140009f80
lea rcx, [0x140018038]
call fcn.140009f80
mov rdi, qword [0x140024230]
lea rax, [0x140024230]
cmp rdi, rax
je 0x140009c37
lea r15, [0x140024230]
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor edx, edx
mov rbx, rdi
call fcn.140004558
mov rdi, qword [rdi]
mov rcx, rbx
call fcn.140005a00
cmp rdi, r15
jne 0x140009c0d
mov r15, qword [rbp - 0x78]
lea rcx, [0x140018098]
call fcn.140009f80
test r15, r15
je 0x140009c59
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtSetEvent]
nop dword [rax + rax]
lea rcx, [0x140017fd8]
call fcn.140009f80
cmp byte [0x140023d29], r13b
je 0x140009c73
call fcn.14000ec18
xor ecx, ecx
call qword [sym.imp.ntdll.dll_NtInitializeRegistry]
nop dword [rax + rax]
lea rcx, [0x140018058]
call fcn.140009f80
test esi, esi
js 0x140009dc1
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlQueryPerformanceFrequency]
nop dword [rax + rax]
neg eax
sbb rcx, rcx
and qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_RtlQueryPerformanceCounter]
nop dword [rax + rax]
neg eax
lea rax, [rbp - 0x10]
sbb rcx, rcx
mov qword [rsp + 0x20], rax
and qword [rsp + 0x30], rcx
xor edx, edx
lea rcx, [rbp - 0x20]
lea r9d, [rdx + 0x20]
call fcn.140004558
test eax, eax
js 0x140009d54
test byte [rbp + 0x46], 0x80
je 0x140009d18
mov rcx, qword [rbp]
xor edx, edx
mov ebx, r13d
call qword [sym.imp.ntdll.dll_NtResumeThread]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
nop dword [rax + rax]
jmp 0x140009d32
mov rcx, qword [rbp - 8]
mov edx, 0xc0000428
mov ebx, 3
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rbp]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
jmp 0x140009d59
mov ebx, 1
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlQueryPerformanceCounter]
nop dword [rax + rax]
neg eax
sbb r8, r8
and r8, qword [rsp + 0x30]
mov qword [rsp + 0x30], r8
jle 0x140009d91
mov rax, qword [rbp - 0x70]
sub rax, qword [rbp - 0x68]
imul rax, rax, 0x3e8
cqo
idiv r8
mov r12, rax
lea r9, [rbp - 0x20]
mov r8, r12
mov rdx, r14
mov ecx, ebx
call fcn.140014d8c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x18]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov ebx, r13d
call qword [sym.imp.ntdll.dll_RtlIsStateSeparationEnabled]
nop dword [rax + rax]
test al, al
je 0x140009e02
xor r9d, r9d
mov qword [rsp + 0x20], r13
lea r8, [0x140023050]
xor ecx, ecx
lea rdx, str.REGISTRYMACHINEOSDATASession_Manager
call qword [sym.imp.ntdll.dll_RtlQueryRegistryValuesEx]
nop dword [rax + rax]
test eax, eax
mov eax, 1
cmovns ebx, eax
cmp byte [0x140024374], r13b
jne 0x140009e12
mov ecx, ebx
call fcn.140009348
lea r9, [0x140023d40]
mov qword [rsp + 0x40], r13
xor r8d, r8d
lea rdx, [0x140006c80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_TpAllocWork]
nop dword [rax + rax]
test eax, eax
jns 0x140009e53
mov rcx, qword [sym.imp.ntdll.dll_TpAllocWork]
mov dword [0x140023dd0], 0xa6c
jmp 0x14000987b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_TpPostWork]
nop dword [rax + rax]
cmp dword [0x140023fa8], r13d
je 0x140009e80
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ntdll.dll_TpWaitForWork]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_TpReleaseWork]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
call fcn.14000a0e0
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x140009ed4
mov dword [0x140023dd0], 0xa86
lea rax, [fcn.14000a0e0]
mov dword [0x140023dd4], ebx
mov qword [0x140023dd8], rax
mov eax, ebx
jmp 0x140009f48
lea rcx, [0x1400180b8]
call fcn.140009f80
mov rdi, qword [0x140024250]
lea rsi, [0x140024250]
jmp 0x140009f11
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor edx, edx
mov rbx, rdi
call fcn.140004558
mov rdi, qword [rdi]
mov rcx, rbx
call fcn.140005a00
cmp rdi, rsi
jne 0x140009ef0
lea rcx, [0x140018078]
call fcn.140009f80
call fcn.14000a7d0
test eax, eax
jns 0x140009f41
mov dword [0x140023dd0], 0xab1
lea rcx, [fcn.14000a7d0]
jmp 0x14000987b
call fcn.14000b020
xor eax, eax
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14000e4b0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret