Function at 0x1400a47e0
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, 0x128
cmp qword [rcx + 0x80], 0
jne 0x1400a5018
mov r13d, edx
mov r12, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
lea rcx, [rsp + 0xe0]
call sub.KERNEL32.dll_GetSystemInfo
movzx eax, word [rsp + 0xe0]
mov qword [rsp + 0x68], rax
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x2f], r13b
mov qword [rsp + 0xb8], r12
jb 0x1400a49e8
mov esi, eax
movzx eax, byte [0x140259141]
xor edi, edi
mov edx, 0x50
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400a505e
mov r8, rax
mov qword [rsp + 0x48], 5
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov ebp, 0x80000000
mov r13d, 0x80000000
nop dword [rax + rax]
cmp ebp, esi
adc r13d, 0
mov eax, ebp
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov r14d, ecx
mov r15d, edx
mov r12d, eax
cmp rdi, qword [rsp + 0x48]
jne 0x1400a48e9
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.1400a56e0
mov r8, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
shl rdi, 4
mov dword [r8 + rdi], r12d
mov dword [r8 + rdi + 4], ebx
mov dword [r8 + rdi + 8], r14d
mov dword [r8 + rdi + 0xc], r15d
mov rdi, qword [rsp + 0x58]
inc rdi
mov qword [rsp + 0x58], rdi
cmp ebp, esi
jae 0x1400a4919
mov ebp, r13d
cmp r13d, esi
jbe 0x1400a48b0
movzx eax, byte [0x140259141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400a505e
mov rsi, rax
mov qword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
cmp rdi, 3
movzx r13d, byte [rsp + 0x2f]
jb 0x1400a4a25
mov rbx, qword [rsp + 0x50]
shl rdi, 4
add rdi, rbx
mov edx, dword [rbx + 0x20]
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1400a5090
mov edx, dword [rbx + 0x24]
mov rcx, rsi
call fcn.1400a5090
mov edx, dword [rbx + 0x28]
mov rcx, rsi
call fcn.1400a5090
add rbx, 0x2c
xor r14d, r14d
nop dword [rax + rax]
mov edx, dword [rbx + r14]
mov rcx, rsi
call fcn.1400a5090
cmp r14, 0x20
je 0x1400a49f5
lea r15, [rbx + r14]
add r15, 4
cmp r15, rdi
je 0x1400a49f5
mov edx, dword [r15]
mov rcx, rsi
call fcn.1400a5090
mov edx, dword [r15 + 4]
mov rcx, rsi
call fcn.1400a5090
mov edx, dword [r15 + 8]
mov rcx, rsi
call fcn.1400a5090
add r14, 0x10
jmp 0x1400a49a0
mov edi, 1
xor r15d, r15d
jmp 0x1400a4a7f
mov rsi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400a4a25
xor r8d, r8d
nop word [rax + rax]
cmp byte [rsi + r8], 0
je 0x1400a5055
inc r8
cmp rax, r8
jne 0x1400a4a10
jmp 0x1400a4a27
xor eax, eax
mov r8, rax
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.140018090
cmp qword [rsp + 0x70], 0
je 0x1400a4c48
mov edi, 1
xor r15d, r15d
cmp qword [rsp + 0x30], 0
je 0x1400a4a64
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x48], 0
je 0x1400a4a7f
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
xor eax, eax
xor ecx, ecx
mov rbp, rbx
cpuid
xchg rbx, rbp
mov esi, ecx
mov ebx, edx
movzx eax, byte [0x140259141]
mov edx, 0xc
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400a505e
mov qword [rsp + 0x30], 0xc
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
lea r14, [rsp + 0x30]
mov rcx, r14
mov edx, ebp
call fcn.1400a5090
mov rcx, r14
mov edx, ebx
call fcn.1400a5090
mov rcx, r14
mov edx, esi
call fcn.1400a5090
mov rsi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x1400a4b1c
xor eax, eax
nop word cs:[rax + rax]
cmp byte [rsi + rax], 0
je 0x1400a4b10
inc rax
cmp r8, rax
jne 0x1400a4b00
jmp 0x1400a4b1c
cmp rax, r8
mov r8, rax
ja 0x1400a505e
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.140018090
cmp qword [rsp + 0x70], 0
je 0x1400a4b54
mov rcx, qword [rsp + 0x68]
cmp cx, 0xe
ja 0x1400a4b9c
lea rax, [0x1402175a8]
mov r14, qword [rax + rcx*8]
lea rax, [0x140217620]
mov rbx, qword [rax + rcx*8]
jmp 0x1400a4ba9
mov rbx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400a502c
js 0x1400a505e
movzx eax, byte [0x140259141]
xor ecx, ecx
mov r14, qword [rsp + 0x60]
mov rdx, r14
call fcn.14008b700
mov rbp, rax
test rax, rax
jne 0x1400a5036
jmp 0x1400a505e
lea rbx, [0x1401dc47c]
mov r14d, 7
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, r14
call fcn.14008b700
test rax, rax
je 0x1400a505e
mov rbp, rax
mov rcx, rax
mov rdx, rbx
mov qword [rsp + 0x60], r14
mov r8, r14
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x30], 0
je 0x1400a4bf2
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
mov esi, dword [rsp + 0x100]
test r13b, r13b
mov qword [rsp + 0xb0], rbp
je 0x1400a4c27
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.1400a5150
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa8], rax
mov rbx, qword [rsp + 0x58]
jmp 0x1400a4ca5
test rsi, rsi
je 0x1400a4c86
lea rdx, [rsi*8]
mov ecx, 8
call fcn.14008b700
test rax, rax
jne 0x1400a4c8b
jmp 0x1400a505e
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x80]
test r15, r15
je 0x1400a5060
js 0x1400a505e
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, r15
call fcn.14008b700
mov rdi, rax
test rax, rax
jne 0x1400a5065
jmp 0x1400a505e
mov eax, 8
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
mov rbx, rsi
inc rsi
imul rdx, rsi, 0x70
movzx eax, byte [0x140259141]
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400a505e
mov rbp, rax
movabs r12, 0x8000000000000000
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
test rbx, rbx
mov rsi, qword [rsp + 0x60]
je 0x1400a4ecb
shl rbx, 3
mov r13d, 1
xor r14d, r14d
mov qword [rsp + 0xc0], rdi
jmp 0x1400a4d97
imul rax, r14, 0x70
movups xmm0, xmmword [rsp + 0x110]
mov rcx, qword [rsp + 0x120]
mov qword [rbp + rax + 0x10], rcx
movups xmmword [rbp + rax], xmm0
mov rsi, qword [rsp + 0x60]
mov qword [rbp + rax + 0x18], rsi
mov qword [rbp + rax + 0x20], rbx
mov qword [rbp + rax + 0x28], rsi
mov qword [rbp + rax + 0x30], rdi
mov qword [rbp + rax + 0x38], r12
mov qword [rbp + rax + 0x40], rdi
movabs r12, 0x8000000000000000
mov qword [rbp + rax + 0x48], r12
mov qword [rbp + rax + 0x60], r15
mov r15, rdi
mov dword [rbp + rax + 0x68], 0
mov r14, qword [rsp + 0x40]
inc r14
mov qword [rsp + 0x40], r14
inc r13
mov rbx, qword [rsp + 0x68]
add rbx, 0xfffffffffffffff8
mov rdi, qword [rsp + 0xc0]
je 0x1400a4ecb
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0xc8], r13
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
lea rax, [0x140018690]
mov qword [rsp + 0xd8], rax
lea rax, [0x1401dc490]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rcx, [rsp + 0x110]
lea rdx, [rsp + 0x70]
call fcn.14000ba20
mov ebx, 1
test rsi, rsi
je 0x1400a4e3f
js 0x1400a505e
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, rsi
call fcn.14008b700
mov rbx, rax
test rax, rax
je 0x1400a505e
mov rcx, rbx
mov rdx, qword [rsp + 0xb0]
mov r8, rsi
call sub.msvcrt.dll_memcpy
test r15, r15
je 0x1400a4e80
js 0x1400a505e
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, r15
call fcn.14008b700
mov r12, rax
test rax, rax
jne 0x1400a4e86
jmp 0x1400a505e
mov r12d, 1
mov rcx, r12
mov rdx, rdi
mov rdi, r15
mov r8, r15
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0xa8]
mov r15, qword [rax + r13*8 - 8]
cmp r14, qword [rsp + 0x30]
jne 0x1400a4d10
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1400a5430
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
jmp 0x1400a4d10
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x48], 0
je 0x1400a4f07
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
test r15, r15
movzx ebp, byte [rsp + 0x2f]
mov r14, qword [rsp + 0xb8]
je 0x1400a4f2a
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
test rsi, rsi
je 0x1400a4f45
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, qword [rsp + 0xb0]
call sub.KERNEL32.dll_HeapFree
lea rsi, [r14 + 0x70]
mov rdi, qword [r14 + 0x80]
test rdi, rdi
je 0x1400a4fe5
mov rbx, qword [r14 + 0x78]
add rbx, 0x50
jmp 0x1400a4f79
add rbx, 0x70
dec rdi
je 0x1400a4fe5
cmp qword [rbx - 0x50], 0
je 0x1400a4f92
mov r8, qword [rbx - 0x48]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rbx - 8]
cmp rax, r12
je 0x1400a4fb1
test rax, rax
je 0x1400a4fb1
mov r8, qword [rbx]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rbx - 0x38], 0
je 0x1400a4fca
mov r8, qword [rbx - 0x30]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rbx - 0x20], 0
je 0x1400a4f70
mov r8, qword [rbx - 0x18]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x1400a4f70
cmp qword [rsi], 0
je 0x1400a4ffd
mov r8, qword [r14 + 0x78]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi], xmm0
mov byte [r14 + 0x88], bpl
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 1
mov r14, qword [rsp + 0x60]
mov rcx, rbp
mov rdx, rbx
mov r8, r14
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x30], 0
jne 0x1400a4be1
jmp 0x1400a4bf2
cmp r8, rax
jbe 0x1400a4a2a
ud2
mov edi, 1
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x30], 0
jne 0x1400a4a53
jmp 0x1400a4a64