Function at 0x14004c8e0
Capabilities:
Check os version
Delete registry key
Delete registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r15, r8
mov r12, rdx
mov rsi, rcx
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x7f], rbx
mov edx, dword [0x1401d5d60]
lea ecx, [rdx + 2]
lea eax, [rdx + 1]
imul ecx, eax
imul ecx, edx
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 3
jne 0x14004c979
mov ecx, 4
call fcn.1400d3fa0
mov rdi, rax
call fcn.1400d41a0
mov dword [rdi], eax
mov dword [0x1401d5d60], eax
mov rcx, rdi
call fcn.1400d37c0
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
movzx edx, al
cmp ecx, 6
ja 0x14004c99d
jne 0x14004cb87
cmp edx, 1
jbe 0x14004cb87
cmp qword [0x1401d0d48], 0xffffffff80000002
je 0x14004cb87
mov r8b, 1
mov rdx, rsi
lea rcx, [rbp + 0x17]
call fcn.14004c380
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x14004ca12
cmp dword [rbx + 0x10], 0
jl 0x14004ca04
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004ca04
call fcn.1400025c0
mov rsi, rax
lock add dword [rbx + 0x10], edi
jg 0x14004c9fa
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rbp + 0x7f], rax
jmp 0x14004ca12
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.140002470
nop
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ca2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14, qword [0x1401d0d48]
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp + 0x7f]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004ca8e
xor esi, esi
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 9]
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 rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004ca98
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x1401d5d60]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r8d, eax
cmp r8d, 1
jne 0x14004cafe
mov eax, 0xc2
mov r8d, 0xdc
nop dword [rax]
test r8d, r8d
je 0x14004caf5
mov ecx, r8d
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
test ecx, ecx
jne 0x14004cae0
add eax, r8d
mov dword [0x1401d5d60], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [0x1401d0d48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004cb2c
xor sil, sil
jmp 0x14004cd49
mov rax, qword [r15]
mov rdx, qword [r12]
mov rcx, qword [rbp - 0x19]
cmp dword [rax - 0x10], 0
jne 0x14004cb47
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x14004cb7e
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14004cb7e
mov rdx, qword [r15]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x19]
jmp 0x14004cd3d
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x1f]
call fcn.14004c380
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x14004cbeb
cmp dword [rbx + 0x10], 0
jl 0x14004cbdd
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004cbdd
call fcn.1400025c0
mov rsi, rax
lock add dword [rbx + 0x10], edi
jg 0x14004cbd3
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rbp + 0x7f], rax
jmp 0x14004cbeb
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.140002470
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004cc03
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14, qword [0x1401d0d48]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp + 0x7f]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
je 0x14004cc67
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x11]
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 rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004cc71
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [0x1401d5d60]
lea r9d, [r8 + 1]
mov ecx, r9d
imul ecx, r8d
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub ecx, eax
cmp ecx, 1
jne 0x14004ccc2
test r8d, r8d
je 0x14004ccb8
dec r8d
je 0x14004ccb0
mov dword [0x1401d5d60], r9d
jmp 0x14004ccc2
mov dword [0x1401d5d60], esi
jmp 0x14004ccc2
mov dword [0x1401d5d60], 2
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [0x1401d0d48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004cd49
mov rax, qword [r15]
mov rdx, qword [r12]
mov rcx, qword [rbp - 1]
cmp dword [rax - 0x10], esi
jne 0x14004cd02
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x14004cd39
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14004cd39
mov rdx, qword [r15]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete sil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
jg 0x14004cd60
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, sil
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret