Function at 0x1401766d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword gs:[0x58]
xor r15d, r15d
or esi, 0xffffffff
mov qword [rbp - 0x40], r15
mov r13, rcx
mov qword [rbp + 0x40], r15
mov ecx, 4
mov r12d, r9d
mov r10, qword [rax]
mov r14, rdx
mov qword [rbp - 0x38], r15
lea ebx, [rsi + 2]
mov edi, r15d
mov eax, dword [rcx + r10]
cmp dword [0x14042fd70], eax
jg 0x140176b86
mov ebx, r15d
lea rcx, [0x14042fd80]
mov eax, ebx
add rax, rax
mov esi, ebx
mov r8, qword [rcx + rax*8]
cmp r8, r14
je 0x14017678e
test r14, r14
lea rdx, [0x1403b8928]
lea rcx, [0x1403b8928]
cmovne rdx, r14
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rcx, [0x14042fd80]
test eax, eax
je 0x14017678e
inc ebx
cmp ebx, 6
jne 0x140176738
mov ebx, 0x80070490
mov ecx, ebx
call fcn.1400790f8
mov r15d, dword [rbp + 0x40]
jmp 0x140176798
add rsi, rsi
xor ebx, ebx
mov r15d, dword [rcx + rsi*8 + 8]
mov ecx, ebx
call fcn.140079118
mov r14, qword [r13 + 0x18]
test ebx, ebx
mov eax, 0xffffffff
cmovs r15d, eax
xor esi, esi
cmp dword [0x14042fef8], 1
mov rax, qword [r14]
cmove rsi, qword [0x14042f598]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rbp - 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
jns 0x1401767f0
mov ecx, eax
call fcn.1400790f8
jmp 0x140176a6a
test r15d, r15d
je 0x140176a2b
sub r15d, 1
je 0x140176921
sub r15d, 1
je 0x140176841
mov r8, qword [rbp - 0x40]
xor ecx, ecx
mov rdx, qword [r13 + 0x18]
cmp r15d, 1
je 0x14017682d
cmp dword [0x14042fef8], 1
cmove rcx, qword [0x14042f5c0]
jmp 0x140176a4e
cmp dword [0x14042fef8], 1
cmove rcx, qword [0x14042f5f8]
jmp 0x140176a4e
cmp r12d, 8
je 0x14017685d
xor ecx, ecx
cmp dword [0x14042fef8], 1
cmove rcx, qword [0x14042f5d8]
jmp 0x140176a46
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.1401771d0
mov esi, eax
test eax, eax
js 0x1401767e4
mov r14, qword [r13 + 0x18]
xor esi, esi
cmp dword [0x14042fef8], 1
cmove rsi, qword [0x14042f5f0]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rbp + 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
js 0x1401767e4
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x140176b7a
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x14042f658]
call fcn.14015acfc
mov esi, eax
test eax, eax
js 0x1401767e4
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x14042f660]
call fcn.140178080
jmp 0x1401769fc
cmp r12d, 8
je 0x14017693d
xor ecx, ecx
cmp dword [0x14042fef8], 1
cmove rcx, qword [0x14042f5d0]
jmp 0x140176a46
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.1401772c4
mov esi, eax
test eax, eax
js 0x1401767e4
xor esi, esi
cmp dword [0x14042fef8], 1
cmove rsi, qword [0x14042f5e8]
mov r14, qword [r13 + 0x18]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rbp + 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
js 0x1401767e4
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x140176b7a
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x14042f658]
call fcn.14015acfc
mov esi, eax
test eax, eax
js 0x1401767e4
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x14042f660]
call fcn.14017821c
mov esi, eax
test eax, eax
js 0x1401767e4
mov rbx, qword [rbp - 0x40]
mov rax, qword [rbx]
mov rsi, qword [rax + 0xa8]
mov rcx, rsi
call qword [0x1403af620]
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
mov rcx, rbx
call rsi
jmp 0x140176a53
cmp r12d, 8
je 0x140176b23
xor ecx, ecx
cmp dword [0x14042fef8], 1
cmove rcx, qword [0x14042f5c8]
mov r8, qword [rbp - 0x40]
mov rdx, qword [r13 + 0x18]
call fcn.140177fa8
mov esi, eax
test eax, eax
js 0x1401767e4
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.14007613c
mov ecx, esi
call fcn.140079118
test rdi, rdi
je 0x140176a7f
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140176aa7
lea rbx, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079118
and qword [rbp - 0x18], 0
lea rax, [rbp + 0x40]
mov r15d, 3
mov qword [rbp - 0x10], rax
mov ebx, 0xb9
mov qword [rbp - 0x28], r15
lea r14, [0x14001a7b8]
xor r9d, r9d
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x20], r14
lea edi, [r15 + 0x1d]
mov ecx, ebx
mov r8d, edi
call sub.ntdll.dll_NtQuerySystemInformation
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x40]
xor r9d, r9d
mov qword [rbp - 0x10], rax
mov r8d, edi
mov qword [rbp - 0x28], r15
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x20], r14
mov ecx, ebx
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0xa8]
mov eax, esi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x50]
mov r15, qword [rax]
imul rax, r15, 0x2710
mov rcx, rax
mov dword [rbp - 0x30], eax
shr rcx, 0x20
mov dword [rbp - 0x2c], ecx
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x30], rax
xor ecx, ecx
call fcn.140079118
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140177504
mov esi, eax
test eax, eax
js 0x1401767e4
xor esi, esi
cmp dword [0x14042fef8], 1
cmove rsi, qword [0x14042f5e0]
jmp 0x14017696b
mov ecx, 0x8007000e
mov esi, ecx
jmp 0x1401767e6
lea rcx, [0x14042fd70]
call fcn.140368b2c
cmp dword [0x14042fd70], esi
jne 0x14017672e
lea rax, str.__USERSEP_RESERVED____GLOBAL_CREATION_TIME__
mov dword [0x14042fd88], r15d
mov qword [0x14042fd80], rax
lea rcx, [0x14042fd70]
lea rax, str.__USERSEP_RESERVED____GLOBAL_UP_TIME__
mov dword [0x14042fd98], ebx
mov qword [0x14042fd90], rax
lea rax, str.__USERSEP_RESERVED____UP_TIME_DELTA__
mov qword [0x14042fda0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TICKCOUNT_UPTIME__
mov qword [0x14042fdb0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TIMERQUEUETIMER_UPTIME__
mov qword [0x14042fdc0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_BREADCRUMB__
mov qword [0x14042fdd0], rax
mov dword [0x14042fda8], 2
mov dword [0x14042fdb8], ebx
mov dword [0x14042fdc8], ebx
mov dword [0x14042fdd8], 3
call fcn.140368abc
jmp 0x14017672e