Function at 0x1400d7124
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r13, rdx
mov r12, rcx
mov qword [rsp + 0x78], rcx
lea rsi, [0x140148ea8]
mov eax, 5
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1400d719c
test byte [rcx + 0x1c], 1
je 0x1400d719c
cmp byte [rcx + 0x19], al
jb 0x1400d719c
lea edx, [rax + 0x16]
mov dword [rsp + 0x20], 1
mov r9, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400d65f0
xor r14d, r14d
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
mov rax, qword [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
mov r15d, r14d
mov dword [rsp + 0x20], r14d
or rbx, 0xffffffffffffffff
mov r9d, ebx
mov r8, r13
mov edx, ebx
lea rcx, [0x1400059c0]
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
je 0x1400d7bd1
test r13, r13
jne 0x1400d7205
mov eax, r14d
jmp 0x1400d7213
mov rax, rbx
inc rax
cmp word [r13 + rax*2], r14w
jne 0x1400d7208
mov r8d, eax
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.1400118b4
lea rcx, [rsp + 0x58]
call fcn.140043db4
xor r8d, r8d
lea rdx, [rbp - 0x58]
mov rcx, r12
call fcn.1400d9714
mov r15d, eax
mov bl, 4
mov r10, qword [0x140148ea8]
cmp r10, rsi
je 0x1400d7279
test byte [r10 + 0x1c], 2
je 0x1400d7279
cmp byte [r10 + 0x19], bl
jb 0x1400d7279
mov edx, 0x1c
mov r9d, eax
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fd64
mov r10, qword [0x140148ea8]
mov rdi, qword [rsp + 0x58]
test r15d, r15d
jne 0x1400d7bd8
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.1400d2778
mov r15d, eax
mov dword [rsp + 0x54], eax
mov r10, qword [0x140148ea8]
cmp r10, rsi
je 0x1400d72d6
test byte [r10 + 0x1c], 2
je 0x1400d72d6
cmp byte [r10 + 0x19], bl
jb 0x1400d72d6
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.140011da0
mov r10, qword [0x140148ea8]
cmp r15d, 2
jne 0x1400d7321
mov r15d, 0x490
mov dword [rsp + 0x54], r15d
cmp r10, rsi
je 0x1400d7c13
test byte [r10 + 0x1c], 2
je 0x1400d7bd8
cmp byte [r10 + 0x19], bl
jb 0x1400d7bd8
mov edx, 0x1e
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fcb0
mov r10, qword [0x140148ea8]
test r15d, r15d
jne 0x1400d7bd8
mov rdx, rdi
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1400d7369
test byte [rcx + 0x1c], 2
je 0x1400d7369
cmp byte [rcx + 0x19], bl
jb 0x1400d7369
lea edx, [r15 + 0x1f]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.140011da0
mov rax, qword [r12]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, r12
call rbx
test rax, rax
je 0x1400d7611
mov rax, qword [r12]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, r12
call rbx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140011450
nop
mov r12, r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x60], r14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400d73fc
mov ebx, r14d
mov r12, qword [rbp - 0x60]
mov qword [rbp - 0x40], r12
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1400d7431
test byte [rcx + 0x1c], 2
je 0x1400d7431
cmp byte [rcx + 0x19], 4
jb 0x1400d7431
mov edx, 0x20
mov dword [rsp + 0x20], ebx
mov r9, qword [rbp - 0x80]
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.140011da0
test ebx, ebx
jne 0x1400d75be
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x40]
call fcn.1400d2210
mov ebx, eax
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1400d7479
test byte [rcx + 0x1c], 2
je 0x1400d7479
cmp byte [rcx + 0x19], 4
jb 0x1400d7479
mov edx, 0x21
mov r9d, eax
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
test ebx, ebx
jne 0x1400d75be
mov ebx, r14d
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400d75be
mov r15, r14
mov rsi, r14
test ebx, ebx
js 0x1400d75ab
cmp ebx, eax
jge 0x1400d75ab
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], r14
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, qword [r15 + rax]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
test eax, eax
jne 0x1400d74d9
mov rsi, qword [rbp - 0x68]
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1400d7525
test byte [rcx + 0x1c], 2
je 0x1400d7525
cmp byte [rcx + 0x19], 4
jb 0x1400d7525
cmp ebx, dword [rsp + 0x70]
jge 0x1400d7594
mov rax, qword [rsp + 0x68]
mov edx, 0x22
mov dword [rsp + 0x20], r14d
mov r9, qword [r15 + rax]
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.140011da0
test r14d, r14d
jne 0x1400d7570
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x1400d7570
test byte [rcx + 0x1c], 2
je 0x1400d7570
cmp byte [rcx + 0x19], 4
jb 0x1400d7570
lea edx, [r14 + 0x23]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.140011da0
xor r14d, r14d
test rsi, rsi
je 0x1400d7581
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
add r15, 8
mov eax, dword [rsp + 0x70]
cmp ebx, eax
jae 0x1400d75a4
jmp 0x1400d7493
mov edx, 1
mov ecx, 0xc000008c
call fcn.1400119d8
int3
mov r15d, dword [rsp + 0x54]
jmp 0x1400d75be
mov edx, 1
mov ecx, 0xc000008c
call fcn.1400119d8
nop
jmp 0x1400d75bd
nop
lea rcx, [rsp + 0x68]
call fcn.140026ee0
nop
test r12, r12
je 0x1400d75d8
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rbp - 0x80]
lock add dword [rsi - 8], 0xffffffff
jg 0x1400d7600
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
lea rsi, [0x140148ea8]
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1400d7b47
call fcn.140103f74
test al, al
jne 0x1400d7b47
mov qword [rsp + 0x48], r14
mov ebx, 0x80004001
cmp qword [0x14014cf50], r14
je 0x1400d764b
lea rdx, [rsp + 0x48]
call fcn.140019e7c
mov ebx, eax
mov r10, qword [0x140148ea8]
mov r13d, 2
cmp r10, rsi
je 0x1400d7699
test byte [r10 + 0x1c], r13b
je 0x1400d7699
mov ecx, r13d
test ebx, ebx
lea eax, [r13 + 3]
cmovns ecx, eax
movzx eax, byte [r10 + 0x19]
cmp eax, ecx
jl 0x1400d7699
lea edx, [r13 + 0x23]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14001783c
cmp ebx, 0x80004001
jne 0x1400d76f5
lea rcx, [rsp + 0x48]
call fcn.1400f3694
mov ebx, eax
mov r10, qword [0x140148ea8]
cmp r10, rsi
je 0x1400d76f5
test byte [r10 + 0x1c], r13b
je 0x1400d76f5
movzx edx, byte [r10 + 0x19]
mov ecx, r13d
test eax, eax
mov eax, 5
cmovns ecx, eax
cmp edx, ecx
jl 0x1400d76f5
lea edx, [rax + 0x21]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14001783c
test ebx, ebx
js 0x1400d7b1f
mov qword [rsp + 0x40], r14
lea rcx, [0x140006018]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
mov qword [rbp - 0x28], rax
test rax, rax
jne 0x1400d7729
mov ecx, 0x8007000e
call fcn.1400119f0
nop
jmp 0x1400d7728
nop
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov r14, qword [rax + 0x30]
mov rcx, r14
call qword [fcn.140015690]
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rbx
call r14
mov ebx, eax
mov r10, qword [0x140148ea8]
lea rax, [0x140148ea8]
xor r14d, r14d
cmp r10, rax
je 0x1400d779e
test byte [r10 + 0x1c], r13b
je 0x1400d779e
movzx edx, byte [r10 + 0x19]
mov ecx, r13d
test ebx, ebx
lea eax, [r14 + 5]
cmovns ecx, eax
cmp edx, ecx
jl 0x1400d779e
lea edx, [rax + 0x22]
mov r9d, ebx
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fd64
mov r10, qword [0x140148ea8]
test ebx, ebx
jne 0x1400d7aef
lea r12, [0x140148ea8]
lea r15d, [rbx + 5]
cmp r10, r12
je 0x1400d77dc
test byte [r10 + 0x1c], r13b
je 0x1400d77dc
cmp byte [r10 + 0x19], r15b
jb 0x1400d77dc
mov edx, 0x28
mov r9, qword [rsp + 0x40]
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fda0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400d7ab2
mov qword [rsp + 0x60], r14
mov rax, qword [rbx]
mov r14, qword [rax + 0x40]
mov rcx, r14
call qword [fcn.140015690]
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
call r14
mov ebx, eax
mov r10, qword [0x140148ea8]
cmp r10, r12
je 0x1400d7856
test byte [r10 + 0x1c], 8
je 0x1400d7856
movzx edx, byte [r10 + 0x19]
mov ecx, r13d
test eax, eax
cmovns ecx, r15d
cmp edx, ecx
jl 0x1400d7856
mov edx, 0x29
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.1400170b0
test ebx, ebx
js 0x1400d7a8d
or dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
lea edx, [r9 + 2]
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, r13d
jne 0x1400d7a82
and qword [rbp - 0x70], 0
mov byte [rbp], 0
xor eax, eax
mov qword [rbp + 1], rax
mov dword [rbp + 9], eax
mov word [rbp + 0xd], ax
mov byte [rbp + 0xf], al
and qword [rbp - 0x78], rax
and dword [rsp + 0x50], eax
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [fcn.140015690]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call r14
mov ebx, eax
mov r10, qword [0x140148ea8]
cmp r10, r12
je 0x1400d790a
test byte [r10 + 0x1c], r13b
je 0x1400d790a
movzx edx, byte [r10 + 0x19]
mov ecx, r13d
test eax, eax
cmovns ecx, r15d
cmp edx, ecx
jl 0x1400d790a
mov edx, 0x2a
mov qword [rsp + 0x20], rdi
mov r9d, eax
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.1400170b0
test ebx, ebx
js 0x1400d7a63
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [fcn.140015690]
lea rdx, [rbp]
mov rcx, rbx
call r14
mov ebx, eax
mov r10, qword [0x140148ea8]
cmp r10, r12
je 0x1400d7974
test byte [r10 + 0x1c], r13b
je 0x1400d7974
movzx edx, byte [r10 + 0x19]
mov ecx, r13d
test eax, eax
cmovns ecx, r15d
cmp edx, ecx
jl 0x1400d7974
mov edx, 0x2b
mov qword [rsp + 0x20], rdi
mov r9d, eax
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.1400170b0
test ebx, ebx
js 0x1400d7a63
mov rbx, qword [rbp - 0x70]
mov rax, qword [rbx]
mov r14, qword [rax + 0x38]
mov rcx, r14
call qword [fcn.140015690]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call r14
mov ebx, eax
mov r8, qword [0x140148ea8]
cmp r8, r12
je 0x1400d79e7
test byte [r8 + 0x1c], r13b
je 0x1400d79e7
movzx edx, byte [r8 + 0x19]
mov ecx, r13d
test eax, eax
cmovns ecx, r15d
cmp edx, ecx
jl 0x1400d79e7
mov qword [rsp + 0x30], rdi
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rcx, qword [r8 + 0x10]
call fcn.1400d6978
test ebx, ebx
js 0x1400d7a63
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp - 0x10], xmm0
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [fcn.140015690]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
mov r8, qword [rbp - 0x78]
mov edx, 1
mov rcx, rbx
call r14
mov r10, qword [0x140148ea8]
cmp r10, r12
je 0x1400d7a63
test byte [r10 + 0x1c], r13b
je 0x1400d7a63
movzx edx, byte [r10 + 0x19]
mov ecx, r13d
test eax, eax
cmovns ecx, r15d
cmp edx, ecx
jl 0x1400d7a63
mov edx, 0x2d
mov r9d, eax
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fd64
nop
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x1400d7a82
mov rax, qword [rbx]
mov r14, qword [rax + 0x10]
mov rcx, r14
call qword [fcn.140015690]
mov rcx, rbx
call r14
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x1400d7ab2
and qword [rsp + 0x40], 0
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, r14
call rbx
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov r14, qword [rax + 0x38]
mov rcx, r14
call qword [fcn.140015690]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call r14
xor r14d, r14d
test eax, eax
jne 0x1400d7ae5
mov r10, qword [0x140148ea8]
jmp 0x1400d77b1
mov r15d, dword [rsp + 0x54]
mov r12, qword [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400d7b18
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [fcn.140015690]
mov rcx, rbx
call rsi
lea rsi, [0x140148ea8]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400d7b77
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [fcn.140015690]
mov rcx, rbx
call rsi
lea rsi, [0x140148ea8]
jmp 0x1400d7b77
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1400d7b77
test byte [rcx + 0x1c], 2
je 0x1400d7b77
cmp byte [rcx + 0x19], 2
jb 0x1400d7b77
mov edx, 0x24
mov r9, r13
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcd0
mov rax, qword [r12]
mov rbx, qword [rax + 0x48]
mov rcx, rbx
call qword [fcn.140015690]
mov edx, 0x3ea
mov rcx, r12
call rbx
mov ecx, eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.1400dbde0
mov r10, qword [0x140148ea8]
cmp r10, rsi
je 0x1400d7c13
test byte [r10 + 0x1c], 2
je 0x1400d7bd8
cmp byte [r10 + 0x19], 4
jb 0x1400d7bd8
mov edx, 0x2e
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fcb0
mov r10, qword [0x140148ea8]
cmp r10, rsi
je 0x1400d7c13
test byte [r10 + 0x1c], 1
je 0x1400d7c13
movzx edx, byte [r10 + 0x19]
mov eax, r15d
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1400d7c13
mov edx, 0x2f
mov r9d, r15d
lea r8, [0x1400091f8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fd64
nop
lea rsi, [rdi - 0x18]
lock add dword [rsi + 0x10], 0xffffffff
jg 0x1400d7c3a
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400d7c49
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r15d
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140001000
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret