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

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

Function at 0x40b1a0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
push esi
mov esi, ecx
xor bl, bl
mov eax, dword [eax + 0x30]
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 0
push esi
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
test eax, eax
js 0x40b266
mov esi, dword ds:[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 0x40b25d
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 0x40b254
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 0x40b29c
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 esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x40c7a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x5ac004]
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 0x40c7ea
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.0051e068
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x78]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
jne 0x40c81a
push 0
push 0
push esi
call sym.ProcessHacker.exe__PhUiConnectToPhSvcEx_12
test al, al
jne 0x40c81a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x5ae1b0
push 0xfffffffffffffff7
push 0x20006
lea eax, [ebp - 0x4c]
push eax
call sym.ProcessHacker.exe_PhCreateKey
test eax, eax
js 0x40c91e
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.004af420
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 0x40c8af
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 0x40c8c5
lea ecx, [ecx]
call fcn.004b3960
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.0040c5c0
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 0x40c915
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 0x40c932
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.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x411280
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x5ac004]
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 0x41137b
lea eax, [ebp - 0x48c]
push eax
push 0
push 0x104b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
nop
test eax, eax
je 0x41137b
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.0051e068
mov esp, ebp
pop ebp
ret 4
Function at 0x428f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x5b4b40], 1
push ebx
push esi
push edi
jne 0x4290b4
mov eax, dword [0x5b4b44]
test eax, eax
je 0x428f62
push 0
push dword [eax + 4]
call sym.ProcessHacker.exe_PhGetFullPath
mov dword [0x5b1800], eax
mov edi, edi
jmp 0x428f67
mov eax, dword [0x5b1800]
or esi, 0xffffffff
test eax, eax
jne 0x428fdf
call sym.ProcessHacker.exe_PhGetApplicationFileName
mov edi, eax
test edi, edi
je 0x428fbf
push 0x5ae2f4
push edi
call sym.ProcessHacker.exe_PhConcatStringRef2
mov ebx, eax
push dword [ebx + 4]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x428f9b
mov dword [0x5b1800], ebx
jmp 0x428fad
lea ecx, [ebx - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x428fad
call fcn.004b3960
lea ecx, [edi - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x428fbf
call fcn.004b3960
mov eax, dword [0x5b1800]
test eax, eax
jne 0x428fdf
push 0x5ae2d4
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov dword [0x5b1800], eax
test eax, eax
je 0x4290b4
push dword [eax + 4]
call sym.ProcessHacker.exe_PhLoadSettings
cmp eax, 0xc0000102
jne 0x4290b4
push str.If_you_select_No__the_settings_system_will_not_function_properly.
push str.Process_Hackers_settings_file_is_corrupt._Do_you_want_to_reset_it_
push 0xffff
push 6
push 0
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x14
cmp eax, 6
jne 0x429094
mov eax, dword [str._settings___settings_]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5704c4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x5704c8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x5704cc]
push 0x60
mov dword [ebp - 0x10], eax
mov eax, dword [0x5704d0]
push 4
mov dword [ebp - 0xc], eax
mov ax, word [0x5704d4]
push 5
mov word [ebp - 8], ax
mov eax, dword [0x5b1800]
push 0x80
push 0x120116
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
call sym.ProcessHacker.exe_PhCreateFileWin32
test eax, eax
js 0x4290b4
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0x15
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
push esi
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x4290b4
mov ecx, dword [0x5b1800]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4290aa
call fcn.004b3960
mov dword [0x5b1800], 0
push str.EnablePlugins
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
push str.MaxSizeUnit
setne byte [0x5b1804]
call sym.ProcessHacker.exe_PhGetIntegerSetting
push str.SampleCountAutomatic
mov dword [0x5b0a08], eax
jmp 0x4290e0
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x42910c
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
inc eax
mov ecx, 0x800
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
cmova eax, ecx
push eax
push str.SampleCount
call sym.ProcessHacker.exe_PhSetIntegerSetting
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x4382c0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0x5c
push 4
push dword [0x5b1dac]
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 0x4382f5
mov eax, dword [edi + 8]
mov eax, dword [eax + ecx*4]
lock inc dword [eax]
inc ecx
cmp ecx, dword [edi]
jb 0x4382e7
push edx
push 0x438b60
push 0
push 0xb7
push dword [0x5b1d78]
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 0x43bd80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x5b2320]
push esi
push edi
mov edi, ecx
cmp edi, ebx
je 0x43bea9
mov dword [0x5b2320], edi
test ebx, ebx
je 0x43bdd8
mov esi, dword ds:[ebx + 0xc]
mov ecx, esi
push 0
push edi
push 3
push ebx
call dword [0x5404bc]
call esi
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x43bdd8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x34], 0
jne 0x43be3a
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 [0x5404bc]
call esi
test al, al
je 0x43be3a
cmp byte [ebp - 0x18], 0
jne 0x43be3a
push dword [ebp - 8]
mov ecx, dword [0x5b2250]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004bace0
movzx ecx, byte [0x5b457d]
push ecx
push eax
mov dword [edi + 0x34], eax
call sym.ProcessHacker.exe_PhInitializeWindowTheme
mov eax, dword ds:[edi + 0x34]
test eax, eax
je 0x43be4d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x43be57
push eax
jmp 0x43be58
push edi
push 0x5ae3ac
lea ecx, [ecx]
call sym.ProcessHacker.exe_PhConcatStringRef2
push eax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
push 0x55f
push dword [0x5b2250]
mov esi, dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
nop
test eax, eax
je 0x43be90
push esi
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.0043bf40
mov esi, dword [edi + 0xc]
mov ecx, esi
push 0
push 0
push 2
push edi
call dword [0x5404bc]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x457bc0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x5b4938]
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 0x457bfe
cmp edi, edx
jb 0x457bfe
cmp eax, dword [ecx + 0x20]
ja 0x457bfe
lea ecx, [ebx - 1]
test edi, ecx
jne 0x457bfe
mov eax, edi
pop edi
pop esi
lfence
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x457ca0
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 0x457d16
push dword [0x5b4938]
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 0x457d1c
cmp edi, edx
jb 0x457d1c
cmp ecx, dword [eax + 0x20]
ja 0x457d1c
test edi, edi
je 0x457d1c
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x457cfc
pop edi
pop esi
mov eax, 0xc0000017
pop ebx
pop ebp
ret 0xc
push dword [ebx]
push edi
push esi
call fcn.00521a30
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 0x457d28
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 0x45a140
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0x5aeac8
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 0x5acb30
mov esi, eax
call dword [sym.imp.ntdll.dll_RtlLengthSid]
add eax, 0x34
add esi, eax
push esi
push 4
push dword [0x5b1dac]
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 0x5acb30
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 [0x5b3884], 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 0x45a264
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 0x45a255
cmp dword [ebp - 0x34], 0
setne byte [0x5b35f7]
xor ecx, ecx
lea eax, [ebp - 0x18]
lock or dword [eax], ecx
mov byte [0x5b3884], 1
cmp byte [0x5b35f7], 0
mov ecx, 0xb0
push 0
mov eax, 0xa0
cmovne eax, ecx
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push 0x5b493c
call dword [sym.imp.ntdll.dll_NtCreatePort]
push esi
push 0
push dword [0x5b1dac]
mov edi, eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lfence
test edi, edi
js 0x45a2ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5b4938], eax
mov esi, 2
push 0
push 0x45a2e0
call sym.ProcessHacker.exe_PhCreateThread2
sub esi, 1
jne 0x45a2b4
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
Function at 0x45b660
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
push dword [0x5b1d70]
mov dword [ebp - 4], esi
push 0x10a
mov dword [ebp - 8], 0
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx + 4], ecx
mov dword [ebx], 0x100
mov word [ecx + 0x100], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 4]
push 0x80
push esi
call dword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
mov esi, eax
or eax, 0xffffffff
cmp dword [ebp - 8], 0x80
jbe 0x45b717
lfence
lea ecx, [ebx - 8]
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45b6d8
lfence
call fcn.004b3960
mov edi, dword [ebp - 8]
push dword [0x5b1d70]
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
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 4]
push edi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
mov esi, eax
or eax, 0xffffffff
lfence
test esi, esi
jns 0x45b73a
lea ecx, [ebx - 8]
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45b731
lfence
call fcn.004b3960
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword ds:[ebx + 4]
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [ebx], eax
lfence
movzx eax, word [ebx]
mov word [ebp - 0x18], ax
add eax, 2
mov word [ebp - 0x16], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 2
push eax
lea eax, [ebp - 0x10]
push eax
push 0
call dword [sym.imp.ntdll.dll_LdrLoadDll]
mov edi, eax
test edi, edi
js 0x45b811
mov eax, dword [ebp - 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x45b79c
mov edi, 0xc000012f
jmp 0x45b814
mov ecx, dword ds:[eax + 0x3c]
test ecx, ecx
je 0x45b7b8
cmp ecx, 0x7fffffff
jae 0x45b7b8
cmp dword [ecx + eax], 0x4550
lea esi, [ecx + eax]
je 0x45b7bf
mov edi, 0xc000007b
jmp 0x45b814
mov edx, esi
mov ecx, eax
call fcn.004b2b40
mov edi, eax
test edi, edi
js 0x45b811
lfence
push ecx
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.004b2e40
mov edi, eax
test edi, edi
js 0x45b811
mov ecx, dword [esi + 0x28]
mov eax, dword [ebp - 4]
test ecx, ecx
jne 0x45b7f5
mov edi, 0xc0000139
jmp 0x45b814
xor edi, edi
lea esi, [ecx + eax]
push edi
push 1
push eax
mov ecx, esi
call dword [0x5404bc]
call esi
test al, al
jne 0x45b81b
mov edi, 0xc0000142
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_LdrUnloadDll]
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45b831
lfence
call fcn.004b3960
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5b2b30]
push ebx
mov ebx, dword [0x5b2b2c]
push esi
mov dword [ebp - 0x12c], eax
lea esi, [edx + 1]
push edi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x13c], ebx
push eax
call sym.ProcessHacker.exe_PhInitializeAutoPool
lea eax, [ebp - 0x128]
mov dword [ebp - 0x140], esi
push eax
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
lea edx, [ebp - 0x138]
call fcn.004d4f60
mov ebx, dword [ebp - 0x128]
lea ecx, [ebp - 0x124]
push ebx
mov edx, esi
call fcn.004d4540
xor edi, edi
test ebx, ebx
je 0x472102
jmp 0x472080
mov eax, dword [ebp - 0x130]
mov ebx, dword [eax + edi*4]
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x472090
push dword [0x5b1d70]
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
lea eax, [eax*2 + 0xa]
mov dword [ebp - 0x134], ecx
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 0x134]
lea ecx, [esi + 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov word [ecx + eax], dx
test ebx, ebx
je 0x4720e2
push eax
push ebx
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
push esi
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov edx, dword [ebp - 0x124]
mov ebx, dword [ebp - 0x128]
mov ecx, dword [edx]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebx
jb 0x472080
mov edi, edi
jmp 0x472108
mov edx, dword [ebp - 0x124]
mov eax, dword ds:[ebp - 0x12c]
xor esi, esi
mov edi, dword [ebp - 0x138]
mov dword [ebp - 8], 1
cmp dword [eax], esi
jbe 0x47214f
push ebx
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x13c]
push edx
mov edx, dword [eax + 8]
push 0
mov edx, dword [edx + esi*4]
call fcn.00471e40
mov eax, dword [ebp - 0x12c]
inc esi
mov edx, dword [ebp - 0x124]
cmp esi, dword [eax]
jb 0x472124
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x130]
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x124]
push ebx
call fcn.004d46a0
mov esi, eax
lea eax, [ebp - 0x120]
push eax
call sym.ProcessHacker.exe_PhDrainAutoPool
push dword [0x5b3864]
jmp 0x4721a0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x120]
cmp eax, ecx
jne 0x4721ef
push dword [ebp - 0x10]
push dword [0x5b3864]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test eax, eax
je 0x4721ef
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4721da
push eax
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
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 8
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
Function at 0x4849a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00484900
push dword [0x5b1d74]
push 0xc
call sym.ProcessHacker.exe_PhCreateObject
push 0x28
mov esi, eax
push 4
push dword [0x5b1dac]
mov dword [esi], 0
mov dword [esi + 4], 0xa
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 8], eax
mov dword [ebp - 0xc], esi
call fcn.00483be0
mov dword ds:[ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x484880
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push eax
call dword [sym.imp.USER32.dll_EnumDesktopsW]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp dword [eax], esi
jbe 0x484a76
mov eax, dword ds:[eax + 8]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x484a29
mov eax, dword [eax + 4]
jmp 0x484a2b
xor eax, eax
push eax
push 0
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x484a6e
push 4
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp - 0xc]
push eax
push edi
push 0x151
mov ecx, dword [ecx + 8]
push ebx
mov ecx, dword [ecx + esi*4]
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, dword [eax]
jb 0x484a16
or esi, 0xffffffff
lea ecx, [eax - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x484a8b
call fcn.004b3960
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], esi
dec esi
jne 0x484a9e
call fcn.004b3960
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret