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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xda], cl
mov dword [ebp - 0xe8], eax
call fcn.1801fada
push 0x88
mov edi, eax
call fcn.1811b2f8
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.180ad728
mov cl, byte [ebp - 0xda]
push 0x181ba474
mov byte [ebx], cl
call fcn.18133750
pop ecx
push eax
push 0x181ba474
lea ecx, [ebx + 8]
call fcn.180075cd
mov dl, byte [ebp - 0xda]
lea ecx, [ebp - 0xc]
call fcn.18028d06
push eax
lea ecx, [ebx + 4]
call fcn.18009e6a
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov esi, dword [0x181d4050]
test esi, esi
jne 0x180ad920
xor eax, eax
jmp 0x180ad927
push esi
call fcn.18133750
pop ecx
push eax
push esi
lea ecx, [ebx + 0xc]
call fcn.180075cd
mov esi, dword [0x181d3f4c]
test esi, esi
jne 0x180ad93f
xor eax, eax
jmp 0x180ad946
push esi
call fcn.18133750
pop ecx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.180075cd
push dword [ebp - 0xd8]
lea ecx, [ebx + 0x14]
call fcn.18009e6a
push dword [ebp - 0xe0]
lea ecx, [ebx + 0x18]
call fcn.18009e6a
lea eax, [ebp - 0xe0]
push eax
call fcn.18022335
push eax
lea ecx, [ebx + 0x1c]
call fcn.18009e6a
mov ecx, dword [ebp - 0xe0]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push dword [ebp - 0xec]
lea ecx, [ebx + 0x24]
call fcn.18009e6a
push dword [ebp - 0xe8]
lea ecx, [ebx + 0x20]
call fcn.18009e6a
push 0
lea eax, [ebp - 0xd9]
mov byte [ebp - 0xd9], 0
push eax
mov ecx, edi
call fcn.180218d0
cmp byte [ebp - 0xd9], 0
je 0x180ad9ce
mov dword [ebx + 0x28], eax
push 0
lea eax, [ebp - 0xe8]
mov ecx, edi
push eax
call fcn.1802440b
push eax
lea ecx, [ebx + 0x2c]
call fcn.18009e6a
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
call fcn.1800f153
mov byte [ebx + 0x30], al
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0xd4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x180ada86
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xe4], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0xe0], ecx
fild qword [ebp - 0xe4]
and dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], eax
push ecx
fild qword [ebp - 0xe4]
push ecx
fchs
faddp st(1)
fstp qword [ebp - 0xe4]
fld qword [ebp - 0xe4]
fmul qword [0x181c5300]
fadd qword [0x181c5308]
fstp qword [esp]
call fcn.181589b0
pop ecx
pop ecx
call fcn.18156850
mov dword [ebx + 0x38], eax
call fcn.18014d6a
mov edx, eax
lea ecx, [ebp - 0xe8]
call fcn.18014db5
mov esi, dword [ebp - 0xe8]
mov ecx, esi
call fcn.1801898b
lea ecx, [esi - 0x10]
mov dword [ebx + 0x3c], eax
call fcn.18006f52
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x44]
mov dword [ebx + 0x34], eax
xor eax, eax
push 0xf
pop esi
push 7
push 0x181a5b8c
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], al
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
call fcn.1801e728
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x6c]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
call fcn.18114cdc
mov al, byte [ebp - 0x4f]
mov edi, 0x181adc3c
mov byte [ebx + 0x40], al
mov al, byte [ebp - 0x4e]
mov byte [ebx + 0x41], al
mov al, byte [ebp - 0x4d]
mov byte [ebx + 0x42], al
mov al, byte [ebp - 0x4c]
mov byte [ebx + 0x43], al
mov al, byte [ebp - 0x4b]
mov byte [ebx + 0x44], al
mov al, byte [ebp - 0x4a]
mov byte [ebx + 0x45], al
mov al, byte [ebp - 0x49]
push edi
mov byte [ebx + 0x46], al
call fcn.18133750
pop ecx
push eax
push edi
lea ecx, [ebx + 0x48]
call fcn.180075cd
lea edx, [ebx + 0x50]
lea ecx, [ebx + 0x4c]
call fcn.1802765c
call fcn.18015f16
mov edx, eax
lea ecx, [ebp - 0xec]
call fcn.180b1695
push eax
lea ecx, [ebx + 0x54]
call fcn.18009e6a
mov ecx, dword [ebp - 0xec]
lea ecx, [ecx - 0x10]
call fcn.18006f52
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.18015cee
mov eax, dword [ebp - 0x10]
and dword [ebp - 0xc], 0
mov dword [ebx + 0x58], eax
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
lea ecx, [ebp - 0xc]
call fcn.1800dd75
mov byte [ebx + 0x5c], al
test al, al
je 0x180adbd5
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebx + 0x60]
call fcn.18009e6a
mov ecx, str.wldp.dll
call fcn.1800f422
mov esi, eax
test esi, esi
jne 0x180adbe9
xor al, al
jmp 0x180adc43
push str.WldpQueryWindowsLockdownMode
push esi
mov dword [ebp - 0xd8], 3
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x180adc0e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x180adbe5
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call dword [0x1815e3d4]
call edi
push esi
test eax, eax
jns 0x180adc29
lfence
jmp 0x180adc06
cmp dword [ebp - 0xd8], 0
setne byte [ebp - 0xd9]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0xd9]
mov byte [ebx + 0x6d], al
mov esi, str.HKLMSYSTEMCurrentControlSetControlSystemInformation
lea eax, [ebx + 0x70]
mov edx, 0x181ba47c
push eax
mov ecx, esi
call fcn.1801cb41
pop ecx
lea eax, [ebx + 0x74]
mov edx, 0x181ba450
push eax
mov ecx, esi
call fcn.1801cb41
pop ecx
lea edx, [ebx + 0x68]
mov byte [ebx + 0x6c], 0
lea ecx, [ebx + 0x64]
call fcn.1800e38b
test eax, eax
js 0x180adc8e
lea ecx, [ebx + 0x64]
lfence
call fcn.1800e28a
mov byte [ebx + 0x6c], al
and dword [ebp - 0xd8], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xd8]
call fcn.1800768f
call fcn.1801fada
cmp byte [ebp - 0xda], 0
mov ecx, str.HKLMSoftwareMicrosoftEdgeUpdate_
jne 0x180adcbe
mov ecx, str.HKCUSoftwareMicrosoftEdgeUpdate_
lea eax, [ebp - 0xd8]
mov edx, str.LastECSETag
push eax
call fcn.1801cb41
pop ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebx + 0x78]
call fcn.18009e6a
mov ecx, dword [ebp - 0xd8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0x18]
mov esi, 0x1000
cmp eax, 0x10
jb 0x180add3a
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xd8], ecx
cmp eax, esi
jb 0x180add31
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.18007b72
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd8]
push eax
push ecx
call fcn.1811af76
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x180add86
mov ecx, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xd8], ecx
cmp eax, esi
jb 0x180add7d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.18007b72
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd8]
push eax
push ecx
call fcn.1811af76
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret