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

Disassembly:
mov r11, rsp
sub rsp, 0xb08
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x20], r14
mov r14, rcx
lea rcx, [r11 - 0x456]
xor edx, edx
mov r8d, 0x206
mov qword [r11 - 0x28], r15
mov word [rsp + 0x6b0], 0
call fcn.0040e3f0
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x80], 0
call fcn.0040e3f0
xor ebx, ebx
mov rcx, rbx
mov dword [rsp + 0x40], 0x104
lea r15, [0x00400000]
nop
movzx eax, word [rcx + r15 + 0x21ac0]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x6ae], ax
jne 0x404350
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x6b0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404875
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x80]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404875
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x208
call fcn.0040e3f0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404875
mov qword [rsp + 0xb00], rdi
mov edi, ebx
nop
nop
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x208
add edi, 1
call fcn.0040e3f0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4044dd
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp edi, 0x2710
jl 0x404470
mov qword [rsp + 0xb20], rbp
lea rcx, [rsp + 0x4a2]
xor edx, edx
mov qword [rsp + 0xaf8], r12
mov r8d, 0x206
mov qword [rsp + 0xaf0], r13
mov r13d, ebx
mov word [rsp + 0x4a0], bx
call fcn.0040e3f0
lea rcx, [rsp + 0x8c2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x8c0], bx
call fcn.0040e3f0
lea rcx, [rsp + 0x292]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x290], bx
call fcn.0040e3f0
mov r12, qword [r14 + 0x48]
mov rbp, qword [r12 + 8]
cmp rbp, qword [r12 + 0x10]
jbe 0x404564
call fcn.0040ed00
mov qword [rsp + 0xb28], rsi
nop
mov rdi, qword [r14 + 0x48]
mov rsi, qword [rdi + 0x10]
cmp qword [rdi + 8], rsi
jbe 0x404583
call fcn.0040ed00
cmp r12, rdi
je 0x40458d
call fcn.0040ed00
cmp rbp, rsi
je 0x40484d
cmp rbp, qword [r12 + 0x10]
jb 0x4045a2
call fcn.0040ed00
mov rbx, qword [rbp]
lea rdx, str._.8d
lea rcx, [rsp + 0x8c0]
mov r8d, r13d
call fcn.0040e620
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x8c0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor edx, edx
nop
nop
nop
movzx eax, word [rdx + r15 + 0x21aa0]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x49e], ax
jne 0x4045e0
xor ecx, ecx
nop
movzx eax, word [rcx + r15 + 0x21a50]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x28e], ax
jne 0x404600
xor eax, eax
lea rdi, [rsp + 0x290]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea rax, [rsp + 0x290]
lea rdx, [rsp + 0x4a0]
not rcx
mov r9d, 1
xor r8d, r8d
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
nop
nop
nop
movzx eax, word [rdx + r15 + 0x21a30]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x49e], ax
jne 0x404670
mov byte [rsp + 0x68], al
xor eax, eax
lea rdi, str.00000804
mov rsi, rbx
mov ecx, 9
mov qword [rsp + 0x69], rax
mov qword [rsp + 0x71], rax
mov word [rsp + 0x79], ax
mov byte [rsp + 0x7b], al
repe cmpsw word [rsi], word [rdi]
jne 0x4046d3
mov rax, qword [r15 + 0x21a08]
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
movzx eax, byte [r15 + 0x21a10]
mov byte [rcx + 8], al
jmp 0x404724
xor edi, edi
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9d, [rdi - 1]
lea ecx, [rdi + 1]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
lea r9d, [rdi - 1]
lea ecx, [rdi + 1]
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
xor ebx, ebx
lea rdi, [rsp + 0x68]
mov rcx, 0xffffffffffffffff
mov esi, ebx
mov dword [rsp + 0x44], ebx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
mov rdi, rcx
movsxd rax, ecx
jle 0x40477f
lea rdx, [rsp + rax + 0x67]
mov ecx, ebx
movzx eax, byte [rdx]
cmp al, 0x39
jle 0x404763
movsx eax, al
sub eax, 0x37
jmp 0x404769
movsx eax, al
sub eax, 0x30
shl eax, cl
sub edi, 1
sub rdx, 1
add esi, eax
add ecx, 4
test edi, edi
jg 0x404754
mov dword [rsp + 0x44], esi
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
lea rdx, [rsp + 0x4a0]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, rbx
movzx eax, word [rdx + r15 + 0x219f8]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x49e], ax
jne 0x4047b0
mov rcx, rbx
nop
movzx eax, word [rcx + r15 + 0x21a50]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x28e], ax
jne 0x4047d0
xor eax, eax
lea rdi, [rsp + 0x290]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea rax, [rsp + 0x290]
lea rdx, [rsp + 0x4a0]
not rcx
mov r9d, 1
xor r8d, r8d
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add r13d, 1
cmp rbp, qword [r12 + 0x10]
jb 0x404844
call fcn.0040ed00
add rbp, 8
jmp 0x404570
mov rsi, qword [rsp + 0xb28]
mov rbp, qword [rsp + 0xb20]
mov r12, qword [rsp + 0xaf8]
mov r13, qword [rsp + 0xaf0]
mov rdi, qword [rsp + 0xb00]
mov r15, qword [rsp + 0xae0]
mov r14, qword [rsp + 0xae8]
mov rbx, qword [rsp + 0xb18]
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0xb08
ret