joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016d75
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x1010b10
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1016dd8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1010af8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1016dca
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x1016dd8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], esi
pop esi
setne al
leave
ret

Function at 0x1016de3
Capabilities:
Get domain information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
and dword [ebp - 4], esi
push 1
push esi
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
test eax, eax
mov ecx, dword [ebp - 4]
jne 0x1016e0e
mov eax, dword [ecx]
test eax, eax
je 0x1016e0e
cmp eax, 2
je 0x1016e0e
inc esi
test ecx, ecx
je 0x1016e18
push ecx
call sub.NETAPI32.dll_DsRoleFreeMemory
mov eax, esi
pop esi
leave
ret

Function at 0x1016fbf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
lea eax, [ebp - 4]
push eax
xor eax, eax
cmp dword [ebp + 8], esi
push 0x1010b88
setne al
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x101702b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1010b74
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x101701d
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x101702b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
inc eax
pop esi
leave
ret 8
Function at 0x1017953
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0x20019
push 0
push 0x1010ef4
push dword [eax + 0x68]
xor edi, edi
inc edi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10179b6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1010ed4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10179ad
cmp dword [ebp - 8], eax
jne 0x10179ad
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 4

Function at 0x1017df9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10723e4]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x40c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1011048
push 0x80000002
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10180aa
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
push 0x1011020
push dword [ebp - 0x40c]
mov dword [ebp - 0x418], 4
mov dword [ebp - 0x41c], 0x100
call esi
test eax, eax
jne 0x10180bf
lea eax, [ebp - 0x404]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call edi
test eax, eax
jne 0x10180bf
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
push 0x1011000
push dword [ebp - 0x40c]
call esi
test eax, eax
jne 0x10180bf
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x420]
call edi
test eax, eax
jne 0x10180bf
jmp dword [0x1071724]
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103d24a
leave
ret 8
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10180b0
Function at 0x1019bf4
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x10723e4]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x5c], 0x4c
call sub.WINSTA.dll_WinStationEnumerate_IndexedW
test al, al
je 0x1019d25
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x1019c68
cmp dword [ebp - 8], 3
je 0x1019c68
cmp dword [ebp - 8], 4
jne 0x1019cff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x78]
push eax
push 0xc
lea eax, [ebp - 0x68]
push eax
push 0xe
push dword [ebp - 0x50]
push esi
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x1019cff
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 1
push dword [ebp - 0x60]
call ebx
test eax, eax
jne 0x1019cb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1019cb6
push dword [ebp - 0x60]
call edi
jmp 0x1019cff
push dword [ebp - 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1019d1e
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 1
push dword [ebp - 0x60]
call ebx
test eax, eax
push dword [ebp - 0x60]
jne 0x1019ce0
call edi
jmp 0x1019cf6
call edi
push dword [esi]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1019cf6
mov eax, dword [ebp - 0x6c]
inc dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call sub.WINSTA.dll_WinStationEnumerate_IndexedW
test al, al
jne 0x1019c53
jmp 0x1019d23
push dword [ebp - 0x60]
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
call fcn.0103d24a
leave
ret 0x10

Function at 0x101d47d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
jle 0x101d4ac
push ebx
push esi
lea esi, [edx + ecx - 1]
add edi, ecx
movzx edx, byte [edi + eax]
mov dl, byte [edx + ecx]
xor dl, byte [esi]
mov ebx, dword [ebp + 0xc]
mov byte [eax + ebx], dl
inc eax
dec esi
cmp eax, dword [ebp + 8]
jl 0x101d494
pop esi
pop ebx
pop edi
pop ebp
ret 8
Function at 0x101d51a
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x101d544
lea eax, [ebp - 8]
push eax
push 8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x101d567
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x101d56a
mov edi, dword [ebp - 8]
cmp dword [ebp + 0xc], esi
mov edx, dword [ebp - 4]
je 0x101d57a
or edi, 0x10000
jmp 0x101d580
and edi, 0xfffeffff
cmp dword [ebp + 0x10], esi
je 0x101d590
or edi, 0x80000000
or edx, 3
jmp 0x101d5b0
mov ecx, 0x80000000
mov eax, edi
mov esi, edx
and eax, ecx
and esi, 3
cmp eax, ecx
jne 0x101d5b0
cmp esi, 3
jne 0x101d5b0
and edi, 0x7fffffff
and edx, 0xfffffffc
mov eax, edi
pop edi
and edx, 0xfffbffff
pop esi
leave
ret 0xc
Function at 0x101d8b1
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push 8
pop eax
cmp dword [ebp + 0x1c], eax
jbe 0x101d8c4
mov dword [ebp + 0x1c], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
jbe 0x101d8dd
lea ecx, [ebp + 0x1c]
add ecx, 4
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x20], edx
inc eax
cmp eax, dword [ebp + 0x1c]
jb 0x101d8ce
mov eax, dword [0x10732e4]
test eax, eax
jne 0x101d900
push 0x1011410
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
mov dword [0x10732e4], eax
jne 0x101d900
push 6
pop eax
leave
ret
push dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x101d92a
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
xor eax, eax
leave
ret

Function at 0x101dae9
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push edi
xor edi, edi
cmp dword [0x10732dc], edi
mov dword [ebp - 4], edi
jne 0x101db59
push esi
push dword [ebp + 0xc]
mov esi, 0x104
push esi
push 0x1072ec0
mov dword [0x10732dc], 1
mov dword [0x10732e0], ebx
call fcn.0101d92e
cmp eax, edi
jl 0x101db58
push dword [ebp + 0x10]
push esi
push 0x10730d0
call fcn.0101d92e
cmp eax, edi
jl 0x101db58
push edi
push edi
push dword [ebp + 8]
push 0x101d85a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x101db58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
cmp ebx, edi
je 0x101db87
cmp ebx, 2
mov eax, 0x101d89c
je 0x101db6c
mov eax, 0x101d89c
push 0x20
push edi
push 0x4e20
push dword [ebp + 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, ebx
jmp 0x101db89
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x101ea5a
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp + 8], ecx
je 0x101ea7d
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, 0x2000
test dword [ebp + 8], edi
je 0x101ea95
lea eax, [ebp + 8]
push eax
call fcn.0102a3ea
movzx eax, al
jmp 0x101eaa9
xor eax, eax
cmp dword [0x10732e8], ebx
sete al
cmp dword [esi + 0x1c], ebx
je 0x101eaa9
and dword [ebp + 8], 0xfffffff4
cmp eax, ebx
je 0x101eafb
xor esi, esi
inc esi
test byte [ebp + 8], 0xb
je 0x101eac3
test dword [ebp + 8], edi
jne 0x101eac3
push esi
push 0x13
call fcn.01026a1c
cmp eax, ebx
je 0x101eafb
jmp 0x101ead4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x10732e8], ebx
jne 0x101eac9
call fcn.0101e9f4
push ebx
push dword [ebp + 8]
mov dword [0x10732e8], esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x101eafb
mov dword [0x10732e8], ebx
xor ecx, ecx
cmp eax, ebx
sete cl
pop edi
pop esi
pop ebx
inc ecx
mov eax, ecx
pop ebp
ret 4
Function at 0x101ed7e
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x10723e4]
lea ecx, [ebp - 0x9c]
push ecx
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
push ecx
mov dword [ebp - 0x98], eax
mov eax, dword [eax + 8]
push 1
push dword [eax + 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x101eef9
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
push edi
push dword [ebp - 0x84]
call esi
mov al, byte [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov byte [ebp - 0x85], al
xor eax, eax
xor bl, bl
cmp bl, byte [ebp - 0x85]
jae 0x101ee0d
movzx eax, bl
push eax
push dword [ebp - 0x84]
call edi
xor ecx, ecx
cmp dword [eax], 0x1f5
sete cl
inc bl
mov eax, ecx
test eax, eax
je 0x101ede6
test eax, eax
je 0x101eef6
lea eax, [ebp - 0x90]
push eax
push 2
push 0
call sub.NETAPI32.dll_NetUserModalsGet
test eax, eax
jne 0x101eef6
mov eax, dword [ebp - 0x90]
push dword [eax + 4]
call esi
mov al, byte [eax]
xor ebx, ebx
mov bl, al
inc bl
mov byte [ebp - 0x85], al
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
push eax
push 0
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x8c], eax
je 0x101eeeb
mov ecx, dword [ebp - 0x90]
push dword [ecx + 4]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x101eedf
movzx eax, byte [ebp - 0x85]
push eax
push dword [ebp - 0x8c]
call edi
push dword [ebp - 0x8c]
mov dword [eax], 0x1f5
call esi
push dword [ebp - 0x8c]
mov byte [eax], bl
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x101eedf
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 8]
push 0
add eax, 0x28
push eax
call fcn.01026af5
mov esi, eax
test esi, esi
je 0x101eedf
call fcn.0101ed29
push esi
call fcn.01026bd2
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x90]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0103d24a
leave
ret 4

Function at 0x101ef05
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x101ef62
push edi
push 4
push 0x1011860
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x101ef5e
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x101ef5b
cmp dword [ebp - 0x1c], 4
jne 0x101ef5b
mov dword [ebp - 4], 1
push edi
call esi
push ebx
call esi
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x101f4fa
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x101f529
xor eax, eax
jmp 0x101f569
test bh, 1
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push fcn.0101ea5a
je 0x101f546
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x101f54c
push edi
call fcn.01026c05
mov edi, eax
cmp edi, esi
je 0x101f55e
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101f691
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call sub.MSGINA.dll_Ordinal_18
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0x80000001
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push 5
push 0x12c
xor ebx, ebx
push ebx
mov dword [0x10759ec], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x101f6da
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0x694
push 2
push ebx
call fcn.0103b9e9
add esp, 0xc
push 3
push esi
call fcn.010392b1
push 0x6e3
push ebx
push 1
call fcn.0103b9e9
mov eax, dword [0x10733e0]
add esp, 0xc
cmp eax, ebx
je 0x101f70d
call eax
push 1
call sub.KERNEL32.dll_BaseCleanupAppcompatCacheSupport
lea edi, [esi + 0x3dc]
cmp dword [edi], ebx
je 0x101f731
push 0x78
push esi
call fcn.0103af03
push dword [ebp + 0xc]
push dword [esi + 0x3a8]
call dword [edi]
cmp dword [0x1073934], ebx
je 0x101f741
push 1
push ebx
call sub.WINSTA.dll_WinStationShutdownSystem
cmp dword [esi + 0x7c], 0xe
mov ebx, dword [sym.imp.ntdll.dll_NtShutdownSystem]
je 0x101f797
cmp dword [ebp + 0xc], 0xb
jne 0x101f78a
push 2
pop ecx
xor eax, eax
or eax, ecx
or eax, 5
push eax
push esi
call fcn.0101f570
push 0
push esi
call fcn.0103af03
push esi
push 0x101ebac
push 0
push 0x258
push dword [0x10733b8]
push esi
call fcn.0103b0bd
xor edi, edi
inc edi
jmp 0x101f7c2
xor ecx, ecx
cmp dword [ebp + 0xc], 0xa
jne 0x101f756
push 8
pop eax
jmp 0x101f758
xor edi, edi
inc edi
push edi
push 0x13
call fcn.01026a1c
cmp dword [ebp + 0xc], 0xa
jne 0x101f7ac
push 2
jmp 0x101f7b7
cmp dword [ebp + 0xc], 0xb
jne 0x101f7b5
push edi
jmp 0x101f7b7
push 0
call ebx
push 0
push 0x13
call fcn.01026a1c
mov eax, dword [esi + 8]
push 0
add eax, 0x28
push eax
call fcn.01026af5
push edi
push 0x13
mov dword [ebp + 8], eax
call fcn.01026a1c
call fcn.010290ae
call fcn.0102913c
cmp dword [0x1073934], 0
mov eax, dword [esi + 0x20]
je 0x101f82b
test al, 8
je 0x101f7fd
push 0xa
pop eax
push 2
pop edi
jmp 0x101f818
test al, 2
jne 0x101f80f
push 0xa
pop eax
cmp dword [ebp + 0xc], eax
je 0x101f7f8
cmp dword [ebp + 0xc], 0xb
jne 0x101f813
push 6
jmp 0x101f817
push 2
xor edi, edi
pop eax
push eax
push 0
call sub.WINSTA.dll_WinStationShutdownSystem
cmp dword [0x1073938], 0
je 0x101f84a
jmp 0x101f843
test al, 8
jne 0x101f839
test al, 2
jne 0x101f843
cmp dword [ebp + 0xc], 0xa
jne 0x101f83d
push 2
jmp 0x101f848
cmp dword [ebp + 0xc], 0xb
jne 0x101f846
push edi
jmp 0x101f848
push 0
call ebx
push dword [ebp + 8]
call fcn.01026bd2
cmp dword [ebp + 0xc], 0xa
jne 0x101f85e
push esi
call fcn.0101eb5c
push esi
call fcn.0101eb0c
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x101ff19
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push 8
pop eax
cmp dword [ebp + 0x1c], eax
jbe 0x101ff2c
mov dword [ebp + 0x1c], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
jbe 0x101ff45
lea ecx, [ebp + 0x1c]
add ecx, 4
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x20], edx
inc eax
cmp eax, dword [ebp + 0x1c]
jb 0x101ff36
mov eax, dword [0x1075d48]
test eax, eax
jne 0x101ff68
push 0x1010acc
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
mov dword [0x1075d48], eax
jne 0x101ff68
push 6
pop eax
leave
ret
push dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x101ff92
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
xor eax, eax
leave
ret

Function at 0x1020016
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10723e4]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
xor edi, edi
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x10118f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x28], eax
je 0x10200df
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10118e0
push eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x10200d4
push 0x10118cc
push dword [ebp - 0x28]
call esi
cmp eax, edi
mov dword [ebp - 0x3c], eax
je 0x10200d4
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
call ebx
test eax, eax
jne 0x10200d4
mov ebx, dword [ebp - 0x2c]
xor esi, esi
cmp dword [ebp - 0x30], edi
jbe 0x10200ca
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10200c0
mov eax, dword [ebp - 0x2c]
push dword [eax]
push edi
call dword [ebp - 0x3c]
add dword [ebp - 0x2c], 4
inc esi
cmp esi, dword [ebp - 0x30]
jb 0x10200a2
cmp ebx, edi
je 0x10200d4
push ebx
call sub.NETAPI32.dll_NetApiBufferFree
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0103d24a
leave
ret
Function at 0x1020164
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
push 0x1011988
call fcn.0103d528
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
push 4
pop edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push esi
push 0x1011930
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jne 0x10201df
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push 0x1011924
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jne 0x10201df
cmp dword [ebp - 0x30], edi
jne 0x10201df
cmp dword [ebp - 0x20], 2
je 0x10201d8
cmp dword [ebp - 0x20], 3
jne 0x10201df
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
call fcn.010201f3
mov eax, dword [ebp - 0x24]
call fcn.0103d563
ret
Function at 0x1020202
Capabilities:
Enumerate services
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
mov dword [ebp - 8], ebx
je 0x1020230
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, ebx
je 0x1020228
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi], ebx
xor eax, eax
inc eax
jmp 0x102032f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ebx
je 0x102025d
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1020256
xor eax, eax
cmp dword [ebp - 0x20], 4
sete al
jmp 0x102032f
xor eax, eax
jmp 0x102032f
push edi
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x102032c
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push 0x30
push edi
call esi
test eax, eax
je 0x10202a7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x102032c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x10202c0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
jmp 0x102032e
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10202b4
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 1
push 0x30
push edi
call esi
test eax, eax
je 0x1020346
cmp dword [ebp + 0x10], 0
jbe 0x102031c
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
lea eax, [eax + eax*8]
push dword [ebx + eax*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1020335
cmp dword [ebp + 0x10], 0
jne 0x10202f6
or dword [ebp + 0x10], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push 4
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10202b4