Function at 0x140009358
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 [0x1400246e0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r14d, r14d
mov dword [rbp - 0x68], ecx
cmp byte [0x140024fe8], r14b
mov r13b, r14b
lea ebx, [r14 + 1]
mov byte [rsp + 0x70], bl
jne 0x140010224
cmp dword [0x1400252c0], r14d
jne 0x140010251
lea rcx, [0x140018a40]
call fcn.140009fc4
mov rax, qword [0x140025270]
mov esi, r14d
mov rdi, rax
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x78], r14d
lea rcx, [0x140025270]
mov ebx, 0x40
cmp rax, rcx
jne 0x14001025c
cmp byte [rsp + 0x70], r14b
je 0x1400103f8
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 0x140010417
cmp dword [rsp + 0x78], r14d
jne 0x140010455
cmp qword [0x140024db0], r14
jne 0x14001048a
lea rcx, [0x140018ac8]
call fcn.140009fc4
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14000e710
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 0x1400093ad
call fcn.14001439c
nop
jmp 0x1400093ba
mov qword [rbp - 0x80], r14
lea r12, [rdi + 0x20]
lea r14, [rdi + 0x10]
mov r8, r12
mov rdx, r14
mov r15, rdi
call fcn.140014930
xor eax, eax
cmp word [r12], ax
jne 0x1400102a8
mov rax, qword [rdi + 0x18]
cmp word [rax], bx
jne 0x140010299
add rax, 2
mov qword [rdi + 0x18], rax
mov eax, 0xfffe
add word [r14], ax
mov rcx, r14
call fcn.140014a34
mov ebx, eax
jmp 0x14001038c
xorps xmm0, xmm0
mov dword [rbp - 0x60], 0x30
lea r8, [rbp - 0x60]
mov qword [rbp - 0x58], rax
mov edx, 0x110000
mov dword [rbp - 0x48], ebx
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x50], r14
movdqu xmmword [rbp - 0x40], xmm0
call fcn.140015060
mov ebx, eax
test eax, eax
js 0x14001038c
mov rdx, qword [rdi + 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 0x14001030a
mov ecx, 0x40
cmp word [rax], cx
je 0x14001030a
xor esi, esi
jmp 0x140010324
add rax, 2
mov esi, 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, esi
call fcn.14001516c
mov ebx, eax
test eax, eax
jns 0x140010388
test esi, esi
je 0x140010388
cmp eax, 0xc0000022
jne 0x140010388
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
call fcn.1400157b0
mov ecx, 0x80000000
mov ebx, eax
add eax, ecx
test ecx, eax
jne 0x140010388
cmp ebx, 0xc00000ba
je 0x140010388
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
call fcn.140015598
mov ebx, eax
mov ecx, 1
mov eax, dword [rsp + 0x78]
test ebx, ebx
cmovns eax, ecx
mov dword [rsp + 0x78], eax
mov esi, dword [rsp + 0x74]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400103a1
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x1400103ad
inc esi
mov dword [rsp + 0x74], esi
jmp 0x1400103be
mov r8d, ebx
mov rdx, r12
mov rcx, r14
call fcn.140014e20
or r13b, al
mov rax, qword [rdi]
mov rdi, rax
cmp qword [rax + 8], r15
jne 0x1400103f1
mov rdx, qword [r15 + 8]
cmp qword [rdx], r15
jne 0x1400103f1
mov qword [rdx], rax
mov rcx, r15
mov qword [rax + 8], rdx
call fcn.140009300
mov rax, qword [0x140025270]
xor r14d, r14d
jmp 0x1400093dd
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 0x1400093fd
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 0x140009444
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 0x14000944f
test r13b, r13b
je 0x140010541
lea rcx, [rbp - 0x20]
call fcn.140014b94
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], esi
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.140014080
test eax, eax
js 0x140010541
sub rbx, qword [rbp - 0x68]
lea rax, [rbp - 0x10]
mov rcx, qword [0x140024db0]
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 [0x140024db0]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [0x140024db0], r14
jmp 0x14000945c