Function at 0x1400313a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, r8
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x30], 1
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14003143d
lea rdx, str.Failed_to_open_the_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008430
lea rdx, [0x140008610]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14003180c
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15, qword [rbp - 0x60]
mov qword [rsp + 0x38], r15
mov r13, qword [rbp - 0x58]
mov qword [rsp + 0x50], r13
mov rdx, rbx
lea rcx, [rbp]
call fcn.140001b40
nop
lea rsi, [rbp]
mov r8, qword [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rsi, r8
lea rcx, [rbp]
cmova rcx, r8
mov r14, qword [rbp + 0x10]
add r14, rcx
lea rbx, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rbx, r8
cmp rbx, r14
je 0x1400314b4
sub rsi, rbx
nop dword [rax + rax]
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + rsi], al
inc rbx
cmp rbx, r14
jne 0x1400314a0
cmp r15, r13
jae 0x1400317b5
nop dword [rax]
mov r9d, 0x30
lea r8, [rsp + 0x68]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x1400317b5
cmp dword [rbp - 0x78], 0x1000
jne 0x1400317a3
mov eax, dword [rbp - 0x74]
cmp eax, 1
je 0x1400317a3
cmp eax, 0x100
je 0x1400317a3
mov rsi, qword [rbp - 0x80]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
xor ebx, ebx
mov qword [rbp - 0x28], rbx
test rsi, rsi
je 0x14003153f
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.1400290a0
mov rcx, qword [rbp - 0x38]
lea rbx, [rcx + rsi]
mov r8, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x30], rbx
xor ebx, ebx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, qword [rbp - 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rsi, qword [rbp - 0x38]
test eax, eax
je 0x14003176e
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
mov r8, qword [rbp - 0x30]
cmp rsi, r8
jne 0x140031598
mov rcx, rbx
mov qword [rbp - 0x10], rbx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 8], r14
mov byte [rbp - 0x20], 0
jmp 0x1400315b3
sub r8, rsi
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.140001fa0
mov rsi, qword [rbp - 0x38]
mov r14, qword [rbp - 8]
mov rcx, qword [rbp - 0x10]
lea r15, [rbp - 0x20]
mov r12, qword [rbp - 0x20]
cmp r14, 0xf
cmova r15, r12
lea r13, [rbp - 0x20]
cmova r13, r12
add r13, rcx
lea rbx, [rbp - 0x20]
cmp r14, 0xf
cmova rbx, r12
cmp rbx, r13
je 0x140031607
sub r15, rbx
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + r15], al
inc rbx
cmp rbx, r13
jne 0x1400315e2
mov rsi, qword [rbp - 0x38]
mov r14, qword [rbp - 8]
mov rcx, qword [rbp - 0x10]
mov r12, qword [rbp - 0x20]
lea r13, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova r13, qword [rbp]
lea rax, [rbp - 0x20]
cmp r14, 0xf
cmova rax, r12
mov qword [rsp + 0x40], rax
mov r15, qword [rbp + 0x10]
cmp r15, rcx
ja 0x140031723
sub rcx, r15
test r15, r15
jne 0x14003163f
xor ebx, ebx
jmp 0x1400316b0
inc rcx
add rcx, rax
mov qword [rsp + 0x58], rcx
movsx edx, byte [r13]
mov r8, rcx
sub r8, rax
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140031723
nop dword [rax]
mov r8, r15
mov rdx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400316a4
inc rbx
mov r8, qword [rsp + 0x58]
sub r8, rbx
movsx edx, byte [r13]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140031670
jmp 0x140031723
sub rbx, qword [rsp + 0x40]
cmp rbx, 0xffffffffffffffff
je 0x140031723
nop
mov rcx, qword [rsp + 0x68]
add rcx, rbx
mov qword [rsp + 0x40], rcx
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x1400316d1
mov qword [rdx], rcx
add qword [rdi + 8], 8
jmp 0x1400316de
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140033fc0
lea r9, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova r9, qword [rbp]
lea rcx, [rbp - 0x20]
mov r12, qword [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp r14, 0xf
cmova rcx, r12
lea r8, [rbx + 1]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp - 0x10]
call fcn.140001d40
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400316b0
mov rsi, qword [rbp - 0x38]
cmp r14, 0xf
jbe 0x14003175f
lea rdx, [r14 + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x140031753
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400317f8
mov rcx, r12
call fcn.140034d84
mov rsi, qword [rbp - 0x38]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x38]
test rsi, rsi
je 0x1400317a3
mov rdx, qword [rbp - 0x28]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x14003179b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400317ff
mov rcx, rsi
call fcn.140034d84
add r15, qword [rbp - 0x80]
mov qword [rsp + 0x38], r15
cmp r15, r13
jb 0x1400314c0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x14003180c
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031806
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031806
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140034d84
nop
mov rax, rdi
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140034d20
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret