Function at 0x1400038f0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1b8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], 0xfffffffffffffffe
cmp qword [rcx + 0x80], 0
jne 0x1400040ac
mov r12d, edx
mov rbx, rcx
lea rsi, [rbp - 0x60]
mov rcx, rsi
call fcn.14000f980
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx r13d, word [rbp - 0x60]
xor ecx, ecx
mov eax, 0x80000000
mov r8, rbx
cpuid
xchg rbx, r8
mov dword [rbp + 0x120], eax
cmp eax, 0x80000004
mov qword [rbp + 0xf0], rbx
mov byte [rbp + 0x12f], r12b
jb 0x140003a32
mov word [rbp + 0x110], r13w
movzx eax, byte [0x14005c121]
mov ecx, 0x50
mov edx, 4
call fcn.140003300
test rax, rax
je 0x140004168
mov qword [rbp + 0xf8], 5
mov qword [rbp + 0x100], rax
mov eax, 0x80000000
xor r13d, r13d
xor ebx, ebx
jmp 0x1400039e5
mov rax, qword [rbp + 0x100]
mov rcx, r13
shl rcx, 4
mov dword [rax + rcx], r12d
mov dword [rax + rcx + 4], esi
mov dword [rax + rcx + 8], r14d
mov dword [rax + rcx + 0xc], r15d
inc r13
mov eax, edi
mov qword [rbp + 0x108], r13
test bl, 1
jne 0x140003a4c
cmp eax, dword [rbp + 0x120]
ja 0x140003a4c
setae bl
mov edi, eax
adc edi, 0
xor ecx, ecx
mov rsi, rbx
cpuid
xchg rbx, rsi
mov r12d, eax
mov r14d, ecx
mov r15d, edx
mov r13, qword [rbp + 0x108]
cmp r13, qword [rbp + 0xf8]
jne 0x1400039c0
lea rcx, [rbp + 0xf8]
call fcn.140008450
jmp 0x1400039c0
mov eax, 1
mov qword [rbp + 0x118], rax
xor eax, eax
mov qword [rbp + 0x120], rax
jmp 0x140003bed
movzx eax, byte [0x14005c121]
mov ecx, 0x30
mov edx, 1
call fcn.140003300
test rax, rax
je 0x140004177
mov qword [rbp + 0xc0], 0x30
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], 0
mov rdi, qword [rbp + 0x100]
mov rbx, qword [rbp + 0x108]
shl rbx, 4
add rbx, rdi
mov eax, 2
mov r14d, 5
xor r15d, r15d
lea rsi, [rbp + 0xc0]
movzx r12d, byte [rbp + 0x12f]
movzx r13d, word [rbp + 0x110]
nop word cs:[rax + rax]
test r15b, 1
je 0x140003af0
test r14, r14
je 0x140003b4a
cmp rdi, rbx
je 0x140003b4a
dec r14
jmp 0x140003b14
cmp r14, rax
jbe 0x140003b4a
mov rcx, rbx
sub rcx, rdi
shr rcx, 4
cmp rcx, rax
jbe 0x140003b4a
mov rcx, rax
not rcx
add r14, rcx
shl rax, 4
add rdi, rax
mov edx, dword [rdi]
mov rcx, rsi
call fcn.140004580
mov edx, dword [rdi + 4]
mov rcx, rsi
call fcn.140004580
mov edx, dword [rdi + 8]
mov rcx, rsi
call fcn.140004580
mov edx, dword [rdi + 0xc]
add rdi, 0x10
mov r15b, 1
mov rcx, rsi
call fcn.140004580
xor eax, eax
jmp 0x140003ad0
mov rdx, qword [rbp + 0xc8]
mov r8, qword [rbp + 0xd0]
test r8, r8
je 0x140003b7c
xor ecx, ecx
nop
cmp byte [rdx + rcx], 0
je 0x140003b70
inc rcx
cmp r8, rcx
jne 0x140003b60
jmp 0x140003b7c
cmp rcx, r8
ja 0x1400041ac
mov r8, rcx
lea rcx, [rbp - 0x10]
call fcn.14003ebf0
cmp qword [rbp - 0x10], 0
je 0x1400040c0
mov eax, 1
mov qword [rbp + 0x118], rax
xor r14d, r14d
mov rbx, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xc0]
test rdx, rdx
je 0x140003bc4
mov rcx, qword [rbp + 0xc8]
mov r8d, 1
call fcn.140003310
mov rdx, qword [rbp + 0xf8]
test rdx, rdx
je 0x140003be6
mov rcx, qword [rbp + 0x100]
shl rdx, 4
mov r8d, 4
call fcn.140003310
mov qword [rbp + 0x120], r14
xor ecx, ecx
xor eax, eax
mov r14, rbx
cpuid
xchg rbx, r14
mov esi, ecx
mov edi, edx
movzx eax, byte [0x14005c121]
mov ecx, 0xc
mov edx, 1
call fcn.140003300
test rax, rax
je 0x140004136
mov qword [rbp + 0xc0], 0xc
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], 0
lea rcx, [rbp + 0xc0]
mov edx, r14d
call fcn.140004580
lea rcx, [rbp + 0xc0]
mov edx, edi
call fcn.140004580
lea rcx, [rbp + 0xc0]
mov edx, esi
call fcn.140004580
mov rdx, qword [rbp + 0xc8]
mov r8, qword [rbp + 0xd0]
test r8, r8
je 0x140003c9c
xor ecx, ecx
nop dword [rax]
cmp byte [rdx + rcx], 0
je 0x140003c90
inc rcx
cmp r8, rcx
jne 0x140003c80
jmp 0x140003c9c
cmp rcx, r8
ja 0x140004188
mov r8, rcx
lea rcx, [rbp - 0x10]
call fcn.14003ebf0
cmp qword [rbp - 0x10], 0
je 0x140003cd2
cmp r13w, 0xe
ja 0x140003d0d
movzx eax, r13w
lea rcx, [0x1400468a0]
mov rsi, qword [rcx + rax*8]
lea rcx, [0x140046918]
movsxd r14, dword [rcx + rax*4]
add r14, rcx
jmp 0x140003d19
mov r14, qword [rbp - 8]
mov rsi, qword [rbp]
test rsi, rsi
je 0x1400040fd
js 0x14000419c
movzx eax, byte [0x14005c121]
mov r15d, 1
mov edx, 1
mov rcx, rsi
call fcn.140003300
test rax, rax
jne 0x140003d36
jmp 0x14000419f
lea r14, [0x1400467db]
mov esi, 7
movzx eax, byte [0x14005c121]
mov edx, 1
mov rcx, rsi
call fcn.140003300
test rax, rax
je 0x140004159
mov rdi, rax
mov rcx, rdi
mov rdx, r14
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp + 0xc0]
test rdx, rdx
mov r14, qword [rbp + 0x120]
je 0x140003d6c
mov rcx, qword [rbp + 0xc8]
mov r8d, 1
call fcn.140003310
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rdi
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x60], r14
mov rax, qword [rbp + 0x118]
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], r14
mov esi, dword [rbp - 0x40]
test r12b, r12b
je 0x140003daa
lea rcx, [rbp + 0x90]
mov rdx, rsi
call fcn.140004630
jmp 0x140003df4
test esi, esi
je 0x140003dda
lea rdi, [rsi*8]
mov edx, 8
mov rcx, rdi
call fcn.140003330
test rax, rax
jne 0x140003ddf
mov ecx, 8
mov rdx, rdi
call fcn.140045560
jmp 0x1400041cd
mov eax, 8
mov qword [rbp + 0x90], rsi
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rsi
lea rdi, [rsi + 1]
imul rsi, rdi, 0x70
movzx eax, byte [0x14005c121]
mov edx, 8
mov rcx, rsi
call fcn.140003300
test rax, rax
je 0x14000414a
lea rcx, [rbx + 0x70]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0xa8], rdi
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], 0
mov r15, qword [rbp + 0x98]
mov rax, qword [rbp + 0xa0]
lea rbx, [r15 + rax*8]
lea rsi, [rbp + 8]
xor r13d, r13d
lea rdi, [rbp + 0xf8]
lea r14, [rbp + 0xc0]
mov qword [rbp - 0x18], r15
jmp 0x140003ec7
add r15, 8
mov rax, qword [rbp + 0xb0]
imul rcx, r12, 0x70
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rax + rcx + 0x60], xmm0
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + rcx + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rbp - 0x10]
movups xmm1, xmmword [rbp]
movups xmm2, xmmword [rbp + 0x10]
movups xmm3, xmmword [rbp + 0x20]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc r12
mov qword [rbp + 0xb8], r12
cmp r15, rbx
je 0x140003ff0
inc r13
mov qword [rbp - 0x20], r13
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [fcn.140040ca0]
mov qword [rbp - 0x28], rax
lea rax, str.CPU
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], 1
mov qword [rbp + 0xe0], 0
lea rax, [rbp - 0x30]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], 1
mov rcx, rdi
mov rdx, r14
call fcn.14003c1c0
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x118], rax
mov r12, qword [rbp + 0x108]
mov rcx, rdi
lea rdx, [rbp + 0x78]
call fcn.14003c610
mov rcx, r14
lea rdx, [rbp + 0x60]
call fcn.14003c610
mov rax, qword [r15]
mov rcx, qword [rbp + 0x108]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rbp + 0xf8]
movups xmmword [rsi], xmm0
mov rcx, qword [rbp + 0xd0]
mov qword [rsi + 0x28], rcx
movups xmm0, xmmword [rbp + 0xc0]
movups xmmword [rsi + 0x18], xmm0
mov rcx, qword [rbp + 0x120]
mov qword [rbp - 0x10], rcx
mov rcx, qword [rbp + 0x118]
mov qword [rbp - 8], rcx
mov qword [rbp], r12
movabs rcx, 0x8000000000000000
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x58], 0
mov r12, qword [rbp + 0xb8]
cmp r12, qword [rbp + 0xa8]
jne 0x140003e70
lea rcx, [rbp + 0xa8]
call fcn.1400087c0
jmp 0x140003e70
mov rax, qword [rbp + 0xb8]
mov qword [rbp], rax
movups xmm0, xmmword [rbp + 0xa8]
movaps xmmword [rbp - 0x10], xmm0
mov rdx, qword [rbp + 0x90]
test rdx, rdx
je 0x140004025
shl rdx, 3
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140003310
mov rdx, qword [rbp + 0x60]
test rdx, rdx
movzx ebx, byte [rbp + 0x12f]
mov rsi, qword [rbp + 0x110]
je 0x14000404b
mov rcx, qword [rbp + 0x68]
mov r8d, 1
call fcn.140003310
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x140004066
mov rcx, qword [rbp + 0x80]
mov r8d, 1
call fcn.140003310
mov rcx, rsi
call fcn.140005800
mov rdi, qword [rbp + 0x110]
mov rax, qword [rdi]
test rax, rax
mov rsi, qword [rbp + 0xf0]
je 0x140004097
mov rcx, qword [rsi + 0x78]
imul rdx, rax, 0x70
mov r8d, 8
call fcn.140003310
mov rax, qword [rbp]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
mov byte [rsi + 0x88], bl
add rsp, 0x1b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rsi, qword [rbp - 8]
mov r14, qword [rbp]
test r14, r14
mov rbx, qword [rbp + 0xf0]
je 0x140004107
js 0x1400041c0
movzx eax, byte [0x14005c121]
mov edi, 1
mov edx, 1
mov rcx, r14
call fcn.140003300
test rax, rax
jne 0x14000410c
jmp 0x1400041c2
mov edi, 1
jmp 0x140003d39
mov eax, 1
mov qword [rbp + 0x118], rax
mov rcx, rax
mov rdx, rsi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp + 0xc0]
test rdx, rdx
jne 0x140003bb2
jmp 0x140003bc4
mov ecx, 1
mov edx, 0xc
call fcn.140045560
jmp 0x1400041cd
mov ecx, 8
mov rdx, rsi
call fcn.140045560
jmp 0x1400041cd
mov ecx, 1
mov rdx, rsi
call fcn.140045560
jmp 0x1400041cd
mov ecx, 4
mov edx, 0x50
call fcn.140045560
mov ecx, 1
mov edx, 0x30
call fcn.140045560
jmp 0x1400041cd
lea rax, [0x140046870]
mov rdx, r8
mov r8, rax
call fcn.140045b00
jmp 0x1400041cd
xor r15d, r15d
mov rcx, r15
mov rdx, rsi
call fcn.140045560
jmp 0x1400041cd
lea rax, [0x140046858]
mov rdx, r8
mov r8, rax
call fcn.140045b00
jmp 0x1400041cd
xor edi, edi
mov rcx, rdi
mov rdx, r14
call fcn.140045560
ud2