Function at 0x1400020b8
Capabilities:
Delete file
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x200
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, rcx
cmp byte [rcx + 0xa0], 1
je 0x140002115
call fcn.140003410
mov rcx, rdi
call fcn.140003a6c
mov rcx, rdi
call fcn.1400037d0
cmp qword [rdi], 0xffffffffffffffff
je 0x140002124
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140004248
mov rsi, rax
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov r8, rsi
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x48]
call fcn.140005c74
nop
call fcn.140001238
mov rbx, rax
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov qword [rsp + 0x58], rcx
lea rax, [rbp - 0x58]
mov qword [rsp + 0x30], rax
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x38]
call fcn.1400047d0
nop
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140003fe4
nop
mov r14d, 0x1000
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400021e2
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, r14
jb 0x1400021dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ee94
call fcn.140001238
mov rbx, rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x30], rax
lea rdx, str.NtUnloadDriver
lea rcx, [rsp + 0x38]
call fcn.1400047d0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140005d50
mov ebx, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140002255
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, r14
jb 0x140002250
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002250
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ee94
mov r8, rsi
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x38]
call fcn.140005c74
cmp qword [rax + 0x18], 8
jb 0x140002273
mov rax, qword [rax]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea rcx, [rsp + 0x38]
call fcn.140004598
nop
lea rcx, [rbp - 0x48]
call fcn.140004598
nop
lea rcx, [rsp + 0x68]
call fcn.140004598
xor r15d, r15d
test ebx, ebx
js 0x14000243b
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140004340
nop
lea rdx, str..sys
mov rcx, rax
call fcn.1400068fc
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rsp + 0x68]
call fcn.140004598
cmp qword [rbp - 0x68], r15
jne 0x14000230b
mov ebx, 0xc0000001
jmp 0x140002432
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x20]
call fcn.1400048d4
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
movabs rax, 0x1c926b9d39431d5f
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x23d6df
sub rcx, rax
movsxd r14, ecx
add r14, 0xdd9d
mov rcx, r14
call fcn.14000f4d4
mov rsi, rax
mov rdi, r15
test r14, r14
je 0x1400023b2
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov byte [rdi + rsi], r9b
inc rdi
cmp rdi, r14
jb 0x14000237f
mov r8, r14
mov rdx, rsi
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x20]
call fcn.140004848
mov rcx, rsi
call fcn.14000ee94
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400023d3
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.1400053c0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x78]
call fcn.140004598
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14000ee70
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret