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

Disassembly:
push 0xffffffffffffffff
push 0x43f028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
lea ecx, [esp + 0x28]
call fcn.00434a30
mov eax, dword [0x4507fc]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x1c], 1
cmp dword [ecx - 8], ebx
je 0x41695b
push esi
call fcn.00416810
add esp, 4
test eax, eax
jne 0x41698d
push ebx
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.00434e97
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
cmp esi, ebx
jle 0x416945
push esi
lea edx, [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0x30]
call fcn.0042f6e9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.00434afb
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.004349c2
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], ebx
je 0x416932
push eax
call fcn.00416810
add esp, 4
test eax, eax
jne 0x416932
mov eax, dword [esp + 0xc]
push ebx
push eax
call edi
test eax, eax
je 0x41695b
inc esi
lea ecx, [esp + 0x24]
push esi
push 0x5c
call fcn.00434e97
mov esi, eax
cmp esi, ebx
jg 0x4168e3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x41698d
push ebx
push eax
call edi
test eax, eax
jne 0x41698d
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.004349c2
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004349c2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.004349c2
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004349c2
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x416b90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00434a30
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
Function at 0x426c5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x451c40
cmp edx, dword [eax]
je 0x426c7f
add eax, 8
inc ecx
cmp eax, 0x451cd0
jl 0x426c70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x451c40]
jne 0x426dad
mov eax, dword [0x4549e0]
cmp eax, 1
je 0x426d87
test eax, eax
jne 0x426cb0
cmp dword [0x451544], 1
je 0x426d87
cmp edx, 0xfc
je 0x426dad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x426ce7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00429220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00427e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x426d2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00427e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4455f0
push edi
call fcn.00429dc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00429220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00429230
lea eax, [ebp - 0xa0]
push 0x4455d0
push eax
call fcn.00429230
push dword [esi + 0x451c44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429230
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00429d34
add esp, 0x2c
pop edi
jmp 0x426dad
lea eax, [ebp + 8]
lea esi, [esi + 0x451c44]
push 0
push eax
push dword [esi]
call fcn.00427e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42eea0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00422930
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42ef6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42ef6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42ef1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42ef29
or bh, 8
and edi, 0x8000000
je 0x42ef44
mov eax, dword [0x45613c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42ef6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42f36b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42f38f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42f3aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x430af9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x430b1b
cmp dword [edi + 0x3c], 0
jne 0x430b1b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00439828
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00430b48
pop edi
pop esi
pop ebx
ret 8

Function at 0x433869
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4338ab
call fcn.00439828
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4338ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4338a2
xor eax, eax
jmp 0x4338b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004338b9
pop edi
pop esi
pop ebx
ret 4

Function at 0x43a3e7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43a415
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43a433
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043a34d
jmp 0x43a433
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43a433
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043a34d
test edi, edi
mov eax, edi
jne 0x43a41d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401c00
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 0x401c1a
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 0x401c32
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x401c38
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x401c79
push dword [esi + 4]
push 0x54ace8
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 0x401c90
call fcn.004b3960
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_lock_the_computer.
push 0x57e1d4
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 0x401ca0
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 0x401cbe
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 0x401cd2
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x401cd8
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x401d19
push dword [esi + 4]
push 0x54ace8
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 0x401d30
call fcn.004b3960
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_log_off_the_computer.
push 0x57e1d4
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 0x401f00
Capabilities:
Log keystrokes via polling
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
push str.EnableWarnings
sets bl
call sym.ProcessHacker.exe_PhGetIntegerSetting
mov esi, dword [ebp + 8]
test eax, eax
je 0x401f4d
push 0
push 0
push str.the_computer
push str.restart
push esi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x401fff
test bl, bl
je 0x401f79
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
test eax, eax
jns 0x401f95
push 0
push eax
push str.Unable_to_restart_the_computer.
push esi
lfence
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push 0x80000000
or eax, 4
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
jne 0x401fa3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov edi, eax
test edi, edi
je 0x401fea
push dword [edi + 4]
push 0x54ace8
push str.Unable_to_restart_the_computer.
push 0xfffe
push 0x20
push esi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x401fff
call fcn.004b3960
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.Unable_to_restart_the_computer.
push 0x57e1d4
push 0x10
push esi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402020
Capabilities:
Log keystrokes via polling
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
push str.EnableWarnings
sets bl
call sym.ProcessHacker.exe_PhGetIntegerSetting
mov esi, dword [ebp + 8]
test eax, eax
je 0x40206d
push 0
push 0
push str.the_computer
push str.shut_down
push esi
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x40212b
test bl, bl
je 0x4020a4
push 2
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea esp, [esp]
test eax, eax
jns 0x40212b
push 0
push eax
push str.Unable_to_shut_down_the_computer.
push esi
lfence
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push 0x80000000
or eax, 8
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
lea esp, [esp]
test eax, eax
jne 0x4020cf
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov edi, eax
test edi, edi
je 0x402116
push dword [edi + 4]
push 0x54ace8
push str.Unable_to_shut_down_the_computer.
push 0xfffe
push 0x20
push esi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40212b
call fcn.004b3960
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.Unable_to_shut_down_the_computer.
push 0x57e1d4
push 0x10
push esi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403ee0
Capabilities:
Create thread
Inject thread

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
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x1c], eax
call sym.ProcessHacker.exe_PhCreateOpenFileDialog
push 2
mov esi, eax
push 0x5ae198
push esi
call sym.ProcessHacker.exe_PhSetFileDialogFilter
push esi
push dword [esp + 0x24]
call sym.ProcessHacker.exe_PhShowFileDialog
push esi
test al, al
jne 0x403f34
call sym.ProcessHacker.exe_PhFreeFileDialog
jmp 0x404005
call sym.ProcessHacker.exe_PhGetFileDialogFileName
push eax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
push esi
mov edi, eax
call sym.ProcessHacker.exe_PhFreeFileDialog
mov ecx, dword [esp + 0x1c]
mov edx, 0x103a
push dword [ecx + 0x10]
lea ecx, [esp + 0x30]
call fcn.004c3180
mov esi, eax
test esi, esi
js 0x403fee
mov esi, dword [edi + 4]
mov ecx, str.kernel32.dll
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x30], 0xfd050f80
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], 0
call fcn.004b2780
test eax, eax
jne 0x403f9d
xor ebx, ebx
jmp 0x403fad
push 0
mov edx, 0x57ee90
mov ecx, eax
call fcn.004b2840
mov ebx, eax
push esi
call sym.ProcessHacker.exe_PhCountStringZ
push 4
push 0x1000
lea eax, [eax*2 + 2]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov esi, eax
test esi, esi
jns 0x40401b
push dword [esp + 0x2c]
call dword [sym.imp.ntdll.dll_NtClose]
push ecx
mov ecx, dword [esp + 0x24]
mov edx, str.load_the_DLL_into
push esi
push dword [esp + 0x24]
lfence
call fcn.00402840
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8
push 0
push dword [esp + 0x28]
lfence
push dword [esp + 0x30]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov esi, eax
test esi, esi
js 0x40407c
push 0
lea eax, [esp + 0x1c]
push eax
lfence
push dword [esp + 0x18]
push ebx
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov esi, eax
test esi, esi
js 0x40407c
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
push 0x8000
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
push dword ds:[esp + 0x2c]
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x403fee
mov ecx, dword [esp + 0x3c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8
Function at 0x405b20
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5ac004]
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 0x405d09
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 0x405bf5
cmp byte [0x5b18bb], 0
je 0x405bf5
lea eax, [esp + 0x48]
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], eax
mov edx, 0x4cc4e0
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.004cc340
mov esi, eax
test esi, esi
js 0x405c1a
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 0x405cf9
xor bl, bl
test bh, bh
jne 0x405cc2
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.00401520
mov ecx, dword [esp + 0x24]
add esp, 8
mov edx, dword [eax + 4]
call fcn.00401680
test al, al
je 0x405cc2
mov esi, dword ds:[esp + 0x10]
cmp byte [esp + 0xf], bh
je 0x405cbc
mov ecx, dword [esi + edi*4]
mov edx, 2
push 0
mov ecx, dword [ecx]
call fcn.004579a0
mov ecx, eax
test ecx, ecx
js 0x405c87
mov bl, 1
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
jmp 0x405cfd
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.00401520
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 0x405cfd
mov bh, 1
jmp 0x405cfd
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.00401520
add esp, 0xc
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x405d09
mov esi, dword [esp + 0x10]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x405b54
mov ecx, dword [esp + 0x4c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405d20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5ac004]
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 0x405f09
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 0x405df5
cmp byte [0x5b18bb], 0
je 0x405df5
lea eax, [esp + 0x48]
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], eax
mov edx, 0x4cc4e0
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.004cc340
mov esi, eax
test esi, esi
js 0x405e1a
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 0x405ef9
xor bl, bl
test bh, bh
jne 0x405ec2
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.00401520
mov ecx, dword [esp + 0x24]
add esp, 8
mov edx, dword [eax + 4]
call fcn.00401680
test al, al
je 0x405ec2
mov esi, dword ds:[esp + 0x10]
cmp byte [esp + 0xf], bh
je 0x405ebc
mov ecx, dword [esi + edi*4]
mov edx, 3
push 0
mov ecx, dword [ecx]
call fcn.004579a0
mov ecx, eax
test ecx, ecx
js 0x405e87
mov bl, 1
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
jmp 0x405efd
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.00401520
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 0x405efd
mov bh, 1
jmp 0x405efd
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.00401520
add esp, 0xc
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x405f09
mov esi, dword [esp + 0x10]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x405d54
mov ecx, dword [esp + 0x4c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc