joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a18b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
test byte [0x547b64], 1
push ebx
push esi
push edi
jne 0x4a1a4f
mov eax, 0x547b64
lock bts dword [eax], 0x1f
jae 0x4a18f4
test byte [0x547b64], 1
jne 0x4a1a4f
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov eax, dword [0x54ae70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0x547b84
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeSid]
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
push 1
mov dword [eax], 0x20
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
push 0x544b28
mov dword [eax], 0x220
call dword [sym.imp.ntdll.dll_RtlLengthSid]
push 0x544b1c
mov esi, eax
call dword [sym.imp.ntdll.dll_RtlLengthSid]
add esi, eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlLengthSid]
add eax, 0x40
add esi, eax
push esi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
push 1
push ebx
lea edi, [ebx + 0x14]
call dword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
push 2
lea ecx, [esi - 0x14]
push ecx
push edi
call dword [sym.imp.ntdll.dll_RtlCreateAcl]
push 0x544b1c
push 0xf000f
push 2
push edi
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea eax, [ebp - 0x10]
push eax
push 0xf000f
push 2
push edi
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0x544b28
push 7
push 2
push edi
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0
push edi
push 1
push ebx
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x18
push eax
push 0x2000000
push 0x54ae70
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x80
mov dword [ebp - 0x20], 0x547b8c
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0
call dword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, 0x547b64
lock bts dword [edi], 0
jb 0x4a1a4f
mov esi, dword [0x547b68]
test esi, esi
je 0x4a1a25
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 0x4a1a4f
test esi, esi
je 0x4a1a4f
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x547b68], 0
mov eax, dword [0x54ae70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
push esi
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x4a1ae5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x4a1ae5
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp - 8]
push edi
test eax, eax
je 0x4a1ab6
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
push ebx
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebx
mov esi, eax
push edi
push esi
call fcn.004dd620
mov ecx, dword [ebp + 0x18]
add esp, 0xc
mov al, 1
pop edi
pop ebx
mov dword [ecx], esi
pop esi
mov esp, ebp
pop ebp
ret 0x14
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a1e90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0x18]
sub esp, 0x14
mov eax, dword [eax + 0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x4a1f1d
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
jmp 0x4a1ec0
movzx eax, word [esi + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
movzx eax, word [esi + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a1eea
cmp dword [esi + 0x18], eax
jne 0x4a1f17
test ecx, ecx
je 0x4a1eff
push 1
push ecx
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4a1f14
test ebx, ebx
je 0x4a1f28
push 1
push ebx
lea eax, [esp + 0x20]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x4a1f28
mov ecx, dword [ebp + 0xc]
mov esi, dword [esi]
cmp esi, edi
jne 0x4a1ec0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a2030
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push esi
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
xor ebx, ebx
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x4a20ae
lea ebx, [ebx]
movzx eax, word [esi + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push 1
push eax
lea eax, [esp + 0x20]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x4a20ac
mov esi, dword [esi]
cmp esi, edi
jne 0x4a2080
jmp 0x4a20ae
mov ebx, esi
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test ebx, ebx
je 0x4a20d2
mov eax, dword [ebx + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a20e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, 0x5a4d
push esi
mov esi, edx
cmp word [ecx], ax
jne 0x4a2130
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4a2130
cmp eax, 0x10000000
jae 0x4a2130
cmp dword [eax + ecx], 0x4550
jne 0x4a2130
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4a2130
cmp dword [edx + 4], 0
je 0x4a2130
push dword [ebp + 8]
add eax, ecx
push esi
push eax
push edx
call fcn.004a2140
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a2ca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [0x54ae94]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
mov esi, eax
test edi, edi
jne 0x4a2cc2
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi]
cmp eax, 0x40
jae 0x4a2cd7
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
pop ebp
ret 4
cmp dword [esi + 0x10c], 0
jne 0x4a2d03
push 0x100
push 4
push dword [0x54b674]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10c], eax
mov ecx, dword [esi + 0x104]
mov eax, dword [esi + 0x108]
cmp ecx, eax
jne 0x4a2d3f
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
push dword [esi + 0x10c]
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi + 0x104]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x10c]
mov dword [eax + ecx*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a2d60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [0x54b7c0]
push 0x28
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
push 0x40
push 4
push dword [0x54b674]
mov dword [esi], 0xc
mov dword [esi + 4], 0x4a4700
mov dword [esi + 8], 0x4a4730
mov dword [esi + 0xc], 0x10
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [esi + 0x10], eax
call fcn.004dce30
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x14], eax
lea eax, [eax + eax*4]
shl eax, 2
push eax
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [0x54aea0], esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x4a2e1a
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [sym.ProcessHacker.exe_PhGlobalDpi], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.shlwapi.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
mov esi, eax
jb 0x4a2e5e
mov ecx, 0x522c80
call fcn.004a2030
test eax, eax
je 0x4a2e59
push 0
mov edx, str.IsImmersiveProcess
mov ecx, eax
call fcn.004a20e0
mov dword [0x54b7cc], eax
mov ebx, 0x5a4d
cmp word [edi], bx
jne 0x4a2ea2
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4a2ea2
cmp eax, 0x10000000
jae 0x4a2ea2
cmp dword [eax + edi], 0x4550
jne 0x4a2ea2
lea ecx, [eax + 0x78]
mov eax, dword [ecx + edi]
add ecx, edi
test eax, eax
je 0x4a2ea2
cmp dword [ecx + 4], 0
je 0x4a2ea2
push 0x3d
push 0
add eax, edi
push eax
push ecx
mov ecx, edi
call fcn.004a2140
jmp 0x4a2ea4
xor eax, eax
mov dword [0x54b7c8], eax
cmp word [esi], bx
jne 0x4a2ef5
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a2ef5
cmp eax, 0x10000000
jae 0x4a2ef5
cmp dword [eax + esi], 0x4550
jne 0x4a2ef5
lea ecx, [eax + 0x78]
mov eax, dword [ecx + esi]
add ecx, esi
test eax, eax
je 0x4a2ef5
cmp dword [ecx + 4], 0
je 0x4a2ef5
push 0
push str.SHAutoComplete
add eax, esi
push eax
push ecx
mov ecx, esi
call fcn.004a2140
mov dword [0x54b7c4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x54b7c4], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a3300
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test bl, 1
je 0x4a33a6
test bl, 2
je 0x4a3334
push 0x20
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [0x54b7b4]
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 + 8]
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
lea eax, [edi + edi]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a3388
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4a339b
call fcn.004a2a20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x4a344f
test bl, 2
jne 0x4a344f
push dword [0x54b7b4]
add esi, esi
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
mov dword [edi + 4], ecx
mov dword [edi], esi
mov word [ecx + esi], ax
mov ecx, dword [edi]
shr ecx, 1
inc ecx
push ecx
push dword [edi + 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4a3423
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a3411
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call sym.ProcessHacker.exe_PhDereferenceObject
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4a3431
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov dword [esi], eax
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4a3444
call fcn.004a2a20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4a345d
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov dword [esi], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a3dd0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4a3e61
mov al, byte [esi]
xor al, 0xe
test al, 0x1f
jne 0x4a3e61
push str..exe
push esi
call fcn.004de297
add esp, 8
test eax, eax
jne 0x4a3e61
mov ecx, dword [ebp + 8]
mov bl, byte [ebp + 0x10]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4a3e2e
xor edx, edx
lea eax, [ebp - 4]
test bl, bl
cmovne eax, edx
lea edx, [ebp - 4]
push eax
xor eax, eax
test bl, bl
cmove edx, eax
call fcn.004a1db0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4a3edb
xor ecx, ecx
lea eax, [ebp - 4]
test bl, bl
cmove eax, ecx
test bl, bl
push eax
lea eax, [ebp - 4]
cmovne eax, ecx
push eax
call sym.ProcessHacker.exe_PhGetStockApplicationIcon
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a3edb
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
xor ecx, ecx
mov bl, byte [ebp + 0x10]
mov dword [ebp - 4], ecx
test edx, edx
je 0x4a3ea4
xor eax, eax
test bl, bl
sete al
add eax, 0x100
push eax
push 0x2b4
lea eax, [ebp - 0x2c0]
push eax
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
test eax, eax
cmovne ecx, dword [ebp - 0x2c0]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4a3ed9
test esi, esi
je 0x4a3ed9
xor eax, eax
test bl, bl
sete al
add eax, 0x110
push eax
push 0x2b4
lea eax, [ebp - 0x2c0]
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
test eax, eax
cmovne ecx, dword [ebp - 0x2c0]
mov eax, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a3ef0
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.004dd620
mov ecx, dword [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 0x4a3f60
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4a3f60
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4a3f60
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 0x4a3f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 3
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
push eax
push ebx
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x14], 0
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x4a402d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x4a402d
push esi
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp - 8]
push edi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov ebx, eax
push esi
push ebx
call fcn.004dd620
mov eax, 0xffff
add esp, 0xc
cmp word [ebx + 2], ax
jne 0x4a3ff8
mov dword [ebx + 0xc], 0x40000448
jmp 0x4a3ffe
mov dword [ebx], 0x40000448
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push ebx
push 0
push dword [0x54b674]
mov esi, eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a4ae0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x14], 0
push dword [ebp + 8]
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4a4baf
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
or edi, 0xffffffff
test eax, eax
je 0x4a4b7a
push dword [0x54b7b4]
lea esi, [eax + eax]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov dword [ebx + 4], eax
mov dword [ebx], esi
mov word [eax + esi], cx
mov eax, dword [ebx]
shr eax, 1
inc eax
push eax
push dword [ebx + 4]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4a4b5f
mov esi, ebx
jmp 0x4a4b81
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
lea ecx, [ebx - 8]
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4a4b81
call fcn.004a2a20
jmp 0x4a4b81
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
test esi, esi
je 0x4a4baf
lea eax, [esp + 0x10]
push eax
push 0xa
push esi
call sym.ProcessHacker.exe_PhStringToInteger64
lea ecx, [esi - 8]
lock xadd dword [ecx + 4], edi
dec edi
jne 0x4a4ba2
call fcn.004a2a20
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a4f90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x54aec0
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x4a4faf
lock dec dword [0x54aec8]
jmp 0x4a4fc8
mov eax, dword [0x54aed0]
add eax, 8
push eax
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov ecx, dword [ebp + 0xc]
lea edx, [edi + 8]
push esi
push 0
lea eax, [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
push eax
push edx
push 0x4a4f20
push dword [ebp + 8]
mov dword [edx + 4], ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov esi, eax
push esi
call dword [sym.imp.ntdll.dll_RtlSetLastWin32ErrorAndNtStatusFromNtStatus]
test esi, esi
pop esi
js 0x4a500e
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x54aec8]
push edi
cmp eax, dword [0x54aecc]
jae 0x4a5037
push 0x54aec0
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x54aec8]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a5050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x54aec0
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x4a5075
lock dec dword [0x54aec8]
jmp 0x4a508e
mov eax, dword [0x54aed0]
add eax, 8
push eax
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov ecx, dword [ebp + 8]
lea edx, [esi + 8]
push 0
lea eax, [ebp - 4]
mov dword [edx], edi
push eax
push edx
push 0x4a4f20
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [edx + 4], ecx
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test edi, edi
js 0x4a50cb
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x54aec8]
push esi
cmp eax, dword [0x54aecc]
jae 0x4a50f6
push 0x54aec0
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x54aec8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x54aec0
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x4a5130
lock dec dword [0x54aec8]
jmp 0x4a5149
mov eax, dword [0x54aed0]
add eax, 8
push eax
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov ecx, dword [ebp + 8]
lea edx, [esi + 8]
push 0
lea eax, [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
push eax
push edx
push 0x4a4f20
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [edx + 4], ecx
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test edi, edi
js 0x4a518e
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x54aec8]
push esi
cmp eax, dword [0x54aecc]
jae 0x4a51b8
push 0x54aec0
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x54aec8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4a9290
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
jne 0x4a92a2
pop esi
pop ebp
ret 8
mov edx, dword [ebp + 8]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul eax, eax, 0x1000193
sub esi, 1
jne 0x4a92a5
pop esi
pop ebp
ret 8

Function at 0x4a92c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [esi]
test edx, edx
jne 0x4a92d8
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov esi, dword [esi + 4]
push edi
mov edi, edx
shr edi, 1
cmp byte [ebp + 0xc], bl
jne 0x4a9303
xor ecx, ecx
movzx eax, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
imul ecx, ecx, 0x1000193
sub edx, 1
jne 0x4a92e7
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 8
movzx eax, word [esi]
lea esi, [esi + 2]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx eax, ax
xor eax, ebx
imul ebx, eax, 0x1000193
sub edi, 1
jne 0x4a9303
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8