joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f779
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x181c7008]
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 0x1800f815
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.18144340
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 0x1800f815
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x1800f7f8
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x1800f811
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800f7dd
mov edi, 0x80004005
jmp 0x1800f81c
mov dword [ebx], eax
jmp 0x1800f81c
call fcn.18013c6a
mov edi, eax
cmp esi, 0xffffffff
je 0x1800f828
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.18141824
leave
ret 4
Function at 0x1800fd2a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.18168e80
mov eax, dword [0x181c7008]
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 0x1800feba
push 0x5c
pop edx
mov ecx, edi
call fcn.1800d500
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x1220]
call fcn.18003fd3
push eax
lea ecx, [ebp - 0x1218]
call fcn.18006df7
cmp edi, 0xffffffff
je 0x1800fdb8
mov ecx, dword [ebp - 0x1210]
lea edx, [ebp - 0x1218]
call fcn.1800fecb
test eax, eax
js 0x1800fea5
mov edi, dword [ebp - 0x1218]
mov dword [ebp - 0x1210], edi
jmp 0x1800fdbe
mov edi, dword [ebp - 0x1210]
push 0x1000
lea eax, [ebp - 0x120c]
push ebx
push eax
call fcn.18144340
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 0x1800fe20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.18010359
test al, al
je 0x1800fea5
push dword [ebp - 0x1220]
mov edx, edi
mov ecx, esi
call fcn.1800fc83
pop ecx
mov bl, al
jmp 0x1800fea5
mov edi, dword [ebp - 0x121c]
shr edi, 2
cmp edi, 1
jbe 0x1800fe31
xor edi, edi
inc edi
mov dword [ebp - 0x1214], ebx
test edi, edi
je 0x1800fea5
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.18144340
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 0x1800fe90
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1210]
lea ecx, [ebp - 0x20c]
call fcn.1800fbec
pop ecx
test al, al
jne 0x1800fea3
mov eax, dword [ebp - 0x1214]
inc eax
mov dword [ebp - 0x1214], eax
cmp eax, edi
jl 0x1800fe3b
jmp 0x1800fea5
mov bl, 1
mov ecx, dword [ebp - 0x1218]
add ecx, 0xfffffff0
call fcn.18004637
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.18141824
leave
ret

Function at 0x180104d2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor edi, edi
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov esi, edx
push edi
push eax
call fcn.18144340
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x28], 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 0x1801051f
call fcn.18013c6a
mov edi, eax
jmp 0x1801055f
movzx ecx, byte [0x181cf83a]
neg ecx
sbb ecx, ecx
and ecx, 0x181cea00
je 0x1801055f
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.18005bab
push dword [ebx + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.18004175
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18010566
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov edi, edx
push ebx
push eax
call fcn.18144340
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x28], 0x80
push esi
push eax
push ebx
cmp dword [ebp + 8], ebx
jne 0x180105a2
push ebx
push ebx
jmp 0x180105aa
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 0x180105c0
call fcn.18013c6a
jmp 0x18010602
movzx ecx, byte [0x181cf83a]
neg ecx
sbb ecx, ecx
and ecx, 0x181cea00
je 0x18010600
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.18005bab
push dword [esi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.18004175
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801070c
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.18006e74
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1800ef5c
push 0x20
lea ecx, [ebp - 4]
call fcn.18006b9e
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.18006bcb
push 0x40
xor ebx, ebx
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.18144340
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 0x1801078c
push edx
lea ecx, [ebp - 4]
call fcn.18006ecd
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.18006b1a
test edi, edi
jne 0x180107bf
call fcn.18013c6a
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.18004637
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18010942
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181c7008]
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 0x180109b8
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 0x180109b8
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 0x180109bf
call fcn.18013c6a
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x180109ce
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.18141824
leave
ret

Function at 0x18010a55
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
call fcn.180109dd
mov ebx, eax
or edi, 0xffffffff
xor ecx, ecx
cmp ebx, edi
je 0x18010aac
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 0x18010aa0
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 0x18010aa4
xor ecx, ecx
mov al, cl
test al, al
je 0x18010aac
mov eax, ebx
jmp 0x18010af4
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 0x18010af2
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x18010aeb
lea edx, [ecx + 8]
cmp dword [edx], 0
je 0x18010ae5
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x18010ad5
jmp 0x18010aeb
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 0x18010af8
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x181c7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xe8], 0x181a2f84
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.1801049e
test al, al
jne 0x18010b56
mov esi, 0x80004005
jmp 0x18010ce0
lea ecx, [ebp - 0xc8]
call fcn.18007202
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.1800a3b8
test al, al
jne 0x18010b83
mov esi, 0x80004005
jmp 0x18010cd5
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd8], 0x181a2bbc
mov dword [ebp - 0xd4], esi
call fcn.18004a67
push 0x12
push 1
lea eax, [ebp - 0x68]
push 0x181a21d4
push eax
call fcn.180046ae
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004ae4
lea ecx, [ebp - 0x68]
call fcn.18004797
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x181a21d4
push eax
call fcn.180046ae
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004ae4
lea ecx, [ebp - 0x68]
call fcn.18004797
push esi
push 0xc0100000
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x114]
call fcn.18004ae4
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd8]
call fcn.180078cd
lea ecx, [ebp - 0xd8]
call fcn.180079ae
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 0x18010cae
push esi
push 1
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18010cae
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 0x18010cb5
call fcn.18013c6a
mov esi, eax
lea ecx, [ebp - 0x114]
call fcn.18004aad
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x181a2bbc
call fcn.18004e7c
lea ecx, [ebp - 0xc8]
call fcn.18004797
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x181a2f84
call fcn.18007bed
cmp dword [ebp - 0xd0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x18010d0c
push dword [ebp - 0xd0]
call edi
cmp dword [ebp - 0xcc], 0
je 0x18010d1d
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.18141824
leave
ret
Function at 0x1801150a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x181c7008]
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.18144340
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x1801166c.2
mov edi, dword [ebp - 0x124]
xor esi, esi
inc esi
cmp edi, 6
je 0x180115fd
cmp edi, 0xa
je 0x180115fd
cmp edi, 5
jne case.0x1801166c.2
cmp dword [ebp - 0x120], 2
jne 0x180115e7
cmp byte [ebp - 0xe], 1
jne 0x180115ad
lea ecx, [ebp - 0x130]
call fcn.18011270
push 0x181a3a38
mov ecx, eax
mov dword [ebp - 0x12c], esi
call fcn.1800c274
test eax, eax
jne 0x180115ad
mov bl, 1
inc eax
jmp 0x180115b3
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x180115c5
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.18004637
test bl, bl
jne case.0x1801166c.1
test dword [ebp - 0x10], 0x8000
je case.0x1801166c.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18141824
leave
ret
cmp dword [ebp - 0x120], esi
jne case.0x1801166c.2
test dword [ebp - 0x10], 0x200
jne case.0x1801166c.2
xor eax, eax
inc eax
jmp 0x180115d8
mov eax, dword [ebp - 0x120]
mov ecx, str.kernel32.dll
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], eax
call fcn.18009b46
mov esi, eax
test esi, esi
je case.0x1801166c.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x18011643
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.0x1801166c.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x1b
ja 0x1801167b
je case.0x1801166c.4
dec eax
cmp eax, 0x18
ja case.0x1801166c.2
movzx eax, byte [eax + 0x180116de]
jmp dword [eax*4 + 0x180116ce]
push 2
pop eax
jmp 0x180115d8
cmp eax, 0x54
ja 0x1801169b
je case.0x1801166c.4
sub eax, 0x30
je case.0x1801166c.1
sub eax, 0x16
je case.0x1801166c.4
dec eax
sub eax, 1
je case.0x1801166c.4
jmp case.0x1801166c.2
cmp eax, 0x79
jb case.0x1801166c.2
cmp eax, 0x7a
jbe 0x180116c9
cmp eax, 0x7c
jbe case.0x1801166c.2
cmp eax, 0x7e
jbe case.0x1801166c.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x1801166c.2
push 3
jmp 0x18011675
push 4
jmp 0x18011675
Function at 0x1801269c
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.18006abf
lea ecx, [ebp - 8]
call fcn.180130f3
mov esi, dword [ebp - 8]
test eax, eax
je 0x180127bb
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], 0x181a3008
mov dword [ebp - 0xc], 0x200
call fcn.1801248b
mov edi, eax
test edi, edi
jne 0x180127ac
mov eax, dword [ebp + 8]
sub eax, 1
je 0x1801278e
sub eax, 1
je 0x1801278a
sub eax, 1
je 0x1801275e
sub eax, 1
je 0x1801274f
sub eax, 3
je 0x1801273c
sub eax, 4
je 0x1801272a
mov edi, 0x8007065d
jmp 0x1801279e
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.18012c17
jmp 0x1801279c
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.18012c7c
jmp 0x1801279c
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.18012bee
jmp 0x1801279c
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 0x1801279e
movzx edi, di
or edi, 0x80070000
jmp 0x1801279e
push 2
jmp 0x18012790
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18012c40
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.1801245f
test edi, edi
jne 0x180127ac
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181a3008
call fcn.1801245f
lea ecx, [esi - 0x10]
call fcn.18004637
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18012a0a
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 0x18012a42
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18012aa4
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.18141f1e
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x18012a9f
cmp dword [ebp - 4], 0
je 0x18012a98
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 0x18012aa4
movzx esi, si
or esi, 0x80070000
jmp 0x18012aa4
xor eax, eax
mov word [ecx], ax
jmp 0x18012aa4
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x18012ff6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x181c7008]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0x181a3008
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.1801259e
mov esi, eax
cmp esi, 0x80070002
je 0x1801305a
cmp esi, 0x80070003
jne 0x1801305d
xor esi, esi
inc esi
test esi, esi
jne 0x180130c9
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 0x180130a1
lea eax, [esp + 0x28]
push eax
call fcn.18012ff6
mov esi, eax
test esi, esi
jne 0x180130c9
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 0x1801307c
call fcn.1801245f
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.180123ff
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x181a3008
call fcn.1801245f
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18141824
mov esp, ebp
pop ebp
ret 4

Function at 0x180135f8
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181c7008]
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 0x18013660
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.18141824
leave
ret
Function at 0x18013670
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 0x180137f4
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x180137fe
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 0x180136d4
call fcn.18013c6a
mov ebx, eax
jmp 0x180137e7
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 0x180137df
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 0x1801371f
call fcn.18013c6a
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x180137b2
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 0x18013759
call fcn.18013c6a
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x180137b2
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x1801379e
cmp word [eax], bx
je 0x1801379e
test edi, edi
je 0x1801379e
cmp word [edi], bx
je 0x1801379e
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.1814e5c3
pop ecx
pop ecx
test eax, eax
jne 0x18013796
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.1814e5c3
pop ecx
pop ecx
test eax, eax
je 0x180137cf
push edi
call esi
push dword [ebp - 0x20]
jmp 0x18013752
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 0x180137df
mov eax, dword [ebp - 0xc]
jmp 0x180136f2
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x180137e1
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 0x180137fe
jle 0x180137fe
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x18013a40
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181c7008]
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 0x18013aa6
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.18141824
leave
ret

Function at 0x18013ca8
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 0x18013d17
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 0x18013cf3
push ebx
push edi
push eax
call fcn.18144bc0
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 0x18013d0e
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