joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccfb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x65b9c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004140b0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x41432d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41432d
xor edi, edi
nop
push 0x62d904
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00406160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [edi + 0x62d04c]
mov edx, eax
call fcn.00406160
mov byte [ebp - 4], 0
add esp, 8
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4142e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
test eax, eax
mov eax, ebx
je 0x41431b
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41430c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, 4
jb 0x4142a0
mov edi, 1
jmp 0x41432f
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41432d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41434b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414360
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 0x34]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414379
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
call fcn.004140b0
mov ecx, dword [esi + 0x34]
mov eax, dword [eax]
test ecx, ecx
je 0x4143a3
test eax, eax
je 0x4143a3
push eax
push 0x410b80
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
mov edi, eax
jmp 0x4143a5
xor edi, edi
mov edx, dword [ebp - 4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4143c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4143e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccfe8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x65b9c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004140b0
push 0x62d904
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [0x675f90]
mov edx, eax
call fcn.00406160
add esp, 8
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41445e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41447c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4144b5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4144b5
push str.RunTip
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4144b5
push 0
push 0
push 0x911c9b
call eax
mov esi, eax
jmp 0x4144b7
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4144d6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414fe0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x65b9c4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00414f70
mov esi, eax
test esi, esi
jne 0x4150d7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x4150a9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov esi, eax
test esi, esi
jne 0x4150d7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x415070
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4150c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00414ee0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4150e6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0058651a
mov esp, ebp
pop ebp
ret 4
Function at 0x415540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd126
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4155ec
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4155ec
call fcn.00410250
mov esi, eax
jmp 0x4156dc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41560f
call fcn.00410250
jmp 0x4156cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41562d
call fcn.00410250
jmp 0x4156cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41564e
mov esi, 0x8007000e
jmp 0x4156d1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00418520
jmp 0x415678
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x41568f
mov esi, 0x8007000e
jmp 0x4156d1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4156af
call fcn.00410250
jmp 0x4156cf
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004163d0
mov esi, eax
test edi, edi
je 0x4156dc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x415700
lea ecx, [ebp - 0x418]
call fcn.00418760
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x417900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd2ab
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [0x67653c]
test al, al
jne 0x417a2d
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0059f570
add esp, 0xc
lea eax, [ebp - 0x118]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x417a28
push str.config_systemprofile
lea ecx, [ebp - 0x148]
call fcn.00406690
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x130]
call fcn.00406690
push dword [ebp - 0x138]
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push ecx
cmovae eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x130]
push eax
call fcn.004186c0
movzx ecx, byte [0x67653c]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x11c]
mov edx, 1
cmovne ecx, edx
mov byte [0x67653c], cl
cmp eax, 0x10
jb 0x4179ef
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004073b0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp eax, 0x10
jb 0x417a28
inc eax
lea ecx, [ebp - 0x148]
push eax
push dword [ebp - 0x148]
call fcn.004073b0
mov al, byte [0x67653c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
Function at 0x417e50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
mov esi, ecx
push 0
push eax
call fcn.0059f570
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.PDFRunningHelper.exe
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
push 0
push dword [esi]
lea eax, [ebp - 0x404]
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop esi
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0058651a
mov esp, ebp
pop ebp
ret

Function at 0x417ef0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x417f25
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
push esi
push 0x35
push str.masterPDF_Server
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x417f83
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str._enableServer
lea ecx, [ebp - 0x24]
call fcn.004063d0
lea ecx, [ebp - 0x24]
call fcn.00417e50
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417f71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x417fbc
cmp dword [ebp - 0x1c], 1
jne 0x417fbc
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x417fbc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 4
pop esi
sete al
xor ecx, ebp
pop edi
call fcn.0058651a
mov esp, ebp
pop ebp
ret
Function at 0x417ff0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.0047a5c0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41800f
lea esi, [eax + 1]
jmp 0x41802c
push dword [ebp - 4]
push 1
push str.Activate
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x418047
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418dd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0046c430
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call esi
test eax, eax
jne 0x418e1f
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
cmp dword [ebp - 0x11c], 6
jb 0x418e30
test edi, edi
jne 0x418e30
xor esi, esi
jmp 0x418e43
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00419420
lea ecx, [ebx + 0x2c]
call fcn.00419660
mov esi, eax
mov eax, str.fail
test esi, esi
mov ecx, 0x62d148
push 0x62b754
cmove ecx, eax
push ecx
push str.plugin_load
call fcn.0046c520
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0058651a
mov esp, ebp
pop ebp
ret

Function at 0x419530
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi], 0
je 0x419648
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0059f570
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419648
lea ecx, [ebp - 0x20c]
call fcn.0046cf70
test eax, eax
je 0x419648
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x419648
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419648
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push ecx
push 1
call eax
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
je 0x419648
push dword [edi + 0x10]
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov eax, dword [edi + 8]
lea ecx, [edi + 4]
mov edx, dword [ecx]
cmp edx, eax
je 0x419625
cmp dword [edx], esi
je 0x419621
add edx, 4
cmp edx, eax
jne 0x419616
cmp edx, eax
jne 0x419631
lea eax, [ebp - 0x214]
push eax
call fcn.00419d30
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0058651a
mov esp, ebp
pop ebp
ret 4
Function at 0x41a050
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0x4c0], eax
test ebx, ebx
je 0x41a16f
test eax, eax
je 0x41a16f
push esi
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41a118
xor esi, esi
cmp word [ebp - 0x4bc], si
je 0x41a118
lea eax, [ebp - 0x4bc]
xor ecx, ecx
nop dword [eax]
movzx eax, word [eax]
mov word [ebp - 0xc], ax
movzx eax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x41a104
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xd4]
push edi
push eax
push ebx
call fcn.005af742
add esp, 0xc
test eax, eax
je 0x41a12b
add esi, 4
lea eax, [ebp - 0x4bc]
lea ecx, [esi + esi]
add eax, ecx
cmp word [eax], 0
jne 0x41a0b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
push SysReAllocString
lea eax, [ebp - 0xc]
mov edx, 0x104
push eax
push ecx
mov ecx, dword [ebp - 0x4c0]
call fcn.0041a000
mov ecx, dword [ebp - 0x4c0]
lea eax, [ebx + edi*2]
push eax
mov edx, 0x104
call fcn.00419f50
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0058651a
mov esp, ebp
pop ebp
ret
Function at 0x41a180
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00587620
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, edx
test edi, edi
je 0x41a2e4
push esi
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x41a1c7
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0059f570
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
je 0x41a2a0
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0059f570
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.0059f2ce
add esp, 0x14
test eax, eax
je 0x41a273
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x41a273
lea eax, [ebp - 0x1004]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.00419f20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.00419f20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x41a2ca
push ecx
mov edx, edi
lea ecx, [ebp - 0x804]
call fcn.0041a050
add esp, 4
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0058651a
mov esp, ebp
pop ebp
ret
Function at 0x41a300
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d8
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x6d8], ebx
cmp dword [ebx + 4], 0
jne 0x41a33e
call fcn.0041a4a0
cmp dword [ebx + 4], 0
jne 0x41a33e
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a389
push 0x228
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.0059f570
add esp, 0xc
mov dword [ebp - 0x438], 0x22c
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x41a39b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x294
mov dword [ebp - 0x6d4], eax
lea eax, [ebp - 0x6cc]
push 0
push eax
call fcn.0059f570
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
add esp, 0xc
mov dword [ebp - 0x6d0], 0
push esi
nop
mov esi, dword [ebp - 0x430]
cmp dword [ebp - 0x6d4], esi
je 0x41a456
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0059f570
add esp, 8
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.0041a180
add esp, 4
test eax, eax
je 0x41a456
push 0x62ee2c
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x41a456
push str.LDSBox.exe
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x41a474
mov eax, dword [ebp - 0x6d8]
lea edx, [ebp - 0x6cc]
push edx
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
mov dword [ebp - 0x6d0], esi
test esi, esi
jne 0x41a479
jmp 0x41a45c
mov esi, dword [ebp - 0x6d0]
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41a3d0
jmp 0x41a479
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0058651a
mov esp, ebp
pop ebp
ret