Function at 0x2180bab
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x1010
mov ebp, esp
call sub.ntdll.dll__chkstk
push ebx
push esi
push edi
mov esi, 0x218cca8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x218ca20], 0
jne 0x2180cdd
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x2180c01
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x2180e22
push 0x1a
mov eax, dword [0x218cb30]
mov dword [ebp - 8], 0x1a
push 0
push eax
call dword [0x218cb34]
mov dword [0x218ca20], eax
test eax, eax
jne 0x2180c28
xor eax, eax
jmp 0x2180e22
lea eax, [ebp - 8]
lea edx, [ebp - 0x10]
push eax
xor esi, esi
push dword [0x218ca20]
push edx
push esi
push str.Shell
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
mov edi, eax
jne 0x2180ca3
mov eax, dword [0x218ca20]
push eax
push esi
push dword [0x218cb30]
call dword [0x218cb38]
push dword [ebp - 8]
push esi
push dword [0x218cb30]
call dword [0x218cb34]
mov dword [0x218ca20], eax
cmp eax, esi
jne 0x2180c83
xor eax, eax
jmp 0x2180e22
lea eax, [ebp - 8]
lea edx, [ebp - 0x10]
push eax
push dword [0x218ca20]
push edx
push 0
push 0x2187d98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test edi, edi
je 0x2180cdd
mov eax, dword [0x218ca20]
push eax
push esi
push dword [0x218cb30]
call dword [0x218cb38]
push 0x218cca8
mov dword [0x218ca20], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x2180e22
cmp dword [0x218ca18], 0
je 0x2180d23
push 0
mov eax, dword [0x218ca18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x2180e12
mov eax, dword [0x218ca1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x218ca18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [0x218ca1c], eax
mov dword [0x218ca18], eax
xor esi, esi
lea edi, [ebp - 0x1010]
mov ebx, 0x1000
push 0
push ebx
push edi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x2180d79
add ebx, 0x1000
lea eax, [ebp - 0x1010]
cmp edi, eax
je 0x2180d62
push edi
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb38]
push ebx
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb34]
mov edi, eax
test edi, edi
jne 0x2180d30
jmp 0x2180dcd
test eax, eax
jl 0x2180dcd
mov dword [ebp - 0xc], 0
mov ebx, edi
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x2180dba
movzx eax, word [ebx + 0x38]
and al, 0xfe
lea edx, [eax + ecx]
cmp ecx, edx
je 0x2180da9
lea eax, [edx - 2]
cmp word [eax], 0x5c
je 0x2180da9
mov edx, eax
cmp eax, ecx
jne 0x2180d9a
push edx
mov eax, dword [0x218ca20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x2180dca
mov eax, dword [ebx]
test eax, eax
je 0x2180dcd
add dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
add ebx, edi
jmp 0x2180d86
mov esi, dword [ebx + 0x44]
lea eax, [ebp - 0x1010]
cmp edi, eax
je 0x2180de6
push edi
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb38]
test esi, esi
je 0x2180e12
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x218ca18], eax
test eax, eax
je 0x2180e12
push 0x218ca1c
push 0xf00ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 0x218cca8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x218ca1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret