joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4112a0
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 0x4112dd
cmp dword [eax + 8], 0xffffff65
jne 0x4112dd
movzx eax, word ds:[eax + 0xc]
sub eax, 0x41
je 0x4112dd
sub eax, 2
jne 0x4112dd
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4112dd
push esi
call sym.SystemInformer.exe__PhCopyListView_4
pop esi
pop ecx
pop ebp
ret 8

Function at 0x411300
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 0x411367
cmp dword [eax + 8], 0xffffff65
jne 0x411367
movzx eax, word ds:[eax + 0xc]
sub eax, 0x41
je 0x41134a
sub eax, 2
jne 0x411367
test byte [ebp + 0x10], 1
je 0x411367
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x411367
push esi
call sym.SystemInformer.exe__PhCopyListView_4
pop esi
pop ebp
ret 0xc
test byte [ebp + 0x10], 2
je 0x411367
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x411367
push 2
push 2
push esi
call sym.SystemInformer.exe_PhSetStateAllListViewItems
pop esi
pop ebp
ret 0xc

Function at 0x411de0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62a040]
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 0x411ea6
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 0x411e9d
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 0x411e94
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 0x411edc
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.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x413740
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x62a040]
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 0x41379e
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.0057c26f
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
jne 0x4137d3
push 0
push 0
push esi
call sym.SystemInformer.exe__PhUiConnectToPhSvcEx_12
test al, al
jne 0x4137d3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0x62ae40
push 0xfffffffffffffff7
push 0x20006
lea eax, [esp + 0x54]
push eax
call sym.SystemInformer.exe_PhCreateKey
test eax, eax
js 0x4138d0
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.004f61c0
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 0x41386d
call fcn.004f9e40
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.004131a0
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 0x4138c6
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 0x4138e7
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.0057c26f
mov esp, ebp
pop ebp
ret 8
Function at 0x4184c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x62a040]
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 0x4185bb
lea eax, [ebp - 0x48c]
push eax
push 0
push 0x104b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
nop
test eax, eax
je 0x4185bb
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.0057c26f
mov esp, ebp
pop ebp
ret 4
Function at 0x438860
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x62a040]
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 - 0xc], 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 - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call sym.SystemInformer.exe_PhCreateString3
push edi
push esi
mov dword [ebp - 0xc], eax
push dword [eax + 4]
call fcn.0057e5b0
add esp, 0xc
push dword [ebx]
push dword [ebx + 4]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 4]
add eax, edi
push eax
call fcn.0057e5b0
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 [0x631034]
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 [0x62abb0], 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 0x4389a2
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 0x4389b5
mov dword [ebp - 0x10], 0x111000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0x10000101
push 8
push ecx
mov ecx, eax
call fcn.004f95e0
lea ecx, [ecx]
test eax, eax
jns 0x4389d8
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057c26f
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 0x438a06
push 0
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
lfence
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x438a1f
push eax
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x438a32
call fcn.004f9e40
mov ecx, dword ds:[ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x457160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x631530]
push esi
push edi
mov edi, ecx
cmp edi, ebx
je 0x45724d
mov dword [0x631530], edi
test ebx, ebx
je 0x4571b8
mov esi, dword ds:[ebx + 0xc]
mov ecx, esi
push 0
push edi
push 3
push ebx
call dword [0x5a08ec]
call esi
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4571b8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x34], 0
jne 0x45721a
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 [0x5a08ec]
call esi
test al, al
je 0x45721a
cmp byte [ebp - 0x18], 0
jne 0x45721a
push dword [ebp - 8]
mov ecx, dword [0x631460]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00506de0
movzx ecx, byte [0x6309b7]
push ecx
push eax
mov dword [edi + 0x34], eax
call sym.SystemInformer.exe_PhInitializeWindowTheme
mov eax, dword ds:[edi + 0x34]
test eax, eax
je 0x45722d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.004572c0
call fcn.004573a0
mov esi, dword [edi + 0xc]
mov ecx, esi
push 0
push 0
push 2
push edi
call dword [0x5a08ec]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x4751e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.004750a0
test al, al
je 0x475205
mov esi, str.Do_you_want_to_restore_the_default_Windows_Task_Manager_
jmp 0x47521e
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.00476800
test al, al
je 0x4753d0
push esi
push 0x5c6aec
push 0xfffd
push 6
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x14
cmp eax, 6
jne 0x4753d0
push 0
push 0
push 0x80
push 0x62bcd8
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 0x47530e
call fcn.004750a0
test al, al
je 0x4752aa
mov ecx, dword [0x62bf20]
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 0x475299
mov esi, 0xc0000106
jmp 0x4752fc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
jmp 0x4752fc
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4752fc
push 0x62c038
push eax
push 0x62c038
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 0x62bf20
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 0x4752fc
call fcn.004f9e40
push dword ds:[ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x4753bc
cmp esi, 0xc0000022
je 0x475343
cmp esi, 0xc0000005
je 0x475343
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x475331
movzx eax, si
jmp 0x47534d
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x475351
mov eax, esi
jmp 0x47534d
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x47535c
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x475365
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x4753a7
lfence
lfence
push dword [esi + 4]
push 0x5ca058
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 0x4753bc
lfence
call fcn.004f9e40
jmp 0x4753bc
push str.Unable_to_replace_Task_Manager
push 0x5ca058
push 0x10
push edi
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
mov eax, dword [0x6304dc]
test eax, eax
je 0x4753d0
cmp dword [eax], 0
je 0x4753d0
push eax
call sym.SystemInformer.exe_PhSaveSettings
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x47d880
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x62abb0], 0xffffffff
push ebx
push esi
mov esi, dword [0x633dc0]
mov ebx, edx
push edi
mov edi, ecx
jae 0x47d8ad
cmp esi, 0x40
jae 0x47d8ad
lfence
mov eax, dword fs:[0x18]
mov eax, dword [eax + esi*4 + 0xe10]
jmp 0x47d8b4
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 0x47d8df
cmp edx, esi
jb 0x47d8df
cmp eax, dword [ecx + 0x20]
ja 0x47d8df
lea ecx, [ebx - 1]
test edx, ecx
jne 0x47d8df
pop edi
pop esi
lfence
mov eax, edx
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x493660
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 0x493758
mov eax, dword [esi + 0x3d0]
lea edi, [esi + 0x3d0]
mov dword [edi], 0
test eax, eax
je 0x4936a5
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4936a5
mov edi, edi
call fcn.004f9e40
mov eax, dword [esi + 0x54]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x493751
test dword ds:[eax + 0x7c], 0x8000
jne 0x493751
mov ecx, dword [esi + 0x3cc]
test ecx, ecx
jne 0x493730
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 0x493709
cmp dword [0x62abb0], 0x3e
jb 0x493709
mov ecx, edx
call fcn.00507cc0
mov byte [esp + 0x1c], al
lea eax, [esp + 0x10]
push eax
push 0x507900
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 0x493751
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 0x4b7060
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004b6fc0
push dword [0x630f00]
push 0xc
call sym.SystemInformer.exe_PhCreateObject
push 0x28
mov esi, eax
push 4
push dword [0x631034]
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.00509660
mov dword ds:[ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x4b6f20
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 0x4b7136
mov eax, dword ds:[eax + 8]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4b70e9
mov eax, dword [eax + 4]
jmp 0x4b70eb
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 0x4b712e
push 4
push 4
push dword [0x631034]
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 0x4b70d6
or esi, 0xffffffff
lea ecx, [eax - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b714b
call fcn.004f9e40
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4b715e
call fcn.004f9e40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x4b8680
Capabilities:
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x62a040]
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.004b84a0
test eax, eax
jns 0x4b86be
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
mov edi, edi
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov esi, eax
test esi, esi
jne 0x4b86e2
mov eax, 0xc0000229
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0057c26f
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 0x4b8702
mov eax, dword ds:[ebx + 4]
jmp 0x4b8704
xor eax, eax
mov edx, dword [edi + 0x28]
lea ecx, [esp + 0xc]
push 0x5c6aec
push str.LocalSystem
push eax
push 0
push 3
push 0x10
push 0xf01ff
push edx
call fcn.0051f400
lea ecx, [ebx - 8]
mov dword [esp + 0x1c], eax
or ebx, 0xffffffff
mov edx, ebx
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4b8745
jmp 0x4b8740
call fcn.004f9e40
lea ecx, [esi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b8757
call fcn.004f9e40
mov eax, dword ds:[esp + 0x1c]
test eax, eax
js 0x4b86a9
mov ebx, dword [esp + 0xc]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4b8786
jmp 0x4b8780
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4b8797
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.0047b7e0
mov esi, eax
test esi, esi
jns 0x4b87fd
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0xfff0bdc0
mov dword [esp + 0x14], 0xffffffff
call fcn.004f90e0
sub edi, 1
jne 0x4b87d0
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b8814
call fcn.004f9e40
test esi, esi
js 0x4b882d
mov edx, dword [esp + 0x20]
mov ecx, 0xc
call fcn.0047bac0
mov esi, eax
call fcn.0047b980
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.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x4c7fa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x62a040]
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 0x4c8009
push 0x200
push eax
push str.sechost.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4c8009
cmp dword [0x62abb0], 0x3e
jae 0x4c8090
push eax
push eax
push str.sechost.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4c8090
cmp byte [0x6309b5], 0
je 0x4c8043
cmp dword [0x62abb0], 0x3e
jb 0x4c8043
push 0
mov edx, str.SubscribeServiceChangeNotifications
mov ecx, esi
call fcn.00522940
push 0
mov edx, str.UnsubscribeServiceChangeNotifications
mov dword [0x632264], eax
mov ecx, esi
call fcn.00522940
mov dword [0x632674], eax
jmp 0x4c8090
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4c8089
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4c8089
cmp eax, 0x7fffffff
jae 0x4c8089
cmp dword [eax + esi], 0x4550
jne 0x4c8089
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4c8089
cmp dword [edx + 4], 0
je 0x4c8089
push 0
add eax, esi
mov ecx, esi
push str.NotifyServiceStatusChangeW
push eax
call fcn.00522ae0
jmp 0x4c808b
xor eax, eax
mov dword [0x632268], eax
mov byte [0x6313cc], 1
mov eax, 1
mov ecx, 0x632260
xchg dword [ecx], eax
cmp dword [0x632268], 0
je 0x4c80b8
push 0
push 0x4c7820
call sym.SystemInformer.exe_PhCreateThread2
cmp dword [0x632264], 0
nop
je 0x4c811d
xor ecx, ecx
mov edi, 0x632e34
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
jne 0x4c80fe
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edx, eax
test edx, edx
je 0x4c80fe
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
jne 0x4c80f7
mov esi, edx
jmp 0x4c80fe
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 8]
push eax
push 0
push 0x4c7f20
push 0
push esi
mov esi, dword [0x632264]
mov ecx, esi
call dword [0x5a08ec]
call esi
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret