Function at 0x140001cd0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 8], rax
xor esi, esi
mov dword [rsp + 0x50], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
lea rdx, str.SoftwareClasses.pwnShellOpen
lea rcx, [rsp + 0x58]
call fcn.1400020c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x140004610]
movdqu xmmword [rbp - 8], xmm1
mov word [rbp - 0x18], si
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001dc3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023ac
movdqa xmm0, xmmword [0x140004610]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rax
lea rdx, str.SoftwareClasses.pwnShell
lea rcx, [rsp + 0x78]
call fcn.1400020c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140004610]
movdqu xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x40], si
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140001e97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023ac
movdqa xmm0, xmmword [0x140004610]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], si
lea rdx, str.command
lea rcx, [rbp - 0x68]
call fcn.1400020c0
nop
mov ebx, 1
mov dword [rsp + 0x50], ebx
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140001f23
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140001f23
lea rdx, str.Open
lea rcx, [rsp + 0x58]
call fcn.1400020c0
mov ebx, 3
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140001f23
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140001f23
mov dil, 1
jmp 0x140001f26
xor dil, dil
test bl, 2
je 0x140001f86
and ebx, 0xfffffffd
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001f73
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023ac
movdqa xmm0, xmmword [0x140004610]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
test bl, 1
je 0x140001fdf
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140001fce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fc9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001fc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023ac
movdqa xmm0, xmmword [0x140004610]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], si
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140001fee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140002031
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000202c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000202c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023ac
movdqa xmm0, xmmword [0x140004610]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], si
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140002051
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140002094
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000208f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000208f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023ac
movzx eax, dil
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140002350
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret