joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18014160
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1820f00c]
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 0x180141c6
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.1814cf3d
leave
ret

Function at 0x180146aa
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], ecx
push edi
push 2
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x18014746
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.181620e0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18014746
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x18014729
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x18014742
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1801470e
mov edi, 0x80004005
jmp 0x18014752
mov dword [ebx], eax
jmp 0x1801474d
call fcn.18017850
mov edi, eax
cmp esi, 0xffffffff
je 0x18014759
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret 4
Function at 0x18014b62
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x181b72bc]
push ebx
push esi
push edi
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
mov edi, edx
push ebx
push eax
mov esi, ecx
call fcn.181620e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x18014bbb
xor al, al
jmp 0x18014bfe
lea ecx, [ebp - 0x210]
call fcn.18009c8e
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.1801848b
test eax, eax
js 0x18014bee
push dword [ebp + 8]
mov ecx, dword [ebp - 0x210]
mov edx, edi
call fcn.18014ade
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff0
call fcn.1800687d
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
Function at 0x18014c0d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.18186520
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
xor ebx, ebx
push eax
push ebx
mov esi, edx
mov dword [ebp - 0x121c], eax
push 0x400
mov dword [ebp - 0x1218], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x18014dee
push 0x5c
pop edx
mov ecx, esi
call fcn.18011234
mov esi, eax
lea ecx, [ebp - 0x1228]
cmp esi, 0xffffffff
setne byte [ebp - 0x1220]
call fcn.18009c8e
cmp esi, 0xffffffff
je 0x18014c9d
mov ecx, dword [ebp - 0x1218]
lea edx, [ebp - 0x1228]
call fcn.18014dff
test eax, eax
js 0x18014dd9
mov esi, dword [ebp - 0x1228]
mov dword [ebp - 0x1218], esi
jmp 0x18014ca3
mov esi, dword [ebp - 0x1218]
push ebx
xor edx, edx
push 5
inc edx
pop ecx
call fcn.18012fc3
pop ecx
test al, al
je 0x18014ccb
push dword [ebp - 0x1220]
mov edx, esi
mov ecx, edi
call fcn.18014b62
pop ecx
mov bl, al
jmp 0x18014dd9
push dword [ebp - 0x121c]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x18014dd9
push 0x1000
lea eax, [ebp - 0x1214]
push ebx
push eax
call fcn.181620e0
add esp, 0xc
mov dword [ebp - 0x122c], ebx
lea eax, [ebp - 0x122c]
push eax
push 4
lea eax, [ebp - 0x1214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x18014d38
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1218]
mov ecx, esi
call fcn.18014b62
pop ecx
mov bl, al
jmp 0x18014dce
mov eax, dword [ebp - 0x122c]
xor ecx, ecx
shr eax, 2
inc ecx
mov dword [ebp - 0x121c], eax
cmp eax, ecx
jbe 0x18014d56
mov dword [ebp - 0x121c], ecx
jmp 0x18014d5a
test eax, eax
je 0x18014dd2
mov dword [ebp - 0x1224], ebx
push 0x208
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.181620e0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
mov eax, dword [ebp - 0x1224]
push dword [ebp + eax*4 - 0x1214]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x18014db5
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1218]
lea ecx, [ebp - 0x214]
call fcn.18014ade
pop ecx
test al, al
jne 0x18014dcc
mov eax, dword [ebp - 0x1224]
inc eax
mov dword [ebp - 0x1224], eax
cmp eax, dword [ebp - 0x121c]
jl 0x18014d60
jmp 0x18014dd2
mov bl, 1
test esi, esi
je 0x18014dd9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.1800687d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
Function at 0x1801539b
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.180132db
test al, al
je 0x180154a9
push esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
mov esi, eax
test esi, esi
js 0x180154a9
push str.._
lea ecx, [ebp - 0x2c]
call fcn.18006d98
lea eax, [esi + 0x41]
push eax
lea ecx, [ebp - 0x2c]
call fcn.18009d04
push 0x3a
lea ecx, [ebp - 0x2c]
call fcn.18009d04
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
pop edi
push edi
push 0x80
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1801549a
mov dword [ebp - 0x10], edi
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1801544f
cmp byte [ebp - 0x14], bl
sete bl
jmp 0x1801548d
xor eax, eax
mov dword [ebp - 0xc], ebx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x10], 8
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x30], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18015493
xor ebx, ebx
cmp byte [ebp - 0x20], bl
setne bl
inc ebx
cmp esi, 0xffffffff
je 0x1801549a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, ebx
jmp 0x180154ab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret

Function at 0x180154f9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
push eax
cmp dword [ebp + 8], eax
jne 0x18015513
push eax
push eax
jmp 0x1801551b
push dword [ebp + 8]
push 0x400
push eax
push eax
push eax
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18015531
call fcn.18017850
jmp 0x18015573
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x18015571
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.18008988
push dword [esi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.18006aa4
add esp, 0xc
xor eax, eax
pop esi
leave
ret
Function at 0x18015696
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
mov ecx, dword [edx]
push edi
sub ecx, 0x10
call fcn.18009e91
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18013ae3
push 0x20
lea ecx, [ebp - 4]
call fcn.18009d04
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.18009d31
push 0x40
xor edi, edi
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.181620e0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x40], str.WinSta0Default
inc edx
mov ebx, 0x104
add esp, 0xc
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, ebx
or edx, ecx
jge 0x18015716
push ebx
lea ecx, [ebp - 4]
call fcn.18006f9e
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push ecx
push edi
push dword [ebp + 0x10]
push 0x400
push edi
push edi
push edi
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.18009cb5
test esi, esi
jne 0x18015749
call fcn.18017850
mov edi, eax
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180158e5
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1820f00c]
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 0x1801595b
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 0x1801595b
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 0x18015962
call fcn.18017850
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x18015971
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.1814cf3d
leave
ret
Function at 0x180159f8
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.18015980
mov ebx, eax
or edi, 0xffffffff
xor esi, esi
cmp ebx, edi
je 0x18015a43
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
push 8
push ebx
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x18015a43
mov eax, dword [ebp - 8]
push eax
mov esi, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
jne 0x18015a41
mov eax, ebx
jmp 0x18015a8b
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
push 1
push esi
push esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x18015a89
cmp dword [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
jbe 0x18015a82
lea edx, [ecx + 8]
cmp dword [edx], esi
je 0x18015a7c
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x18015a6d
jmp 0x18015a82
imul eax, eax, 0xc
mov edi, dword [eax + ecx]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180164c4
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.18006d98
lea ecx, [ebp - 8]
call fcn.18016fd5
mov esi, dword [ebp - 8]
test eax, eax
je 0x1801660e
xor ecx, ecx
mov dword [ebp - 0x14], 0x181dc620
push ecx
push ecx
or edx, 0xf003f
mov dword [ebp - 0x10], ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x200
call fcn.18016292
mov edi, eax
test edi, edi
jne 0x180165f9
mov eax, dword [ebp + 8]
sub eax, 1
je 0x180165b6
sub eax, 1
je 0x180165b2
sub eax, 1
je 0x18016586
sub eax, 1
je 0x18016577
sub eax, 3
je 0x18016564
sub eax, 4
je 0x18016552
mov edi, 0x8007065d
jmp 0x180165c6
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.18016a6d
jmp 0x180165c4
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.18016ad2
jmp 0x180165c4
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.18016a44
jmp 0x180165c4
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 0x180165c6
movzx edi, di
or edi, 0x80070000
jmp 0x180165c6
push 2
jmp 0x180165b8
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18016a96
mov edi, eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
test eax, eax
je 0x180165f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
test ecx, ecx
jle 0x180165e5
movzx ecx, cx
or ecx, 0x80070000
xor eax, eax
mov dword [ebp - 0xc], 0x200
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x180165fc
mov edi, ecx
jmp 0x180165fc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x181dc620
test eax, eax
je 0x1801660e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.1800687d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18016888
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 0x180168c0
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18016917
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.1814d801
cmp dword [ebp - 4], 0
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
je 0x18016912
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 0x18016917
movzx esi, si
or esi, 0x80070000
jmp 0x18016917
xor eax, eax
mov word [ecx], ax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1801691f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, 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 [ebx + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18016957
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x180169cb
mov edx, dword [ebp - 4]
test edx, edx
je 0x180169c3
shr edx, 1
add edx, 1
js 0x180169d3
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
inc ecx
mov esi, dword [edi]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x18016986
push edx
mov ecx, edi
call fcn.18006f9e
mov esi, dword [edi]
test esi, esi
jne 0x18016991
mov esi, 0x8007000e
jmp 0x180169b7
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x180169b7
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.18009cb5
pop edi
jmp 0x180169cb
mov ecx, dword [ebp + 0xc]
call fcn.18006df7
mov eax, esi
pop esi
pop ebx
leave
ret 8
push 0x80070057
call fcn.18006585
int3

Function at 0x18016ed2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x1820f00c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 8]
or eax, 0xf003f
and dword [esp + 8], 0
push esi
push eax
push edx
push dword [ecx + 4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0x181dc620
mov dword [esp + 0x1c], 0x200
call fcn.180163af
mov esi, eax
cmp esi, 0x80070002
je 0x18016f35
cmp esi, 0x80070003
jne 0x18016f78
xor esi, esi
inc esi
cmp dword [esp + 0xc], 0
mov dword [esp + 8], 0x181dc620
je 0x18016f51
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1814cf3d
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
call fcn.18016ed2
mov esi, eax
test esi, esi
jne 0x18016f38
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18016f68
cmp dword [esp + 0xc], esi
je 0x18016fc1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x200
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
call fcn.18016206
mov esi, eax
jmp 0x18016f38
Function at 0x180175a9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1820f00c]
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 0x18017611
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.1814cf3d
leave
ret
Function at 0x18017621
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 0x180177a5
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x180177af
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 0x18017685
call fcn.18017850
mov ebx, eax
jmp 0x18017798
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 0x18017790
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 0x180176d0
call fcn.18017850
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x18017763
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 0x1801770a
call fcn.18017850
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x18017763
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x1801774f
cmp word [eax], bx
je 0x1801774f
test edi, edi
je 0x1801774f
cmp word [edi], bx
je 0x1801774f
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.1816947d
pop ecx
pop ecx
test eax, eax
jne 0x18017747
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.1816947d
pop ecx
pop ecx
test eax, eax
je 0x18017780
push edi
call esi
push dword [ebp - 0x20]
jmp 0x18017703
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 0x18017790
mov eax, dword [ebp - 0xc]
jmp 0x180176a3
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x18017792
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 0x180177af
jle 0x180177af
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x18017890
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 0x180178ff
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 0x180178db
push ebx
push edi
push eax
call fcn.18161b60
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 0x180178f6
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