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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1c0], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [0x140159838]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movabs rbx, 0x8000000000000000
test rax, rax
je 0x14001d259
lea rdx, [0x14015983e]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rcx, [rbp + 4]
mov r8d, 0x118
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp], 0x11c
mov rcx, rbp
call rdi
test eax, eax
jne 0x14001d324
mov r14d, dword [rbp + 4]
mov r13d, dword [rbp + 8]
mov ebx, dword [rbp + 0xc]
movzx eax, word [rbp + 0x118]
mov word [rbp + 0x1a2], ax
movzx eax, byte [rbp + 0x11a]
mov byte [rbp + 0x1bf], al
mov qword [rbp + 0x160], r14
mov qword [rbp + 0x168], r13
mov qword [rbp + 0x170], rbx
mov qword [rbp + 0x158], 1
lea rax, [0x1401598b3]
mov qword [rbp], rax
lea rax, [0x1401598df]
mov qword [rbp + 8], rax
mov word [rbp + 0x10], 0
mov dword [rbp + 0x18], 1
lea rcx, [rbp - 0x18]
mov rdx, rbp
call fcn.14001e220
mov qword [rbp + 0x178], 0
mov rdx, qword [rbp - 0x10]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rbp + 0x1b0], rdx
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d332
cmp qword [rbp + 0x178], 0
je 0x14001d332
cmp r14d, 0xa
jne 0x14001d392
xor eax, eax
cmp ebx, 0x55f0
setae r12b
setb al
lea rax, [rax + rax + 9]
lea rdx, [0x1401598df]
lea rcx, [0x1401598e8]
cmovae rcx, rdx
jmp 0x14001d3a1
mov rax, qword [str.P__]
mov rax, qword [rax]
test rax, rax
je 0x14001d324
lea rdx, [0x140159838]
lea rdi, [rbp + 0x158]
mov r8d, 6
mov rcx, rdi
call fcn.14013ac00
mov qword [rbp + 0x128], rdi
lea rax, [0x14000f710]
mov qword [rbp + 0x130], rax
lea rax, [0x140159ae0]
mov qword [rbp], rax
mov qword [rbp + 8], 2
mov qword [rbp + 0x20], 0
lea rax, [rbp + 0x128]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 1
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapi
mov rcx, rbp
mov edx, 1
mov r9d, 0x124
call fcn.1400f0fd0
mov rdx, qword [rbp + 0x158]
movabs rdi, 0x8000000000000000
cmp rdx, rdi
je 0x14001d31b
test rdx, rdx
je 0x14001d31b
mov rcx, qword [rbp + 0x160]
mov r8d, 1
call fcn.14001c720
mov qword [rbp + 0x1b0], rdi
jmp 0x14001d32b
mov qword [rbp + 0x1b0], rbx
xor eax, eax
jmp 0x14001d94f
mov rax, qword [str.P__]
mov rax, qword [rax]
test rax, rax
je 0x14001d579
lea rax, str.RegOpenKeyExW_HKEY_LOCAL_MACHINE__...__failed
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, str.x86_64ia64armaarch64i386ntdll
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapi
mov rcx, rbp
mov edx, 1
mov r9d, 0x9c
call fcn.1400f0fd0
jmp 0x14001d579
lea rcx, [0x1401598e8]
mov eax, 0xb
xor r12d, r12d
add rax, rcx
mov qword [rbp], rcx
mov qword [rbp + 8], rax
mov word [rbp + 0x10], 0
mov dword [rbp + 0x18], 1
lea rcx, [rbp - 0x30]
mov rdx, rbp
call fcn.14001e220
mov dword [rbp + 0x194], 0
mov dword [rbp + 0x1a4], 0
mov rcx, qword [rbp + 0x178]
mov rdx, qword [rbp - 0x28]
lea r15, [rbp + 0x1a4]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x194]
mov qword [rbp + 0x180], rdx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d4de
cmp dword [rbp + 0x194], 1
jne 0x14001d4de
mov ecx, dword [rbp + 0x1a4]
test ecx, ecx
je 0x14001d4de
mov eax, ecx
and eax, 1
jne 0x14001d4de
mov eax, ecx
shr eax, 1
mov qword [rbp + 0x1a8], rax
mov eax, 2
mov qword [rbp + 0x188], rcx
cmp ecx, 2
jb 0x14001d47a
mov rax, qword [rbp + 0x1a8]
lea edi, [rax + rax]
mov edx, 2
mov rcx, rdi
call fcn.14001c740
test rax, rax
je 0x14001dabc
mov rcx, qword [rbp + 0x178]
mov qword [rsp + 0x28], r15
mov qword [rbp + 0x198], rax
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp + 0x180]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d537
mov eax, dword [rbp + 0x1a4]
mov rcx, qword [rbp + 0x1a8]
lea edi, [rcx + rcx]
cmp rdi, rax
jne 0x14001d537
cmp dword [rbp + 0x188], 2
jae 0x14001d717
xor r8d, r8d
mov rdx, qword [rbp + 0x198]
jmp 0x14001d733
mov rax, qword [str.P__]
mov rax, qword [rax]
test rax, rax
je 0x14001d55b
lea rax, str.RegQueryValueExW_failed
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, str.x86_64ia64armaarch64i386ntdll
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapi
mov rcx, rbp
mov edx, 1
mov r9d, 0xb8
call fcn.1400f0fd0
jmp 0x14001d55b
cmp dword [rbp + 0x188], 2
jb 0x14001d55b
mov rdx, qword [rbp + 0x1a8]
add edx, edx
mov r8d, 2
mov rcx, qword [rbp + 0x198]
call fcn.14001c720
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14001d579
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x180]
call fcn.14001c720
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001d597
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x1b0]
call fcn.14001c720
movabs r15, 0x8000000000000000
cmp r14d, 5
je 0x14001d631
cmp r14d, 6
je 0x14001d5eb
cmp r14d, 0xa
jne case.default.0x14001d602
test r13d, r13d
jne case.default.0x14001d602
cmp byte [rbp + 0x1bf], 1
jne 0x14001d705
cmp ebx, 0x55f0
lea rax, [0x1401599ca]
lea rdi, str.Windows_10Windows_11Windows_Server_2016Windows_8.1Windows_Server_2012_R2Windows_8Windows_Server_2012Windows_7Windows_Server_2008_R2Windows_VistaWindows_Server_2008Windows_XPWindows_2000Windows_XP_Professional_x64_EditionWindows_Server_2003Windows_Home_ServerGetModuleHandleA___failed
cmovae rdi, rax
jmp 0x14001d661
cmp r13d, 3
ja case.default.0x14001d602
mov eax, r13d
lea rcx, [0x140159fb4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
cmp byte [rbp + 0x1bf], 1
mov eax, 0xd
mov r15d, 0x13
cmove r15, rax
lea rax, [0x140159a43]
lea rdi, [0x140159a50]
cmove rdi, rax
jmp 0x14001d8f8
test r13d, r13d
je 0x14001d66c
cmp r13d, 1
je 0x14001d65a
cmp r13d, 2
jne case.default.0x14001d602
mov ecx, 0x59
call qword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x14001d89c
jmp 0x14001d92d
lea rdi, [0x140159a63]
mov r15d, 0xa
jmp 0x14001d8f8
lea rdi, [0x140159a6d]
mov r15d, 0xc
jmp 0x14001d8f8
cmp byte [rbp + 0x1bf], 1
mov eax, 9
mov r15d, 0x13
cmove r15, rax
lea rax, [0x140159a08]
lea rdi, [0x140159a11]
cmove rdi, rax
jmp 0x14001d8f8
cmp byte [rbp + 0x1bf], 1
mov eax, 0xb
mov r15d, 0x16
cmove r15, rax
lea rax, [0x1401599e7]
lea rdi, [0x1401599f2]
cmove rdi, rax
jmp 0x14001d8f8
cmp byte [rbp + 0x1bf], 1
mov eax, 9
mov r15d, 0x16
cmove r15, rax
lea rax, [0x140159a24]
lea rdi, [0x140159a2d]
cmove rdi, rax
jmp 0x14001d8f8
lea rdi, [0x1401599d4]
mov r15d, 0x13
jmp 0x14001d8f8
mov rax, qword [rbp + 0x1a8]
lea r8, [rax - 1]
mov rdx, qword [rbp + 0x198]
cmp word [rdx + rax*2 - 2], 0
cmovne r8, rax
mov rcx, rbp
call fcn.140126bd0
mov rcx, rbp
call fcn.1400eddf0
mov r8, rdx
lea rcx, [rbp - 0x48]
mov rdx, rax
call fcn.140130690
lea rcx, [rbp + 0x140]
lea r15, [rbp - 0x48]
mov rdx, r15
call fcn.14001cbd0
mov rdx, qword [rbp]
test rdx, rdx
je 0x14001d77d
mov rcx, qword [rbp + 8]
mov r8d, 1
call fcn.14001c720
test r12b, r12b
je 0x14001d80e
lea rax, [rbp + 0x140]
mov qword [rbp - 0x48], rax
lea rax, [0x14000f710]
mov qword [rbp - 0x40], rax
lea rax, [0x140159900]
mov qword [rbp], rax
mov qword [rbp + 8], 1
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], 1
lea rcx, [rbp + 0x128]
mov rdx, rbp
call fcn.14013a160
mov r15, qword [rbp + 0x128]
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x1a8], rax
mov r12, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x140]
test rdx, rdx
je 0x14001d82a
mov rcx, qword [rbp + 0x148]
mov r8d, 1
call fcn.14001c720
jmp 0x14001d82a
mov r15, qword [rbp + 0x140]
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x1a8], rax
mov r12, qword [rbp + 0x150]
cmp dword [rbp + 0x188], 2
mov rcx, qword [rbp + 0x198]
jb 0x14001d848
mov r8d, 2
mov rdx, rdi
call fcn.14001c720
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14001d866
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x180]
call fcn.14001c720
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001d884
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x1b0]
call fcn.14001c720
movabs rax, 0x8000000000000000
cmp r15, rax
je 0x14001d597
jmp 0x14001d92d
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rbp + 0x1a2], 0
js 0x14001da92
cmp byte [rbp + 0x1bf], 1
sete al
cmp word [rbp], 9
sete cl
and cl, al
movzx eax, cl
mov r15d, eax
shl r15d, 4
add r15, 0x13
lea rcx, [0x140159a79]
lea rdi, [0x140159a9c]
test al, al
cmovne rdi, rcx
movzx eax, byte [0x140202701]
mov edx, 1
mov rcx, r15
call fcn.14001c710
test rax, rax
je 0x14001daad
mov qword [rbp + 0x1a8], rax
mov rcx, rax
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
mov r12, r15
mov qword [rbp + 0x1b0], r15
lea rax, [rbp + 0x160]
mov rcx, qword [rax + 0x10]
mov qword [rbp + 0x10], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rbp], xmm0
mov eax, 1
mov qword [rbp + 0x158], rax
movaps xmm0, xmmword [rbp]
movups xmmword [rbp + 0x160], xmm0
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x170], rax
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
mov byte [rbp + 0x1be], 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rbp]
movups xmm0, xmmword [rbp + 0x158]
movups xmm1, xmmword [rbp + 0x168]
movaps xmmword [rbp + 0x10], xmm1
movaps xmmword [rbp], xmm0
movabs r15, 0x8000000000000000
mov rdi, r15
cmp rax, 0xc
ja case.0x14001d9c9.1
lea rcx, [0x140159fc4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov rdi, r15
jmp rax
lea rbx, [0x140159834]
jmp 0x14001d9db
lea rbx, [0x140159826]
mov edi, 4
jmp 0x14001da0a
lea rbx, [0x14015982a]
mov edi, 3
jmp 0x14001da0a
lea rbx, str.x86_64ia64armaarch64i386ntdll
mov edi, 6
jmp 0x14001da0a
lea rbx, [0x14015982d]
mov edi, 7
movzx eax, byte [0x140202701]
mov edx, 1
mov rcx, rdi
call fcn.14001c710
test rax, rax
je 0x14001da9e
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + 0x69], 0x2e
movups xmm0, xmmword [rbp + 0x158]
movups xmm1, xmmword [rbp + 0x168]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
mov rax, qword [rbp + 0x1b0]
mov qword [rsi + 0x20], rax
mov rax, qword [rbp + 0x1a8]
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], r12
mov qword [rsi + 0x38], r15
mov byte [rsi + 0x68], 2
mov qword [rsi + 0x50], rdi
mov qword [rsi + 0x58], r14
mov qword [rsi + 0x60], rdi
mov rax, rsi
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdi, [0x140159aaf]
jmp 0x14001d70c
mov ecx, 1
mov rdx, rdi
call fcn.140155720
jmp 0x14001dac9
mov ecx, 1
mov rdx, r15
call fcn.140155720
jmp 0x14001dac9
mov ecx, 2
mov rdx, rdi
call fcn.140155720
ud2