joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800aea3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea edi, [ebp - 0x260]
mov esi, ecx
call fcn.18007f0d
push esi
lea edi, [ebp - 0x264]
call fcn.18007f0d
push 0x1809cce4
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x268]
call fcn.18002a05
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.18076d30
add esp, 0x18
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
jne 0x1800af62
call fcn.1800d3ff
mov esi, eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.18003e1e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
cmp dword [ebp - 0x258], 0x80
je 0x1800af7b
test byte [ebp - 0x258], 0x10
jne 0x1800b000
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x26c]
call fcn.18002a05
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x270]
call fcn.18002a05
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 0x270]
pop ecx
pop ecx
jne 0x1800afd7
push esi
call fcn.1800acf4
pop ecx
test al, al
je 0x1800afd7
lea eax, [esi - 0x10]
call fcn.18003e1e
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
jmp 0x1800affb
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x26c]
push esi
push edi
call fcn.1800b263
mov ebx, eax
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.18003e1e
lea eax, [edi - 0x10]
test ebx, ebx
jl 0x1800b041
call fcn.18003e1e
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800af62
call fcn.1800d3ff
push dword [ebp - 0x25c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x80070012
jne 0x1800af27
xor esi, esi
jmp 0x1800af27
call fcn.18003e1e
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, ebx
jmp 0x1800af27
Function at 0x1800b059
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
lea edi, [ebp - 0x26c]
call fcn.18007f0d
pop ecx
push esi
lea edi, [ebp - 0x268]
call fcn.18007f0d
mov ebx, dword [ebp - 0x268]
pop ecx
push ebx
call fcn.18004560
mov esi, dword [ebp - 0x26c]
pop ecx
test eax, eax
jge 0x1800b0c9
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.18003e1e
lea eax, [esi - 0x10]
call fcn.18003e1e
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
push dword [ebp + 0x10]
mov ecx, ebx
push esi
call fcn.1800aea3
pop ecx
pop ecx
test eax, eax
jl 0x1800b0a6
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.18076d30
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [ebp - 0x278], eax
call fcn.18003940
add eax, 0x10
mov dword [ebp - 0x264], eax
push 0x1809cce4
lea eax, [ebp - 0x264]
push eax
call fcn.18002bc5
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x1800b16b
call fcn.1800d3ff
mov esi, eax
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0x278]
call fcn.18003e1e
mov eax, esi
jmp 0x1800b0ba
test byte [ebp - 0x25c], 0x10
je 0x1800b20f
push 0
push 2
push 0x1809c3e8
lea eax, [ebp - 0x230]
call fcn.180082d8
add esp, 0xc
test eax, eax
je 0x1800b20f
push 0
push 2
push 0x1809c3c0
lea eax, [ebp - 0x230]
call fcn.180082d8
add esp, 0xc
test eax, eax
je 0x1800b20f
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x270]
call fcn.18002a05
pop ecx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x274]
call fcn.18002a05
mov esi, dword [ebp - 0x274]
mov edi, dword [ebp - 0x270]
pop ecx
push dword [ebp + 0x10]
push esi
push edi
call fcn.1800b059
mov ebx, eax
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.18003e1e
lea eax, [edi - 0x10]
call fcn.18003e1e
test ebx, ebx
jl 0x1800b250
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800b16b
call fcn.1800d3ff
push dword [ebp - 0x260]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x80070012
jne 0x1800b13d
xor esi, esi
jmp 0x1800b13d
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, ebx
jmp 0x1800b13d

Function at 0x1800b29c
Capabilities:
Move file

Disassembly:
push 0xb
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1800b2b5
jmp fcn.1800d3ff
xor eax, eax
ret
Function at 0x1800bfb6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebx + 4]
mov dword [ebp - 0xc], edi
call esi
cmp eax, edi
jle 0x1800bfec
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1800c04f
mov eax, dword [ebp - 8]
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.18077023
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, edi
je 0x1800c048
cmp dword [ebp - 8], edi
je 0x1800c041
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebx + 4]
call esi
cmp eax, edi
jle 0x1800c03c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x1800c04f
xor ecx, ecx
mov word [eax], cx
jmp 0x1800c04f
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x1800c058
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [eax + 4]
mov dword [ebp - 0xc], ebx
call edi
cmp eax, ebx
jle 0x1800c094
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1800c0ed
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x1800c0e8
shr eax, 1
inc eax
push eax
call fcn.18003cf7
cmp eax, ebx
jne 0x1800c0b8
mov dword [ebp - 4], 0x8007000e
jmp 0x1800c0de
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [eax + 4]
call edi
cmp eax, ebx
jle 0x1800c0db
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.18003bbe
jmp 0x1800c0ed
call fcn.18003bdc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1800c15a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x1800c184
and eax, 0xffff
or eax, 0x80070000
ret 0xc

Function at 0x1800c187
Capabilities:
Set registry value

Disassembly:
push 8
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 0xb
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x1800c1b1
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x1800c239
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x18]
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x1800c262
and eax, 0xffff
or eax, 0x80070000
ret 0x10
Function at 0x1800c599
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0xf003f
push ecx
push dword [eax + 4]
mov ebx, 0x1809c71c
xor edi, edi
lea esi, [ebp - 0x214]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], edi
call fcn.1800bbce
mov esi, eax
cmp esi, 0x80070002
je 0x1800c5f9
cmp esi, 0x80070003
jne 0x1800c5fc
xor esi, esi
inc esi
cmp esi, edi
je 0x1800c624
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
call fcn.1800bac9
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1800c642
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.1800c599
cmp eax, edi
jne 0x1800c68d
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call esi
test eax, eax
je 0x1800c62c
lea ecx, [ebp - 0x214]
call fcn.1800bac9
push dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
call fcn.1800ba6b
mov esi, eax
jmp 0x1800c600
Function at 0x1800d516
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
xor esi, esi
push 0x3c
lea eax, [ebp - 0x54]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x58], esi
call fcn.18076d30
add esp, 0xc
push ebx
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x30], 0x80
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1800d55f
call fcn.1800d3ff
jmp 0x1800d5a0
movzx eax, byte [0x180b5839]
neg eax
sbb eax, eax
and eax, 0x180b5ae0
je 0x1800d59e
push 1
push 8
pop esi
push esi
mov dword [ebp - 0x14], eax
call fcn.18001cc0
push dword [ebx + 8]
mov dword [ebp - 0x10], eax
push str._Started_process___u_
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call fcn.18001000
pop ecx
pop ecx
xor eax, eax
pop esi
leave
ret

Function at 0x1800d6af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [eax]
push ebx
push edi
sub eax, 0x10
call fcn.18003940
add eax, 0x10
lea edi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1800a6cc
push 0x20
mov eax, edi
call fcn.18002be8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.18002aa0
push 0x40
xor edi, edi
lea eax, [ebp - 0x48]
push edi
push eax
mov dword [ebp - 0x4c], 0x44
call fcn.18076d30
add esp, 0xc
push 1
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x44], str.WinSta0Default
mov dword [ebp - 8], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1800d735
call fcn.1800d3ff
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, edi
pop edi
pop ebx
leave
ret
mov ebx, dword [ebp - 8]
push esi
push 0x104
lea esi, [ebp - 4]
call fcn.18003cf7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
push ecx
push edi
push dword [ebp - 8]
push 0x400
push edi
push edi
push edi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp + 0xc], eax
or eax, 0xffffffff
call fcn.18003bbe
pop esi
cmp dword [ebp + 0xc], edi
jne 0x1800d77c
call fcn.1800d3ff
mov edi, eax
push ebx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x1800d724
Function at 0x1800d954
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1800d991
call fcn.1800d3ff
mov edi, eax
cmp dword [ebp - 4], esi
je 0x1800d98d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1800d9ed
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1800d978
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1800d978
cmp dword [ebp - 4], esi
je 0x1800d9eb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1800dd94
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1800ddff
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1800ddf6
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], ebx
pop ebx
setne al
xor ecx, ebp
call fcn.180761c5
leave
ret
Function at 0x1800de14
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 1
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call sub.NETAPI32.dll_NetWkstaUserGetInfo
cmp eax, ebx
jne 0x1800df8e
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x1800df9a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x1800de7d
call fcn.1800d3ff
mov ebx, eax
push dword [ebp - 0x38]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, ebx
jmp 0x1800df9a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x1800df5a
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push 7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
push dword [ecx + eax]
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x1800dec2
call fcn.1800d3ff
mov dword [ebp - 0x10], eax
jmp 0x1800df47
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
push dword [ecx + eax]
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x1800def2
call fcn.1800d3ff
mov dword [ebp - 0x10], eax
jmp 0x1800df41
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edi, eax
cmp ecx, ebx
je 0x1800df34
cmp word [ecx], bx
je 0x1800df34
cmp eax, ebx
je 0x1800df34
cmp word [eax], bx
je 0x1800df34
mov eax, dword [ebp - 8]
push ecx
push dword [eax + 4]
call fcn.18077235
pop ecx
pop ecx
test eax, eax
jne 0x1800df31
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.18077235
pop ecx
pop ecx
test eax, eax
je 0x1800df6f
push edi
jmp 0x1800df3c
mov dword [ebp - 0x10], 0x80004005
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], 0xc
cmp eax, dword [ebp - 0x20]
jb 0x1800de92
push dword [ebp - 0x2c]
call sub.WTSAPI32.dll_WTSFreeMemory
push dword [ebp - 0x38]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x10]
jmp 0x1800df9a
mov eax, dword [ebp + 8]
push edi
mov byte [eax], 1
call sub.WTSAPI32.dll_WTSFreeMemory
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
push dword [ebp - 0x2c]
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x1800de6e
jle 0x1800df9a
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1800e1e9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1800e254
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1800e24b
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], ebx
pop ebx
setne al
xor ecx, ebp
call fcn.180761c5
leave
ret

Function at 0x1800e7fe
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
xor ebx, ebx
push ebx
push 2
mov dword [esi], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jne 0x1800e84b
call fcn.1800d3ff
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
pop ebx
call fcn.180761c5
add ebp, 0x1b4
leave
ret 4
push 0x22c
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1800e888
call fcn.1800d3ff
mov ebx, eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1800e833
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp + 0x1bc]
cmp eax, dword [ecx + 0x1c]
jne 0x1800e89d
mov eax, dword [ebp - 0x64]
cmp eax, ebx
jne 0x1800e8b4
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1800e888
mov ebx, 0x80004005
jmp 0x1800e87b
mov dword [esi], eax
jmp 0x1800e87b
Function at 0x1800e93c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.18080120
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
call fcn.1800f491
xor esi, esi
push 0xffc
lea eax, [ebp - 0x1050]
push esi
push eax
mov dword [ebp - 0x1054], esi
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
mov dword [ebp - 0x18], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1800e997
call fcn.1800d3ff
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [ebp - 0x18]
shr ebx, 2
call fcn.1800d954
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
and eax, 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], eax
je 0x1800e9ea
push dword [ebp - 0x1c]
lea edi, [ebp - 0x50]
call fcn.1800e5db
mov eax, edi
mov dword [ebp - 0xc], esi
push eax
lea esi, [ebp - 0xc]
call fcn.1800e7fe
test eax, eax
jl 0x1800e9de
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x1800e9e2
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x50]
call fcn.1800e653
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.1800ca33
test eax, eax
jge 0x1800ea1d
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, esi
jmp 0x1800e992
test ebx, ebx
jle 0x1800eb54
lea esi, [ebp - 0x1054]
mov dword [ebp - 0x20], ebx
mov eax, dword [esi]
test eax, eax
je 0x1800eb48
mov ebx, dword [ebp + 8]
test bl, 1
je 0x1800ea49
cmp eax, dword [ebp - 0x1c]
je 0x1800eb48
cmp dword [ebp - 0x24], 0
je 0x1800ea58
cmp eax, dword [ebp - 0x14]
je 0x1800eb48
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi]
call fcn.1800f213
pop ecx
pop ecx
test bl, 8
je 0x1800ea93
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.1800a042
test eax, eax
jne 0x1800eb3d
test bl, 2
je 0x1800eaac
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.1800a042
test eax, eax
je 0x1800eb3d
test bl, 4
je 0x1800eac3
push str.S_1_5_18
lea eax, [ebp - 8]
push eax
call fcn.1800a042
test eax, eax
je 0x1800eb3d
mov edi, ebx
and edi, 0x10
jne 0x1800eacf
test bl, 0x20
je 0x1800eb25
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call fcn.1800f0fb
pop ecx
pop ecx
test eax, eax
jge 0x1800eb00
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.18003e1e
jmp 0x1800eb3d
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x14]
call fcn.1800e8b8
pop ecx
test al, al
je 0x1800eb15
test edi, edi
jmp 0x1800eb18
test bl, 0x20
jne 0x1800eaf3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [esi]
mov ecx, dword [ebp + 0xc]
call fcn.1800ed6d
pop ecx
test al, al
je 0x1800eb3d
mov eax, dword [ebp + 0x18]
push esi
call fcn.1800f433
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
add esi, 4
dec dword [ebp - 0x20]
jne 0x1800ea2e
xor esi, esi
jmp 0x1800ea0b
Function at 0x1800ed6d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x290]
mov eax, 0x1220
call fcn.18080120
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp + 0x28c], eax
push edi
push dword [ebp + 0x298]
mov edi, ecx
push 0
push 0x410
mov dword [ebp + 0x7c], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0x80], eax
test eax, eax
jne 0x1800edc7
xor al, al
mov ecx, dword [ebp + 0x28c]
xor ecx, ebp
pop edi
call fcn.180761c5
add ebp, 0x290
leave
ret
push ebx
push esi
push 0x5c
mov edx, edi
call fcn.180086ea
cmp eax, 0xffffffff
mov eax, dword [0x180b41a8]
pop ecx
mov ecx, 0x180b41a8
setne byte [ebp + 0x78]
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
cmp byte [ebp + 0x78], 0
mov dword [ebp + 0x74], esi
je 0x1800ee25
lea ebx, [ebp + 0x74]
mov esi, edi
call fcn.1800eeff
mov esi, dword [ebp + 0x74]
test eax, eax
jge 0x1800ee22
xor bl, bl
lea eax, [esi - 0x10]
call fcn.18003e1e
push dword [ebp + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
jmp 0x1800edb1
mov dword [ebp + 0x7c], esi
push 0x1000
lea eax, [ebp - 0xf90]
push 0
push eax
call fcn.18076d30
and dword [ebp + 0x70], 0
add esp, 0xc
lea eax, [ebp + 0x70]
push eax
push 4
lea eax, [ebp - 0xf90]
push eax
push dword [ebp + 0x80]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x1800ee87
call fcn.1800d3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1800f3a4
pop ecx
test al, al
je 0x1800ee06
push dword [ebp + 0x78]
mov edi, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x80]
call fcn.1800ecc6
pop ecx
mov bl, al
jmp 0x1800ee08
mov ebx, dword [ebp + 0x70]
shr ebx, 2
cmp ebx, 1
jle 0x1800ee95
xor ebx, ebx
inc ebx
xor edi, edi
test ebx, ebx
jle 0x1800ee06
push 0x208
lea eax, [ebp + 0x84]
push 0
push eax
call fcn.18076d30
add esp, 0xc
push 0x104
lea eax, [ebp + 0x84]
push eax
push dword [ebp + edi*4 - 0xf90]
push dword [ebp + 0x80]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x1800eeee
push dword [ebp + 0x78]
lea eax, [ebp + 0x84]
push dword [ebp + 0x7c]
call fcn.1800ec1d
pop ecx
pop ecx
test al, al
jne 0x1800eef8
inc edi
cmp edi, ebx
jl 0x1800ee9f
jmp 0x1800ee06
mov bl, 1
jmp 0x1800ee08