Function at 0x12952100
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x340
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov rdi, r8
mov qword [rsp + 0xe8], r8
mov r14, rdx
mov qword [rsp + 0xf0], rdx
mov rbx, rcx
mov qword [rsp + 0xc8], rcx
mov qword [rsp + 0xd0], r8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rbx + 0x68], 0
je 0x129528d7
test r14, r14
je 0x129528d7
xor esi, esi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], esi
mov r15d, esi
mov dword [rsp + 0x6c], esi
mov rbx, rsi
mov qword [rsp + 0xb0], rbx
mov qword [rdi], rsi
lea ecx, [rsi + 0x50]
call fcn.12958d80
mov r12, rax
mov qword [rsp + 0x80], rax
xor edx, edx
lea r8d, [rsi + 0x50]
mov rcx, rax
call fcn.12959590
nop
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1295221c
mov dword [rsp + 0x90], 2
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0x90]
call fcn.12958e1c
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x129524b0
mov rcx, rax
mov eax, 0x18
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.12958238
mov qword [r12 + 0x38], rax
mov r15d, esi
mov dword [rsp + 0x9c], esi
cmp r15d, dword [rsp + 0x68]
jae 0x129524a5
mov eax, dword [r12 + 0x34]
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x38]
lea rdi, [rax + rcx*8]
mov qword [rsp + 0x108], rdi
mov r9d, 0x100
lea r8, [rsp + 0x130]
mov edx, r15d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x129522b7
mov dword [rsp + 0xb8], 0x20
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0xb8]
call fcn.12958e1c
mov eax, esi
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x78], eax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x130]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x129522fb
mov dword [rsp + 0xc0], 0x30
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0xc0]
call fcn.12958e1c
nop
mov ecx, 0x200
call fcn.12958238
mov qword [rdi], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], esi
mov dword [rsp + 0x60], 0x200
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.KeyWord
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x12952378
cmp qword [rdi], 0
je 0x12952356
mov rcx, qword [rdi]
call fcn.1295c768
mov qword [rdi], rsi
mov dword [rsp + 0xa8], 0x40
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0xa8]
call fcn.12958e1c
mov dword [rsp + 0x60], 4
lea rax, [rdi + 8]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Flags
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x129523d0
mov dword [rsp + 0x94], 0x50
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0x94]
call fcn.12958e1c
lea r14, [rdi + 0xc]
mov dword [r14], 0x100
mov ecx, 0x100
call fcn.12958238
mov r13, rax
cmp rax, rbx
je 0x129523f5
mov rcx, rbx
call fcn.12958250
mov rbx, r13
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Value
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1295245b
cmp qword [rdi + 0x10], 0
je 0x12952438
mov rcx, qword [rdi + 0x10]
call fcn.1295c768
mov qword [rdi + 0x10], rsi
mov dword [rsp + 0xac], 0x60
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0xac]
call fcn.12958e1c
mov ecx, dword [r14]
call fcn.12958238
mov qword [rdi + 0x10], rax
mov r9d, dword [r14]
mov r8, rax
mov rdx, r13
mov rcx, qword [rsp + 0xc8]
call fcn.129516a0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [r12 + 0x34]
inc r15d
mov dword [rsp + 0x9c], r15d
mov r14, qword [rsp + 0xf0]
jmp 0x12952255
mov r15d, dword [rsp + 0x6c]
or rdi, 0xffffffffffffffff
jmp 0x129524b4
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Flags
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x12952506
mov dword [rsp + 0xbc], 3
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0xbc]
call fcn.12958e1c
mov dword [rsp + 0x60], 4
lea r13, [r12 + 4]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Type
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1295255d
mov dword [rsp + 0x8c], 4
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0x8c]
call fcn.12958e1c
mov ecx, 0x2a2
mov dword [rsp + 0x60], ecx
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.12958238
mov qword [r12 + 8], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.TargetName
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x129525dd
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x129525b9
call fcn.1295c768
mov qword [r12 + 8], rsi
mov dword [rsp + 0x88], 5
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0x88]
call fcn.12958e1c
mov dword [rsp + 0x60], 0x200
mov ecx, 0x200
call fcn.12958238
mov qword [r12 + 0x10], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Comment
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x12952633
mov rcx, qword [r12 + 0x10]
test rcx, rcx
je 0x1295262e
call fcn.1295c768
mov qword [r12 + 0x10], rsi
mov dword [rsp + 0x60], 8
lea rax, [r12 + 0x18]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.LastWritten
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1295268a
mov dword [rsp + 0x98], 7
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0x98]
call fcn.12958e1c
mov dword [rsp + 0x60], 4
lea rdi, [r12 + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.CredentialBlobSize
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x12952759
mov eax, dword [rdi]
mov dword [rsp + 0x60], eax
mov rcx, rax
call fcn.12958238
mov rdi, rax
cmp rax, rbx
je 0x129526e4
mov rcx, rbx
call fcn.12958250
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.CredentialBlob
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1295272e
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x12952729
call fcn.1295c768
mov qword [r12 + 0x28], rsi
mov ecx, dword [rsp + 0x60]
call fcn.12958238
mov qword [r12 + 0x28], rax
mov r9d, dword [rsp + 0x60]
mov r8, rax
mov rdx, rdi
mov rdi, qword [rsp + 0xc8]
mov rcx, rdi
call fcn.129516a0
jmp 0x12952761
mov rdi, qword [rsp + 0xc8]
mov dword [rsp + 0x60], 4
lea rax, [r12 + 0x30]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Persist
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x60], 0x200
mov ecx, 0x200
call fcn.12958238
mov qword [r12 + 0x40], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.TargetAlias
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x129527eb
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x129527e6
call fcn.1295c768
mov qword [r12 + 0x40], rsi
mov dword [rsp + 0x60], 0x402
mov ecx, 0x402
call fcn.12958238
mov qword [r12 + 0x48], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.UserName
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x12952861
mov rcx, qword [r12 + 0x48]
test rcx, rcx
je 0x1295283c
call fcn.1295c768
mov qword [r12 + 0x48], rsi
mov dword [rsp + 0xa0], 0xb
lea rdx, [0x12a1ae28]
lea rcx, [rsp + 0xa0]
call fcn.12958e1c
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11d, dword [r13]
mov qword [rsp + 0xd0], r12
mov dword [rsp + 0xd8], r11d
lea rcx, [rdi + 0x28]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x110]
call fcn.12814b60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0xe8]
jmp 0x129528c7
mov qword [rax], r12
mov rcx, rbx
call fcn.12958250
mov eax, r15d
jmp 0x129528dc
mov eax, 1
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.12959850
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret