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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.180f1290
mov eax, dword [0x1826b00c]
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 0x18013b5b
push 0x5c
pop edx
mov ecx, esi
call fcn.1801031e
mov esi, eax
cmp esi, 0xffffffff
setne byte [ebp - 0x1220]
call fcn.18006a78
push eax
lea ecx, [ebp - 0x1228]
call fcn.18007187
cmp esi, 0xffffffff
je 0x18013a0b
mov ecx, dword [ebp - 0x1218]
lea edx, [ebp - 0x1228]
call fcn.18013b6c
test eax, eax
js 0x18013b46
mov esi, dword [ebp - 0x1228]
mov dword [ebp - 0x1218], esi
jmp 0x18013a11
mov esi, dword [ebp - 0x1218]
push ebx
xor edx, edx
push 5
inc edx
pop ecx
call fcn.18011fd7
pop ecx
test al, al
je 0x18013a39
push dword [ebp - 0x1220]
mov edx, esi
mov ecx, edi
call fcn.180138c8
pop ecx
mov bl, al
jmp 0x18013b46
push dword [ebp - 0x121c]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x18013b46
push 0x1000
lea eax, [ebp - 0x1214]
push ebx
push eax
call fcn.180c7aa0
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 0x18013aa6
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1218]
mov ecx, esi
call fcn.180138c8
pop ecx
mov bl, al
jmp 0x18013b3b
mov eax, dword [ebp - 0x122c]
shr eax, 2
mov dword [ebp - 0x121c], eax
cmp eax, 1
jbe 0x18013ac3
xor eax, eax
inc eax
mov dword [ebp - 0x121c], eax
mov dword [ebp - 0x1224], ebx
test eax, eax
je 0x18013b3b
push 0x208
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.180c7aa0
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 0x18013b22
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1218]
lea ecx, [ebp - 0x214]
call fcn.1801385e
pop ecx
test al, al
jne 0x18013b39
mov eax, dword [ebp - 0x1224]
inc eax
mov dword [ebp - 0x1224], eax
cmp eax, dword [ebp - 0x121c]
jl 0x18013acd
jmp 0x18013b3b
mov bl, 1
test esi, esi
je 0x18013b46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.18006a60
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.180b1200
leave
ret
Function at 0x1801411a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x40
xor edi, edi
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x58]
mov esi, edx
push edi
push eax
call fcn.180c7aa0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x30], 0x80
push ebx
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18014167
call fcn.18016093
mov edi, eax
jmp 0x180141a7
movzx ecx, byte [0x1827e6e4]
neg ecx
sbb ecx, ecx
and ecx, 0x1827e000
je 0x180141a7
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.18008c56
push dword [ebx + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.18006ca0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180141ae
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x58]
mov edi, edx
push ebx
push eax
call fcn.180c7aa0
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x30], 0x80
push esi
push eax
push ebx
cmp dword [ebp + 8], ebx
jne 0x180141ea
push ebx
push ebx
jmp 0x180141f2
push dword [ebp + 8]
push 0x400
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18014208
call fcn.18016093
jmp 0x1801424a
movzx ecx, byte [0x1827e6e4]
neg ecx
sbb ecx, ecx
and ecx, 0x1827e000
je 0x18014248
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.18008c56
push dword [esi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.18006ca0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18014355
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edx]
sub ecx, 0x10
call fcn.18009fcf
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18012891
push 0x20
lea ecx, [ebp - 4]
call fcn.18009e1a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.18009e47
push 0x40
xor ebx, ebx
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.180c7aa0
mov esi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x40], 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 0x180143d5
push edx
lea ecx, [ebp - 4]
call fcn.18007204
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
lea eax, [ebp - 0x48]
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.18009dcb
test edi, edi
jne 0x18014408
call fcn.18016093
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.18006a60
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x180145a1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1826b00c]
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 0x18014617
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 0x18014617
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 0x1801461e
call fcn.18016093
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x1801462d
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.180b1200
leave
ret
Function at 0x180146b4
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
call fcn.1801463c
mov ebx, eax
or edi, 0xffffffff
xor ecx, ecx
cmp ebx, edi
je 0x1801470b
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 0x180146ff
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 0x18014703
xor ecx, ecx
mov al, cl
test al, al
je 0x1801470b
mov eax, ebx
jmp 0x18014753
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 0x18014751
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x1801474a
lea edx, [ecx + 8]
cmp dword [edx], 0
je 0x18014744
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x18014734
jmp 0x1801474a
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 0x18014757
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xe8], 0x18232d00
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.180140e6
test al, al
jne 0x180147b5
mov esi, 0x80004005
jmp 0x1801493f
lea ecx, [ebp - 0xc8]
call fcn.1800a450
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.1800d601
test al, al
jne 0x180147e2
mov esi, 0x80004005
jmp 0x18014934
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd8], 0x182329ac
mov dword [ebp - 0xd4], esi
call fcn.180079cb
push 0x12
push 1
lea eax, [ebp - 0x68]
push 0x18231f20
push eax
call fcn.18007613
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18007a48
lea ecx, [ebp - 0x68]
call fcn.180076fc
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x18231f20
push eax
call fcn.18007613
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18007a48
lea ecx, [ebp - 0x68]
call fcn.180076fc
push esi
push 0xc0100000
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x114]
call fcn.18007a48
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd8]
call fcn.1800ab7e
lea ecx, [ebp - 0xd8]
call fcn.1800acc1
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 0x1801490d
push esi
push 1
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1801490d
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 0x18014914
call fcn.18016093
mov esi, eax
lea ecx, [ebp - 0x114]
call fcn.18007a11
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x182329ac
call fcn.18007dd9
lea ecx, [ebp - 0xc8]
call fcn.180076fc
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x18232d00
call fcn.1800af00
cmp dword [ebp - 0xd0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1801496b
push dword [ebp - 0xd0]
call edi
cmp dword [ebp - 0xcc], 0
je 0x1801497c
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.180b1200
leave
ret
Function at 0x18014e11
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.18006fb5
lea ecx, [ebp - 8]
call fcn.18015859
mov esi, dword [ebp - 8]
test eax, eax
je 0x18014f30
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], 0x18232d80
mov dword [ebp - 0xc], 0x200
call fcn.18014c00
mov edi, eax
test edi, edi
jne 0x18014f21
mov eax, dword [ebp + 8]
sub eax, 1
je 0x18014f03
sub eax, 1
je 0x18014eff
sub eax, 1
je 0x18014ed3
sub eax, 1
je 0x18014ec4
sub eax, 3
je 0x18014eb1
sub eax, 4
je 0x18014e9f
mov edi, 0x8007065d
jmp 0x18014f13
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.1801537d
jmp 0x18014f11
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.180153e2
jmp 0x18014f11
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.18015354
jmp 0x18014f11
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 0x18014f13
movzx edi, di
or edi, 0x80070000
jmp 0x18014f13
push 2
jmp 0x18014f05
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.180153a6
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.18014bd4
test edi, edi
jne 0x18014f21
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x18232d80
call fcn.18014bd4
lea ecx, [esi - 0x10]
call fcn.18006a60
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801517f
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 0x180151b7
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18015219
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.180b1ac3
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x18015214
cmp dword [ebp - 4], 0
je 0x1801520d
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 0x18015219
movzx esi, si
or esi, 0x80070000
jmp 0x18015219
xor eax, eax
mov word [ecx], ax
jmp 0x18015219
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1801575c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1826b00c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0x18232d80
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.18014d13
mov esi, eax
cmp esi, 0x80070002
je 0x180157c0
cmp esi, 0x80070003
jne 0x180157c3
xor esi, esi
inc esi
test esi, esi
jne 0x1801582f
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 0x18015807
lea eax, [esp + 0x28]
push eax
call fcn.1801575c
mov esi, eax
test esi, esi
jne 0x1801582f
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 0x180157e2
call fcn.18014bd4
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.18014b74
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x18232d80
call fcn.18014bd4
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180b1200
mov esp, ebp
pop ebp
ret 4

Function at 0x18015dec
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1826b00c]
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 0x18015e54
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.180b1200
leave
ret
Function at 0x18015e64
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 0x18015fe8
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x18015ff2
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 0x18015ec8
call fcn.18016093
mov ebx, eax
jmp 0x18015fdb
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 0x18015fd3
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 0x18015f13
call fcn.18016093
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x18015fa6
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 0x18015f4d
call fcn.18016093
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x18015fa6
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x18015f92
cmp word [eax], bx
je 0x18015f92
test edi, edi
je 0x18015f92
cmp word [edi], bx
je 0x18015f92
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.180d4aa0
pop ecx
pop ecx
test eax, eax
jne 0x18015f8a
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.180d4aa0
pop ecx
pop ecx
test eax, eax
je 0x18015fc3
push edi
call esi
push dword [ebp - 0x20]
jmp 0x18015f46
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 0x18015fd3
mov eax, dword [ebp - 0xc]
jmp 0x18015ee6
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x18015fd5
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 0x18015ff2
jle 0x18015ff2
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x180160d3
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 0x18016142
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 0x1801611e
push ebx
push edi
push eax
call fcn.180c7520
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 0x18016139
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
Function at 0x18016145
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov eax, edx
mov dword [esp + 0x1c], eax
push esi
push edi
cmp eax, 0xffffffff
jne 0x18016166
mov eax, 0x80070057
jmp 0x18016302
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.18009fcf
add eax, 0x10
mov dword [esp + 0x38], 0x44
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.180c7aa0
and dword [esp + 0x2c], 0
lea edi, [esp + 0x34]
xor eax, eax
xor ebx, ebx
stosd dword es:[edi], eax
xor esi, esi
add esp, 0xc
mov dword [esp + 0x10], esi
inc ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [ebp + 0xc], esi
je 0x18016208
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.18014757
mov ebx, eax
test ebx, ebx
jns 0x180161d7
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jmp 0x180162de
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [esp + 0x68], 0x100
call esi
mov edi, dword [esp + 0xc]
push 0xfffffffffffffff4
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
call esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], ebx
xor eax, eax
push eax
push dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x18016238
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
jmp 0x18016242
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
mov edx, 0x104
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edx
or ebx, ecx
jge 0x18016269
push edx
lea ecx, [esp + 0x1c]
call fcn.18007204
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
xor ecx, ecx
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x34]
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.18009dcb
test ebx, ebx
jne 0x180162a6
call fcn.18016093
mov ebx, eax
jmp 0x180162d6
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x180162c1
push dword [esp + 0x28]
call ebx
jmp 0x180162c7
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x180162d4
mov eax, esi
xor esi, esi
mov dword [ecx], eax
xor ebx, ebx
push 0
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x180162e9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180162f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18006a60
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret