Function at 0x140030498
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x330]
mov eax, 0x430
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
lea r14d, [rdi + 7]
mov qword [rsp + 0x48], r14
lea rdx, str.SoftwareMicrosoftOfficeC2RSvcMgrReport
lea rcx, [rsp + 0x30]
call fcn.14000ae4c
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], r14
lea r8, [rsp + 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140009bf4
mov esi, 0x1000
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140030557
mov rcx, qword [rsp + 0x30]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, rsi
jb 0x140030551
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140030551
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r14
mov word [rsp + 0x30], di
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14003072e
cmp rax, 0xff
ja 0x1400306dc
mov dword [rsp + 0x38], edi
lea rbx, vtable.ORegistryKey.0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
movdqa xmm0, xmmword [0x14031bbe0]
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x68], 1
mov dword [rsp + 0x6c], 0x85
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [0x14037e490]
call fcn.140010c58
test al, al
jne 0x140030681
mov rcx, qword [rsp + 0x60]
test rcx, rcx
mov qword [rsp + 0x30], rbx
je 0x1400305fa
cmp byte [rsp + 0x68], dil
je 0x1400305fa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
mov qword [rsp + 0x50], rdi
cmovae rax, qword [rsp + 0x40]
mov word [rax], di
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x14003064a
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x40]
cmp rax, rsi
mov rdx, rcx
jb 0x140030644
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x1400306a7
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp - 0x78]
cmp rax, 8
jb 0x1400306b5
mov rcx, qword [rsp + 0x70]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, rsi
jb 0x1400306ae
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400306ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov rcx, qword [0x14037e4c0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x1400306fb
jmp 0x1400305d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14024c6d0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea r9, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140190e4c
lea rdx, [0x140325060]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [0x14037e4a0]
mov qword [rsp + 0x20], rcx
mov r8d, eax
lea rcx, [rbp - 0x70]
call fcn.140190f14
lea rdx, [0x140325060]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rbp - 0x70]
call fcn.140190dac
lea rdx, [0x140325060]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3