Function at 0x18004d940
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x7a8]
sub rsp, 0x890
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov edi, edx
mov rsi, rcx
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x18004dce2
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov r9, qword [rsi]
lea r8, str.SYSTEMCurrentControlSetServicesWinSock2Parameters
lea rdx, str._s_s
lea rcx, [rsp + 0x50]
call fcn.18000cf30
mov ecx, 0x33
call fcn.18000a354
mov ebx, 0x2011f
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov r14, 0xffffffff80000002
mov r9d, ebx
test rax, rax
je 0x18004d9f3
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, r14
call rax
jmp 0x18004da06
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18004dc87
lea rax, str.Catalog_Entries64
lea r15, str.Catalog_Entries
test edi, edi
cmovne r15, rax
and dword [rsp + 0x48], 0
mov eax, 4
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x60], eax
lea rax, str.Num_Catalog_Entries64
lea rdx, str.Num_Catalog_Entries
test edi, edi
cmovne rdx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
mov rcx, qword [rsp + 0x40]
call fcn.18000a1bc
test eax, eax
jne 0x18004dc66
cmp dword [rsp + 0x48], eax
je 0x18004dc66
mov rdi, qword [rsp + 0x40]
lea ecx, [rax + 0x46]
call fcn.18000a354
mov rcx, rdi
test rax, rax
je 0x18004da96
call rax
jmp 0x18004da9c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x18004dced
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], r15
mov r9, qword [rsi]
lea r8, str.SYSTEMCurrentControlSetServicesWinSock2Parameters
lea rdx, str._s_s_s
lea rcx, [rsp + 0x58]
call fcn.18000cf30
mov ecx, 0x33
call fcn.18000a354
mov r9d, ebx
xor r8d, r8d
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
test rax, rax
je 0x18004db0a
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, r14
call rax
jmp 0x18004db1d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18004db28
xor esi, esi
jmp 0x18004dc4a
mov dword [rsp + 0x4c], 0x400
xor r15d, r15d
mov r8d, dword [rsp + 0x48]
lea rdx, str._012d
lea rcx, [rsp + 0x50]
call fcn.18000cf30
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x18004dcd7
mov rax, qword [rax]
call qword [rax + ILCombine]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x68], rdi
and qword [rsp + 0x38], r15
lea r9, [rsp + 0x4c]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.18003af50
lea esi, [r15 + 1]
jmp 0x18004dc05
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jns 0x18004dbde
lea r9, [rbp - 0x80]
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x68]
call fcn.18000cf30
mov ecx, 0x39
call fcn.18000a354
mov rdi, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rdi
test rax, rax
je 0x18004dbd2
call rax
jmp 0x18004dbd8
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x18004dc09
jmp 0x18004dbe1
add r15d, esi
mov dword [rsp + 0x4c], 0x400
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x4c]
lea r8, [rbp - 0x80]
mov edx, r15d
mov rcx, qword [rsp + 0x40]
call fcn.18003af50
test eax, eax
je 0x18004db89
mov rbx, qword [rsp + 0x40]
mov ecx, 0x46
call fcn.18000a354
mov rcx, rbx
test rax, rax
je 0x18004dc24
call rax
jmp 0x18004dc2b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004dc45
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004dc89
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x18004dc89
mov rbx, qword [rsp + 0x40]
mov ecx, 0x46
call fcn.18000a354
mov rcx, rbx
test rax, rax
je 0x18004dc81
call rax
jmp 0x18004dc87
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x18004dca9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.18000a540
nop
mov ecx, 0x80004005
call fcn.18000a540
nop
mov ecx, 0x80004005
call fcn.18000a540
int3