joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb7c0
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
test ecx, ecx
mov byte [ebp - 8], 0
mov ebx, str.KProcessHacker3
mov byte [ebp - 1], 0
push edi
cmovne ebx, ecx
call fcn.004cb620
mov esi, eax
test esi, esi
jns 0x4cb976
cmp esi, 0xc000020a
je 0x4cb976
jmp 0x4cb800
cmp esi, 0xc000000e
je 0x4cb834
cmp esi, 0xc000000f
je 0x4cb834
cmp esi, 0xc0000034
je 0x4cb834
jmp 0x4cb820
cmp esi, 0xc000003a
je 0x4cb834
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
lfence
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4cb899
push 0x10
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4cb886
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ecx, dword ds:[ebp - 8]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
push edi
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [ebp - 8], 0
jne 0x4cb953
mov edi, dword ds:[ebp + 8]
push edi
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x4cb974
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword ds:[ebp - 0xc], eax
test eax, eax
je 0x4cb974
push 0x54a060
push 0
push 0
push 0
push 0
push edi
push 0
push 3
push 1
push 0xf01ff
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x4cb92f
mov ecx, edi
mov byte [ebp - 1], 1
call fcn.004cbbe0
mov edx, dword ds:[ebp + 0xc]
test edx, edx
je 0x4cb911
mov ecx, ebx
call fcn.004cb980
mov esi, eax
test esi, esi
js 0x4cb966
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
lea esp, [esp]
test eax, eax
je 0x4cb92f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4cb953
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4cb944
movzx esi, si
or esi, 0xc0070000
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [ebp - 8], 0
je 0x4cb95a
call fcn.004cb620
mov esi, eax
cmp byte ds:[ebp - 1], 0
je 0x4cb974
test edi, edi
je 0x4cb974
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cb980
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov dword [ebp - 0x288], 0
test ecx, ecx
mov dword [ebp - 0x258], 1
mov edx, str.KProcessHacker3
mov dword [ebp - 0x248], 0x44
cmovne edx, ecx
mov dword [ebp - 0x244], str.SystemCurrentControlSetServices_
mov ecx, edx
mov dword [ebp - 0x240], 1
lea esi, [ecx + 2]
jmp 0x4cb9e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cb9e0
sub ecx, esi
mov dword [ebp - 0x22c], edx
sar ecx, 1
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x218], 0x16
mov dword [ebp - 0x214], str.Parameters
lea eax, [ecx + ecx]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x294]
push eax
push 0x208
lea eax, [ebp - 0x210]
push eax
push 3
lea eax, [ebp - 0x258]
push eax
call sym.ProcessHacker.exe_PhFormatToBuffer
lea ecx, [ecx]
test al, al
jne 0x4cba59
mov eax, 0xc0000001
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x294]
add eax, 0xfffffffe
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x298]
push eax
push 0
push 0
lea eax, [ebp - 0x290]
push eax
push 0xfffffffffffffffd
push 0x30006
lea eax, [ebp - 0x288]
push eax
call sym.ProcessHacker.exe_PhCreateKey
test eax, eax
jns 0x4cbab0
lfence
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
push str.SecurityLevel
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [ebp - 0x28c], str.SecurityLevel
mov word [ebp - 0x290], ax
lea ecx, [eax + 2]
mov word [ebp - 0x28e], cx
cmp eax, 0xfffe
jbe 0x4cbae8
mov esi, 0xc0000106
jmp 0x4cbb98
push 4
push edi
push 4
push 0
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
js 0x4cbb98
cmp byte [edi + 4], 0
je 0x4cbbae
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x284], 3
mov dword [ebp - 0x280], 1
call fcn.0050f5a0
test eax, eax
js 0x4cbbae
push str.DynamicConfiguration
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [ebp - 0x28c], str.DynamicConfiguration
mov word [ebp - 0x290], ax
lea ecx, [eax + 2]
mov word [ebp - 0x28e], cx
cmp eax, 0xfffe
jbe 0x4cbb72
mov esi, 0xc0000106
jmp 0x4cbb98
push 0x2c
lea eax, [ebp - 0x284]
push eax
push 3
push 0
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
jns 0x4cbbae
cmp dword ds:[ebp - 0x298], 1
jne 0x4cbbae
push dword [ebp - 0x288]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp - 0x288]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x4cbd00
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 2
xor esi, esi
mov edi, edx
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4cbd3d
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4cbe16
movzx eax, ax
or eax, 0xc0070000
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x54a060
push 0
push 0
push 0
push 0
push edi
push 0
push 1
push 1
push 0xf01ff
push str.KProcessHacker3
push str.KProcessHacker3
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x4cbdf6
mov ecx, edi
call fcn.004cbbe0
mov edx, dword [ebp + 8]
test edx, edx
je 0x4cbdb6
mov ecx, str.KProcessHacker3
call fcn.004cb980
mov esi, eax
test esi, esi
jns 0x4cbdb6
push edi
lfence
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4cbddf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4cbddf
movzx esi, si
or esi, 0xc0070000
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4cbe0d
movzx esi, si
or esi, 0xc0070000
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4cbe20
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4cbe6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4cbedf
movzx eax, ax
pop esi
or eax, 0xc0070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
push edi
push 0x10020
push str.KProcessHacker3
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4cbebe
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4cbeb5
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4cbeb5
movzx esi, si
or esi, 0xc0070000
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4cbed5
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4cbed5
movzx esi, si
or esi, 0xc0070000
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x4cf7a0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
jne 0x4cf7d3
mov eax, dword [sym.ProcessHacker.exe_WindowsVersion]
cmp eax, 0x66
jb 0x4cf7c2
mov esi, 0x3ff
jmp 0x4cf7d3
cmp eax, 0x64
sbb esi, esi
and esi, 0xfffffe3c
add esi, 0x1ff
mov eax, dword [ebp + 0x10]
mov ecx, 3
mov edi, dword [0x5affdc]
test eax, eax
push edi
push 4
push dword [0x5b1dac]
cmovne ecx, eax
mov dword [ebp - 8], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp - 8]
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x4cf891
jmp 0x4cf820
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4cf871
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, dword [ebp - 4]
push edi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp - 8]
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x4cf891
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x5affdc]
cmp edi, 0x20000
mov ecx, dword [ebp + 0x14]
cmovbe eax, edi
mov dword [0x5affdc], eax
mov eax, dword [ebp - 0xc]
pop edi
mov dword [ecx], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4d1560
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 2
push 0
push 1
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xffffffffffffffff
push ecx
mov esi, edx
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x4d15a1
lfence
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 4]
push 0xffffffffffffffff
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
push dword [ebp - 4]
mov esi, eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d2fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call fcn.004d2d20
mov esi, eax
test esi, esi
je 0x4d3136
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jne 0x4d2ff4
push 0
push 1
push 0
push 0x1f0003
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, eax
test edi, edi
js 0x4d30d9
cmp dword [esi + 0x10], 0
lea edi, [esi + 0x10]
jne 0x4d301c
push 0
push 1
push 0
push 0x1f0003
push edi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, eax
test edi, edi
js 0x4d30d9
lea edi, [esi + 0x10]
cmp dword [esi + 0x14], 0
lea ebx, [esi + 0x14]
jne 0x4d306f
push dword [esi + 0xc]
call dword [sym.imp.ntdll.dll_NtClearEvent]
push dword [edi]
call dword [sym.imp.ntdll.dll_NtClearEvent]
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x4d2f40
push 0x8000
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test edi, edi
js 0x4d30d9
push 0
push 0
lfence
push dword [esi + 0x10]
lea edi, [esi + 0x10]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov eax, dword [ebp - 0xc]
push 0
push dword [esi + 0xc]
mov dword [esi + 4], 0x4d3160
mov dword [esi + 8], eax
call dword [sym.imp.ntdll.dll_NtSetEvent]
push dword [ebp - 8]
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
mov dword [esi + 4], 0
xor ecx, ecx
lea eax, [ebp - 8]
lock or dword [eax], ecx
mov dword [esi + 8], ecx
test edi, edi
je 0x4d30d9
push 0xc0000001
push dword [ebx]
call dword [sym.imp.ntdll.dll_NtTerminateThread]
push 0
push 0
push dword [ebx]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push dword [ebx]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx], 0
mov edi, 0xc0000001
push esi
push 0x5b3a38
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
cmp dword [0x5b3e4c], 0
je 0x4d313b
xor ecx, ecx
mov eax, 0x5b3e4c
xchg dword [eax], ecx
test ecx, ecx
je 0x4d313b
lea esp, [esp]
mov esi, dword [ecx]
lea eax, [ecx + 0x10]
lock btr dword [eax], 1
jb 0x4d3124
push 0
push 0
push ecx
push dword [0x5b38f8]
call dword [sym.imp.ntdll.dll_NtReleaseKeyedEvent]
lea ecx, [ecx]
test eax, eax
js 0x4d312c
mov ecx, esi
test esi, esi
jne 0x4d3100
jmp 0x4d313b
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov edi, 0xc0000001
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8
Function at 0x4d4540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
push edi
push dword [0x5b1d5c]
mov edi, ecx
mov dword [ebp - 0xc], esi
lea eax, [esi*4]
mov dword [ebp - 0x10], edi
push eax
call sym.ProcessHacker.exe_PhCreateObject
push eax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
xor ebx, ebx
mov dword [ebp - 8], eax
test esi, esi
je 0x4d4677
mov ecx, dword [ebp + 8]
lea eax, [ecx*4]
mov dword [ebp - 4], eax
jmp 0x4d4590
push dword [0x5b1d5c]
push eax
call sym.ProcessHacker.exe_PhCreateObject
push dword [0x5b3864]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
je 0x4d4641
mov eax, dword [esi]
cmp eax, 0x40
jae 0x4d45c3
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x4d4641
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x4d45f2
push 0x100
push 4
push dword [0x5b1dac]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10c], eax
mov ecx, eax
mov eax, dword ds:[esi + 0x104]
mov edx, dword [esi + 0x108]
cmp eax, edx
jne 0x4d4638
lea eax, ds:[edx + edx]
mov dword [esi + 0x108], eax
shl eax, 2
push eax
push ecx
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x104]
mov ecx, dword [esi + 0x10c]
mov dword [ecx + eax*4], edi
inc dword [esi + 0x104]
push dword [ebp - 4]
mov esi, dword [ebp - 8]
push 0
push edi
mov dword [esi + ebx*4], edi
call fcn.0051fd40
mov eax, dword ds:[ebp - 4]
inc ebx
add esp, 0xc
cmp ebx, dword [ebp - 0xc]
jb 0x4d4590
mov eax, dword [ebp - 0x10]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword ds:[edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d8960
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
movzx eax, word [ecx]
mov word [ebp - 0x18], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [ebp - 0x16], ax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
jbe 0x4d8996
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004d85a0
lea ecx, ds:[ebp - 4]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
js 0x4d8ad3
mov edx, dword ds:[ecx]
cmp edx, 7
je 0x4d8ace
cmp edx, 8
je 0x4d8ace
cmp dword [ebp + 0xc], 0
je 0x4d8a35
push dword ds:[ecx + 4]
call dword [sym.imp.ntdll.dll_RtlLengthSid]
mov ecx, dword [ebp - 4]
mov ebx, eax
push ebx
push 4
push dword [0x5b1dac]
mov edi, dword [ecx + 4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebx
mov esi, eax
push edi
push esi
call fcn.00521a30
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov dword [eax], esi
mov edi, dword ds:[ebp + 0x10]
test edi, edi
je 0x4d8ac1
mov eax, dword [ecx + 8]
test eax, eax
js 0x4d8ab7
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
lea ecx, [eax + ecx*4]
movzx eax, word [ecx]
mov dword [ebp - 0xc], eax
test ax, ax
jne 0x4d8a71
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
mov dword [edi], esi
jmp 0x4d8abe
push dword [0x5b1d70]
mov ecx, dword [ecx + 4]
movzx eax, ax
add eax, 0xa
mov dword [ebp - 0x10], ecx
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 0xc]
movzx ecx, ax
lea eax, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4d8ab3
push ecx
push eax
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
mov dword [edi], esi
jmp 0x4d8abe
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4d8ad3
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x4d8ad3
mov ebx, 0xc0000073
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d8ae9
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4d8af4
push ecx
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4f7100
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [ebp + 0x14]
test bl, 1
je 0x4f7143
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetOwnerSecurityDescriptor]
test eax, eax
mov ecx, 1
cmovns esi, ecx
test bl, 2
je 0x4f715e
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetGroupSecurityDescriptor]
test eax, eax
js 0x4f715e
or esi, 2
mov eax, ebx
and eax, 4
mov dword [ebp - 0x1c], eax
je 0x4f7188
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 2]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetDaclSecurityDescriptor]
test eax, eax
js 0x4f7188
cmp byte [ebp - 2], 0
je 0x4f7188
or esi, 4
and ebx, 8
je 0x4f71b3
lea eax, ds:[ebp - 1]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 2]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetSaclSecurityDescriptor]
test eax, eax
js 0x4f71b3
cmp byte [ebp - 2], 0
je 0x4f71b3
or esi, 8
cmp dword [ebp + 0xc], 1
jne 0x4f7215
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetControlSecurityDescriptor]
test eax, eax
js 0x4f7215
cmp dword [ebp - 0x1c], 0
mov cx, word [ebp - 8]
je 0x4f71f5
movzx eax, cx
test eax, 0x1000
je 0x4f71ef
or esi, 0x80000000
jmp 0x4f71f5
or esi, 0x20000000
test ebx, ebx
je 0x4f7215
movzx eax, cx
test eax, 0x2000
je 0x4f720f
or esi, 0x40000000
jmp 0x4f7215
or esi, 0x10000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4f7245
jle 0x4f7247
movzx eax, ax
or eax, 0xc0070000
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4fa980
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, ecx
mov edi, edx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4faaad
push str.BinaryData
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x4fa9c9
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x4faaa7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edx, dword [edi + 0x18]
mov ecx, eax
mov esi, edx
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
cmp edx, dword [edi + 0x1c]
jle 0x4fa9fa
mov esi, dword [edi + 0x1c]
mov dword [edi + 0x1c], edx
mov dword [edi + 0x18], esi
jmp 0x4fa9fd
mov edx, dword [edi + 0x1c]
test byte [edi + 0x28], 0x10
je 0x4faa58
cmp esi, 0xffffffff
jne 0x4faa2a
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x4faa16
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
push ecx
mov ecx, dword [ebp - 4]
mov edx, edi
push esi
call fcn.004faba0
mov ecx, dword [ebp - 8]
jmp 0x4faa75
mov ecx, dword [ebp - 4]
push edx
push esi
mov edx, edi
call fcn.004faac0
push dword ds:[ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, edi
push esi
call fcn.004faba0
mov ecx, dword [ebp - 4]
mov edx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004fa5c0
mov ecx, dword [ebp - 8]
jmp 0x4faa75
cmp esi, 0xffffffff
jne 0x4faa6b
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x4faa6b
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov eax, dword [edi + 4]
sub eax, esi
cmp ecx, eax
cmova ecx, eax
mov eax, dword ds:[edi]
push ecx
push dword [ebp - 0xc]
add eax, esi
push eax
call fcn.00521a30
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
push 0x105
push 0
push 0
push dword [ebp - 4]
mov dword [edi + 0x10], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret