Function at 0x18010c030
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
cmp qword [rcx + 0x80], 0
jne 0x18010ca31
mov r12d, edx
mov rbx, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
lea rcx, [rsp + 0x120]
call sub.KERNEL32.dll_GetSystemInfo
movsx r15, word [rsp + 0x120]
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x27], r12b
mov qword [rsp + 0xe0], rbx
jb 0x18010c27b
mov esi, eax
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c0d6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010cab1
mov rcx, rax
mov qword [0x18021a960], rax
xor edi, edi
mov r8d, 0x50
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010cab1
mov r8, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 5
mov qword [rsp + 0x38], 0
mov ebp, 0x80000000
mov r13d, 0x80000000
nop dword [rax]
cmp ebp, esi
adc r13d, 0
mov eax, ebp
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov r15d, ecx
mov r14d, edx
mov r12d, eax
cmp rdi, qword [rsp + 0x30]
jne 0x18010c159
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.180110890
mov r8, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
mov rax, rdi
shl rax, 4
inc rdi
mov dword [r8 + rax], r12d
mov dword [r8 + rax + 4], ebx
mov dword [r8 + rax + 8], r15d
mov dword [r8 + rax + 0xc], r14d
mov qword [rsp + 0x38], rdi
cmp ebp, esi
jae 0x18010c187
mov ebp, r13d
cmp r13d, esi
jbe 0x18010c120
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c1ac
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010cac2
mov rcx, rax
mov qword [0x18021a960], rax
mov r8d, 0x30
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010cac2
mov rsi, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
mov r15, qword [rsp + 0x28]
cmp rdi, 3
jb 0x18010c2b5
shl rdi, 4
add rdi, r15
mov edx, dword [r15 + 0x20]
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1801107d0
mov edx, dword [r15 + 0x24]
mov rcx, rsi
call fcn.1801107d0
mov edx, dword [r15 + 0x28]
mov rcx, rsi
call fcn.1801107d0
lea rbx, [r15 + 0x2c]
xor r14d, r14d
nop word cs:[rax + rax]
mov edx, dword [rbx + r14]
mov rcx, rsi
call fcn.1801107d0
cmp r14, 0x20
je 0x18010c288
lea r12, [rbx + r14]
add r12, 4
cmp r12, rdi
je 0x18010c288
mov edx, dword [r12]
mov rcx, rsi
call fcn.1801107d0
mov edx, dword [r12 + 4]
mov rcx, rsi
call fcn.1801107d0
mov edx, dword [r12 + 8]
mov rcx, rsi
call fcn.1801107d0
add r14, 0x10
jmp 0x18010c230
mov r13d, 1
xor edi, edi
jmp 0x18010c320
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x18010c2b5
xor r8d, r8d
movzx r12d, byte [rsp + 0x27]
cmp byte [rsi + r8], 0
je 0x18010ca50
inc r8
cmp rax, r8
jne 0x18010c2a0
jmp 0x18010c2bd
xor eax, eax
movzx r12d, byte [rsp + 0x27]
mov r8, rax
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.1800276b0
cmp qword [rsp + 0x80], 0
je 0x18010c569
mov r13d, 1
xor edi, edi
cmp qword [rsp + 0x50], 0
je 0x18010c301
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x30], 0
je 0x18010c31b
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rsp + 0x40]
xor ecx, ecx
xor eax, eax
mov rbp, rbx
cpuid
xchg rbx, rbp
mov esi, ecx
mov ebx, edx
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c355
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010caa0
mov rcx, rax
mov qword [0x18021a960], rax
mov r8d, 0xc
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010caa0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0xc
mov qword [rsp + 0x58], 0
lea r14, [rsp + 0x48]
mov rcx, r14
mov edx, ebp
call fcn.1801107d0
mov rcx, r14
mov edx, ebx
call fcn.1801107d0
mov rcx, r14
mov edx, esi
call fcn.1801107d0
mov rsi, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x18010c3dc
xor eax, eax
nop word [rax + rax]
cmp byte [rsi + rax], 0
je 0x18010c3d0
inc rax
cmp r8, rax
jne 0x18010c3c0
jmp 0x18010c3dc
cmp rax, r8
mov r8, rax
ja 0x18010ca59
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.1800276b0
cmp qword [rsp + 0x80], 0
je 0x18010c42d
cmp r15w, 0xe
ja 0x18010c489
lea rax, [0x180206c88]
mov rcx, r15
mov r15, qword [rax + r15*8]
lea rax, [0x180206d00]
mov rbx, qword [rax + rcx*8]
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c4bb
jmp 0x18010c4a2
mov rbx, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
test r15, r15
je 0x18010ca45
js 0x18010ca59
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c471
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ca82
mov rcx, rax
mov qword [0x18021a960], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x18010c4d2
jmp 0x18010ca82
lea rbx, [0x180203200]
mov r15d, 7
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c4bb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ca82
mov rcx, rax
mov qword [0x18021a960], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010ca82
mov r14, rax
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.180171d20
cmp qword [rsp + 0x50], 0
je 0x18010c4fa
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x140]
test r12b, r12b
je 0x18010c51b
lea rcx, [rsp + 0xc8]
mov rdx, rsi
call fcn.180110950
jmp 0x18010c5ec
test rsi, rsi
je 0x18010c5cf
lea rbx, [rsi*8]
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c551
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ca91
mov rcx, rax
mov qword [0x18021a960], rax
mov edx, 8
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x18010c5d4
jmp 0x18010ca91
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x18010ca5d
js 0x18010ca59
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c5a9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c5c0
mov rcx, rax
mov qword [0x18021a960], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
jne 0x18010ca63
mov ecx, 1
mov rdx, rdi
call fcn.18017f950
ud2
mov eax, 8
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x78], r13
inc rsi
imul rbx, rsi, 0x70
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x18010c61d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ca91
mov rcx, rax
mov qword [0x18021a960], rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010ca91
mov r13, rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0
mov r12, qword [rsp + 0xd8]
test r12, r12
je 0x18010c88a
mov rbx, qword [rsp + 0xc8]
shl r12, 3
mov esi, 1
xor ebp, ebp
jmp 0x18010c700
imul rax, rbp, 0x70
mov rcx, qword [rsp + 0xc0]
mov qword [r13 + rax + 0x40], rcx
movups xmm0, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0x90]
movups xmm2, xmmword [rsp + 0xa0]
movups xmm3, xmmword [rsp + 0xb0]
movups xmmword [r13 + rax + 0x30], xmm3
movups xmmword [r13 + rax + 0x20], xmm2
movups xmmword [r13 + rax + 0x10], xmm1
movups xmmword [r13 + rax], xmm0
mov qword [r13 + rax + 0x48], 0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r13 + rax + 0x50], xmm0
mov qword [r13 + rax + 0x60], r14
mov dword [r13 + rax + 0x68], 0
inc rbp
mov qword [rsp + 0x38], rbp
inc rsi
add r12, 0xfffffffffffffff8
je 0x18010c88a
mov qword [rsp + 0xe8], rsi
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x110], rax
lea rax, [0x18002b500]
mov qword [rsp + 0x118], rax
lea rax, str.CPU
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x48]
call fcn.18001e000
mov r14d, 1
test r15, r15
je 0x18010c7ba
js 0x18010ca59
mov rax, qword [0x18021a960]
test rax, rax
jne 0x18010c7a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ca82
mov qword [0x18021a960], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x18010ca82
mov rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8, r15
call fcn.180171d20
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r15
test rdi, rdi
je 0x18010c830
js 0x18010ca59
mov rax, qword [0x18021a960]
test rax, rax
jne 0x18010c80f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c5c0
mov qword [0x18021a960], rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x18010c836
jmp 0x18010c5c0
mov r14d, 1
mov rcx, r14
mov rdx, qword [rsp + 0x78]
mov r8, rdi
call fcn.180171d20
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], rdi
mov r14, qword [rbx + rsi*8 - 8]
cmp rbp, qword [rsp + 0x30]
jne 0x18010c680
lea rcx, [rsp + 0x28]
mov rdx, rbp
call fcn.180110b60
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
jmp 0x18010c680
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xd0], 0
je 0x18010c8d3
mov r8, qword [rsp + 0xc8]
mov rcx, qword [0x18021a960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x100], rax
mov r13, qword [rsp + 0xe0]
mov rsi, qword [r13 + 0x70]
mov rbx, qword [r13 + 0x80]
test rbx, rbx
je 0x18010c99b
lea r14, [rsi + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18010c939
add r14, 0x70
dec rbx
je 0x18010c99b
cmp qword [r14 - 0x48], 0
je 0x18010c950
mov r8, qword [r14 - 0x50]
mov rcx, qword [0x18021a960]
xor edx, edx
call r12
mov r8, qword [r14 - 8]
test r8, r8
je 0x18010c96b
cmp qword [r14], 0
je 0x18010c96b
mov rcx, qword [0x18021a960]
xor edx, edx
call r12
cmp qword [r14 - 0x30], 0
je 0x18010c982
mov r8, qword [r14 - 0x38]
mov rcx, qword [0x18021a960]
xor edx, edx
call r12
cmp qword [r14 - 0x18], 0
je 0x18010c930
mov r8, qword [r14 - 0x20]
mov rcx, qword [0x18021a960]
xor edx, edx
call r12
jmp 0x18010c930
lea rbx, [r13 + 0x70]
cmp qword [r13 + 0x78], 0
je 0x18010c9b8
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x100]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xf0]
movups xmmword [rbx], xmm0
cmp qword [r13 + 0x20], 0
movzx ebx, byte [rsp + 0x27]
mov rsi, qword [rsp + 0x40]
je 0x18010c9f3
mov r8, qword [r13 + 0x18]
mov rcx, qword [0x18021a960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r13 + 0x18], rsi
mov qword [r13 + 0x20], r15
mov qword [r13 + 0x28], r15
cmp qword [r13 + 0x38], 0
je 0x18010ca19
mov r8, qword [r13 + 0x30]
mov rcx, qword [0x18021a960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x78]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rdi
mov qword [r13 + 0x40], rdi
mov byte [r13 + 0x88], bl
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, 1
jmp 0x18010c4d2
cmp r8, rax
jbe 0x18010c2c0
ud2
mov r13d, 1
mov rcx, r13
mov rdx, rbx
mov r8, rdi
call fcn.180171d20
cmp qword [rsp + 0x50], 0
jne 0x18010c2ef
jmp 0x18010c301
mov ecx, 1
mov rdx, r15
call fcn.18017f950
ud2
mov ecx, 8
mov rdx, rbx
call fcn.18017f950
ud2
mov ecx, 1
mov edx, 0xc
call fcn.18017f950
ud2
mov ecx, 4
mov edx, 0x50
call fcn.18017f950
ud2
mov ecx, 1
mov edx, 0x30
call fcn.18017f950
ud2