joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005117
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
neg eax
sbb eax, eax
and eax, dword [fcn.1800a31f]
xor ebx, ebx
cmp eax, ebx
je 0x1800516e
push str.SystemFunction036
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1800515b
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov byte [ebp - 1], 1
test al, al
jne 0x1800515e
mov byte [ebp - 1], bl
cmp esi, ebx
je 0x18005169
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 1]
jmp 0x180051c1
push 0xf0000040
push 1
push ebx
push ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180051aa
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x180051aa
cmp esi, ebx
je 0x180051a6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x180051c1
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, ebx
je 0x180051bf
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x180051c5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.18003b7f
lea eax, [ebp - 4]
call fcn.1800569f
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x180051f5
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, 0x80070057
leave
ret
and dword [ebp - 8], 0
push esi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 0
mov esi, eax
je 0x18005239
test esi, esi
je 0x18005239
push dword [esi]
push dword [ebp + 0xc]
call fcn.18003de7
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0xc]
call fcn.1800569f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e0a
xor eax, eax
jmp 0x1800524d
call fcn.1800d4b3
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, esi
pop esi
leave
ret

Function at 0x18005250
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push esi
push edi
push str.Global_MSIExecute
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
cmp esi, edi
jne 0x1800528b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800527b
xor eax, eax
pop edi
pop esi
ret
cmp eax, edi
jle 0x18005278
and eax, 0xffff
or eax, 0x80070000
jmp 0x18005278
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x180052ce
cmp eax, 0x80
je 0x180052ce
cmp eax, 0x102
je 0x180052be
cmp eax, 0xffffffff
je 0x180052b5
mov edi, 0x80004005
jmp 0x180052c3
call fcn.1800d4b3
mov edi, eax
jmp 0x180052c3
mov edi, 0x800705b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x18005278
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x180052c3
Function at 0x180069cd
Capabilities:
Compare security identifiers

Disassembly:
push esi
lea esi, [eax + 4]
push edi
test esi, esi
je 0x18006a01
lea edi, [ebx + 4]
test edi, edi
je 0x18006a01
call fcn.18003002
test al, al
je 0x18006a01
mov eax, ebx
call fcn.18003002
test al, al
je 0x18006a01
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x18006a03
xor al, al
pop edi
pop esi
ret

Function at 0x1800998f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x800
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.180769e0
mov esi, dword [0x180b5ba0]
push 0
lea eax, [ebp - 0x80c]
call fcn.18007532
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
mov esi, dword [ebp - 0x80c]
push esi
push dword [ebp + 8]
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
lea eax, [esi - 0x10]
call fcn.18003e0a
lea eax, [ebp - 0x808]
push eax
call fcn.1800fcdd
mov dword [esp], 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
pop esi
je 0x18009a43
dec eax
jne 0x18009a34
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.18075e75
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800a49c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edi
mov esi, ecx
mov ebx, edx
call fcn.18056e94
push dword [esi]
call fcn.1800ad60
pop ecx
test al, al
jne 0x1800a4db
mov eax, 0x80070003
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.18075e75
leave
ret
push ebx
mov eax, esi
lea ebx, [ebp - 0x260]
call fcn.1800a585
and dword [ebp - 0x258], 0
mov dword [esp], 0x24c
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.180769e0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800a53b
call fcn.1800d4b3
mov esi, eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, esi
jmp 0x1800a4cd
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x25c]
call fcn.18003b7f
lea eax, [ebp - 0x25c]
push eax
push edi
call fcn.180058d3
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.18003e0a
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800a53b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
jmp 0x1800a529
Function at 0x1800adc5
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x26c], eax
call fcn.18056e94
push esi
lea edi, [ebp - 0x260]
call fcn.18007ea6
mov dword [esp], 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.180769e0
add esp, 0xc
push ebx
mov eax, edi
lea ecx, [ebp - 0x268]
call fcn.18002a0a
mov eax, dword [eax]
pop ecx
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.18003e0a
cmp esi, 0xffffffff
jne 0x1800ae67
call fcn.1800d4b3
mov esi, eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.18003e0a
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.18075e75
leave
ret
cmp dword [ebp - 0x25c], 0x80
je 0x1800ae7c
test byte [ebp - 0x25c], 0x10
jne 0x1800aeb5
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x264]
call fcn.18002a0a
pop ecx
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x26c]
call fcn.180058d3
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.18003e0a
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800ae67
call fcn.1800d4b3
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x80070012
je 0x1800aee4
mov esi, edi
jmp 0x1800ae49
xor esi, esi
jmp 0x1800ae49
Function at 0x1800af0f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea edi, [ebp - 0x260]
mov esi, ecx
call fcn.18007ea6
push esi
lea edi, [ebp - 0x264]
call fcn.18007ea6
push 0x1809ccbc
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x268]
call fcn.18002a0a
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.180769e0
add esp, 0x18
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
jne 0x1800afce
call fcn.1800d4b3
mov esi, eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.18003e0a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.18075e75
leave
ret
cmp dword [ebp - 0x258], 0x80
je 0x1800afe7
test byte [ebp - 0x258], 0x10
jne 0x1800b06c
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x26c]
call fcn.18002a0a
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x270]
call fcn.18002a0a
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 0x270]
pop ecx
pop ecx
jne 0x1800b043
push esi
call fcn.1800ad60
pop ecx
test al, al
je 0x1800b043
lea eax, [esi - 0x10]
call fcn.18003e0a
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
jmp 0x1800b067
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x26c]
push esi
push edi
call fcn.1800b2cf
mov ebx, eax
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.18003e0a
lea eax, [edi - 0x10]
test ebx, ebx
jl 0x1800b0ad
call fcn.18003e0a
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800afce
call fcn.1800d4b3
push dword [ebp - 0x25c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x80070012
jne 0x1800af93
xor esi, esi
jmp 0x1800af93
call fcn.18003e0a
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, ebx
jmp 0x1800af93
Function at 0x1800b0c5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
lea edi, [ebp - 0x26c]
call fcn.18007ea6
pop ecx
push esi
lea edi, [ebp - 0x268]
call fcn.18007ea6
mov ebx, dword [ebp - 0x268]
pop ecx
push ebx
call fcn.1800454c
mov esi, dword [ebp - 0x26c]
pop ecx
test eax, eax
jge 0x1800b135
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.18003e0a
lea eax, [esi - 0x10]
call fcn.18003e0a
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18075e75
leave
ret
push dword [ebp + 0x10]
mov ecx, ebx
push esi
call fcn.1800af0f
pop ecx
pop ecx
test eax, eax
jl 0x1800b112
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.180769e0
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [ebp - 0x278], eax
call fcn.1800392c
add eax, 0x10
mov dword [ebp - 0x264], eax
push 0x1809ccbc
lea eax, [ebp - 0x264]
push eax
call fcn.18002bb4
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x1800b1d7
call fcn.1800d4b3
mov esi, eax
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, dword [ebp - 0x278]
call fcn.18003e0a
mov eax, esi
jmp 0x1800b126
test byte [ebp - 0x25c], 0x10
je 0x1800b27b
push 0
push 2
push 0x1809c3c0
lea eax, [ebp - 0x230]
call fcn.18008271
add esp, 0xc
test eax, eax
je 0x1800b27b
push 0
push 2
push 0x1809c398
lea eax, [ebp - 0x230]
call fcn.18008271
add esp, 0xc
test eax, eax
je 0x1800b27b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x270]
call fcn.18002a0a
pop ecx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x274]
call fcn.18002a0a
mov esi, dword [ebp - 0x274]
mov edi, dword [ebp - 0x270]
pop ecx
push dword [ebp + 0x10]
push esi
push edi
call fcn.1800b0c5
mov ebx, eax
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.18003e0a
lea eax, [edi - 0x10]
call fcn.18003e0a
test ebx, ebx
jl 0x1800b2bc
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800b1d7
call fcn.1800d4b3
push dword [ebp - 0x260]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x80070012
jne 0x1800b1a9
xor esi, esi
jmp 0x1800b1a9
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, ebx
jmp 0x1800b1a9

Function at 0x1800b308
Capabilities:
Move file

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

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

Function at 0x1800c128
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [eax + 4]
mov dword [ebp - 0xc], ebx
call edi
cmp eax, ebx
jle 0x1800c164
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1800c1bd
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x1800c1b8
shr eax, 1
inc eax
push eax
call fcn.18003ce3
cmp eax, ebx
jne 0x1800c188
mov dword [ebp - 4], 0x8007000e
jmp 0x1800c1ae
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [eax + 4]
call edi
cmp eax, ebx
jle 0x1800c1ab
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.18003baa
jmp 0x1800c1bd
call fcn.18003bc8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1800c22a
Capabilities:
Set registry value

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

Function at 0x1800c257
Capabilities:
Set registry value

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

Function at 0x1800c309
Capabilities:
Set registry value

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0xf003f
push ecx
push dword [eax + 4]
mov ebx, 0x1809c6f4
xor edi, edi
lea esi, [ebp - 0x214]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], edi
call fcn.1800bc9e
mov esi, eax
cmp esi, 0x80070002
je 0x1800c6c9
cmp esi, 0x80070003
jne 0x1800c6cc
xor esi, esi
inc esi
cmp esi, edi
je 0x1800c6f4
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
call fcn.1800bb99
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.18075e75
leave
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1800c712
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.1800c669
cmp eax, edi
jne 0x1800c75d
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call esi
test eax, eax
je 0x1800c6fc
lea ecx, [ebp - 0x214]
call fcn.1800bb99
push dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
call fcn.1800bb3b
mov esi, eax
jmp 0x1800c6d0
Function at 0x1800d5ca
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
xor esi, esi
push 0x3c
lea eax, [ebp - 0x54]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x58], esi
call fcn.180769e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x30], 0x80
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1800d613
call fcn.1800d4b3
jmp 0x1800d654
movzx eax, byte [0x180b5819]
neg eax
sbb eax, eax
and eax, 0x180b5ac0
je 0x1800d652
push 1
push 8
pop esi
push esi
mov dword [ebp - 0x14], eax
call fcn.18001ccc
push dword [ebx + 8]
mov dword [ebp - 0x10], eax
push str._Started_process___u_
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call fcn.18001000
pop ecx
pop ecx
xor eax, eax
pop esi
leave
ret

Function at 0x1800d763
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [eax]
push ebx
push edi
sub eax, 0x10
call fcn.1800392c
add eax, 0x10
lea edi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1800a695
push 0x20
mov eax, edi
call fcn.18002bd7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.18002a8f
push 0x40
xor edi, edi
lea eax, [ebp - 0x48]
push edi
push eax
mov dword [ebp - 0x4c], 0x44
call fcn.180769e0
add esp, 0xc
push 1
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x44], str.WinSta0Default
mov dword [ebp - 8], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1800d7e9
call fcn.1800d4b3
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, edi
pop edi
pop ebx
leave
ret
mov ebx, dword [ebp - 8]
push esi
push 0x104
lea esi, [ebp - 4]
call fcn.18003ce3
push dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
push ecx
push edi
push dword [ebp - 8]
push 0x400
push edi
push edi
push edi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp + 0xc], eax
or eax, 0xffffffff
call fcn.18003baa
pop esi
cmp dword [ebp + 0xc], edi
jne 0x1800d830
call fcn.1800d4b3
mov edi, eax
push ebx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x1800d7d8
Function at 0x1800da08
Capabilities:
Acquire debug privileges

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

Function at 0x1800de48
Capabilities:
Get token membership

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 1
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call sub.NETAPI32.dll_NetWkstaUserGetInfo
cmp eax, ebx
jne 0x1800e042
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x1800e04e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x1800df31
call fcn.1800d4b3
mov ebx, eax
push dword [ebp - 0x38]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, ebx
jmp 0x1800e04e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x1800e00e
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push 7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
push dword [ecx + eax]
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x1800df76
call fcn.1800d4b3
mov dword [ebp - 0x10], eax
jmp 0x1800dffb
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
push dword [ecx + eax]
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x1800dfa6
call fcn.1800d4b3
mov dword [ebp - 0x10], eax
jmp 0x1800dff5
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edi, eax
cmp ecx, ebx
je 0x1800dfe8
cmp word [ecx], bx
je 0x1800dfe8
cmp eax, ebx
je 0x1800dfe8
cmp word [eax], bx
je 0x1800dfe8
mov eax, dword [ebp - 8]
push ecx
push dword [eax + 4]
call fcn.18076ee5
pop ecx
pop ecx
test eax, eax
jne 0x1800dfe5
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.18076ee5
pop ecx
pop ecx
test eax, eax
je 0x1800e023
push edi
jmp 0x1800dff0
mov dword [ebp - 0x10], 0x80004005
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], 0xc
cmp eax, dword [ebp - 0x20]
jb 0x1800df46
push dword [ebp - 0x2c]
call sub.WTSAPI32.dll_WTSFreeMemory
push dword [ebp - 0x38]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x10]
jmp 0x1800e04e
mov eax, dword [ebp + 8]
push edi
mov byte [eax], 1
call sub.WTSAPI32.dll_WTSFreeMemory
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
push dword [ebp - 0x2c]
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x1800df22
jle 0x1800e04e
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
leave
ret