joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800fdbb
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.1816bdd0
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
xor ebx, ebx
mov edi, edx
push ebx
push 0x410
mov dword [ebp - 0x1210], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1800ff4b
push 0x5c
pop edx
mov ecx, edi
call fcn.1800d523
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x1220]
call fcn.18004001
push eax
lea ecx, [ebp - 0x1218]
call fcn.180070cc
cmp edi, 0xffffffff
je 0x1800fe49
mov ecx, dword [ebp - 0x1210]
lea edx, [ebp - 0x1218]
call fcn.1800ff5c
test eax, eax
js 0x1800ff36
mov edi, dword [ebp - 0x1218]
mov dword [ebp - 0x1210], edi
jmp 0x1800fe4f
mov edi, dword [ebp - 0x1210]
push 0x1000
lea eax, [ebp - 0x120c]
push ebx
push eax
call fcn.18147220
add esp, 0xc
mov dword [ebp - 0x121c], ebx
lea eax, [ebp - 0x121c]
push eax
push 4
lea eax, [ebp - 0x120c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x1800feb1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.180103ea
test al, al
je 0x1800ff36
push dword [ebp - 0x1220]
mov edx, edi
mov ecx, esi
call fcn.1800fd14
pop ecx
mov bl, al
jmp 0x1800ff36
mov edi, dword [ebp - 0x121c]
shr edi, 2
cmp edi, 1
jbe 0x1800fec2
xor edi, edi
inc edi
mov dword [ebp - 0x1214], ebx
test edi, edi
je 0x1800ff36
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.18147220
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov eax, dword [ebp - 0x1214]
push dword [ebp + eax*4 - 0x120c]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1800ff21
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1210]
lea ecx, [ebp - 0x20c]
call fcn.1800fc7d
pop ecx
test al, al
jne 0x1800ff34
mov eax, dword [ebp - 0x1214]
inc eax
mov dword [ebp - 0x1214], eax
cmp eax, edi
jl 0x1800fecc
jmp 0x1800ff36
mov bl, 1
mov ecx, dword [ebp - 0x1218]
add ecx, 0xfffffff0
call fcn.18004665
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret
Function at 0x18010563
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, edx
call fcn.1800829c
push 0x40
xor esi, esi
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.18147220
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x40], 0x80
push edi
push eax
push esi
cmp dword [ebp + 8], esi
jne 0x180105a7
push esi
push esi
jmp 0x180105af
push dword [ebp + 8]
push 0x400
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180105c7
call fcn.18013c92
mov esi, eax
jmp 0x18010607
movzx ecx, byte [0x181d398a]
neg ecx
sbb ecx, ecx
and ecx, 0x181d2b40
je 0x18010607
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], edx
push eax
push edx
mov dword [ebp - 0xc], eax
call fcn.18005da9
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.180041a3
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.180082f6
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x18010721
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
call fcn.1800829c
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18007149
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1800f00d
push 0x20
lea ecx, [ebp - 4]
call fcn.18006e73
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.18006ea0
push 0x40
xor ebx, ebx
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.18147220
mov esi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x58], str.WinSta0Default
inc ecx
mov edx, 0x104
add esp, 0xc
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x180107ab
push edx
lea ecx, [ebp - 4]
call fcn.180071a2
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
lea eax, [ebp - 0x60]
push eax
push ebx
push dword [ebp + 0x10]
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov edi, eax
call fcn.18006def
test edi, edi
jne 0x180107de
call fcn.18013c92
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.18004665
lea ecx, [ebp - 0x14]
call fcn.180082f6
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18010969
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180109df
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x180109df
mov eax, dword [ebp - 0x20]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x180109e6
call fcn.18013c92
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x180109f5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.18144705
leave
ret

Function at 0x18010a7c
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
call fcn.18010a04
mov ebx, eax
or edi, 0xffffffff
xor ecx, ecx
cmp ebx, edi
je 0x18010ad3
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ecx
push eax
push 8
push ebx
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x18010ac7
mov eax, dword [ebp - 8]
push esi
push eax
mov esi, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
pop esi
sete al
xor ecx, ecx
jmp 0x18010acb
xor ecx, ecx
mov al, cl
test al, al
je 0x18010ad3
mov eax, ebx
jmp 0x18010b1b
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ecx
push eax
push 1
push ecx
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x18010b19
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x18010b12
lea edx, [ecx + 8]
cmp dword [edx], 0
je 0x18010b0c
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x18010afc
jmp 0x18010b12
imul eax, eax, 0xc
mov edi, dword [eax + ecx]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x18010b1f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xe8], 0x181a6a14
mov edi, ecx
mov dword [ebp - 0xcc], esi
push ecx
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd0], esi
mov ebx, edx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
call fcn.1801052f
test al, al
jne 0x18010b7d
mov esi, 0x80004005
jmp 0x18010d07
lea ecx, [ebp - 0xc8]
call fcn.18007504
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.1800a464
test al, al
jne 0x18010baa
mov esi, 0x80004005
jmp 0x18010cfc
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd8], 0x181a667c
mov dword [ebp - 0xd4], esi
call fcn.18004aca
push 0x12
push 1
lea eax, [ebp - 0x68]
push 0x181a5c98
push eax
call fcn.18004711
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004b47
lea ecx, [ebp - 0x68]
call fcn.180047fa
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x181a5c98
push eax
call fcn.18004711
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004b47
lea ecx, [ebp - 0x68]
call fcn.180047fa
push esi
push 0xc0100000
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x114]
call fcn.18004b47
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd8]
call fcn.18007bcf
lea ecx, [ebp - 0xd8]
call fcn.18007cb0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf4]
push esi
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xf4], 0xc
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xec], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18010cd5
push esi
push 1
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18010cd5
mov eax, dword [ebp - 0xcc]
mov dword [edi], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], esi
mov dword [ebx], eax
jmp 0x18010cdc
call fcn.18013c92
mov esi, eax
lea ecx, [ebp - 0x114]
call fcn.18004b10
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x181a667c
call fcn.18004edf
lea ecx, [ebp - 0xc8]
call fcn.180047fa
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x181a6a14
call fcn.18007f28
cmp dword [ebp - 0xd0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x18010d33
push dword [ebp - 0xd0]
call edi
cmp dword [ebp - 0xcc], 0
je 0x18010d44
push dword [ebp - 0xcc]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret
Function at 0x18011532
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x124]
push 0x118
push ebx
mov dword [ebp - 0x12c], ebx
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.18147220
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x18011694.2
mov edi, dword [ebp - 0x124]
xor esi, esi
inc esi
cmp edi, 6
je 0x18011625
cmp edi, 0xa
je 0x18011625
cmp edi, 5
jne case.0x18011694.2
cmp dword [ebp - 0x120], 2
jne 0x1801160f
cmp byte [ebp - 0xe], 1
jne 0x180115d5
lea ecx, [ebp - 0x130]
call fcn.18011298
push 0x181a7500
mov ecx, eax
mov dword [ebp - 0x12c], esi
call fcn.1800c297
test eax, eax
jne 0x180115d5
mov bl, 1
inc eax
jmp 0x180115db
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x180115ed
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.18004665
test bl, bl
jne case.0x18011694.1
test dword [ebp - 0x10], 0x8000
je case.0x18011694.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret
cmp dword [ebp - 0x120], esi
jne case.0x18011694.2
test dword [ebp - 0x10], 0x200
jne case.0x18011694.2
xor eax, eax
inc eax
jmp 0x18011600
mov eax, dword [ebp - 0x120]
mov ecx, str.kernel32.dll
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], eax
call fcn.18009d2b
mov esi, eax
test esi, esi
je case.0x18011694.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1801166b
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push ebx
push dword [ebp - 0x130]
push edi
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.0x18011694.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x1b
ja 0x180116a3
je case.0x18011694.4
dec eax
cmp eax, 0x18
ja case.0x18011694.2
movzx eax, byte [eax + 0x18011706]
jmp dword [eax*4 + 0x180116f6]
push 2
pop eax
jmp 0x18011600
cmp eax, 0x54
ja 0x180116c3
je case.0x18011694.4
sub eax, 0x30
je case.0x18011694.1
sub eax, 0x16
je case.0x18011694.4
dec eax
sub eax, 1
je case.0x18011694.4
jmp case.0x18011694.2
cmp eax, 0x79
jb case.0x18011694.2
cmp eax, 0x7a
jbe 0x180116f1
cmp eax, 0x7c
jbe case.0x18011694.2
cmp eax, 0x7e
jbe case.0x18011694.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x18011694.2
push 3
jmp 0x1801169d
push 4
jmp 0x1801169d
Function at 0x180126c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], edx
mov edi, 0x80070003
call fcn.18006d94
lea ecx, [ebp - 8]
call fcn.1801311b
mov esi, dword [ebp - 8]
test eax, eax
je 0x180127e3
and dword [ebp - 0x10], 0
or edx, 0xf003f
push 0
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181a6a98
mov dword [ebp - 0xc], 0x200
call fcn.180124b3
mov edi, eax
test edi, edi
jne 0x180127d4
mov eax, dword [ebp + 8]
sub eax, 1
je 0x180127b6
sub eax, 1
je 0x180127b2
sub eax, 1
je 0x18012786
sub eax, 1
je 0x18012777
sub eax, 3
je 0x18012764
sub eax, 4
je 0x18012752
mov edi, 0x8007065d
jmp 0x180127c6
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.18012c3f
jmp 0x180127c4
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.18012ca4
jmp 0x180127c4
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.18012c16
jmp 0x180127c4
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x180127c6
movzx edi, di
or edi, 0x80070000
jmp 0x180127c6
push 2
jmp 0x180127b8
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18012c68
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.18012487
test edi, edi
jne 0x180127d4
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181a6a98
call fcn.18012487
lea ecx, [esi - 0x10]
call fcn.18004665
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18012a32
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18012a6a
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18012acc
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.18144dff
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x18012ac7
cmp dword [ebp - 4], 0
je 0x18012ac0
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18012acc
movzx esi, si
or esi, 0x80070000
jmp 0x18012acc
xor eax, eax
mov word [ecx], ax
jmp 0x18012acc
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1801301e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x181cb008]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0x181a6a98
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
xor edi, edi
or eax, 0xf003f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x200
call fcn.180125c6
mov esi, eax
cmp esi, 0x80070002
je 0x18013082
cmp esi, 0x80070003
jne 0x18013085
xor esi, esi
inc esi
test esi, esi
jne 0x180130f1
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x180130c9
lea eax, [esp + 0x28]
push eax
call fcn.1801301e
mov esi, eax
test esi, esi
jne 0x180130f1
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x2c], 0x100
call edi
lea ecx, [esp + 0x10]
test eax, eax
je 0x180130a4
call fcn.18012487
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.18012427
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x181a6a98
call fcn.18012487
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18144705
mov esp, ebp
pop ebp
ret 4

Function at 0x18013620
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18013688
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.18144705
leave
ret
Function at 0x18013698
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov eax, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x30], eax
mov edi, ebx
mov dword [ebp - 4], edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 1
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaUserGetInfo]
test eax, eax
jne 0x1801381c
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x18013826
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push eax
push 1
push ebx
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x180136fc
call fcn.18013c92
mov ebx, eax
jmp 0x1801380f
mov eax, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x18013807
mov ecx, ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x28], ebx
push edx
push 7
push dword [ecx + eax]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x18013747
call fcn.18013c92
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x180137da
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp - 0xc]
push 5
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], edi
push dword [ecx + eax]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x18013781
call fcn.18013c92
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x180137da
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x180137c6
cmp word [eax], bx
je 0x180137c6
test edi, edi
je 0x180137c6
cmp word [edi], bx
je 0x180137c6
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.181514a3
pop ecx
pop ecx
test eax, eax
jne 0x180137be
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.181514a3
pop ecx
pop ecx
test eax, eax
je 0x180137f7
push edi
call esi
push dword [ebp - 0x20]
jmp 0x1801377a
push edi
mov dword [ebp - 4], 0x80004005
call esi
push dword [ebp - 0x20]
call esi
mov edi, 0x80004005
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
inc eax
add ecx, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
cmp eax, dword [ebp - 0x1c]
jae 0x18013807
mov eax, dword [ebp - 0xc]
jmp 0x1801371a
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x18013809
mov ebx, edi
push dword [ebp - 0x34]
call esi
pop esi
push dword [ebp - 0x38]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, ebx
jmp 0x18013826
jle 0x18013826
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x18013a68
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18013ace
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret

Function at 0x18013cd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18013d3f
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x18013d1b
push ebx
push edi
push eax
call fcn.18147aa0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x18013d36
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret