joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x41135d
cmp dword [eax + 8], 0xffffff65
jne 0x41135d
movzx eax, word ds:[eax + 0xc]
sub eax, 0x41
je 0x41135d
sub eax, 2
jne 0x41135d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x41135d
push esi
call sym.SystemInformer.exe__PhCopyListView_4
pop esi
pop ecx
pop ebp
ret 8

Function at 0x411380
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x4113e7
cmp dword [eax + 8], 0xffffff65
jne 0x4113e7
movzx eax, word ds:[eax + 0xc]
sub eax, 0x41
je 0x4113ca
sub eax, 2
jne 0x4113e7
test byte [ebp + 0x10], 1
je 0x4113e7
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4113e7
push esi
call sym.SystemInformer.exe__PhCopyListView_4
pop esi
pop ebp
ret 0xc
test byte [ebp + 0x10], 2
je 0x4113e7
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4113e7
push 2
push 2
push esi
call sym.SystemInformer.exe_PhSetStateAllListViewItems
pop esi
pop ebp
ret 0xc

Function at 0x411e60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov edi, edx
mov esi, ecx
xor bl, bl
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov bh, byte [eax + 1]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov byte [eax + 1], bl
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x60
push 0
push 0
push 0
push edi
push esi
call sym.SystemInformer.exe_PhCreateProcessWin32Ex
test eax, eax
js 0x411f26
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push 0
push 4
push eax
push 0x1e
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x411f1d
push 0
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtSetInformationDebugObject]
test eax, eax
js 0x411f14
push dword [ebp - 0xc]
push esi
call dword [sym.imp.ntdll.dll_NtRemoveProcessDebug]
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
push esi
mov bl, 1
call dword [sym.imp.ntdll.dll_NtClose]
test bh, bh
je 0x411f5c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov byte [ecx + 1], bh
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x4137c0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
mov edi, dword [ebp + 0xc]
push 0
push str.RegEdit_RegEdit
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41381e
push edi
push esi
call sym.SystemInformer.exe__PhShellOpenKey_8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
jne 0x413853
push 0
push 0
push esi
call sym.SystemInformer.exe__PhUiConnectToPhSvcEx_12
test al, al
jne 0x413853
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0x62de40
push 0xfffffffffffffff7
push 0x20006
lea eax, [esp + 0x54]
push eax
call sym.SystemInformer.exe_PhCreateKey
test eax, eax
js 0x413950
push 0x11
lea eax, [esp + 0x64]
mov ecx, 8
mov esi, str.A_SystemInformer
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
push eax
call sym.SystemInformer.exe_PhGenerateRandomAlphaString
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x40
call fcn.004f81c0
mov esi, eax
mov dword [esp + 0x10], 0x420040
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], ecx
mov eax, dword [esi]
add eax, 2
push eax
push dword [esi + 4]
lea eax, [esp + 0x18]
push 1
push 0
push eax
push dword [esp + 0x50]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4138ed
call fcn.004fbfa0
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov al, byte [eax + 4]
not al
and al, 1
movzx eax, al
push eax
call fcn.00413220
mov edx, dword [esp + 0x20]
mov bl, al
mov word [esp + 0x18], dx
lea ecx, [edx + 2]
mov word [esp + 0x1a], cx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
cmp edx, 0xfffe
ja 0x413946
lea eax, ds:[esp + 0x18]
push eax
push dword [esp + 0x40]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
push dword [esp + 0x3c]
call dword [sym.imp.ntdll.dll_NtClose]
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte ds:[eax + 4], 1
jne 0x413967
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
mov ecx, dword [esp + 0x8c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 8
Function at 0x4185c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
mov dword [ebp - 0x43c], eax
mov esi, ecx
push edi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x450], 0xd
mov dword [ebp - 0x478], eax
mov edi, edx
lea eax, [ebp - 0x450]
mov dword [ebp - 0x440], 0xffffffff
push eax
push 0
push 0x104b
push esi
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x438], 0x208
mov dword [ebp - 0x48c], 0xd
mov dword [ebp - 0x47c], 0xffffffff
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x474], 0x208
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4186bb
lea eax, [ebp - 0x48c]
push eax
push 0
push 0x104b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
nop
test eax, eax
je 0x4186bb
lea eax, ds:[ebp - 0x450]
mov dword [ebp - 0x44c], ebx
push eax
push 0
push 0x104c
push esi
mov dword [ebp - 0x488], edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x48c]
push eax
push 0
push 0x104c
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 4
Function at 0x4395a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov ebx, ecx
push 0
push 0
mov dword [ebp - 0x64], 0
mov eax, dword [eax + 0x10]
movzx edi, word [eax + 0x40]
mov esi, dword [eax + 0x44]
mov eax, dword [ebx]
add eax, edi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call sym.SystemInformer.exe_PhCreateString3
push edi
push esi
mov dword [ebp - 0x64], eax
push dword [eax + 4]
call fcn.005831c0
add esp, 0xc
push dword [ebx]
push dword [ebx + 4]
mov ebx, dword [ebp - 0x64]
mov eax, dword [ebx + 4]
add eax, edi
push eax
call fcn.005831c0
add esp, 0xc
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push 0x20
push 4
push dword [0x6337d4]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x60], 0x48
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor ecx, ecx
mov edx, 0x20007
cmp dword [0x62dbb0], 0x71
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 4], 1
mov dword [ebp - 0x1c], eax
jb 0x4396e2
mov dword ds:[ebp - 0xc], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x111000
mov dword [ebp - 0x14], 0x10000101
mov dword [ebp - 0x10], 0x1110
push 0x10
jmp 0x4396f5
mov dword [ebp - 0x10], 0x111000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0x10000101
push 8
push ecx
mov ecx, eax
call fcn.004fb6a0
lea ecx, [ecx]
test eax, eax
jns 0x439718
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0x180
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push dword [ebx + 4]
push 0
call sym.SystemInformer.exe_PhCreateProcessWin32Ex
mov esi, eax
test esi, esi
js 0x439746
push 0
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
lfence
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43975f
push eax
push 0
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x439772
call fcn.004fbfa0
mov ecx, dword ds:[ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x458040
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x633cd0]
push esi
push edi
mov edi, ecx
cmp edi, ebx
je 0x45812d
mov dword [0x633cd0], edi
test ebx, ebx
je 0x458098
mov esi, dword ds:[ebx + 0xc]
mov ecx, esi
push 0
push edi
push 3
push ebx
call dword [0x5a38e4]
call esi
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x458098
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x34], 0
jne 0x4580fa
mov esi, dword ds:[edi + 0xc]
xor eax, eax
push eax
mov dword [ebp - 0x18], eax
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 5
push edi
call dword [0x5a38e4]
call esi
test al, al
je 0x4580fa
cmp byte [ebp - 0x18], 0
jne 0x4580fa
push dword [ebp - 8]
mov ecx, dword [0x633c00]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00508f40
movzx ecx, byte [0x633156]
push ecx
push eax
mov dword [edi + 0x34], eax
call sym.SystemInformer.exe_PhInitializeWindowTheme
mov eax, dword ds:[edi + 0x34]
test eax, eax
je 0x45810d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.004581a0
call fcn.00458280
mov esi, dword [edi + 0xc]
mov ecx, esi
push 0
push 0
push 2
push edi
call dword [0x5a38e4]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x476220
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.004760e0
test al, al
je 0x476245
mov esi, str.Do_you_want_to_restore_the_default_Windows_Task_Manager_
jmp 0x47625e
mov edx, str.Changing_the_default_Task_Manager
mov ecx, edi
mov esi, str.Do_you_want_to_make_System_Informer_the_default_Windows_Task_Manager_
call fcn.00477860
test al, al
je 0x476430
push esi
push 0x5c9adc
push 0xfffd
push 6
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x14
cmp eax, 6
jne 0x476430
push 0
push 0
push 0x80
push 0x62ecd8
push 0xfffffffffffffffd
push 0x2001f
lea eax, [ebp - 8]
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
or ebx, 0xffffffff
test esi, esi
js 0x47636e
call fcn.004760e0
test al, al
je 0x47630a
mov ecx, dword [0x62ef20]
mov word [ebp - 0x10], cx
lea eax, [ecx + 2]
mov word [ebp - 0xe], ax
mov eax, dword [str.Debugger]
mov dword [ebp - 0xc], eax
cmp ecx, 0xfffe
jbe 0x4762f4
push dword ds:[ebp - 8]
mov esi, 0xc0000106
call dword [sym.imp.ntdll.dll_NtClose]
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x4763c5
lea eax, ds:[ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
jmp 0x47635c
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47635c
push 0x62f038
push eax
push 0x62f038
call sym.SystemInformer.exe_PhConcatStringRef3
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov ecx, dword ds:[eax]
add ecx, 2
push ecx
push dword [eax + 4]
push 1
push 0x62ef20
push dword [ebp - 8]
call sym.SystemInformer.exe_PhSetValueKey
mov ecx, dword [ebp - 0xc]
mov esi, eax
add ecx, 0xfffffff8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47635c
call fcn.004fbfa0
push dword ds:[ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x47641c
cmp esi, 0xc0000022
je 0x4763a3
cmp esi, 0xc0000005
je 0x4763a3
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x476391
movzx eax, si
jmp 0x4763ad
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x4763b1
mov eax, esi
jmp 0x4763ad
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x4763bc
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x4763c5
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x476407
lfence
lfence
push dword [esi + 4]
push 0x5cd020
push str.Unable_to_replace_Task_Manager
push 0xfffe
push 0x20
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x47641c
lfence
call fcn.004fbfa0
jmp 0x47641c
push str.Unable_to_replace_Task_Manager
push 0x5cd020
push 0x10
push edi
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
mov eax, dword [0x632c7c]
test eax, eax
je 0x476430
cmp dword [eax], 0
je 0x476430
push eax
call sym.SystemInformer.exe_PhSaveSettings
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x47e940
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x62dbb0], 0xffffffff
push ebx
push esi
mov esi, dword [0x636540]
mov ebx, edx
push edi
mov edi, ecx
jae 0x47e96d
cmp esi, 0x40
jae 0x47e96d
lfence
mov eax, dword fs:[0x18]
mov eax, dword [eax + esi*4 + 0xe10]
jmp 0x47e974
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov esi, dword [ecx + 0x1c]
add edx, esi
add eax, edx
cmp eax, edx
jb 0x47e99f
cmp edx, esi
jb 0x47e99f
cmp eax, dword [ecx + 0x20]
ja 0x47e99f
lea ecx, [ebx - 1]
test edx, ecx
jne 0x47e99f
pop edi
pop esi
lfence
mov eax, edx
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x494760
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
mov esi, ecx
push edi
test byte [esi + 0x3a8], 8
jne 0x494858
mov eax, dword [esi + 0x3d0]
lea edi, [esi + 0x3d0]
mov dword [edi], 0
test eax, eax
je 0x4947a5
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4947a5
mov edi, edi
call fcn.004fbfa0
mov eax, dword [esi + 0x54]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x494851
test dword ds:[eax + 0x7c], 0x8000
jne 0x494851
mov ecx, dword [esi + 0x3cc]
test ecx, ecx
jne 0x494830
mov eax, dword [esi + 0x50]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x1d], 1
mov dword [esp + 0xc], edx
test edx, edx
je 0x494809
cmp dword [0x62dbb0], 0x3e
jb 0x494809
mov ecx, edx
call fcn.00509e20
mov byte [esp + 0x1c], al
lea eax, [esp + 0x10]
push eax
push 0x509a60
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x10]
cmovne ecx, eax
mov dword [esi + 0x3cc], ecx
test ecx, ecx
je 0x494851
push edi
push 1
push ecx
call sym.SystemInformer.exe_PhGetWindowTextEx
push dword ds:[esi + 0x3cc]
call dword [sym.imp.USER32.dll_IsHungAppWindow]
test eax, eax
setne al
mov byte [esi + 0x3d4], al
or dword [esi + 0x3a8], 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b8700
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004b8660
push dword [0x6336a0]
push 0xc
call sym.SystemInformer.exe_PhCreateObject
push 0x28
mov esi, eax
push 4
push dword [0x6337d4]
mov dword [esi], 0
mov dword [esi + 4], 0xa
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 8], eax
mov dword [ebp - 0xc], esi
call fcn.0050b8e0
mov dword ds:[ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x4b85c0
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push eax
call dword [sym.imp.USER32.dll_EnumDesktopsW]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp dword [eax], esi
jbe 0x4b87d6
mov eax, dword ds:[eax + 8]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4b8789
mov eax, dword [eax + 4]
jmp 0x4b878b
xor eax, eax
push eax
push 0
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b87ce
push 4
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp - 0xc]
push eax
push edi
push 0x151
mov ecx, dword [ecx + 8]
push ebx
mov ecx, dword [ecx + esi*4]
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, dword [eax]
jb 0x4b8776
or esi, 0xffffffff
lea ecx, [eax - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b87eb
call fcn.004fbfa0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4b87fe
call fcn.004fbfa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x4b9e20
Capabilities:
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
mov ecx, dword [edi + 0x30]
call fcn.004b9c00
test eax, eax
jns 0x4b9e5e
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
mov edi, edi
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov esi, eax
test esi, esi
jne 0x4b9e82
mov eax, 0xc0000229
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
push dword [edi + 0x28]
push dword [esi + 4]
push str.__s___ras___s_
call sym.SystemInformer.exe_PhFormatString
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4b9ea2
mov eax, dword ds:[ebx + 4]
jmp 0x4b9ea4
xor eax, eax
mov edx, dword [edi + 0x28]
lea ecx, [esp + 0xc]
push 0x5c9adc
push str.LocalSystem
push eax
push 0
push 3
push 0x10
push 0xf01ff
push edx
call fcn.00522140
lea ecx, [ebx - 8]
mov dword [esp + 0x1c], eax
or ebx, 0xffffffff
mov edx, ebx
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4b9ee5
jmp 0x4b9ee0
call fcn.004fbfa0
lea ecx, [esi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b9ef7
call fcn.004fbfa0
mov eax, dword ds:[esp + 0x1c]
test eax, eax
js 0x4b9e49
mov ebx, dword [esp + 0xc]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4b9f26
jmp 0x4b9f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4b9f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword ds:[edi + 0x28]
push str.BaseNamedObjects_
call sym.SystemInformer.exe_PhConcatStrings2
mov dword [esp + 0xc], eax
mov edi, 0x32
movzx ecx, word [eax]
mov word [esp + 0x24], cx
movzx ecx, word [eax]
add cx, 2
mov word [esp + 0x26], cx
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
lea esp, [esp]
lea ecx, [esp + 0x24]
call fcn.0047c900
mov esi, eax
test esi, esi
jns 0x4b9f9d
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0xfff0bdc0
mov dword [esp + 0x14], 0xffffffff
call fcn.004fb180
sub edi, 1
jne 0x4b9f70
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b9fb4
call fcn.004fbfa0
test esi, esi
js 0x4b9fcd
mov edx, dword [esp + 0x20]
mov ecx, 0xc
call fcn.0047cbe0
mov esi, eax
call fcn.0047caa0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword ds:[esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x4c96e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 4], eax
push esi
push edi
push 0x800
push 0
push str.sechost.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4c9749
push 0x200
push eax
push str.sechost.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4c9749
cmp dword [0x62dbb0], 0x3e
jae 0x4c97d0
push eax
push eax
push str.sechost.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4c97d0
cmp byte [0x633154], 0
je 0x4c9783
cmp dword [0x62dbb0], 0x3e
jb 0x4c9783
push 0
mov edx, str.SubscribeServiceChangeNotifications
mov ecx, esi
call fcn.00525660
push 0
mov edx, str.UnsubscribeServiceChangeNotifications
mov dword [0x634a04], eax
mov ecx, esi
call fcn.00525660
mov dword [0x634e14], eax
jmp 0x4c97d0
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4c97c9
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4c97c9
cmp eax, 0x7fffffff
jae 0x4c97c9
cmp dword [eax + esi], 0x4550
jne 0x4c97c9
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4c97c9
cmp dword [edx + 4], 0
je 0x4c97c9
push 0
add eax, esi
mov ecx, esi
push str.NotifyServiceStatusChangeW
push eax
call fcn.00525800
jmp 0x4c97cb
xor eax, eax
mov dword [0x634a08], eax
mov byte [0x633b6d], 1
mov eax, 1
mov ecx, 0x634a00
xchg dword [ecx], eax
cmp dword [0x634a08], 0
je 0x4c97f8
push 0
push 0x4c8fa0
call sym.SystemInformer.exe_PhCreateThread2
cmp dword [0x634a04], 0
nop
je 0x4c985d
xor ecx, ecx
mov edi, 0x6355d4
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
jne 0x4c983e
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edx, eax
test edx, edx
je 0x4c983e
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
jne 0x4c9837
mov esi, edx
jmp 0x4c983e
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 8]
push eax
push 0
push 0x4c96a0
push 0
push esi
mov esi, dword [0x634a04]
mov ecx, esi
call dword [0x5a38e4]
call esi
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret