Function at 0x140009348
Capabilities:
Delete registry value
Set registry value
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r14d, r14d
mov dword [rbp - 0x68], ecx
cmp byte [0x140023fe8], r14b
mov r13b, r14b
lea ebx, [r14 + 1]
mov byte [rsp + 0x70], bl
jne 0x14000fb9e
cmp dword [0x1400242c0], r14d
jne 0x14000fbcb
lea rcx, [0x1400179c0]
call fcn.140009f80
mov rax, qword [0x140024270]
mov edi, r14d
mov rsi, rax
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x78], r14d
lea rcx, [0x140024270]
mov ebx, 0x40
cmp rax, rcx
jne 0x14000fbd6
cmp byte [rsp + 0x70], r14b
je 0x14000fd79
lea rbx, str.Session_Manager
mov ecx, 2
mov rdx, rbx
lea r8, str.PendingFileRenameOperations
call qword [sym.imp.ntdll.dll_RtlDeleteRegistryValue]
nop dword [rax + rax]
lea r8, str.PendingFileRenameOperations2
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.ntdll.dll_RtlDeleteRegistryValue]
nop dword [rax + rax]
cmp dword [rbp - 0x68], r14d
jne 0x14000fd98
cmp dword [rsp + 0x78], r14d
jne 0x14000fdd6
cmp qword [0x140023db0], r14
jne 0x14000fe0b
lea rcx, [0x140017a48]
call fcn.140009f80
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14000e4b0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor r8d, r8d
lea r9, [rsp + 0x70]
mov dl, bl
lea ecx, [r8 + 0x12]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
movzx ecx, byte [rsp + 0x70]
test eax, eax
cmovs ecx, ebx
mov byte [rsp + 0x70], cl
jmp 0x14000939d
call fcn.140013ee0
nop
jmp 0x1400093aa
mov qword [rbp - 0x80], r14
lea r12, [rsi + 0x20]
lea r14, [rsi + 0x10]
mov r8, r12
mov rdx, r14
mov r15, rsi
call fcn.140014460
xor ecx, ecx
cmp word [r12], cx
jne 0x14000fc29
mov rax, qword [rsi + 0x18]
cmp word [rax], bx
jne 0x14000fc13
add rax, 2
mov qword [rsi + 0x18], rax
mov eax, 0xfffe
add word [r14], ax
cmp word [r12], cx
jne 0x14000fc29
mov rcx, r14
call fcn.140014564
mov ebx, eax
jmp 0x14000fd0d
mov qword [rbp - 0x58], rcx
lea r8, [rbp - 0x60]
xorps xmm0, xmm0
mov dword [rbp - 0x60], 0x30
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x48], ebx
mov edx, 0x110000
mov qword [rbp - 0x50], r14
movdqu xmmword [rbp - 0x40], xmm0
call fcn.140014b90
mov ebx, eax
test eax, eax
js 0x14000fd0d
mov rdx, qword [rsi + 0x28]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rax, qword [rbp - 0x70]
cmp word [rax], 0x21
je 0x14000fc8b
mov ecx, 0x40
cmp word [rax], cx
je 0x14000fc8b
xor edi, edi
jmp 0x14000fca5
add rax, 2
mov edi, 1
mov qword [rbp - 0x70], rax
mov eax, 0xfffe
add word [rbp - 0x78], ax
add word [rbp - 0x76], ax
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
mov r8d, edi
call fcn.140014c9c
mov ebx, eax
test eax, eax
jns 0x14000fd09
test edi, edi
je 0x14000fd09
cmp eax, 0xc0000022
jne 0x14000fd09
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
call fcn.1400152fc
mov ecx, 0x80000000
mov ebx, eax
add eax, ecx
test ecx, eax
jne 0x14000fd09
cmp ebx, 0xc00000ba
je 0x14000fd09
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
call fcn.1400150f8
mov ebx, eax
mov ecx, 1
mov eax, dword [rsp + 0x78]
test ebx, ebx
cmovns eax, ecx
mov dword [rsp + 0x78], eax
mov edi, dword [rsp + 0x74]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000fd22
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x14000fd2e
inc edi
mov dword [rsp + 0x74], edi
jmp 0x14000fd3f
mov r8d, ebx
mov rdx, r12
mov rcx, r14
call fcn.140014950
or r13b, al
mov rax, qword [rsi]
mov rsi, rax
cmp qword [rax + 8], r15
jne 0x14000fd72
mov rdx, qword [r15 + 8]
cmp qword [rdx], r15
jne 0x14000fd72
mov qword [rdx], rax
mov rcx, r15
mov qword [rax + 8], rdx
call fcn.1400092f0
mov rax, qword [0x140024270]
xor r14d, r14d
jmp 0x1400093cd
mov ecx, 3
int 0x29
xor edx, edx
lea r9, [rsp + 0x70]
xor r8d, r8d
lea ecx, [rdx + 0x12]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
nop
jmp 0x1400093ed
lea r8, str.PendingFileRenameOperations
xor ecx, ecx
lea rdx, str.REGISTRYMACHINEOSDATASession_Manager
call qword [sym.imp.ntdll.dll_RtlDeleteRegistryValue]
nop dword [rax + rax]
lea r8, str.PendingFileRenameOperations2
xor ecx, ecx
lea rdx, str.REGISTRYMACHINEOSDATASession_Manager
call qword [sym.imp.ntdll.dll_RtlDeleteRegistryValue]
nop dword [rax + rax]
nop
jmp 0x140009434
mov r9d, 4
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], r9d
lea r8, str.ClearTempFiles
mov rdx, rbx
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 2]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
nop dword [rax + rax]
nop
jmp 0x14000943f
test r13b, r13b
je 0x14000fec2
lea rcx, [rbp - 0x20]
call fcn.1400146c4
movsx eax, word [rbp - 0x16]
mov ebx, 0x200
movsx ecx, word [rbp - 0x18]
movsx edx, word [rbp - 0x1a]
movsx r8d, word [rbp - 0x20]
movsx r9d, word [rbp - 0x1c]
movsx r10d, word [rbp - 0x1e]
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], eax
lea rax, str._d__d__d__d:_d:_d____d_Successful_PFRO_operations_r_n_r_n
mov dword [rsp + 0x50], ecx
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edx
mov edx, ebx
mov dword [rsp + 0x40], r8d
xor r8d, r8d
mov dword [rsp + 0x38], r9d
lea r9, [rbp - 0x68]
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call fcn.140013bd0
test eax, eax
js 0x14000fec2
sub rbx, qword [rbp - 0x68]
lea rax, [rbp - 0x10]
mov rcx, qword [0x140023db0]
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r14
xor edx, edx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
mov rcx, qword [0x140023db0]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [0x140023db0], r14
jmp 0x14000944c