Function at 0x18010bd70
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 0x18010c771
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 0x18010bfbb
mov esi, eax
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x18010be16
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c7f1
mov rcx, rax
mov qword [0x180219958], rax
xor edi, edi
mov r8d, 0x50
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010c7f1
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 0x18010be99
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1801105d0
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 0x18010bec7
mov ebp, r13d
cmp r13d, esi
jbe 0x18010be60
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x18010beec
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c802
mov rcx, rax
mov qword [0x180219958], rax
mov r8d, 0x30
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010c802
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 0x18010bff5
shl rdi, 4
add rdi, r15
mov edx, dword [r15 + 0x20]
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.180110510
mov edx, dword [r15 + 0x24]
mov rcx, rsi
call fcn.180110510
mov edx, dword [r15 + 0x28]
mov rcx, rsi
call fcn.180110510
lea rbx, [r15 + 0x2c]
xor r14d, r14d
nop word cs:[rax + rax]
mov edx, dword [rbx + r14]
mov rcx, rsi
call fcn.180110510
cmp r14, 0x20
je 0x18010bfc8
lea r12, [rbx + r14]
add r12, 4
cmp r12, rdi
je 0x18010bfc8
mov edx, dword [r12]
mov rcx, rsi
call fcn.180110510
mov edx, dword [r12 + 4]
mov rcx, rsi
call fcn.180110510
mov edx, dword [r12 + 8]
mov rcx, rsi
call fcn.180110510
add r14, 0x10
jmp 0x18010bf70
mov r13d, 1
xor edi, edi
jmp 0x18010c060
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x18010bff5
xor r8d, r8d
movzx r12d, byte [rsp + 0x27]
cmp byte [rsi + r8], 0
je 0x18010c790
inc r8
cmp rax, r8
jne 0x18010bfe0
jmp 0x18010bffd
xor eax, eax
movzx r12d, byte [rsp + 0x27]
mov r8, rax
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.180027530
cmp qword [rsp + 0x80], 0
je 0x18010c2a9
mov r13d, 1
xor edi, edi
cmp qword [rsp + 0x50], 0
je 0x18010c041
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x30], 0
je 0x18010c05b
mov rcx, qword [0x180219958]
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 [0x180219958]
test rcx, rcx
jne 0x18010c095
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c7e0
mov rcx, rax
mov qword [0x180219958], rax
mov r8d, 0xc
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010c7e0
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.180110510
mov rcx, r14
mov edx, ebx
call fcn.180110510
mov rcx, r14
mov edx, esi
call fcn.180110510
mov rsi, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x18010c11c
xor eax, eax
nop word [rax + rax]
cmp byte [rsi + rax], 0
je 0x18010c110
inc rax
cmp r8, rax
jne 0x18010c100
jmp 0x18010c11c
cmp rax, r8
mov r8, rax
ja 0x18010c799
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.180027530
cmp qword [rsp + 0x80], 0
je 0x18010c16d
cmp r15w, 0xe
ja 0x18010c1c9
lea rax, [0x180205d18]
mov rcx, r15
mov r15, qword [rax + r15*8]
lea rax, [0x180205d90]
mov rbx, qword [rax + rcx*8]
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x18010c1fb
jmp 0x18010c1e2
mov rbx, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
test r15, r15
je 0x18010c785
js 0x18010c799
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x18010c1b1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c7c2
mov rcx, rax
mov qword [0x180219958], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x18010c212
jmp 0x18010c7c2
lea rbx, [0x1802022c0]
mov r15d, 7
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x18010c1fb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c7c2
mov rcx, rax
mov qword [0x180219958], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010c7c2
mov r14, rax
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.180170ea0
cmp qword [rsp + 0x50], 0
je 0x18010c23a
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x140]
test r12b, r12b
je 0x18010c25b
lea rcx, [rsp + 0xc8]
mov rdx, rsi
call fcn.180110690
jmp 0x18010c32c
test rsi, rsi
je 0x18010c30f
lea rbx, [rsi*8]
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x18010c291
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c7d1
mov rcx, rax
mov qword [0x180219958], rax
mov edx, 8
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x18010c314
jmp 0x18010c7d1
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x18010c79d
js 0x18010c799
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x18010c2e9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c300
mov rcx, rax
mov qword [0x180219958], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
jne 0x18010c7a3
mov ecx, 1
mov rdx, rdi
call fcn.18017ea70
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 [0x180219958]
test rcx, rcx
jne 0x18010c35d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c7d1
mov rcx, rax
mov qword [0x180219958], rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010c7d1
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 0x18010c5ca
mov rbx, qword [rsp + 0xc8]
shl r12, 3
mov esi, 1
xor ebp, ebp
jmp 0x18010c440
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 0x18010c5ca
mov qword [rsp + 0xe8], rsi
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x110], rax
lea rax, [0x18002b380]
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.18001de40
mov r14d, 1
test r15, r15
je 0x18010c4fa
js 0x18010c799
mov rax, qword [0x180219958]
test rax, rax
jne 0x18010c4e0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c7c2
mov qword [0x180219958], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x18010c7c2
mov rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8, r15
call fcn.180170ea0
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r15
test rdi, rdi
je 0x18010c570
js 0x18010c799
mov rax, qword [0x180219958]
test rax, rax
jne 0x18010c54f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010c300
mov qword [0x180219958], rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x18010c576
jmp 0x18010c300
mov r14d, 1
mov rcx, r14
mov rdx, qword [rsp + 0x78]
mov r8, rdi
call fcn.180170ea0
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 0x18010c3c0
lea rcx, [rsp + 0x28]
mov rdx, rbp
call fcn.1801108a0
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
jmp 0x18010c3c0
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 0x18010c613
mov r8, qword [rsp + 0xc8]
mov rcx, qword [0x180219958]
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 0x18010c6db
lea r14, [rsi + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18010c679
add r14, 0x70
dec rbx
je 0x18010c6db
cmp qword [r14 - 0x48], 0
je 0x18010c690
mov r8, qword [r14 - 0x50]
mov rcx, qword [0x180219958]
xor edx, edx
call r12
mov r8, qword [r14 - 8]
test r8, r8
je 0x18010c6ab
cmp qword [r14], 0
je 0x18010c6ab
mov rcx, qword [0x180219958]
xor edx, edx
call r12
cmp qword [r14 - 0x30], 0
je 0x18010c6c2
mov r8, qword [r14 - 0x38]
mov rcx, qword [0x180219958]
xor edx, edx
call r12
cmp qword [r14 - 0x18], 0
je 0x18010c670
mov r8, qword [r14 - 0x20]
mov rcx, qword [0x180219958]
xor edx, edx
call r12
jmp 0x18010c670
lea rbx, [r13 + 0x70]
cmp qword [r13 + 0x78], 0
je 0x18010c6f8
mov rcx, qword [0x180219958]
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 0x18010c733
mov r8, qword [r13 + 0x18]
mov rcx, qword [0x180219958]
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 0x18010c759
mov r8, qword [r13 + 0x30]
mov rcx, qword [0x180219958]
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 0x18010c212
cmp r8, rax
jbe 0x18010c000
ud2
mov r13d, 1
mov rcx, r13
mov rdx, rbx
mov r8, rdi
call fcn.180170ea0
cmp qword [rsp + 0x50], 0
jne 0x18010c02f
jmp 0x18010c041
mov ecx, 1
mov rdx, r15
call fcn.18017ea70
ud2
mov ecx, 8
mov rdx, rbx
call fcn.18017ea70
ud2
mov ecx, 1
mov edx, 0xc
call fcn.18017ea70
ud2
mov ecx, 4
mov edx, 0x50
call fcn.18017ea70
ud2
mov ecx, 1
mov edx, 0x30
call fcn.18017ea70
ud2