joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b27c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
mov ebx, 0x10
push esi
push edi
test ecx, ecx
je 0x4b27ff
movzx eax, word [ecx]
mov word [ebp - 0xc], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [ebp - 0xa], ax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
jbe 0x4b2807
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0x100
push 4
push dword [0x54b674]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x4b2870
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0x80000005
jne 0x4b2875
push dword [ebp - 4]
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
jne 0x4b2823
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4b2e70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4b2e88
mov eax, dword [edi + 4]
jmp 0x4b2e8a
xor eax, eax
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov esi, eax
test esi, esi
js 0x4b2f15
push 0
push 0
push 0x21
push 1
push 5
push 0x80
lea eax, [esp + 0x30]
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x50], eax
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
push 0x130089
lea eax, [esp + 0x3c]
mov dword [esp + 0x64], 0x40
push eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov esi, eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov ebx, dword [esp + 0x14]
test esi, esi
cmovns ebx, dword [esp + 0x14]
jmp 0x4b2f19
mov ebx, dword [esp + 0x14]
test esi, esi
js 0x4b2f4e
push edi
push 0x4b2cf0
push 0
push ebx
call sym.ProcessHacker.exe_PhEnumDirectoryFile
push 0xd
push 1
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 1
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push ebx
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x4b2f57
mov eax, dword [edi + 4]
jmp 0x4b2f59
xor eax, eax
push eax
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
xor ecx, ecx
test al, al
pop edi
cmove esi, ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b3170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x10], 0
push str.DeviceNamedPipe_
call sym.ProcessHacker.exe_PhConcatStrings2
mov edi, eax
lea eax, [esp + 0x18]
movzx ecx, word [edi]
mov word [esp + 0x18], cx
movzx ecx, word [edi]
add cx, 2
mov word [esp + 0x1a], cx
mov ecx, dword [edi + 4]
mov dword [esp + 0x50], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0xffb3b4c0
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call dword [sym.imp.ntdll.dll_RtlDefaultNpAcl]
test eax, eax
js 0x4b3224
push 1
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
push 0
push dword [esp + 0x10]
lea eax, [esp + 0x3c]
push 1
push eax
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
lea eax, [esp + 0x34]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x20]
push eax
push 0x1000
push 0x1000
push 0xffffffffffffffff
push 0
push 1
push 1
push 0x22
push 3
push 3
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x74]
push eax
push 0x12019f
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.ntdll.dll_NtCreateNamedPipeFile]
mov esi, eax
test esi, esi
js 0x4b326a
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [edx], ecx
cmp dword [esp + 0xc], 0
je 0x4b3289
mov eax, dword fs:[0x18]
push dword [esp + 0xc]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b329c
call fcn.004a2a20
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4b3760
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
push 0
push 0x200
lea eax, [ebp - 0x244]
mov dword [ebp - 0x44], 1
push eax
push 2
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], 0x10
mov edi, edx
mov dword [ebp - 0x30], str.Device_
xor bl, bl
mov dword [ebp - 0xc], edi
push eax
mov byte [ebp - 5], bl
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x18], str.KProcessHacker3
call sym.ProcessHacker.exe_PhFormatToBuffer
test al, al
jne 0x4b37cb
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x244]
call fcn.004b3680
mov esi, eax
test esi, esi
jns 0x4b3939
cmp esi, 0xc000020a
je 0x4b3939
cmp esi, 0xc000000e
je 0x4b3810
cmp esi, 0xc000000f
je 0x4b3810
cmp esi, 0xc0000034
je 0x4b3810
cmp esi, 0xc000003a
jne 0x4b3939
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4b386a
push 0x10
push str.KProcessHacker3
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4b3856
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
movzx ebx, bl
mov ecx, 1
push edi
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
jne 0x4b3912
mov edi, dword [ebp - 0xc]
push edi
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x4b3937
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4b3937
push 0x5077f0
push 0
push 0
push 0
push 0
push edi
push 0
push 3
push 1
push 0xf01ff
push str.KProcessHacker3
push str.KProcessHacker3
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x4b38f0
mov ecx, edi
mov byte [ebp - 5], 1
call fcn.004b3a50
mov edx, dword [ebp + 8]
test edx, edx
je 0x4b38dd
call fcn.004b3950
mov esi, eax
test esi, esi
js 0x4b3925
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4b38f0
mov bl, 1
jmp 0x4b3905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4b3905
movzx esi, si
or esi, 0xc0070000
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
je 0x4b391f
lea ecx, [ebp - 0x244]
call fcn.004b3680
mov esi, eax
cmp byte [ebp - 5], 0
je 0x4b3937
test edi, edi
je 0x4b3937
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 4
Function at 0x4b3950
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push str.Parameters
push str.KProcessHacker3
push str.SystemCurrentControlSetServices_
push 3
mov ebx, edx
mov dword [ebp - 4], 0
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x10
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push esi
push 0xfffffffffffffffd
push 0x30006
lea eax, [ebp - 4]
push eax
call sym.ProcessHacker.exe_PhCreateKey
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4b39ab
call fcn.004a2a20
test edi, edi
jns 0x4b39b8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push ebx
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1c001a
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], str.SecurityLevel
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
js 0x4b3a2b
cmp byte [ebx + 4], 0
je 0x4b3a27
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], 0x2a0028
mov dword [ebp - 0x10], str.DynamicConfiguration
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x3c], 1
call fcn.004d50e0
test eax, eax
js 0x4b3a27
push 0x2c
lea eax, [ebp - 0x40]
push eax
push 3
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
jns 0x4b3a3a
cmp dword [ebp - 8], 1
jne 0x4b3a3a
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3b50
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 0x4b3b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4b3c47
movzx eax, ax
or eax, 0xc0070000
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5077f0
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 0x4b3c29
mov ecx, edi
call fcn.004b3a50
mov edx, dword [ebp + 8]
test edx, edx
je 0x4b3bee
call fcn.004b3950
mov esi, eax
test esi, esi
jns 0x4b3bee
push edi
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 0x4b3c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4b3c12
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 0x4b3c3e
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 0x4b6c60
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 0x4b6c92
mov eax, dword [sym.ProcessHacker.exe_WindowsVersion]
cmp eax, 0x66
jb 0x4b6c81
mov esi, 0x3ff
jmp 0x4b6c92
cmp eax, 0x64
sbb esi, esi
and esi, 0xfffffe3c
add esi, 0x1ff
mov eax, dword [ebp + 0x10]
mov ecx, 3
mov edi, dword [0x547d44]
test eax, eax
push edi
push 4
push dword [0x54b674]
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 0x4b6d45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4b6d2b
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, dword [ebp - 4]
push edi
push 4
push dword [0x54b674]
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 0x4b6d45
push ebx
push 0
push dword [0x54b674]
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 [0x547d44]
cmp edi, 0x20000
mov ecx, dword [ebp + 0x14]
cmovbe eax, edi
mov dword [0x547d44], 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 0x4b8240
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
js 0x4b8292
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 0x4b9b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
call fcn.004b99a0
mov edi, eax
test edi, edi
je 0x4b9ccd
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jne 0x4b9bc0
push 0
push 1
push 0
push 0x1f0003
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov esi, eax
test esi, esi
js 0x4b9ca1
cmp dword [edi + 0x10], 0
lea esi, [edi + 0x10]
jne 0x4b9be8
push 0
push 1
push 0
push 0x1f0003
push esi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov esi, eax
test esi, esi
js 0x4b9ca1
lea esi, [edi + 0x10]
cmp dword [edi + 0x14], 0
lea ebx, [edi + 0x14]
jne 0x4b9c38
push dword [edi + 0xc]
call dword [sym.imp.ntdll.dll_NtClearEvent]
push dword [esi]
call dword [sym.imp.ntdll.dll_NtClearEvent]
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x4b9b40
push 0x8000
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov esi, eax
test esi, esi
js 0x4b9ca1
push 0
push 0
push dword [edi + 0x10]
lea esi, [edi + 0x10]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov eax, dword [ebp - 4]
push 0
push dword [edi + 0xc]
mov dword [edi + 4], 0x4b9ce0
mov dword [edi + 8], eax
call dword [sym.imp.ntdll.dll_NtSetEvent]
push dword [ebp + 0xc]
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
mov dword [edi + 4], 0
xor ecx, ecx
lea eax, [ebp - 4]
lock or dword [eax], ecx
mov dword [edi + 8], ecx
test esi, esi
je 0x4b9ca1
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 esi, 0xc0000001
push edi
push 0x54b040
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
cmp dword [0x54b454], 0
je 0x4b9cc2
xor edx, edx
mov ecx, 0x54b454
call sym.ProcessHacker.exe_PhfSetWakeEvent
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0xc0000001
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4be410
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 0x4be446
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004be090
lea ecx, [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
test ebx, ebx
js 0x4be55d
mov edx, dword [ecx]
cmp edx, 7
je 0x4be558
cmp edx, 8
je 0x4be558
cmp dword [ebp + 0xc], 0
je 0x4be4cb
push dword [ecx + 4]
call dword [sym.imp.ntdll.dll_RtlLengthSid]
mov esi, eax
push esi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp - 4]
mov edi, eax
push esi
push dword [ecx + 4]
push edi
call fcn.004dd620
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4be54b
mov eax, dword [ecx + 8]
test eax, eax
js 0x4be541
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 0x4be4fb
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
mov dword [edi], esi
jmp 0x4be548
push dword [0x54b7b4]
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 0x4be53d
push ecx
push eax
push dword [esi + 4]
call fcn.004dd620
add esp, 0xc
mov dword [edi], esi
jmp 0x4be548
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4be55d
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x4be55d
mov ebx, 0xc0000073
mov eax, dword [ebp - 8]
test eax, eax
je 0x4be56e
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4be579
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 0x4c3df0
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 0x4c3f17
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 0x4c3e39
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x4c3f11
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 0x4c3e6a
mov esi, dword [edi + 0x1c]
mov dword [edi + 0x1c], edx
mov dword [edi + 0x18], esi
jmp 0x4c3e6d
mov edx, dword [edi + 0x1c]
test byte [edi + 0x28], 0x10
je 0x4c3ec4
cmp esi, 0xffffffff
jne 0x4c3e97
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x4c3e86
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
push ecx
mov ecx, dword [ebp - 4]
mov edx, edi
push esi
call fcn.004c3fe0
mov ecx, dword [ebp - 8]
jmp 0x4c3ee1
mov ecx, dword [ebp - 4]
push edx
push esi
mov edx, edi
call fcn.004c3f20
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, edi
push esi
call fcn.004c3fe0
mov ecx, dword [ebp - 4]
mov edx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004c3a80
mov ecx, dword [ebp - 8]
jmp 0x4c3ee1
cmp esi, 0xffffffff
jne 0x4c3ed7
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x4c3ed7
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 [edi]
push ecx
push dword [ebp - 0xc]
add eax, esi
push eax
call fcn.004dd620
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
Function at 0x4c71f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
push 0
mov edi, ecx
mov esi, edx
push eax
push edi
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x4c73d2
mov eax, dword [ebp - 4]
or eax, dword [ebp - 0xc]
or eax, dword [ebp - 8]
or eax, dword [ebp - 0x10]
je 0x4c73d2
cmp dword [esi + 0x1b4], 0
jg 0x4c7290
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 0
mov ebx, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_GetUpdateRgn]
mov eax, dword [esi + 0x1b8]
test eax, eax
jne 0x4c7259
mov dword [esi + 0x1b8], ebx
jmp 0x4c726b
push 2
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
je 0x4c73d2
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [esi + 0x20], 0x200000
je 0x4c7344
cmp dword [esi + 0x180], 0
jne 0x4c7344
push dword [esi]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x4c7344
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x180], eax
test eax, eax
je 0x4c7344
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x18c], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x190], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x194], eax
mov eax, dword [esi + 0x48]
push eax
mov dword [esi + 0x198], eax
mov eax, dword [esi + 0x194]
inc eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x188], eax
test eax, eax
jne 0x4c7323
push dword [esi + 0x180]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x180], 0
jmp 0x4c7344
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 0x188]
push dword [esi + 0x180]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x184], eax
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
test ebx, ebx
je 0x4c73d2
mov ecx, dword [ebp - 0x48]
mov edx, esi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x180]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 8], ecx
test eax, eax
je 0x4c73bd
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004cb580
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push 0xcc0020
push edx
push ecx
push dword [esi + 0x180]
sub eax, edx
push eax
mov eax, dword [ebp - 8]
sub eax, ecx
push eax
push edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004cb580
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret