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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 4
lea eax, [ebp - 0x38]
push eax
push 0x1a
push 0xffffffffffffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 5], bl
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0x77cfec1e
cmp dword [ebp - 0x38], ebx
je 0x77cfec1e
mov byte [ebp - 5], 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, 0x1000
push edi
push 8
push dword [eax + 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x77cfec4d
mov dword [ebp - 4], 0xc0000017
jmp 0x77cfef74
push edi
push ebx
push eax
call sub.ntdll.dll_memset
mov eax, dword fs:[0x18]
add esp, 0xc
mov edi, 0x200
push edi
mov dword [ebp - 0x20], edi
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x77cfec84
mov dword [ebp - 4], 0xc0000017
jmp 0x77cfef20
push edi
push ebx
push eax
call sub.ntdll.dll_memset
push 0x77cfefc0
push 0x800
push dword [ebp - 0x18]
call fcn.77c9e2c6
add esp, 0x18
test eax, eax
jge 0x77cfecb1
mov dword [ebp - 4], 0xc0000001
jmp 0x77cfef20
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call fcn.77c968b1
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x77cfeccd
or dword [ebp - 0x14], 0xffffffff
jmp 0x77cfef20
push 0x77cfefa4
push 0x800
push dword [ebp - 0x18]
call fcn.77c9e2c6
add esp, 0xc
test eax, eax
jl 0x77cfeca5
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push edi
jmp 0x77cfed4e
cmp dword [ebp - 4], 0x80000005
jne 0x77cfef20
push dword [ebp - 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x77cfec78
push dword [ebp - 0xc]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.77cfe2f1
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x77cfecf0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
call sub.ntdll.dll_EtwpGetCpuSpeed
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x77ce0d94
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x77cfed98
mov dword [ebp - 4], 0xc0000412
jmp 0x77cfef20
push 0x77cfef90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x77cfedb7
mov dword [ebp - 4], 0xc000007a
jmp 0x77cfef20
lea ecx, [ebp - 0x28]
push ecx
push ebx
call eax
cmp eax, 0x6f
jne 0x77cfeca5
mov eax, dword fs:[0x18]
push dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x77cfec78
push dword [ebp - 0x28]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0xc]
test eax, eax
jne 0x77cfeca5
lea eax, [ebp - 0x24]
push eax
call fcn.77cfe3b7
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x77cfee17
mov dword [ebp - 0x24], ebx
xor eax, eax
cmp byte [ebp - 5], bl
setne al
lea eax, [eax*4 + 0x324]
mov dword [ebp - 0xc], eax
add dword [ebp - 0xc], 0x20
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call esi
mov esi, eax
cmp esi, ebx
je 0x77cfec78
mov word [esi + 6], 0xb0a
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x9c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp eax, 1
jne 0x77cfee99
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
add eax, edi
adc ecx, ebx
shrd eax, ecx, 0xa
add eax, edi
shr ecx, 0xa
shr eax, 0xa
mov dword [esi + 0x28], eax
jmp 0x77cfee9c
mov dword [esi + 0x28], ebx
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x40]
push 0x86
mov dword [esi + 0x30], eax
lea eax, [esi + 0x234]
push eax
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
add eax, 0x84
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp byte [ebp - 5], bl
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x340], eax
je 0x77cfeedb
mov dword [esi + 0x344], ebx
push dword [ebp - 0x10]
lea eax, [esi + 0x34]
push 0x100
push eax
call fcn.77c9e187
test eax, eax
jl 0x77cfeca5
mov eax, dword [ebp - 0xc]
push esi
add eax, 0xffffffe0
push eax
movzx eax, word [ebp + 8]
push 0x40000004
push eax
call dword [sym.imp.ntdll.dll_NtTraceEvent]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0x10], ebx
je 0x77cfef4f
push dword [ebp - 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x77cfef66
push dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0x2c], ebx
je 0x77cfef74
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0xffffffff
pop edi
pop esi
pop ebx
je 0x77cfef86
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 4]
leave
ret 4