Function at 0x14000b0cc
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 [0x140026730]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r14d, r14d
mov dword [rbp - 0x68], ecx
cmp byte [0x140027048], r14b
mov r13b, r14b
lea ebx, [r14 + 1]
mov byte [rsp + 0x70], bl
jne 0x140012302
cmp dword [0x140027330], r14d
jne 0x14001232f
lea rcx, [0x14001a7f0]
call fcn.14000c318
mov rax, qword [0x1400272e0]
mov edi, r14d
mov rsi, rax
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x78], r14d
lea rcx, [0x1400272e0]
mov ebx, 0x40
cmp rax, rcx
jne 0x14001233a
cmp byte [rsp + 0x70], r14b
je 0x1400124d6
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 0x1400124f5
cmp dword [rsp + 0x78], r14d
jne 0x140012533
cmp qword [0x140026e10], r14
jne 0x140012568
lea rcx, [0x14001a800]
call fcn.14000c318
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140010a60
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 0x14000b121
call fcn.140015f48
nop
jmp 0x14000b12e
mov qword [rbp - 0x80], r14
lea r12, [rsi + 0x20]
lea r14, [rsi + 0x10]
mov r8, r12
mov rdx, r14
mov r15, rsi
call fcn.140016564
xor eax, eax
cmp word [r12], ax
jne 0x140012386
mov rax, qword [rsi + 0x18]
cmp word [rax], bx
jne 0x140012377
add rax, 2
mov qword [rsi + 0x18], rax
mov eax, 0xfffe
add word [r14], ax
mov rcx, r14
call fcn.140016668
mov ebx, eax
jmp 0x14001246a
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.140016e08
mov ebx, eax
test eax, eax
js 0x14001246a
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 0x1400123e8
mov ecx, 0x40
cmp word [rax], cx
je 0x1400123e8
xor edi, edi
jmp 0x140012402
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.140016f14
mov ebx, eax
test eax, eax
jns 0x140012466
test edi, edi
je 0x140012466
cmp eax, 0xc0000022
jne 0x140012466
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
call fcn.140017558
mov ecx, 0x80000000
mov ebx, eax
add eax, ecx
test ecx, eax
jne 0x140012466
cmp ebx, 0xc00000ba
je 0x140012466
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
call fcn.140017340
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 0x14001247f
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x14001248b
inc edi
mov dword [rsp + 0x74], edi
jmp 0x14001249c
mov r8d, ebx
mov rdx, r12
mov rcx, r14
call fcn.140016bc8
or r13b, al
mov rax, qword [rsi]
mov rsi, rax
cmp qword [rax + 8], r15
jne 0x1400124cf
mov rdx, qword [r15 + 8]
cmp qword [rdx], r15
jne 0x1400124cf
mov qword [rdx], rax
mov rcx, r15
mov qword [rax + 8], rdx
call fcn.140009ad0
mov rax, qword [0x1400272e0]
xor r14d, r14d
jmp 0x14000b151
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 0x14000b171
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 0x14000b1b8
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 0x14000b1c3
test r13b, r13b
je 0x14001261f
lea rcx, [rbp - 0x20]
call fcn.1400167c8
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.140015c2c
test eax, eax
js 0x14001261f
sub rbx, qword [rbp - 0x68]
lea rax, [rbp - 0x10]
mov rcx, qword [0x140026e10]
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 [0x140026e10]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [0x140026e10], r14
jmp 0x14000b1d0