Function at 0x1800361c0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, r8
mov rsi, rdx
mov rax, qword [0x1804a9038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [r8 + 0x10], 0
je 0x1800363b2
mov r14, qword [rdi]
mov ecx, dword [0x1804ca890]
mov eax, dword [0x1804c29cc]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
cmp ecx, dword [rax + 4]
jg 0x1800365a3
mov eax, dword [0x1804ca88c]
lea rbx, [r14 + rax]
dec rbx
mov eax, dword [0x1804c29cc]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
cmp ecx, dword [rax + 4]
jg 0x1800365fa
mov r8d, dword [0x1804ca88c]
mov rax, rbx
xor edx, edx
div r8
mov rbx, rax
lea r14, [rax + 2]
mov eax, dword [0x1804c29cc]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
cmp ecx, dword [rax + 4]
jg 0x1800363f4
mov eax, dword [0x1804ca88c]
imul r14, rax
xor ecx, ecx
mov rdx, r14
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov dword [rsp + 0x2c], 0
mov eax, dword [0x1804ca890]
mov ecx, dword [0x1804c29cc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x180036447
mov edx, dword [0x1804ca88c]
lea r9, [rsp + 0x2c]
mov rcx, r14
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x1804ca890]
mov ecx, dword [0x1804c29cc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x180036548
mov r12d, dword [0x1804ca88c]
mov ecx, dword [0x1804c29cc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1800364ed
mov r13d, dword [0x1804ca88c]
mov dword [rsp + 0x2c], 0
mov ecx, dword [0x1804c29cc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x18003649a
add r14, r12
imul rbx, r13
add rbx, r14
mov edx, dword [0x1804ca88c]
lea r9, [rsp + 0x2c]
mov rcx, rbx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsi], r14
movups xmm0, xmmword [rdi]
movups xmmword [rsi + 8], xmm0
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x18], rax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180364a40
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [rdi]
mov r15, qword [rdi + 8]
cmp r15, 2
jae 0x1800363cc
mov rcx, rbx
call fcn.1803801d8
mov r14, rax
jmp 0x180036380
lea rcx, [r15 + rbx]
add rcx, 8
call fcn.1803801d8
mov rcx, rax
lea r14, [r15 + rax]
dec r14
mov rax, r14
xor edx, edx
div r15
sub r14, rdx
mov qword [r14 + rbx], rcx
jmp 0x180036380
lea rcx, [0x1804ca890]
call fcn.180363ed0
cmp dword [0x1804ca890], 0xffffffff
jne 0x180036278
xorps xmm0, xmm0
lea r15, [rsp + 0x30]
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r15 + 4]
mov dword [0x1804ca88c], eax
lea rcx, [0x1804ca890]
call fcn.180363f68
jmp 0x180036278
lea rcx, [0x1804ca890]
call fcn.180363ed0
cmp dword [0x1804ca890], 0xffffffff
jne 0x1800362c9
xorps xmm0, xmm0
lea r15, [rsp + 0x30]
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r15 + 4]
mov dword [0x1804ca88c], eax
lea rcx, [0x1804ca890]
call fcn.180363f68
jmp 0x1800362c9
lea rcx, [0x1804ca890]
call fcn.180363ed0
cmp dword [0x1804ca890], 0xffffffff
jne 0x18003635c
xorps xmm0, xmm0
lea r15, [rsp + 0x30]
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r15 + 4]
mov dword [0x1804ca88c], eax
lea rcx, [0x1804ca890]
call fcn.180363f68
jmp 0x18003635c
lea rcx, [0x1804ca890]
call fcn.180363ed0
mov eax, dword [0x1804ca890]
cmp eax, 0xffffffff
jne 0x18003632e
xorps xmm0, xmm0
lea r15, [rsp + 0x30]
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r15 + 4]
mov dword [0x1804ca88c], eax
lea rcx, [0x1804ca890]
call fcn.180363f68
mov eax, dword [0x1804ca890]
jmp 0x18003632e
lea rcx, [0x1804ca890]
call fcn.180363ed0
mov eax, dword [0x1804ca890]
cmp eax, 0xffffffff
jne 0x180036308
xorps xmm0, xmm0
lea r15, [rsp + 0x30]
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r15 + 4]
mov dword [0x1804ca88c], eax
lea rcx, [0x1804ca890]
call fcn.180363f68
mov eax, dword [0x1804ca890]
jmp 0x180036308
lea rcx, [0x1804ca890]
call fcn.180363ed0
mov ecx, dword [0x1804ca890]
cmp ecx, 0xffffffff
jne 0x180036217
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x1804ca88c], eax
lea rcx, [0x1804ca890]
call fcn.180363f68
mov ecx, dword [0x1804ca890]
jmp 0x180036217
lea rcx, [0x1804ca890]
call fcn.180363ed0
mov ecx, dword [0x1804ca890]
cmp ecx, 0xffffffff
jne 0x180036243
xorps xmm0, xmm0
lea r14, [rsp + 0x30]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 4]
mov dword [0x1804ca88c], eax
lea rcx, [0x1804ca890]
call fcn.180363f68
mov ecx, dword [0x1804ca890]
jmp 0x180036243