Function at 0x77d0ba43
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 0x77d0ba7e
cmp dword [ebp - 0x38], ebx
je 0x77d0ba7e
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 0x77d0baad
mov dword [ebp - 4], 0xc0000017
jmp 0x77d0bdd4
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 0x77d0bae4
mov dword [ebp - 4], 0xc0000017
jmp 0x77d0bd80
push edi
push ebx
push eax
call sub.ntdll.dll_memset
push 0x77d0be20
push 0x800
push dword [ebp - 0x18]
call fcn.77cac57c
add esp, 0x18
test eax, eax
jge 0x77d0bb11
mov dword [ebp - 4], 0xc0000001
jmp 0x77d0bd80
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call fcn.77d0b0f9
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x77d0bb2d
or dword [ebp - 0x14], 0xffffffff
jmp 0x77d0bd80
push 0x77d0be04
push 0x800
push dword [ebp - 0x18]
call fcn.77cac57c
add esp, 0xc
test eax, eax
jl 0x77d0bb05
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push edi
jmp 0x77d0bbae
cmp dword [ebp - 4], 0x80000005
jne 0x77d0bd80
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 0x77d0bad8
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.77d0b152
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x77d0bb50
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 0x77cef594
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x77d0bbf8
mov dword [ebp - 4], 0xc0000412
jmp 0x77d0bd80
push 0x77d0bdf0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x77d0bc17
mov dword [ebp - 4], 0xc000007a
jmp 0x77d0bd80
lea ecx, [ebp - 0x28]
push ecx
push ebx
call eax
cmp eax, 0x6f
jne 0x77d0bb05
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 0x77d0bad8
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 0x77d0bb05
lea eax, [ebp - 0x24]
push eax
call fcn.77d0b218
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x77d0bc77
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 0x77d0bad8
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 0x77d0bcf9
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 0x77d0bcfc
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 0x77d0bd3b
mov dword [esi + 0x344], ebx
push dword [ebp - 0x10]
lea eax, [esi + 0x34]
push 0x100
push eax
call fcn.77cac425
test eax, eax
jl 0x77d0bb05
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 0x77d0bdaf
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 0x77d0bdc6
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 0x77d0bdd4
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0xffffffff
pop edi
pop esi
pop ebx
je 0x77d0bde6
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 4]
leave
ret 4