Function at 0x180016130
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x4a8]
sub rsp, 0x590
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rbp + 0x20], recv
mov qword [rbp + 0x18], r13
mov byte [rbp + 8], r13b
xor r8d, r8d
lea rdx, [0x180045347]
lea rcx, [rbp + 8]
call fcn.180003360
nop
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x80]
call fcn.180028cc0
mov dword [rsp + 0x30], 0x3ff
mov qword [rbp + 0x48], recv
mov qword [rbp + 0x40], r13
mov byte [rbp + 0x30], r13b
lea r8d, [r13 + 0x34]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea rcx, [rbp + 0x30]
call fcn.180003360
nop
mov eax, dword [0x180059dd4]
test al, 1
jne 0x180016200
or eax, 1
mov dword [0x180059dd4], eax
call fcn.18001ff10
lea rcx, [0x1800400e0]
call fcn.180022e9c
nop
lea r12, [0x1800453d8]
mov rdx, r12
mov rax, qword [0x180059db8]
test rax, rax
cmovne rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x30]
call fcn.180006870
mov r8d, 1
lea rdx, [0x1800477a0]
lea rcx, [rbp + 0x30]
call fcn.180006870
mov qword [rsp + 0x38], r13
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdx, qword [rbp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800162af
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.UninstallString
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rsi, [rbp + 0x80]
lea rdi, [0x180045347]
mov ecx, 1
repe cmpsb byte [rsi], byte [rdi]
jne 0x1800163a9
mov r8d, 0x40
lea rdx, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea rcx, [rbp + 0x30]
call fcn.180003360
mov edx, dword [0x180059dd4]
test dl, 1
jne 0x180016306
or edx, 1
mov dword [0x180059dd4], edx
call fcn.18001ff10
lea rcx, [0x1800400e0]
call fcn.180022e9c
nop
mov rdx, r12
mov rax, qword [0x180059db8]
test rax, rax
cmovne rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x30]
call fcn.180006870
mov r8d, 1
lea rdx, [0x1800477a0]
lea rcx, [rbp + 0x30]
call fcn.180006870
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdx, qword [rbp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800163a9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.UninstallString
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rsi, [rbp + 0x80]
lea rdi, [0x180045347]
mov ecx, 1
repe cmpsb byte [rsi], byte [rdi]
je 0x180016572
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x80]
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180016572
mov r8, rcx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 8]
call fcn.180003360
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rcx, qword [rbp + 8]
xor edx, edx
call fcn.18002495c
cmp eax, 0xffffffff
jne 0x18001641f
xor r8d, r8d
lea rdx, [0x180045347]
lea rcx, [rbp + 8]
call fcn.180003360
mov edx, 1
lea rcx, [rbp + 8]
call fcn.180016ed0
mov rdi, rax
cmp eax, 1
jg 0x180016448
xor r8d, r8d
lea rdx, [0x180045347]
lea rcx, [rbp + 8]
call fcn.180003360
movsxd r9, edi
xor r8d, r8d
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 8]
call fcn.180004070
mov rdi, rax
lea rax, [rbp + 8]
cmp rax, rdi
je 0x1800164c5
cmp qword [rbp + 0x20], 0x10
jb 0x180016477
mov rcx, qword [rbp + 8]
call fcn.18002228c
mov qword [rbp + 0x20], recv
mov qword [rbp + 0x18], r13
mov byte [rbp + 8], 0
cmp qword [rdi + 0x18], 0x10
jae 0x1800164a3
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.180022620
jmp 0x1800164ad
mov rax, qword [rdi]
mov qword [rbp + 8], rax
mov qword [rdi], r13
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x18], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x20], rax
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
cmp qword [rbp + 0x70], 0x10
jb 0x1800164d5
mov rcx, qword [rbp + 0x58]
call fcn.18002228c
mov qword [rbx + 0x18], recv
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
lea rax, [rbp + 8]
cmp rbx, rax
je 0x18001654d
cmp qword [rbx + 0x18], 0x10
jb 0x1800164fc
mov rcx, qword [rbx]
call fcn.18002228c
mov qword [rbx + 0x18], recv
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
mov rcx, qword [rbp + 0x20]
cmp rcx, 0x10
jae 0x18001652e
mov r8, qword [rbp + 0x18]
inc r8
lea rdx, [rbp + 8]
mov rcx, rbx
call fcn.180022620
mov rcx, qword [rbp + 0x20]
jmp 0x180016539
mov rax, qword [rbp + 8]
mov qword [rbx], rax
mov qword [rbp + 8], r13
mov rax, qword [rbp + 0x18]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], r13
cmp qword [rbp + 0x48], 0x10
jb 0x18001655d
mov rcx, qword [rbp + 0x30]
call fcn.18002228c
mov qword [rbp + 0x48], recv
mov qword [rbp + 0x40], r13
mov byte [rbp + 0x30], 0
jmp 0x1800167ba
mov qword [rbp + 0x70], recv
mov qword [rbp + 0x68], r13
mov byte [rbp + 0x58], 0
xor r8d, r8d
lea rdx, [0x180045347]
lea rcx, [rbp + 0x58]
call fcn.180003360
nop
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x78], r13
lea rax, [rbp - 0x28]
test rax, rax
je 0x180016616
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x28]
test rax, rax
je 0x180016610
call rax
jmp 0x180016616
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rdi, [0x180047eec]
movzx eax, word [rbp - 0x28]
cmp ax, 9
je 0x18001663b
cmp ax, 6
je 0x18001663b
lea rax, [0x180047ef0]
mov qword [rsp + 0x50], rax
jmp 0x180016640
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x40]
call fcn.180007630
nop
mov rsi, qword [rsp + 0x50]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
lea rsi, str.C:Program_Files__x86_
lea rax, str.C:Program_Files
cmovne rsi, rax
mov rcx, rsi
call fcn.180007d10
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rbp + 0x58]
call fcn.180003360
mov r8d, 1
lea rdx, [0x1800477a0]
lea rcx, [rbp + 0x58]
call fcn.180006870
mov edx, dword [0x180059dd4]
test dl, 1
jne 0x1800166cb
or edx, 1
mov dword [0x180059dd4], edx
call fcn.18001ff10
lea rcx, [0x1800400e0]
call fcn.180022e9c
nop
mov rax, qword [0x180059db8]
test rax, rax
cmovne r12, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rbp + 0x58]
call fcn.180006870
mov qword [rbx + 0x18], recv
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
lea rax, [rbp + 0x58]
cmp rbx, rax
je 0x18001676f
cmp qword [rbx + 0x18], 0x10
jb 0x18001671e
mov rcx, qword [rbx]
call fcn.18002228c
mov qword [rbx + 0x18], recv
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
mov rcx, qword [rbp + 0x70]
cmp rcx, 0x10
jae 0x180016750
mov r8, qword [rbp + 0x68]
inc r8
lea rdx, [rbp + 0x58]
mov rcx, rbx
call fcn.180022620
mov rcx, qword [rbp + 0x70]
jmp 0x18001675b
mov rax, qword [rbp + 0x58]
mov qword [rbx], rax
mov qword [rbp + 0x58], r13
mov rax, qword [rbp + 0x68]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rbp + 0x68], r13
mov qword [rbp + 0x70], r13
lea rcx, [rsp + 0x40]
call fcn.180007f40
nop
cmp qword [rbp + 0x70], 0x10
jb 0x18001678a
mov rcx, qword [rbp + 0x58]
call fcn.18002228c
mov qword [rbp + 0x70], recv
mov qword [rbp + 0x68], r13
mov byte [rbp + 0x58], 0
cmp qword [rbp + 0x48], 0x10
jb 0x1800167aa
mov rcx, qword [rbp + 0x30]
call fcn.18002228c
mov qword [rbp + 0x48], recv
mov qword [rbp + 0x40], r13
mov byte [rbp + 0x30], 0
cmp qword [rbp + 0x20], 0x10
jb 0x1800167ca
mov rcx, qword [rbp + 8]
call fcn.18002228c
mov rax, rbx
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.1800221a0
lea r11, [rsp + 0x590]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret