Function at 0x465940
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x8d8
mov qword [rsp + 0x8d0], rbx
mov rax, rcx
mov qword [rsp + 0x8c8], rbp
xor ebp, ebp
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x8c0], rsi
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x8b8], rdi
mov rsi, rdx
mov ebx, ebp
mov dword [rsp + 0x6c], ebp
mov dword [rsp + 0x64], ebp
mov edi, ebp
mov dword [rsp + 0x60], 0x104
mov dword [rsp + 0x50], 0x3e8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x465cf4
mov rcx, qword [rsp + 0x8e0]
mov rdx, qword [rsp + 0x8f0]
mov qword [rsp + 0x40], rbp
mov rcx, qword [rcx]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x465c55
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c0]
lea r8, [rsp + 0x3b0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x465aea
mov dword [rsp + 0x6c], 1
nop
nop
nop
mov eax, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x4c0]
lea rdx, [rsp + 0x3b0]
xor r8d, r8d
inc edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c0]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x3b0]
mov qword [rsp + 0x28], rax
mov edx, edi
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x50], 0x3e8
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x465a60
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x80]
mov r9d, 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x465c46
mov r8, qword [rsp + 0x8f0]
mov rbp, qword [rsp + 0x8e8]
lea rbx, [rsp + 0x2a0]
sub rbx, rsi
lea rsi, [rsp + 0x190]
sub rsi, r8
inc dword [rsp + 0x64]
mov rcx, rbp
nop
nop
movzx eax, byte [rcx]
inc rcx
test al, al
mov byte [rbx + rcx - 1], al
jne 0x465b40
movzx edx, word [0x004a9dfc]
xor eax, eax
lea rdi, [rsp + 0x2a0]
mov rcx, 0xffffffffffffffff
lea r9, [rsp + 0x80]
repne scasb al, byte [rdi]
mov rcx, 0xffffffffffffffff
mov word [rdi - 1], dx
lea rdi, [rsp + 0x2a0]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [r9 + rcx]
inc rcx
test al, al
mov byte [rdi + rcx - 2], al
jne 0x465b90
mov rcx, r8
movzx eax, byte [rcx]
inc rcx
test al, al
mov byte [rsi + rcx - 1], al
jne 0x465ba3
xor eax, eax
lea rdi, [rsp + 0x190]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rcx, 0xffffffffffffffff
mov word [rdi - 1], dx
lea rdi, [rsp + 0x190]
lea rdx, [rsp + 0x80]
repne scasb al, byte [rdi]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
inc rcx
test al, al
mov byte [rdi + rcx - 2], al
jne 0x465be3
mov rcx, qword [rsp + 0x8e0]
lea r8, [rsp + 0x190]
lea rdx, [rsp + 0x2a0]
call fcn.00465940
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x80]
mov r9d, 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov r8, qword [rsp + 0x8f0]
test eax, eax
je 0x465b33
mov rsi, qword [rsp + 0x8e8]
xor ebp, ebp
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x465cf4
mov rax, qword [rsp + 0x8e0]
mov rdx, rsi
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x465cf4
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x465cf4
nop
nop
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x64
je 0x465cf4
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x465cb0
mov rdi, qword [rsp + 0x8b8]
mov rsi, qword [rsp + 0x8c0]
mov rbp, qword [rsp + 0x8c8]
mov eax, ebx
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x8d8
ret