joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x412ea2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412ea9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412e98
mov eax, 1
add ebx, ebx
jne 0x412ebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412eb0
jne 0x412ecc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412eb0
xor ecx, ecx
sub eax, 3
jb 0x412ee0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412f52
mov ebp, eax
add ebx, ebx
jne 0x412eeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412ef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412f1c
inc ecx
add ebx, ebx
jne 0x412f08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412efd
jne 0x412f19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412efd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412f3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412f2d
jmp 0x412e9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412f3c
add edi, ecx
jmp 0x412e9e
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412f9b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1585c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x158d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412f59
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x158d8]
or eax, eax
je 0x412f95
mov dword [ebx], eax
add ebx, 4
jmp 0x412f76
call dword [esi + 0x158d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x412fcc
cmp al, 0xef
ja 0x412fbf
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x412fa1
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x412fae
mov ebp, dword [esi + 0x158dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x413000
sub esp, 0xffffff80
jmp 0x4014ff
Function at 0x302c870
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x302c887
push 0x57
call fcn.03028ba0
jmp 0x302c8e4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x302c8aa
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x302c8e2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x302c8d7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x302c8d7
mov eax, dword [ebp - 4]
jmp 0x302c8e4
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x302c8a1
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3036370
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x3036396
cmp dword [ebp + 0x18], 0
je 0x303638a
cmp dword [ebp + 0x1c], 0
jne 0x3036396
push 0x57
call fcn.03028ba0
jmp 0x30364e5
mov eax, dword [ebp + 8]
push eax
call fcn.03028ba0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x30363b4
push 6
call fcn.03028ba0
jmp 0x30364e5
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.03028ba0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x30363dc
push 0x7e
call fcn.03028ba0
jmp 0x30364e5
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x303649b
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x30fa624]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x303641e
push 0x57
call fcn.03028ba0
jmp 0x30364e5
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
jne 0x3036449
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x57
call fcn.03028ba0
jmp 0x30364e5
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.03028ba0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x303648f
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x303648f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x1c]
je 0x303648f
mov ecx, dword [ebp - 4]
push ecx
call fcn.03028ba0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x30364c1
mov eax, dword [ebp + 0x1c]
push eax
call fcn.03028ba0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30364c1
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x30364d0
push 0x57
call fcn.03028ba0
jmp 0x30364e5
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.03028ba0
mov esp, ebp
pop ebp
ret 0x18
Function at 0x401c80
Capabilities:
Lock the desktop

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x401c9a
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401cb2
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x401cb8
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x401cf9
push dword [esi + 4]
push 0x5634d8
push str.Unable_to_lock_the_computer.
push 0xfffe
push 0x20
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x401d10
call fcn.004c1f60
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_lock_the_computer.
push 0x5981b0
push 0x10
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x401d20
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x401d3e
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401d52
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x401d58
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x401d99
push dword [esi + 4]
push 0x5634d8
push str.Unable_to_log_off_the_computer.
push 0xfffe
push 0x20
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x401db0
call fcn.004c1f60
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_log_off_the_computer.
push 0x5981b0
push 0x10
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4024e0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 0xc]
dec eax
push esi
cmp eax, 5
ja case.0x4024f1.4
jmp dword [eax*4 + 0x402680]
push str.EnableWarnings
lea ecx, [ecx]
call sym.ProcessHacker.exe_PhGetIntegerSetting
mov esi, dword [ebp + 8]
test eax, eax
je 0x402529
push 0
push 0
push str.the_computer
push str.shut_down
push esi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je case.0x4024f1.4
mov eax, dword ds:[ebp + 0x10]
push 0x80000000
or eax, 8
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
je 0x402676
push eax
push 0
push str.Unable_to_shut_down_the_computer.
push esi
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.shut_down
push str.preforms_a_hard
push str.This_option__s__s_in_an_disorderly_manner_and_may_cause_corrupted_files_or_instability_in_the_system.
call fcn.004015a0
mov esi, dword [ebp + 8]
add esp, 0xc
push 1
push dword [eax + 4]
push str.the_computer
push str.shut_down
push esi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je case.0x4024f1.4
push 2
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
test eax, eax
jns 0x402676
push 0
push eax
push str.Unable_to_shut_down_the_computer.
push esi
lfence
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.shut_down
push str.forces_a_critical
push str.This_option__s__s_in_an_disorderly_manner_and_may_cause_corrupted_files_or_instability_in_the_system.
call fcn.004015a0
mov esi, dword [ebp + 8]
add esp, 0xc
push 1
push dword [eax + 4]
push str.the_computer
push str.shut_down
push esi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je case.0x4024f1.4
push 0x80000000
push 6
push 6
call dword [sym.imp.ntdll.dll_NtSetSystemPowerState]
test eax, eax
jns 0x402676
push 0
push eax
push str.Unable_to_shut_down_the_computer.
push esi
lfence
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
mov esi, dword [ebp + 8]
test eax, eax
je 0x40265b
push 0
push 0
push str.the_computer
push str.update_and_shutdown
push esi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je case.0x4024f1.4
push 0x80000000
push 0x48
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
jne 0x40254e
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4026a0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.EnableWarnings
mov dword [ebp - 4], edx
mov edi, ecx
mov esi, 0xc0000001
call sym.ProcessHacker.exe_PhGetIntegerSetting
lea ecx, [ecx]
test eax, eax
je 0x4026e8
push 0
push 0
push str.the_computer
push str.restart
push edi
call sym.ProcessHacker.exe_PhShowConfirmMessage
jmp 0x4026e0
test al, al
je 0x40286e
push str.EnableBootObjectsEnumerate
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
push str.EnableUpdateDefaultFirmwareBootEntry
setne bl
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
mov cl, bl
setne bh
call fcn.004de1e0
mov dword [ebp - 8], eax
test eax, eax
je 0x40280a
mov ecx, dword ds:[ebp - 4]
cmp ecx, dword [eax]
jae 0x402754
lfence
mov eax, dword [eax + 8]
sub esp, 0x10
mov edx, esp
mov esi, dword [eax + ecx*4]
mov cl, bh
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
call fcn.004dda00
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, eax
mov ebx, esi
call fcn.004de380
lea ecx, [ecx]
test esi, esi
js 0x4027cc
push 0x80000000
push 4
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
je 0x40286e
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x402859
push dword [esi + 4]
push 0x5634d8
push str.Unable_to_configure_the_boot_application.
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40286e
mov edi, edi
call fcn.004c1f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xc0000022
je 0x4027f1
cmp esi, 0xc0000005
je 0x4027f1
mov eax, ebx
mov esi, ebx
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40280a
movzx eax, bx
jmp 0x4027fb
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
je 0x40280a
push eax
lfence
call sym.ProcessHacker.exe_PhGetWin32Message
jmp 0x402813
push esi
lfence
call sym.ProcessHacker.exe_PhGetNtMessage
mov esi, eax
test esi, esi
je 0x402859
lfence
lfence
push dword [esi + 4]
push 0x5634d8
push str.Unable_to_configure_the_boot_application.
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40286e
lfence
call fcn.004c1f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unable_to_configure_the_boot_application.
push 0x5981b0
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407520
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 8]
push 1
push str.Deleting_a_service_can_prevent_the_system_from_starting_or_functioning_properly.
push dword [eax + 4]
push 0x563c6c
push edi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
jne 0x407557
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
push 0x10000
push dword [eax + 4]
call sym.ProcessHacker.exe_PhOpenService
mov esi, eax
test esi, esi
je 0x407597
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
test eax, eax
je 0x407591
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4075ad
movzx esi, si
or esi, 0xc0070000
mov eax, dword [ebx + 8]
push dword [eax + 4]
push str.Unable_to_delete
call sym.ProcessHacker.exe_PhConcatStrings2
push eax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
lea ecx, [esp + 0x13]
push ecx
push esi
mov edx, dword [eax + 4]
mov ecx, edi
call fcn.00401700
test al, al
je 0x40763a
xor bl, bl
cmp byte [esp + 0x13], bl
je 0x40770c
mov esi, dword [ebp + 0xc]
mov edx, 5
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 4]
call fcn.0045bf40
lea ecx, [ecx]
test eax, eax
js 0x407616
mov bl, 1
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
push eax
push esi
mov edx, 0x563c6c
mov ecx, edi
lfence
call fcn.004069a0
xor bl, bl
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
push dword [eax + 4]
push 0x563c6c
push str.Unable_to__s__s.
call fcn.004015a0
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x40767b
lea ecx, [ecx]
cmp esi, 0xc0000005
je 0x40767b
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40768a
movzx eax, si
jmp 0x407686
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x407692
push esi
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x407698
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x4076e9
mov eax, dword [esi + 4]
push eax
push 0x5634d8
test ebx, ebx
je 0x4076be
push ebx
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
jmp 0x4076c9
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40770a
call fcn.004c1f60
xor bl, bl
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x4076f5
push ebx
push 0x5981b0
jmp 0x4076ff
push str.Unable_to_perform_the_operation.
push 0x5634d8
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407c20
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bh, bh
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov bl, 1
mov dword [esp + 0x10], esi
cmp dword [ebp + 0x10], edi
je 0x407e09
mov eax, dword [esi + edi*4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x34], 0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], 0
push eax
push 2
lea eax, [esp + 0x54]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call dword [sym.imp.ntdll.dll_NtOpenThread]
mov esi, eax
cmp esi, 0xc0000022
jne 0x407cf5
cmp byte [0x5cd02b], 0
je 0x407cf5
lea eax, [esp + 0x48]
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], eax
mov edx, 0x4dd660
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov ecx, 2
lea eax, [esp + 0x20]
push eax
call fcn.004dd4c0
mov esi, eax
test esi, esi
js 0x407d1a
push 0
push dword [esp + 0x4c]
call dword [sym.imp.ntdll.dll_NtSuspendThread]
push dword [esp + 0x48]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x407df9
xor bl, bl
test bh, bh
jne 0x407dc2
lea eax, ds:[esp + 0xf]
push eax
mov eax, dword [esp + 0x14]
lfence
push esi
mov eax, dword [eax + edi*4]
push dword [eax]
push str.Unable_to_suspend_thread__lu
call fcn.004015a0
mov ecx, dword [esp + 0x24]
add esp, 8
mov edx, dword [eax + 4]
call fcn.00401700
test al, al
je 0x407dc2
mov esi, dword ds:[esp + 0x10]
cmp byte [esp + 0xf], bh
je 0x407dbc
mov ecx, dword [esi + edi*4]
mov edx, 2
push 0
mov ecx, dword [ecx]
call fcn.0045d040
mov ecx, eax
test ecx, ecx
js 0x407d87
mov bl, 1
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
jmp 0x407dfd
lfence
mov eax, dword [esi + edi*4]
push 0
push ecx
push dword [eax]
push str.suspend
push str.Unable_to__s_thread__lu
call fcn.004015a0
add esp, 0xc
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhShowContinueStatus
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
jmp 0x407dfd
mov bh, 1
jmp 0x407dfd
mov eax, dword ds:[esp + 0x10]
lfence
push 0
push esi
mov eax, dword [eax + edi*4]
push dword [eax]
push str.suspend
push str.Unable_to__s_thread__lu
call fcn.004015a0
add esp, 0xc
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x407e09
mov esi, dword [esp + 0x10]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x407c54
mov ecx, dword [esp + 0x4c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407e20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bh, bh
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov bl, 1
mov dword [esp + 0x10], esi
cmp dword [ebp + 0x10], edi
je 0x408009
mov eax, dword [esi + edi*4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x34], 0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], 0
push eax
push 2
lea eax, [esp + 0x54]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call dword [sym.imp.ntdll.dll_NtOpenThread]
mov esi, eax
cmp esi, 0xc0000022
jne 0x407ef5
cmp byte [0x5cd02b], 0
je 0x407ef5
lea eax, [esp + 0x48]
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], eax
mov edx, 0x4dd660
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov ecx, 2
lea eax, [esp + 0x20]
push eax
call fcn.004dd4c0
mov esi, eax
test esi, esi
js 0x407f1a
push 0
push dword [esp + 0x4c]
call dword [sym.imp.ntdll.dll_NtResumeThread]
push dword [esp + 0x48]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x407ff9
xor bl, bl
test bh, bh
jne 0x407fc2
lea eax, ds:[esp + 0xf]
push eax
mov eax, dword [esp + 0x14]
lfence
push esi
mov eax, dword [eax + edi*4]
push dword [eax]
push str.Unable_to_resume_thread__lu
call fcn.004015a0
mov ecx, dword [esp + 0x24]
add esp, 8
mov edx, dword [eax + 4]
call fcn.00401700
test al, al
je 0x407fc2
mov esi, dword ds:[esp + 0x10]
cmp byte [esp + 0xf], bh
je 0x407fbc
mov ecx, dword [esi + edi*4]
mov edx, 3
push 0
mov ecx, dword [ecx]
call fcn.0045d040
mov ecx, eax
test ecx, ecx
js 0x407f87
mov bl, 1
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
jmp 0x407ffd
lfence
mov eax, dword [esi + edi*4]
push 0
push ecx
push dword [eax]
push str.resume
push str.Unable_to__s_thread__lu
call fcn.004015a0
add esp, 0xc
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhShowContinueStatus
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
jmp 0x407ffd
mov bh, 1
jmp 0x407ffd
mov eax, dword ds:[esp + 0x10]
lfence
push 0
push esi
mov eax, dword [eax + edi*4]
push dword [eax]
push str.resume
push str.Unable_to__s_thread__lu
call fcn.004015a0
add esp, 0xc
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x408009
mov esi, dword [esp + 0x10]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x407e54
mov ecx, dword [esp + 0x4c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc