Function at 0x140004ab6
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
jmp 0x14003b5e7
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x20]
mov qword [rsp], rax
mov rax, 0x2bc
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x14003b5ff
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xc0], rbx
mov rax, qword [0x1402645b8]
xor rax, rbp
mov qword [rbp + 0x290], rax
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov dword [rbp + 0x1e8], 0x40
lea rax, [rbp + 0x1e8]
mov rdx, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, rax
call rdx
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 0x1f0]
mov qword [rbp + 0x88], rax
cvtsi2sd xmm0, rax
movsd qword [rbp + 0x90], xmm0
test rax, rax
jge 0x14003b6b3
mov rax, qword [rbp + 0x88]
and rax, 1
mov rdx, qword [rbp + 0x88]
shr rdx, 1
or rax, rdx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
movsd qword [rbp + 0x90], xmm0
movsd xmm0, qword [rbp + 0x90]
movsd xmm1, qword [0x1401a47c0]
mulsd xmm0, xmm1
cvttsd2si rax, xmm0
mov dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x48]
test eax, eax
jne 0x14003b727
mov eax, 0xffffffff
mov dword [rbp + 0x5c], eax
lea rax, [0x140202ea0]
mov rdx, rax
mov rcx, rbp
call fcn.1400058cb
mov rax, qword [rbp + 0x290]
mov qword [rbp + 0x290], 0
xor rax, rbp
mov rcx, rax
call fcn.140003aad
mov eax, dword [rbp + 0x5c]
mov rbx, qword [rbp + 0xc0]
mov rsi, qword [rbp + 0xc8]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
mov eax, 0
lea rdx, [rbp + 0xd8]
mov ecx, 0x104
mov rbx, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [rbp + 0x98], ecx
mov rcx, rax
mov eax, dword [rbp + 0x98]
mov r8d, eax
call rbx
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x4c]
mov dword [rbp + 0x50], eax
lea rax, [rbp + 0x230]
lea rdx, [0x14028347e]
mov ecx, 1
mov dword [rbp + 0xa0], ecx
mov rcx, rax
mov eax, dword [rbp + 0xa0]
mov r8d, eax
call fcn.140003d1e
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0xd8]
lea rdx, [rbp + 0x230]
mov ecx, 0
mov dword [rbp + 0xa8], ecx
mov rcx, rax
mov eax, dword [rbp + 0xa8]
mov r8d, eax
call fcn.140004b74
mov byte [rbp + 0x40], al
movzx eax, byte [rbp + 0x40]
mov byte [rbp + 0x41], al
lea rax, [rbp + 8]
mov rdx, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rax
call rdx
mov eax, dword [rbp + 0x28]
cmp eax, 2
jae 0x14003b836
lea rax, [rbp + 0x230]
mov rcx, rax
call fcn.140002a4f
mov eax, 0
mov dword [rbp + 0x60], eax
lea rax, [0x140202ea0]
mov rdx, rax
mov rcx, rbp
call fcn.1400058cb
mov rax, qword [rbp + 0x290]
mov qword [rbp + 0x290], 0
xor rax, rbp
mov rcx, rax
call fcn.140003aad
mov eax, dword [rbp + 0x60]
mov rbx, qword [rbp + 0xc0]
mov rsi, qword [rbp + 0xc8]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
lea rax, [sub.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [0x140266a90], rax
mov eax, 1
lea rdx, [0x14000604b]
mov rcx, qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [rbp + 0xb0], rcx
mov ecx, eax
mov rax, qword [rbp + 0xb0]
call rax
mov qword [rbp + 0x78], rax
call fcn.14000500b
mov eax, 0
lea rdx, [0x1402834af]
lea rcx, [0x1402834e4]
mov ebx, 0x10
mov rsi, qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [rbp + 0xb8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xb8]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x54], eax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov dword [rbp + 0x58], eax
mov eax, 4
mov edx, dword [rbp + 0x58]
mov ecx, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x80], rax
lea rax, [rbp + 0x230]
mov rcx, rax
call fcn.140002a4f
mov eax, 0
mov dword [rbp + 0x64], eax
lea rax, [0x140202ea0]
mov rdx, rax
mov rcx, rbp
call fcn.1400058cb
mov rax, qword [rbp + 0x290]
mov qword [rbp + 0x290], 0
xor rax, rbp
mov rcx, rax
call fcn.140003aad
mov eax, dword [rbp + 0x64]
mov rbx, qword [rbp + 0xc0]
mov rsi, qword [rbp + 0xc8]
lea rsp, [rbp + 0x2a0]
pop rbp
ret