joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100047c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x40c
mov eax, dword [0x100121b4]
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push eax
call dword [0x1001209c]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, edi
je 0x10004896
mov ecx, dword [esp + 0x41c]
push ebp
push edi
push 0x846a0000
push edi
push edi
push ecx
push ebx
call dword [0x100120d4]
mov ebp, eax
cmp ebp, edi
je 0x1000488e
mov edx, dword [esp + 0x424]
push esi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004886
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [0x10012100]
test eax, eax
je 0x10004871
mov eax, dword [esp + 0x10]
cmp eax, edi
jbe 0x10004877
push edi
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x28]
push eax
push esi
call ebx
cmp dword [esp + 0x10], edi
ja 0x10004840
push esi
mov edi, 1
call sub.NTDLL.dll_NtClose
mov ebx, dword [esp + 0x18]
push ebp
call dword [0x10012154]
pop esi
push ebx
call dword [0x10012154]
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0x40c
ret

Function at 0x10004b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10004b26
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.1000bd10
add esp, 0xc
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10006370
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Set environment variable
Terminate process

Disassembly:
sub esp, 0x90
push esi
push edi
push 0x44
lea eax, [esp + 0x58]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x48]
push ecx
call sub.NTDLL.dll_RtlZeroMemory
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x54], 0x44
test esi, esi
jne 0x100063ae
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x100063bd
mov dword [esp + 0x5c], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], 0x5f005f
mov dword [esp + 0xc], 0x6f0063
mov dword [esp + 0x10], 0x70006d
mov dword [esp + 0x14], 0x740061
mov dword [esp + 0x18], 0x6c005f
mov dword [esp + 0x1c], 0x790061
mov dword [esp + 0x20], 0x720065
mov word [esp + 0x24], cx
mov dword [esp + 0x28], 0x750052
mov dword [esp + 0x2c], 0x41006e
mov dword [esp + 0x30], 0x490073
mov dword [esp + 0x34], 0x76006e
mov dword [esp + 0x38], 0x6b006f
mov dword [esp + 0x3c], 0x720065
mov word [esp + 0x40], dx
cmp dword [0x10012148], ecx
jne 0x1000644d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
push ecx
call edi
mov eax, dword [0x10012078]
lea edx, [esp + 0x44]
push edx
test eax, eax
je 0x10006489
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
push 0
neg esi
sbb esi, esi
and esi, 0x8000000
push esi
push 0
push 0
push 0
push ecx
push 0
call eax
jmp 0x100064b9
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x58]
push eax
push ecx
push 0
neg esi
sbb esi, esi
and esi, 0x8000000
push esi
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [0x10012148], 0
mov esi, eax
jne 0x100064cd
push 0
lea eax, [esp + 0xc]
push eax
call edi
pop edi
test esi, esi
pop esi
je 0x1000654d
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x1000652d
cmp eax, 0xffffffff
je 0x100064eb
imul eax, eax, 0x3e8
jmp 0x100064ee
or eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10006517
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x1000652d
mov edx, dword [esp + 0x3c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x1000652d
cmp dword [esp + 0xa4], 0
je 0x1000652d
mov eax, dword [esp + 0x3c]
push 0
push eax
call sub.NTDLL.dll_NtTerminateProcess
mov ecx, dword [esp + 0x40]
push ecx
call sub.NTDLL.dll_NtClose
mov edx, dword [esp + 0x3c]
push edx
call sub.NTDLL.dll_NtClose
mov eax, 1
add esp, 0x90
ret
xor eax, eax
add esp, 0x90
ret
Function at 0x100070f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x68
push edi
push 0x1000
push 8
mov dword [esp + 0x14], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoltcp_localport3389_profileany_actionallow
mov dword [esp + 0x18], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoludp_localport3389_profileany_actionallow
mov dword [esp + 0x1c], str.netsh_advfirewall_firewall_delete_rule_name_Remote_Desktop_
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10007d60
mov edi, eax
test edi, edi
je 0x10007233
push 0x800
lea ecx, [edi + 2]
mov eax, 0x22
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10007224
inc eax
cmp word [edi + eax*2 - 2], 0x5c
je 0x1000715b
mov edx, 0x5c
mov word [edi + eax*2], dx
inc eax
mov ecx, dword [esp + 0x70]
push esi
mov esi, ecx
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
neg ecx
sbb ecx, ecx
add ecx, 3
mov dword [esp + 0xc], ecx
cmp esi, ecx
jge 0x10007223
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [edi + eax*2]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push str.cmd.exe___c__s
push edx
call ebx
add esp, 0xc
push 0x44
lea eax, [esp + 0x38]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call ebp
test eax, eax
je 0x10007216
mov ecx, dword [esp + 0x24]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x28]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x24]
push eax
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [esp + 0x14]
jl 0x10007194
pop ebp
pop ebx
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100049f0
pop edi
add esp, 0x68
ret
Function at 0x1000715f
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68
push edi
push 0x1000
push 8
mov dword [esp + 0x14], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoltcp_localport3389_profileany_actionallow
mov dword [esp + 0x18], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoludp_localport3389_profileany_actionallow
mov dword [esp + 0x1c], str.netsh_advfirewall_firewall_delete_rule_name_Remote_Desktop_
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10007d60
mov edi, eax
test edi, edi
je 0x10007233
push 0x800
lea ecx, [edi + 2]
mov eax, 0x22
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10007224
inc eax
cmp word [edi + eax*2 - 2], 0x5c
je 0x1000715b
mov edx, 0x5c
mov word [edi + eax*2], dx
inc eax
mov ecx, dword [esp + 0x70]
push esi
mov esi, ecx
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
neg ecx
sbb ecx, ecx
add ecx, 3
mov dword [esp + 0xc], ecx
cmp esi, ecx
jge 0x10007223
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [edi + eax*2]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push str.cmd.exe___c__s
push edx
call ebx
add esp, 0xc
push 0x44
lea eax, [esp + 0x38]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call ebp
test eax, eax
je 0x10007216
mov ecx, dword [esp + 0x24]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x28]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x24]
push eax
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [esp + 0x14]
jl 0x10007194
pop ebp
pop ebx
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100049f0
pop edi
add esp, 0x68
ret
Function at 0x100075a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [esp + 0x44]
mov dword [esp], 0x3c
mov dword [esp + 4], 0x800400
mov dword [esp + 0x1c], 0
test eax, eax
je 0x100075d2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100075de
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100075ea
mov dword [esp + 0xc], eax
cmp dword [esp + 0x4c], 0
je 0x100075fb
mov dword [esp + 0x1c], 1
jmp 0x10007603
mov dword [esp + 4], 0x808400
push esi
mov esi, dword [esp + 0x54]
push edi
test esi, esi
je 0x10007612
or dword [esp + 0xc], 0x40
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
test edi, edi
je 0x10007663
test esi, esi
je 0x10007663
cmp esi, 0xffffffff
je 0x10007634
imul esi, esi, 0x3e8
jmp 0x10007637
or esi, 0xffffffff
mov edx, dword [esp + 0x40]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10007657
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x40]
push ecx
call sub.NTDLL.dll_NtClose
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x10007bb0
Capabilities:
Copy file
Get disk size
Move file
Read file via mapping

Disassembly:
sub esp, 0x238
mov eax, dword [0x1001219c]
push esi
lea edx, [esp + 0xc]
push edx
xor ecx, ecx
push eax
mov word [esp + 0x1c], cx
lea ecx, [esp + 0x38]
push 0x1000e3f8
push ecx
mov dword [esp + 0x1c], 0x62002e
mov dword [esp + 0x20], 0x6b0061
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x1001219c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x10
push 2
lea edx, [esp + 0x34]
push edx
push eax
call esi
test eax, eax
je 0x10007d53
mov ecx, dword [0x1001219c]
push 0
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10007c38
mov eax, dword [0x1001219c]
push 2
push eax
lea ecx, [esp + 0x38]
push ecx
call esi
pop esi
add esp, 0x238
ret
mov edx, dword [0x1001219c]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007d4d
push ebx
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x10007d46
push ebp
push 0
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x10007d3e
mov ecx, dword [0x10012120]
xorpd xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
push edi
mov edi, dword [esp + 0x24c]
xorpd xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
xorpd xmm0, xmm0
mov dword [esp + 0x10], 0x3a0000
movlpd qword [esp + 0x24], xmm0
mov dword [esp + 0x14], 0x5c
mov dx, word [ecx]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
mov word [esp + 0x14], dx
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x10007d3d
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, eax
ja 0x10007d17
mov eax, dword [esp + 0x24]
jb 0x10007d0b
cmp eax, edi
jae 0x10007d17
test ecx, ecx
jne 0x10007d13
test eax, eax
je 0x10007d17
shr eax, 1
mov edi, eax
test edi, edi
je 0x10007d3d
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10007d3d
push 0
push 0
push 0
push esi
call edi
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebp
push ebx
call sub.NTDLL.dll_NtClose
pop ebx
push esi
call sub.NTDLL.dll_NtClose
pop esi
add esp, 0x238
ret
Function at 0x10007f40
Capabilities:
Delete registry key
Delete registry value

Disassembly:
sub esp, 0x210
push 1
push str.WpnUserService_6ac92
call fcn.100045b0
add esp, 8
test eax, eax
je 0x10008037
cmp dword [0x10012148], 0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
je 0x10007fd9
push 0x1000e5b4
push 0
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [esp + 0x1c]
push str._s_s_c_s
push eax
call esi
add esp, 0x18
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf023f
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [0x10012108]
test eax, eax
jne 0x10007fd9
mov eax, dword [esp + 8]
push str.WpnUserService_6ac92
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.WpnUserService_6ac92
push 0x5c
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea edx, [esp + 0x1c]
push str._s_s_c_s
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x18
lea eax, [esp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 0x1000e5b4
push str.WpnUserService_6ac92
push str.Services_
lea ecx, [esp + 0x18]
push str.SYSTEMCurrentControlSet_s_s_s
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
pop edi
pop esi
add esp, 0x210
ret
Function at 0x10008960
Capabilities:
Start service

Disassembly:
push ecx
push ebp
push edi
push 1
xor edi, edi
push str.ServicesActive
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x100089e4
mov eax, dword [esp + 0x10]
push esi
push 0x10
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x100089dc
push ebx
lea ebx, [edi + 2]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100089c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x100089c8
push 0x7d0
call edi
dec ebx
jne 0x100089a0
jmp 0x100089d0
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, edi
pop edi
pop ebp
pop ecx
ret
Function at 0x10009460
Capabilities:
Get token membership

Disassembly:
sub esp, 0x58
push edi
lea eax, [esp + 8]
push eax
xor edi, edi
push 0xa
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
call fcn.1000bba0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000953d
cmp dword [0x10012484], 5
mov dword [esp + 4], edi
mov dword [esp + 0xc], edi
jbe 0x100094dd
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x12
push eax
call esi
test eax, eax
je 0x100094d6
cmp dword [esp + 0x18], 3
jne 0x100094d6
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x10]
push edx
push 0x13
push eax
call esi
pop esi
cmp dword [esp + 4], edi
jne 0x100094f5
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
cmp dword [esp + 4], edi
je 0x10009533
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0x1a
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x10009529
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov edx, dword [esp + 4]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 8]
push eax
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x10]
pop edi
add esp, 0x58
ret
Function at 0x10009560
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 4]
push eax
xor edi, edi
push edi
push edi
push 5
mov dword [esp + 0x14], edi
call sub.NTDLL.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x100096d3
mov eax, dword [esp + 4]
test eax, eax
je 0x100096d3
push ebx
push 4
push 0x1000
push eax
push edi
call fcn.1000ca50
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x10009685
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push 5
call sub.NTDLL.dll_NtQuerySystemInformation
test eax, eax
js 0x10009675
cmp dword [esp + 8], edi
jbe 0x10009675
mov dword [esp + 0xc], 1
push ebp
lea esp, [esp]
call fcn.100025b0
cmp dword [ebx + 0x44], eax
jne 0x10009640
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x10009640
lea eax, [ebx + 0xdc]
mov dword [esp + 0x14], eax
jmp 0x10009600
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx]
call fcn.1000ad90
cmp ebp, eax
je 0x100096bf
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000968d
push 0x200
mov dword [esi + 4], 0x80
mov edx, dword [0x100120e4]
push ecx
push edx
call fcn.10007d60
mov dword [esi], eax
test eax, eax
jne 0x100096b4
mov dword [esp + 0x10], 0
mov eax, dword [ebx]
test eax, eax
je 0x1000964a
add ebx, eax
jne 0x100095e0
cmp dword [esp + 0x10], 0
pop ebp
jne 0x1000966d
mov eax, dword [esi]
test eax, eax
je 0x1000966d
mov ecx, dword [0x100120e4]
push eax
push 0
push ecx
call fcn.100049f0
mov dword [esi], 0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0x8000
push edx
push ebx
call fcn.1000bde0
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100096b4
add eax, eax
mov dword [esi + 4], eax
add eax, eax
add eax, eax
push eax
push ecx
mov ecx, dword [0x100120e4]
push 0
push ecx
call fcn.10003840
test eax, eax
je 0x10009638
mov dword [esi], eax
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov dword [eax + edx*4], ebp
inc dword [esi + 8]
add dword [esp + 0x14], 0x40
inc edi
cmp edi, dword [ebx + 4]
jb 0x10009600
jmp 0x10009640
mov eax, edi
pop edi
add esp, 0x10
ret
Function at 0x10009790
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1000984f
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [esp + 0x28]
push eax
push 0
push 0
push edi
mov dword [esp + 0x38], 0
call ebp
test eax, eax
je 0x1000981c
mov eax, dword [esp + 0x28]
push ebx
push esi
push eax
push 8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10007d60
mov esi, eax
test esi, esi
je 0x1000981a
lea ecx, [esp + 0x30]
push ecx
push ebx
push esi
push edi
call ebp
test eax, eax
je 0x1000980b
cmp dword [esi + 4], 2
je 0x1000980b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100049f0
pop esi
pop ebx
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 4
pop ebp
jne 0x10009834
test eax, eax
jne 0x10009845
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov eax, 1
pop edi
add esp, 0x1c
ret
xor eax, eax
pop edi
add esp, 0x1c
ret

Function at 0x10009860
Capabilities:
Get session information

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
or edi, 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
cmp esi, 0xffffffff
jne 0x100098d0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x100098f8
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, esi
test edx, edx
jle 0x100098c4
cmp dword [ecx + 8], 0
je 0x100098c2
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x100098a8
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov edi, dword [ecx]
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 8
push esi
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x100098f8
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
push eax
cmove edi, esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x10009d80
Capabilities:
Terminate process

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x220]
test esi, esi
jne 0x10009d9e
test edi, edi
je 0x10009e05
cmp dword [0x100120e8], 0
je 0x10009db6
push 0
push str.WpnUserService_6ac92
call fcn.100045b0
add esp, 8
test esi, esi
je 0x10009e01
push 0x52
push str.GlobalRMSServerGlobal
lea eax, [esp + 0x10]
push str._s_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x10009df6
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call sub.NTDLL.dll_NtClose
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret
test edi, edi
jne 0x10009e17
mov edx, dword [esp + 0x218]
push 0
push edx
call fcn.1000acb0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10009e80
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x3c], 0x500
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10009ed4
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
pop ebx
add esp, 0x10
ret