Function at 0x140051ea0
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 - 0x40]
sub rsp, 0x140
mov rax, qword [0x14006f040]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, r8
mov r14, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x48], 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 + 0x48], 1
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140052489
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15, qword [rbp - 0x58]
mov qword [rsp + 0x40], r15
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x58], rax
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140057c90
nop
lea rdi, [rbp - 0x10]
mov r8, qword [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdi, r8
lea rcx, [rbp - 0x10]
cmova rcx, r8
mov rsi, qword [rbp]
add rsi, rcx
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rbx, r8
cmp rbx, rsi
je 0x140051f94
sub rdi, rbx
nop dword [rax]
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jne 0x140051f80
mov rsi, qword [rsp + 0x58]
cmp r15, rsi
jae 0x140052432
movabs r13, 0x7fffffffffffffff
nop dword [rax]
mov r9d, 0x30
lea r8, [rsp + 0x70]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140052432
cmp dword [rbp - 0x70], 0x1000
jne 0x140052420
mov eax, dword [rbp - 0x6c]
cmp eax, 1
je 0x140052420
cmp eax, 0x100
je 0x140052420
mov rdi, qword [rbp - 0x78]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
xor ebx, ebx
mov qword [rbp + 0x20], rbx
test rdi, rdi
je 0x140052075
cmp rdi, r13
ja 0x1400524bf
cmp rdi, 0x1000
jb 0x140052046
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400524b9
call fcn.14005a910
test rax, rax
je 0x14005247c
lea r13, [rax + 0x27]
and r13, 0xffffffffffffffe0
mov qword [r13 - 8], rax
jmp 0x140052051
mov rcx, rdi
call fcn.14005a910
mov r13, rax
mov qword [rsp + 0x50], r13
mov qword [rbp + 0x10], r13
lea rbx, [rdi + r13]
mov qword [rbp + 0x20], rbx
mov r8, rdi
xor edx, edx
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x18], rbx
jmp 0x140052082
mov rbx, qword [rbp + 0x18]
mov r13, qword [rbp + 0x10]
mov qword [rsp + 0x50], r13
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, r13
mov rdx, qword [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400523de
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
cmp r13, rbx
jne 0x1400520d5
mov ecx, eax
mov qword [rbp - 0x20], rax
mov r12d, select
mov qword [rbp - 0x18], r12
mov byte [rbp - 0x30], al
jmp 0x1400521ae
sub rbx, r13
movabs rcx, 0x7fffffffffffffff
cmp rbx, rcx
ja 0x1400524b3
cmp rbx, 0xf
ja 0x140052116
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], select
mov r8, rbx
mov rdx, r13
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx - 0x30], 0
jmp 0x1400521a6
mov rdi, rbx
or rdi, 0xf
cmp rdi, rcx
jbe 0x140052135
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140052161
cmp rdi, 0x16
mov ecx, socket
cmovb rdi, rcx
lea rcx, [rdi + 1]
test rcx, rcx
je 0x140052185
cmp rcx, 0x1000
jb 0x140052180
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400524c5
mov rcx, rax
call fcn.14005a910
test rax, rax
je 0x140052475
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140052188
call fcn.14005a910
mov rsi, rax
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
mov r8, rbx
mov rdx, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov r12, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
lea rdi, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov qword [rsp + 0x30], r8
cmp r12, 0xf
cmova rdi, r8
lea rsi, [rbp - 0x30]
cmova rsi, r8
add rsi, rcx
lea rbx, [rbp - 0x30]
cmp r12, 0xf
cmova rbx, r8
cmp rbx, rsi
je 0x140052203
sub rdi, rbx
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jne 0x1400521e2
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x30]
mov qword [rsp + 0x30], r8
lea rsi, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rsi, qword [rbp - 0x10]
lea r12, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova r12, r8
mov rdi, qword [rbp]
cmp rdi, rcx
ja 0x140052399
sub rcx, rdi
test rdi, rdi
jne 0x140052237
xor ebx, ebx
jmp 0x1400522b0
lea r14, [r12 + rcx]
movsx r15d, byte [rsi]
lea r8, [r14 + 1]
sub r8, r12
mov edx, r15d
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14005238a
nop dword [rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140052294
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov edx, r15d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140052260
jmp 0x14005238a
sub rbx, r12
cmp rbx, 0xffffffffffffffff
je 0x14005238a
mov r14, qword [rsp + 0x38]
nop word [rax + rax]
mov rcx, qword [rsp + 0x70]
add rcx, rbx
mov qword [rsp + 0x30], rcx
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x1400522d1
mov qword [rdx], rcx
add qword [r14 + 8], 8
jmp 0x1400522de
lea r8, [rsp + 0x30]
mov rcx, r14
call fcn.140059520
inc rbx
lea rsi, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rsi, qword [rbp - 0x10]
lea r12, [rbp - 0x30]
mov r13, qword [rbp - 0x30]
mov qword [rsp + 0x30], r13
cmp qword [rbp - 0x18], 0xf
cmova r12, r13
mov rdi, qword [rbp]
mov rax, qword [rbp - 0x20]
cmp rdi, rax
ja 0x140052385
sub rax, rdi
cmp rbx, rax
ja 0x140052385
test rdi, rdi
je 0x14005237b
lea r14, [rax + r12]
lea rcx, [r12 + rbx]
movsx r15d, byte [rsi]
lea r8, [r14 + 1]
sub r8, rcx
mov edx, r15d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140052385
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140052373
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov edx, r15d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140052342
jmp 0x140052385
sub rbx, r12
mov r14, qword [rsp + 0x38]
cmp rbx, 0xffffffffffffffff
jne 0x1400522b0
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x40]
mov r8, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rcx, qword [rbp - 0x18]
cmp rcx, 0xf
jbe 0x1400523d4
lea rdx, [rcx + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x1400523cc
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052475
mov rcx, r8
call fcn.14005a94c
mov rsi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
test r13, r13
je 0x140052416
mov rcx, qword [rbp + 0x20]
sub rcx, r13
mov rax, r13
cmp rcx, 0x1000
jb 0x14005240b
add rcx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005247c
mov rdx, rcx
mov rcx, r13
call fcn.14005a94c
movabs r13, 0x7fffffffffffffff
add r15, qword [rbp - 0x78]
mov qword [rsp + 0x40], r15
cmp r15, rsi
jb 0x140051fb0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140052489
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052483
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052483
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.14005a94c
nop
mov rax, r14
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14005a8f0
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001d50
nop
call fcn.140001260
int3
call fcn.140001b30
nop
call fcn.140001260
int3