joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9e80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
test bl, 1
je 0x4b9f5a
test bl, 2
je 0x4b9ed0
push 0x20
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_InternalGetWindowText]
pop edi
mov ebx, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc
push dword [0x5b1d70]
push 0x20a
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor eax, eax
lea ecx, [esi + 8]
mov dword [esi + 4], ecx
mov dword [esi], 0x200
mov word [ecx + 0x200], ax
mov ecx, dword [esi]
shr ecx, 1
inc ecx
push ecx
push dword [esi + 4]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov ebx, eax
lea eax, [ebx + ebx]
mov dword [esi], eax
test edi, edi
je 0x4b9f30
mov dword [edi], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b9f45
mov edi, edi
call fcn.004b3960
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x4b9ffd
test bl, 2
jne 0x4b9ffd
push dword [0x5b1d70]
add esi, esi
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx + 4], ecx
mov dword [ebx], esi
mov word [ecx + esi], ax
mov ecx, dword [ebx]
shr ecx, 1
inc ecx
push ecx
push dword [ebx + 4]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4b9fca
test edi, edi
je 0x4b9fbe
mov esi, dword [ebp - 0x48]
mov dword [edi], ebx
jmp 0x4ba00b
push ebx
call sym.ProcessHacker.exe_PhDereferenceObject
mov esi, dword [ebp - 0x48]
jmp 0x4ba00b
test edi, edi
je 0x4b9fd5
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov dword [edi], eax
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b9fe8
call fcn.004b3960
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ecx]
test edi, edi
je 0x4ba00b
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4bac40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
add eax, 2
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [edi]
mov esi, eax
push dword [edi + 4]
push esi
call fcn.00521a30
mov ecx, dword ds:[edi]
add esp, 0xc
xor eax, eax
push esi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4bacb7
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4bacb7
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4bacb7
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4bfe60
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx*8]
not eax
mov dword [esp + 0x10], edi
and eax, 0x20
or eax, 0x40
push eax
push dword [ebp + 0x18]
lea eax, [esp + 0x20]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push ecx
push eax
call sym.ProcessHacker.exe_PhCreateFileWin32
test eax, eax
jns 0x4bfec5
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x18
test byte [0x5afe64], 1
jne 0x4bffb4
mov eax, 0x5afe64
lock bts dword [eax], 0x1f
jae 0x4bfef9
test byte [0x5afe64], 1
jne 0x4bffb4
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x4bffb4
push dword [0x5b1d58]
push 0x28
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
mov ecx, 1
mov word [edi], cx
lock xadd dword [0x5b1d60], ecx
inc ecx
dec cl
mov dword [edi + 4], 0
movzx eax, cl
lea esi, [edi + 0x10]
push esi
mov byte [edi + 2], cl
mov dword [edi + 8], 0x4c0200
mov dword [edi + 0xc], str.FileStream
mov dword [eax*4 + 0x5b4040], edi
call dword [sym.imp.ntdll.dll_RtlInitializeSListHead]
mov dword [0x5b1efc], edi
mov edi, 0x5afe64
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 0x30
lock bts dword [edi], 0
jb 0x4bffb0
mov esi, dword [0x5afe68]
test esi, esi
je 0x4bff86
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [edi], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4bffb0
test esi, esi
je 0x4bffb0
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5afe68], 0
mov edi, dword [esp + 0x10]
push dword [0x5b1efc]
push 0x28
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, ebx
shl eax, 0xb
not eax
mov dword [esi], ecx
and eax, 0x1000
mov dword [esi + 4], ebx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
test ebx, 0x10000
je 0x4c007c
push 5
push 0x18
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x4c0064
test byte [esi + 4], 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jne 0x4c007c
push 0xe
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 8
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
lea esp, [esp]
test eax, eax
jns 0x4c007c
lfence
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4c0081
call fcn.004b3960
jmp 0x4c0081
lfence
mov dword [edi], esi
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4c0280
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 0xc
jne 0x4c02d0
push 0xe
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x4c02b4
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0x4c02c5
mov eax, dword ds:[esi + 0xc]
cmp eax, dword [ebp - 4]
je 0x4c02d0
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c0340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4c038d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4c03a6
mov eax, dword [ebp - 8]
test eax, eax
js 0x4c03a6
mov ecx, dword ds:[ebp - 4]
add dword [edi + 8], ecx
mov edx, dword [ebp + 0xc]
adc dword [edi + 0xc], 0
test edx, edx
je 0x4c03a6
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4c03c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
test al, 2
je 0x4c0439
push ebx
test al, 8
mov ecx, ebx
lea eax, [esi + 8]
cmove eax, ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4c0412
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4c0568
mov eax, dword [ebp - 8]
test eax, eax
js 0x4c0568
mov ecx, dword [ebp - 4]
add dword [esi + 8], ecx
mov edx, dword [ebp + 0x14]
adc dword [esi + 0xc], ebx
test edx, edx
je 0x4c0568
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp + 0x10]
sub edi, ecx
jne 0x4c0504
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4c046a
mov edx, dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.004c0580
lea esp, [esp]
test eax, eax
js 0x4c048f
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
cmp eax, dword [esi + 0x14]
jb 0x4c049b
push dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, esi
lfence
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.004c0340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
jmp 0x4c04a0
cmp dword [esi + 0x10], ebx
jne 0x4c04b0
mov ecx, esi
call fcn.004c02e0
test eax, eax
js 0x4c048f
mov edx, dword ds:[esi + 0x10]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x14]
mov ecx, esi
call fcn.004c0340
mov ebx, eax
test ebx, ebx
jns 0x4c04d7
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 4]
test edi, edi
jne 0x4c04f5
mov eax, dword [ebp + 0x14]
lfence
test eax, eax
je 0x4c0566
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], edi
cmp edi, eax
cmova edi, eax
mov eax, dword [esi + 0x10]
add eax, ecx
push edi
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00521a30
add dword [esi + 0x18], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp edi, ecx
jae 0x4c055c
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jne 0x4c055c
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
lea edx, [edi + edx]
mov ecx, esi
lfence
call fcn.004c0340
mov ebx, eax
test ebx, ebx
js 0x4c0566
add edi, dword [ebp - 4]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword ds:[ebp + 0x14]
test eax, eax
je 0x4c0566
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c0580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x4c05cd
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4c05e4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x4c05e2
mov eax, dword [ebp - 8]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
or dword [edi + 4], 0x80000000
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c0740
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub eax, edx
je 0x4c079c
sub edx, dword [esi + 0x1c]
mov eax, edx
cdq
add eax, dword [esi + 8]
mov dword [esi + 8], eax
adc edx, dword [esi + 0xc]
test byte [esi + 4], 8
mov dword [esi + 0xc], edx
jne 0x4c079c
push 0xe
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 8
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
test ecx, ecx
jns 0x4c079c
lfence
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], 0
mov eax, ecx
mov dword [esi + 0x1c], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c0860
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
mov esi, ecx
sub eax, edi
je 0x4c08de
sub eax, 1
je 0x4c08ba
sub eax, 1
jne 0x4c08e9
push 5
push 0x18
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x4c08c7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [ebx]
add dword [esi + 8], eax
mov eax, dword [ebx + 4]
adc dword [esi + 0xc], eax
jmp 0x4c08e9
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
test byte [esi + 4], 8
jne 0x4c091c
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push 0xe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 8
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
test edi, edi
jns 0x4c091c
lfence
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4
Function at 0x4c3580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [0x5b18bb], 0
push ebx
push edi
mov edi, edx
mov ebx, ecx
je 0x4c360d
push esi
push 0
push 0
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 0x9999200b
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], edi
push eax
push 0
push 0x4cc2c0
push 0
push dword [0x5b1f3c]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0x4cc460
mov dword [ebp - 0x14], 0xc0000001
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtTestAlert]
mov eax, dword [ebp - 0x14]
test esi, esi
cmovs eax, esi
pop esi
cmp eax, 0xc00000db
jne 0x4c3606
push edi
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
cmp eax, 0xc00000bb
jne 0x4c3615
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c3820
Capabilities:
Check processdebugport

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5b18bb], 0
lea eax, [ebp - 4]
push edi
mov edi, edx
je 0x4c3874
push esi
push 0
push 4
push eax
push 0x1e
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
test esi, esi
js 0x4c3861
push dword [ebp - 4]
mov byte [edi], 1
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
cmp esi, 0xc0000022
jne 0x4c385a
pop esi
mov byte [edi], 1
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 4
push eax
push 7
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x4c385b
cmp dword [ebp - 4], 0
setne cl
mov byte [edi], cl
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4c4760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
push esi
mov esi, dword [ebp + 0xc]
jae 0x4c47ae
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov edx, 0x4c6540
mov dword [ebp - 0x10], 0xc0000135
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 1
call fcn.004c6140
test eax, eax
js 0x4c47a4
mov eax, dword ds:[ebp - 0x10]
test eax, eax
jns 0x4c47ae
lfence
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x56c3b8
call fcn.004b2780
test eax, eax
je 0x4c47ca
push 0
mov edx, 0x57eea0
mov ecx, eax
call fcn.004b2840
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
js 0x4c47a4
push dword [ebp + 0x10]
push 0
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
jne 0x4c4817
push eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov esi, eax
test esi, esi
cmovns esi, dword [ebp - 0x2c]
push dword ds:[ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c50a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, 0x200
mov dword [ebp - 8], ecx
push edi
push 4
push dword [0x5b1dac]
mov esi, edx
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, 0x80000005
je 0x4c50f8
cmp esi, 0xc0000023
je 0x4c50f8
cmp esi, 0xc0000004
jne 0x4c511d
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp - 0xc]
jmp 0x4c50c6
lea ecx, [ecx]
test esi, esi
js 0x4c5134
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c5160
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [ebp + 0xc]
push 5
push 0x18
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x4c51a1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8

Function at 0x4c51c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push 0x14
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8

Function at 0x4c51f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push 0xe
push 8
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
lfence
test esi, esi
js 0x4c5225
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4c5230
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push 0xe
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8
Function at 0x4c5260
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x6a
jb 0x4c528d
push 0x40
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x11
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret
push 0xd
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 1
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret
Function at 0x4c52c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov ebx, 0x100
call fcn.004f31e0
test eax, eax
jne 0x4c52ec
mov eax, 0xc00000bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x100
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], edi
test byte [0x5b03a4], 1
mov esi, 0x5a4d
mov eax, 0x5b03a4
jne 0x4c5474
lock bts dword [eax], 0x1f
jb 0x4c5462
mov ecx, 0x56c3b8
call fcn.004b2780
mov ecx, eax
test ecx, ecx
jne 0x4c5350
push 0x56c3b8
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
test ecx, ecx
je 0x4c5411
cmp word [ecx], si
jne 0x4c5411
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x4c5411
cmp eax, 0x7fffffff
jae 0x4c5411
cmp dword ds:[eax + ecx], 0x4550
jne 0x4c5411
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x4c5411
cmp dword [edx + 4], 0
je 0x4c5411
push 0
push str.NtQueryInformationTransactionManager
add eax, ecx
push eax
push edx
call fcn.004b2920
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c5411
mov eax, dword ds:[0x7ffe0324]
mov edi, dword [0x7ffe0320]
cmp eax, dword [0x7ffe0328]
je 0x4c53e4
mov ecx, 0x7ffe0324
mov edx, 0x7ffe0320
mov esi, 0x7ffe0328
pause
mov eax, dword [ecx]
mov edi, dword [edx]
cmp eax, dword [esi]
jne 0x4c53d7
mov ecx, dword [0x7ffe0004]
mul ecx
mov esi, eax
mov eax, edi
mov edi, dword [esp + 0xc]
shld edx, esi, 8
mul ecx
shl esi, 8
shrd eax, edx, 0x18
add eax, esi
mov dword [0x5b3ee4], eax
xor eax, dword [esp + 0x10]
mov dword [0x5b3fa0], eax
mov eax, 0x5b03a4
lock bts dword [eax], 0
jb 0x4c5474
mov esi, dword [0x5b03a8]
test esi, esi
je 0x4c5430
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x5b03a4
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4c5474
test esi, esi
je 0x4c5474
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5b03a8], 0
nop
jmp 0x4c5474
test byte [0x5b03a4], 1
jne 0x4c5474
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov esi, dword [0x5b3fa0]
test esi, esi
je 0x4c548b
mov eax, dword [0x5b3ee4]
test eax, eax
je 0x4c548b
xor esi, eax
jmp 0x4c548d
xor esi, esi
push 0
push ebx
push edi
push 2
push dword [esp + 0x24]
mov ecx, esi
call dword [0x5404bc]
nop
call esi
mov esi, eax
cmp esi, 0x80000005
jne 0x4c54f3
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x100000
ja 0x4c54e5
push ebx
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0xc], eax
jmp 0x4c5305
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test esi, esi
js 0x4c5507
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4