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

Disassembly:
push rdi
sub rsp, 0x950
mov rax, qword [0x7ff9b9dc6200]
xor rax, rsp
mov qword [rsp + 0x940], rax
mov qword [rsp + 0x88], 0x400
mov dword [rsp + 0x50], 0
mov byte [rsp + 0x46], 0
mov qword [rsp + 0x108], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x40]
movzx r8d, byte [rsp + 0x41]
movzx edx, byte [rsp + 0x47]
lea rcx, [rsp + 0xb0]
call fcn.7ff9b9cca160
mov rcx, rax
call fcn.7ff9b9cbe530
lea rcx, [rsp + 0x108]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7ff9b9cbac00
mov dword [rsp + 0x110], 0x400
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x110]
lea r8, [rsp + 0x140]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x7ff9b9cbabf2
mov qword [rsp + 0x100], 0
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7ff9b9cbabd8
mov dword [rsp + 0x114], 0x400
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x42]
movzx r8d, byte [rsp + 0x43]
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x90]
call fcn.7ff9b9cca240
mov rcx, rax
call fcn.7ff9b9cc3370
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x114]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x540]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x7ff9b9cbabca
lea rcx, [rsp + 0x118]
call fcn.7ff9b9cba400
lea rcx, [rsp + 0x118]
call fcn.7ff9b9c15640
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x118]
call fcn.7ff9b9c1b070
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x45]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x44]
movzx r8d, byte [rsp + 0x45]
movzx edx, byte [rsp + 0x49]
lea rcx, [rsp + 0xa0]
call fcn.7ff9b9cca280
mov rcx, rax
call fcn.7ff9b9cc3370
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x7ff9b9cbabbd
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x118]
call fcn.7ff9b9c1b1e0
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [rsp + 0x110], 0x400
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x7ff9b9cba9c9
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [rsp + 0x50], 1
jb 0x7ff9b9cbac1d
call fcn.7ff9b9cba6f0
movzx eax, al
test eax, eax
je 0x7ff9b9cbac1d
mov dword [rsp + 0x54], 1
jmp 0x7ff9b9cbac25
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov rcx, qword [rsp + 0x940]
xor rcx, rsp
call fcn.7ff9b9d49770
add rsp, 0x950
pop rdi
ret