Function at 0x14005cf10
Capabilities:
Delete registry key
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov qword [rsp + 0x1a8], rbx
mov rax, qword [0x14025e510]
xor rax, rsp
mov qword [rsp + 0x140], rax
movzx r12d, r9b
mov byte [rsp + 0x50], r9b
mov r15, r8
mov rbx, rdx
mov qword [rsp + 0xe0], rdx
mov r14, rcx
test rdx, rdx
jne 0x14005cf79
test r9b, r9b
je 0x14005cf72
call fcn.14000bd68
xor al, al
jmp 0x14005d87f
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
mov rdi, rsi
test eax, eax
cmove rdi, qword [rsp + 0xf8]
test rdi, rdi
je 0x14005cfe3
mov rcx, rdi
call fcn.140054db0
test al, al
je 0x14005cfd5
cmp rdi, r15
je 0x14005cfc7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14005cfe3
cmp rdi, r15
je 0x14005cfe3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [r14]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [rax + 0x50]
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x60]
mov rdi, rax
lea rax, vtable.CExtRegistry.0
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xf0]
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, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r13, rsi
test eax, eax
cmove r13, qword [rsp + 0xf0]
mov qword [rsp + 0x128], r13
test r13, r13
jne 0x14005d06b
xor al, al
jmp 0x14005d87f
mov dword [rsp + 0x90], edi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.data_size
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14005d0bf
test r12b, r12b
je 0x14005d0af
call fcn.14000bd68
nop
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14005d87f
mov edi, esi
mov dword [rsp + 0x60], esi
lea rax, vtable.CExtIntegrityCheckSum.0
mov qword [rsp + 0xa8], rax
mov ebx, esi
mov dword [rsp + 0xb0], ebx
xor eax, eax
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xbc], eax
mov dword [rsp + 0xc0], eax
mov rax, qword [r14]
mov r8d, 0x10
lea rdx, [rsp + 0x130]
mov rcx, r14
call qword [rax + 0x68]
mov ebp, eax
or rsi, 0xffffffffffffffff
test eax, eax
je 0x14005d4f9
call fcn.140008c24
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x14005d4e9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r8d, edi
shr r8d, 7
lea rdx, str.block_0x_08lX
lea rcx, [rsp + 0x68]
call fcn.140005d30
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x58]
call fcn.1400062b0
nop
mov rax, qword [rsp + 0x58]
mov r12d, dword [rax - 0x10]
lea edi, [r12 + 1]
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, edi
or ecx, edx
jge 0x14005d1a2
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.140004ec0
mov rax, qword [rsp + 0x58]
mov edx, 0x5c
mov word [rax + r12*2], dx
test edi, edi
js 0x14005d4de
mov rax, qword [rsp + 0x58]
cmp edi, dword [rax - 0xc]
jg 0x14005d4de
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rsp + 0x58]
xor edi, edi
mov word [rax + rcx*2], di
mov rdx, qword [rsp + 0x68]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140004560
lea r11, vtable.CExtRegistry.0
mov qword [rsp + 0x108], r11
lea rax, [rsp + 0x100]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r12, rdi
test eax, eax
cmove r12, qword [rsp + 0xd8]
mov qword [rsp + 0x110], r12
test r12, r12
je 0x14005d483
call fcn.140008c24
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
je 0x14005d478
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0xd0], rax
mov edi, dword [rsp + 0x60]
mov r8d, edi
lea rdx, str.data_0x_08lX
lea rcx, [rsp + 0xd0]
call fcn.140005d30
inc edi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdi, qword [rsp + 0xd0]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14005d3f8
lea r9, [rsp + 0x130]
test ebp, ebp
je 0x14005d34b
mov r10d, ebp
xor ebp, ebp
nop word [rax + rax]
movsxd rdx, ebx
mov r8d, dword [rsp + rdx*4 + 0xb4]
shl r8d, 4
movzx eax, byte [r9]
add r8d, eax
mov dword [rsp + rdx*4 + 0xb4], r8d
mov ecx, r8d
and ecx, 0xf0000000
je 0x14005d32a
mov eax, ecx
shr eax, 0x18
xor eax, r8d
xor eax, ecx
mov dword [rsp + rdx*4 + 0xb4], eax
mov ebx, dword [rsp + 0xb0]
inc ebx
cmp ebx, 4
cmovae ebx, ebp
mov dword [rsp + 0xb0], ebx
inc r9
sub r10, 1
jne 0x14005d2f0
jmp 0x14005d34d
xor ebp, ebp
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d368
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, vtable.CExtRegistry.0
mov qword [rsp + 0x108], rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x110], rbp
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d3a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d3c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
mov r8d, 0x10
lea rdx, [rsp + 0x130]
mov rcx, r14
call qword [rax + 0x68]
mov ebp, eax
test eax, eax
je 0x14005d4f4
mov ebx, dword [rsp + 0xb0]
mov edi, dword [rsp + 0x60]
jmp 0x14005d120
cmp byte [rsp + 0x50], 0
je 0x14005d405
call fcn.14000bd68
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d420
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d44a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x68]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005d468
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14005d87f
mov ecx, 0x80004005
call fcn.1400052e0
int3
cmp byte [rsp + 0x50], 0
je 0x14005d490
call fcn.14000bd68
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d4b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x68]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005d4ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14005d87f
mov ecx, 0x80070057
call fcn.1400052e0
nop
mov ecx, 0x80004005
call fcn.1400052e0
int3
mov r12b, byte [rsp + 0x50]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa8]
call fcn.14005c920
nop
call fcn.140008c24
mov rdx, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x14005d530
mov ecx, 0x80004005
call fcn.1400052e0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
call fcn.140008c24
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x14005d561
mov ecx, 0x80004005
call fcn.1400052e0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.140008c24
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x14005d592
mov ecx, 0x80004005
call fcn.1400052e0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xc8], rax
xor r8d, r8d
lea rdx, str.Prof_UIS_registry_archiver_rev.__d
lea rcx, [rsp + 0x70]
call fcn.140005d30
lea rcx, [rsp + 0x78]
call fcn.14005b9c0
mov r8, rax
lea rdx, str.Prof_UIS_v.__s
lea rcx, [rsp + 0xc8]
call fcn.140005d30
xor eax, eax
mov rcx, rsi
mov rdx, qword [rsp + 0xa0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
lea rdx, str.data_integrity
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0xc8]
test eax, eax
jne 0x14005d7ed
xor eax, eax
mov rcx, rsi
mov rdx, qword [rsp + 0x70]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
lea rdx, str.data_generator
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14005d7ed
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.library_version
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14005d7ed
mov dword [rsp + 0x80], 0x10
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.data_line_size
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14005d7ed
mov dword [rsp + 0x88], 0x80
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.data_block_size
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14005d7ed
mov dword [rsp + 0x98], ebp
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.data_fmt_rev
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14005d7ed
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d77c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d79c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d7bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0xa0]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005d7dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14005d87f
test r12b, r12b
je 0x14005d7f8
call fcn.14000bd68
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d813
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d833
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005d853
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0xa0]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005d874
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002f990
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret