Function at 0x140012620
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0xb00], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
mov rdi, rdx
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
mov r9d, 0x20019
mov r8, rcx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x58]
call fcn.140011780
test eax, eax
je 0x140012312
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400125ea
jmp 0x1400125df
mov r12d, r15d
mov r14, qword [rsp + 0x58]
mov r13d, dword [rsp + 0x4c]
mov dword [rsp + 0x48], 0x100
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
lea r8, [rbp + 0xa0]
mov edx, r12d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x1400125d7
test eax, eax
jne 0x1400125cf
mov rsi, r15
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0xa0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400125b7
mov dword [rsp + 0x78], r15d
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0x40], r13d
mov r13d, r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400125b7
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140012408
cmp eax, 2
jne 0x1400125b7
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov r13d, r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140012468
mov eax, dword [rsp + 0x4c]
cmp eax, 1
je 0x140012450
cmp eax, 2
jne 0x140012468
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x140012461
cmp byte [rbp + rcx - 0x61], r13b
je 0x140012465
jmp 0x140012468
mov byte [rbp - 0x60], r13b
mov r13d, ecx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1a0]
call fcn.14010da60
mov dword [rsp + 0x28], r13d
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rbp - 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r11, r15
mov r9, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, r9
sar rax, 3
test rax, rax
je 0x140012503
nop word [rax + rax]
lea rax, [rbp + 0x1a0]
mov r8, qword [r9]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400124e4
add rax, 2
test ecx, ecx
jne 0x1400124d0
test edx, edx
je 0x1400125b7
inc r11
add r9, 8
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
sar rax, 3
cmp r11, rax
jb 0x1400124c0
mov ecx, 0x200
call fcn.1400854f0
mov r11, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140012542
lea rcx, [rbp + 0x1a0]
lea rax, [rbp + 0x1a0]
mov rdx, r11
sub rdx, rax
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140012530
jmp 0x140012545
mov r11, r15
mov qword [rsp + 0x40], r11
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14001258d
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14001258d
lea rbx, [rsp + 0x40]
sub rbx, rcx
sar rbx, 3
cmp rax, qword [rdi + 0x10]
jne 0x140012584
mov edx, 1
mov rcx, rdi
call fcn.1400120a0
mov rax, qword [rdi]
lea r8, [rax + rbx*8]
jmp 0x1400125a5
cmp rax, qword [rdi + 0x10]
jne 0x1400125a0
mov edx, 1
mov rcx, rdi
call fcn.1400120a0
lea r8, [rsp + 0x40]
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 0x18]
call fcn.140011d60
add qword [rdi + 8], 8
test rsi, rsi
je 0x1400125ca
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
inc r12d
jmp 0x14001231f
test r14, r14
je 0x1400125ea
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov rcx, qword [rbp + 0x9a0]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0xb00]
add rsp, 0xab0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140012120
lea rcx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov rdx, rbx
call 0x140012290
lea rcx, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x140012290