Function at 0x180017250
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor edx, edx
mov rsi, rcx
lea rcx, [rbp - 0x7f]
lea r8d, [rdx + 0x63]
mov byte [rbp - 0x80], 0
call fcn.1800292e0
lea rcx, [rbp - 0xf]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp - 0x10], 0
call fcn.1800292e0
xor eax, eax
xor edi, edi
mov word [rsp + 0x71], ax
mov dword [rsp + 0x74], edi
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x70], 0
call fcn.18001acf0
lea r14d, [rdi + 1]
mov rbx, rax
test rax, rax
je 0x18001738e
lea rax, [rsp + 0x54]
lea rdx, [0x18006f014]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x18001738e
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
lea rdx, [0x18006f190]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x50], 0x64
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov eax, edi
sete al
test eax, eax
jne 0x18001738e
lea rcx, [rsi + 3]
lea r8, [0x18006eaeb]
or r9, 0xffffffffffffffff
mov edx, r14d
call fcn.18002a5b4
mov dword [rsp + 0x74], r14d
jmp 0x1800173a3
or r9, 0xffffffffffffffff
lea rcx, [rsi + 3]
lea r8, [rbp - 0x80]
lea edx, [r9 + 0x65]
call fcn.18002a5b4
mov qword [rsp + 0x60], rdi
call fcn.18001acf0
mov rbx, rax
test rax, rax
je 0x18001745c
lea rax, [rsp + 0x58]
lea rdx, [0x18006f084]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x18001745c
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea rdx, str.OutputFilePath
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x50], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov eax, edi
sete al
test eax, eax
jne 0x18001745c
lea r8, [0x18006eaee]
mov rdx, r14
jmp 0x180017465
lea r8, [rbp - 0x10]
mov edx, 0x400
lea rcx, [rsi + 0x67]
or r9, 0xffffffffffffffff
call fcn.18002a5b4
mov qword [rsp + 0x60], rdi
call fcn.18001acf0
mov rbx, rax
test rax, rax
je 0x18001752c
lea rax, [rsp + 0x58]
lea rdx, [0x18006f09c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x18001752c
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea rdx, str.Delimiter
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x50], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov eax, edi
sete al
test eax, eax
jne 0x18001752c
lea r8, [0x18006eaef]
mov rdx, r14
jmp 0x180017536
lea r8, [rsp + 0x70]
mov edx, 3
or r9, 0xffffffffffffffff
mov rcx, rsi
call fcn.18002a5b4
mov qword [rsp + 0x68], rdi
call fcn.18001acf0
mov rbx, rax
test rax, rax
je 0x1800175f2
lea rax, [rsp + 0x58]
lea rdx, [0x18006f0fc]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x68]
test r15, r15
je 0x1800175f2
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x60]
lea rdx, [0x18006f0f4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, r14d
test ebx, ebx
cmove r12d, dword [rsp + 0x54]
jmp 0x1800175f5
mov r12d, r14d
mov qword [rsp + 0x68], rdi
call fcn.18001acf0
mov rbx, rax
test rax, rax
je 0x1800176a0
lea rax, [rsp + 0x60]
lea rdx, [0x18006f184]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x68]
test r15, r15
je 0x1800176a0
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x58]
lea rdx, [0x18006f1c8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove r14d, dword [rsp + 0x50]
mov qword [rsp + 0x68], rdi
call fcn.18001acf0
mov rbx, rax
test rax, rax
je 0x180017750
lea rax, [rsp + 0x60]
lea rdx, [0x18006f1bc]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x68]
test r15, r15
je 0x180017750
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x58]
lea rdx, [0x18006f1e0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15d, edi
test ebx, ebx
cmove r15d, dword [rsp + 0x50]
jmp 0x180017753
mov r15d, edi
mov qword [rsp + 0x538], r13
mov qword [rsp + 0x68], rdi
call fcn.18001acf0
mov rbx, rax
test rax, rax
je 0x180017805
lea rax, [rsp + 0x60]
lea rdx, [0x18006f1d4]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [rsp + 0x68]
test r13, r13
je 0x180017805
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x58]
lea rdx, [0x18006f1f0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rcx, r13
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, r13
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x50]
mov eax, dword [rsp + 0x74]
mov r13, qword [rsp + 0x538]
mov dword [rsi + 0x468], r12d
mov dword [rsi + 0x46c], r14d
mov dword [rsi + 0x470], r15d
mov dword [rsi + 0x474], edi
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1800292b0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret