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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa40
mov rax, qword [0x1401c0030]
xor rax, rsp
mov qword [rsp + 0xa30], rax
cmp qword [rsp + 0xa50], 0
je 0x14003199d
mov rcx, qword [rsp + 0xa58]
call fcn.14000c1f0
movzx eax, al
test eax, eax
je 0x1400319c9
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0xa58]
call fcn.14000b4e0
nop
mov rcx, qword [rsp + 0xa60]
call fcn.14000b4e0
mov eax, dword [rsp + 0x68]
jmp 0x140031e52
mov qword [rsp + 0x60], 0
mov ecx, dword [rsp + 0xa68]
call fcn.140027ba0
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x620]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov dword [rsp + 0x54], 0x208
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x58], 0xffffffff
lea rcx, [rsp + 0xf8]
call fcn.140018cf0
nop
mov rcx, qword [rsp + 0xa58]
call fcn.14000b420
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xa50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031e1d
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x620]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140031cbb
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x410]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x200]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x4c], 0x104
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x6c], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x620]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031ca4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x200]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x410]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140031c99
lea rax, [rsp + 0x120]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x200]
mov rcx, qword [rsp + 0x90]
call fcn.140019710
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa60]
mov rcx, qword [rsp + 0xa0]
call fcn.14000b5f0
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call fcn.140038d00
test eax, eax
jne 0x140031c7a
mov rdx, qword [rsp + 0xa58]
lea rcx, [rsp + 0x1c0]
call fcn.14000b5f0
nop
lea rax, [rsp + 0x160]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x620]
mov rcx, qword [rsp + 0xb8]
call fcn.140019710
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1c0]
call fcn.140039510
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xf8]
call fcn.140012120
nop
lea rcx, [rsp + 0x1c0]
call fcn.14000b4e0
jmp 0x140031c99
mov dword [rsp + 0x4c], 0x104
mov dword [rsp + 0x50], 0x104
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
jmp 0x140031b1a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x54], 0x208
jmp 0x140031a54
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x88]
call fcn.1400189c0
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x88]
call fcn.140018a60
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
jmp 0x140031d1a
lea rcx, [rsp + 0x80]
call fcn.140018900
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x80]
call fcn.1400188c0
movzx eax, al
test eax, eax
je 0x140031e12
lea rcx, [rsp + 0x80]
call fcn.14000d020
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.14000b5f0
nop
lea rax, [rsp + 0x180]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0xd0]
call fcn.14000b5f0
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe8], rax
lea rdx, [0x140186340]
mov rcx, qword [rsp + 0xe0]
call fcn.140019710
mov qword [rsp + 0xf0], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
call fcn.14003a2e0
lea rcx, [rsp + 0x1e0]
call fcn.14000b420
xor r9d, r9d
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0xa50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x1e0]
call fcn.14000b4e0
jmp 0x140031d0d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0xf8]
call fcn.140018ae0
nop
mov rcx, qword [rsp + 0xa58]
call fcn.14000b4e0
nop
mov rcx, qword [rsp + 0xa60]
call fcn.14000b4e0
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0xa30]
xor rcx, rsp
call fcn.14005e8d0
add rsp, 0xa40
pop rdi
ret