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

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

Function at 0x40d380
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c7004]
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.ProcessHacker.exe_PhCreateProcessWin32Ex
test eax, eax
js 0x40d446
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 0x40d43d
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 0x40d434
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 0x40d47c
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.00534c91
mov esp, ebp
pop ebp
ret
Function at 0x40e980
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
push str.RegEdit_RegEdit
mov dword [ebp - 0x50], edi
xor bl, bl
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x40e9ca
push edi
push esi
call sym.ProcessHacker.exe_PhShellOpenKey
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x78]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
jne 0x40e9fa
push 0
push 0
push esi
call sym.ProcessHacker.exe__PhUiConnectToPhSvcEx_12
test al, al
jne 0x40e9fa
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x5c9570
push 0xfffffffffffffff7
push 0x20006
lea eax, [ebp - 0x4c]
push eax
call sym.ProcessHacker.exe_PhCreateKey
test eax, eax
js 0x40eafe
mov ecx, 7
lea edi, [ebp - 0x48]
mov esi, str.A_ProcessHacker
lea eax, [ebp - 0x2a]
rep movsd dword es:[edi], dword [esi]
push 0x10
push eax
movsw word es:[edi], word [esi]
call sym.ProcessHacker.exe_PhGenerateRandomAlphaString
lea eax, ds:[ebp - 0x48]
push eax
call sym.ProcessHacker.exe_PhCountStringZ
mov ecx, dword [ebp - 0x50]
mov esi, eax
lea eax, [ebp - 0x48]
add esi, esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], eax
call fcn.004bd3a0
mov edi, eax
mov word [ebp - 0x54], si
lea eax, [esi + 2]
mov word [ebp - 0x52], ax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov ecx, dword [edi]
add ecx, 2
cmp esi, 0xfffe
ja 0x40ea8f
push ecx
push dword [edi + 4]
lea eax, [ebp - 0x54]
push 1
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40eaa5
lea ecx, [ecx]
call fcn.004c1f60
lea eax, [ebp - 0x78]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
mov ecx, dword ds:[ebp - 0x58]
lea edx, [ebp - 0x64]
mov al, byte [eax + 4]
not al
and al, 1
movzx eax, al
push eax
call fcn.0040e7a0
mov edx, dword ds:[ebp - 0x64]
mov bl, al
mov word [ebp - 0x5c], dx
lea ecx, [edx + 2]
mov word [ebp - 0x5a], cx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], ecx
cmp edx, 0xfffe
ja 0x40eaf5
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
push dword [ebp - 0x4c]
call dword [sym.imp.ntdll.dll_NtClose]
lea eax, [ebp - 0x78]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
jne 0x40eb12
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov ecx, dword ds:[ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret
Function at 0x4136e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x5c7004]
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 0x4137db
lea eax, [ebp - 0x48c]
push eax
push 0
push 0x104b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
nop
test eax, eax
je 0x4137db
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.00534c91
mov esp, ebp
pop ebp
ret 4
Function at 0x42c880
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov ebx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x5cd528]
add edx, ecx
add ebx, ecx
mov byte [ebp - 0x11], 0
add esi, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], esi
add eax, ecx
push edi
mov esi, dword [ebx]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
test esi, esi
jne 0x42c957
mov edi, edx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x42c8d5
push dword [0x5cd4f8]
sub edi, ecx
lea esi, [edi + edi]
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
push dword [ebx + 4]
push edi
push dword [ebp - 0x20]
call sym.ProcessHacker.exe_PhZeroExtendToUtf16Buffer
mov edi, dword [ebx + 4]
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x42c937
push 0xa00
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x42c975
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x42c94a
call fcn.004c1f60
mov ecx, dword [0x5cd528]
mov ebx, dword [ebp - 0x28]
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
mov edx, dword [eax]
movzx eax, dx
test edx, edx
jns 0x42c99d
push eax
xor edx, edx
mov ecx, esi
call fcn.004c0760
jmp 0x42c9ae
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x42c988
call fcn.004c1f60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
movzx eax, word [edx + ecx]
add edx, 2
add edx, ecx
mov ecx, esi
push eax
call fcn.004c0b40
mov edi, eax
test edi, edi
je 0x42c988
mov ecx, dword [0x5cd528]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x42c988
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x42c988
cmp eax, 0x7fffffff
jae 0x42c988
cmp dword [ecx + eax], 0x4550
lea edx, [ecx + eax]
jne 0x42c988
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.004c0870
test eax, eax
js 0x42c988
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x42c988
mov ecx, dword [ebp - 0x1c]
mov eax, edi
xchg dword [ecx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x42c988
mov eax, esi
xchg dword [ebx], eax
cmp eax, esi
jne 0x42ca4c
cmp byte [ebp - 0x11], 0
je 0x42ca4c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
Function at 0x430c80
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
add edx, 0xffff6320
push esi
mov esi, ecx
cmp edx, 0x79
ja case.0x430ca0.40172
movzx eax, byte [edx + 0x430e88]
jmp dword [eax*4 + 0x430e44]
push esi
call sym.ProcessHacker.exe__PhUiLockComputer_4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call sym.ProcessHacker.exe__PhUiLogoffComputer_4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call sym.ProcessHacker.exe__PhUiSleepComputer_4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call sym.ProcessHacker.exe__PhUiHibernateComputer_4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 1
push esi
call sym.ProcessHacker.exe__PhUiRestartComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 4
push esi
call sym.ProcessHacker.exe__PhUiRestartComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0x400
push 1
push esi
call sym.ProcessHacker.exe__PhUiRestartComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 5
push esi
call sym.ProcessHacker.exe__PhUiRestartComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 1
push esi
call sym.ProcessHacker.exe__PhUiShutdownComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0x200
push 1
push esi
call sym.ProcessHacker.exe__PhUiShutdownComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 2
push esi
call sym.ProcessHacker.exe__PhUiRestartComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 2
push esi
call sym.ProcessHacker.exe__PhUiShutdownComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 3
push esi
call sym.ProcessHacker.exe__PhUiRestartComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 3
push esi
call sym.ProcessHacker.exe__PhUiShutdownComputer_12
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x430db6
push 0
push 0
push str.the_computer
push str.update_and_restart
push esi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x430e32
push 0x80000000
push 0x44
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
je 0x430e32
push eax
push 0
push str.Unable_to_restart_the_computer.
push esi
call sym.ProcessHacker.exe_PhShowStatus
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x430e09
push 0
push 0
push str.the_computer
push str.update_and_shutdown
push esi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x430e32
push 0x80000000
push 0x48
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
lea esp, [esp]
test eax, eax
je 0x430e32
push eax
push 0
push str.Unable_to_shut_down_the_computer.
push esi
call sym.ProcessHacker.exe_PhShowStatus
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43bc20
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0x5c
push 4
push dword [0x5cd55c]
mov edi, edx
mov esi, ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, eax
mov dword [edx], esi
mov dword [edx + 4], edi
lock inc dword [edi - 4]
xor ecx, ecx
cmp dword [edi], ecx
jbe 0x43bc55
mov eax, dword [edi + 8]
mov eax, dword [eax + ecx*4]
lock inc dword [eax]
inc ecx
cmp ecx, dword [edi]
jb 0x43bc47
push edx
push 0x43c4c0
push 0
push 0xb7
push dword [0x5cd528]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
ret

Function at 0x43f800
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x5cdacc]
push esi
push edi
mov edi, ecx
cmp edi, ebx
je 0x43f929
mov dword [0x5cdacc], edi
test ebx, ebx
je 0x43f858
mov esi, dword ds:[ebx + 0xc]
mov ecx, esi
push 0
push edi
push 3
push ebx
call dword [0x55890c]
call esi
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x43f858
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x34], 0
jne 0x43f8ba
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 [0x55890c]
call esi
test al, al
je 0x43f8ba
cmp byte [ebp - 0x18], 0
jne 0x43f8ba
push dword [ebp - 8]
mov ecx, dword [0x5cd9fc]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004cdd20
movzx ecx, byte [0x5cfdd4]
push ecx
push eax
mov dword [edi + 0x34], eax
call sym.ProcessHacker.exe_PhInitializeWindowTheme
mov eax, dword ds:[edi + 0x34]
test eax, eax
je 0x43f8cd
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x43f8d7
push eax
jmp 0x43f8d8
push edi
push 0x5c9794
lea ecx, [ecx]
call sym.ProcessHacker.exe_PhConcatStringRef2
push eax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
push 0x55f
push dword [0x5cd9fc]
mov esi, dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
nop
test eax, eax
je 0x43f910
push esi
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.0043f9c0
mov esi, dword [edi + 0xc]
mov ecx, esi
push 0
push 0
push 2
push edi
call dword [0x55890c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret
Function at 0x45d440
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x5d0180]
mov ebx, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [esi]
mov edx, dword [ecx + 0x1c]
add edi, edx
add eax, edi
cmp eax, edi
jb 0x45d47e
cmp edi, edx
jb 0x45d47e
cmp eax, dword [ecx + 0x20]
ja 0x45d47e
lea ecx, [ebx - 1]
test edi, ecx
jne 0x45d47e
mov eax, edi
pop edi
pop esi
lfence
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x45d520
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 4], 0
je 0x45d596
push dword [0x5d0180]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebx + 4]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
add edi, edx
lea ecx, [esi + edi]
cmp ecx, edi
jb 0x45d59c
cmp edi, edx
jb 0x45d59c
cmp ecx, dword [eax + 0x20]
ja 0x45d59c
test edi, edi
je 0x45d59c
push esi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x45d57c
pop edi
pop esi
mov eax, 0xc0000017
pop ebx
pop ebp
ret 0xc
push dword [ebx]
push edi
push esi
call fcn.00537fe0
mov eax, dword [ebp + 0x10]
add esp, 0xc
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc
cmp byte [ebp + 0xc], 0
jne 0x45d5a8
pop edi
pop esi
mov eax, 0xc0000005
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
xor esi, esi
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x45fa40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0x5c9f48
lea eax, [ebp - 0x14]
mov ebx, ecx
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeSid]
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
push 1
mov dword [eax], 0x20
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov dword [eax], 0x220
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlLengthSid]
push 0x5c7c54
mov esi, eax
call dword [sym.imp.ntdll.dll_RtlLengthSid]
add eax, 0x34
add esi, eax
push esi
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 1
push eax
mov dword [ebp - 0x34], eax
lea edi, [eax + 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]
lea eax, [ebp - 0x14]
push eax
push 0x1f0001
push 2
push edi
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0x5c7c54
push 1
push 2
push edi
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov esi, dword [ebp - 0x34]
push 0
push edi
push 1
push esi
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
cmp byte [0x5ceec7], 0
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
jne 0x45fb64
push 0
push 4
lea eax, [ebp - 0x34]
push eax
push 0x1a
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x45fb55
cmp dword [ebp - 0x34], 0
setne byte [0x5ceec6]
xor ecx, ecx
lea eax, [ebp - 0x18]
lock or dword [eax], ecx
mov byte [0x5ceec7], 1
cmp byte [0x5ceec6], 0
mov ecx, 0xb0
push 0
mov eax, 0xa0
cmovne eax, ecx
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push 0x5d0184
call dword [sym.imp.ntdll.dll_NtCreatePort]
push esi
push 0
push dword [0x5cd55c]
mov edi, eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lfence
test edi, edi
js 0x45fbca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5d0180], eax
mov esi, 2
push 0
push 0x45fbe0
call sym.ProcessHacker.exe_PhCreateThread2
sub esi, 1
jne 0x45fbb4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret
Function at 0x460fe0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, word [ecx]
mov word [ebp - 0x10], ax
add eax, 2
push esi
mov word [ebp - 0xe], ax
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 2
push eax
lea eax, [ebp - 8]
push eax
push 0
call dword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
js 0x4610f3
mov eax, dword [ebp - 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x461041
push eax
mov esi, 0xc000012f
call dword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4610e5
cmp ecx, 0x7fffffff
jae 0x4610e5
cmp dword [ecx + eax], 0x4550
lea edi, [ecx + eax]
jne 0x4610e5
mov edx, edi
mov ecx, eax
call fcn.004c0dc0
mov esi, eax
test esi, esi
js 0x4610cb
lfence
mov ecx, dword [ebp - 4]
mov edx, edi
push 0x598874
call fcn.004c10a0
mov esi, eax
test esi, esi
js 0x4610cb
mov ecx, dword [edi + 0x28]
mov eax, dword [ebp - 4]
test ecx, ecx
jne 0x4610ae
push eax
mov esi, 0xc0000139
call dword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea esi, [ecx + eax]
push 1
push eax
mov ecx, esi
call dword [0x55890c]
mov edi, edi
call esi
test al, al
jne 0x4610dd
mov esi, 0xc0000142
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
mov esi, 0xc000007b
call dword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret