Function at 0x180079850
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 [0x180309080]
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 0x1800798ed
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.180031970
lea rdx, [0x180084b70]
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 0x180079d16
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.18000dcf0
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 0x180079964
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 0x180079950
cmp r15, r13
jae 0x180079cbf
movabs r14, 0x7fffffffffffffff
nop word [rax + rax]
mov r9d, Ordinal_50
lea r8, [rsp + 0x68]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x180079cbf
cmp dword [rbp - 0x78], 0x1000
jne 0x180079cad
mov eax, dword [rbp - 0x74]
cmp eax, 1
je 0x180079cad
cmp eax, 0x100
je 0x180079cad
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 0x180079a40
cmp rsi, r14
ja 0x180079d40
cmp rsi, 0x1000
jb 0x180079a19
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x180079d46
call fcn.1800e7cb0
mov rcx, rax
test rax, rax
je 0x180079d09
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180079a21
mov rcx, rsi
call fcn.1800e7cb0
mov qword [rbp - 0x38], rax
lea rbx, [rsi + rax]
mov qword [rbp - 0x28], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
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 0x180079c78
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 0x180079a99
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 0x180079ab4
sub r8, rsi
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.1800046d0
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 0x180079b08
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 0x180079ae3
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 0x180079c23
sub rcx, r15
test r15, r15
jne 0x180079b40
xor ebx, ebx
jmp 0x180079bb0
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 0x180079c23
nop word [rax + rax]
mov r8, r15
mov rdx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180079ba4
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 0x180079b70
jmp 0x180079c23
sub rbx, qword [rsp + 0x40]
cmp rbx, 0xffffffffffffffff
je 0x180079c23
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 0x180079bd1
mov qword [rdx], rcx
add qword [rdi + 8], 8
jmp 0x180079bde
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.1800198b0
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.18002f600
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180079bb0
mov rsi, qword [rbp - 0x38]
cmp r14, 0xf
jbe 0x180079c5f
lea rdx, [r14 + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x180079c53
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180079d02
mov rcx, r12
call fcn.1800e8064
mov rsi, qword [rbp - 0x38]
movabs r14, 0x7fffffffffffffff
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x38]
test rsi, rsi
je 0x180079cad
mov rdx, qword [rbp - 0x28]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x180079ca5
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180079d09
mov rcx, rsi
call fcn.1800e8064
add r15, qword [rbp - 0x80]
mov qword [rsp + 0x38], r15
cmp r15, r13
jb 0x180079980
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x180079d16
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180079d10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180079d10
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.1800e8064
nop
mov rax, rdi
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1800e7c90
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180004470
nop
call fcn.180001fc0
int3