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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0aa0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414700
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 0x41497d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41497d
xor edi, edi
nop
push 0x631a14
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00406720
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [edi + 0x63117c]
mov edx, eax
call fcn.00406720
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 0x414935
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 0x41496b
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41495c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, 4
jb 0x4148f0
mov edi, 1
jmp 0x41497f
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41497d
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 0x41499b
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 0x4149b0
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 0x4149c9
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
call fcn.00414700
mov ecx, dword [esi + 0x34]
mov eax, dword [eax]
test ecx, ecx
je 0x4149f3
test eax, eax
je 0x4149f3
push eax
push 0x411270
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
mov edi, eax
jmp 0x4149f5
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 0x414a10
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 0x414a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0ad8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414700
push 0x631a14
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406720
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [0x67c334]
mov edx, eax
call fcn.00406720
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 0x414aae
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 0x414acc
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 0x414b05
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x414b05
push str.RunTip
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414b05
push 0
push 0
push 0x911c9b
call eax
mov esi, eax
jmp 0x414b07
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 0x414b26
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 0x415630
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x6619c4]
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.004155c0
mov esi, eax
test esi, esi
jne 0x415727
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 0x4156f9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00415630
mov esi, eax
test esi, esi
jne 0x415727
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 0x4156c0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x415710
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.00415530
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x415736
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.0058995a
mov esp, ebp
pop ebp
ret 4
Function at 0x415b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0c16
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6619c4]
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 0x415c3c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x415c3c
call fcn.00410940
mov esi, eax
jmp 0x415d2c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x415c5f
call fcn.00410940
jmp 0x415d1f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x415c7d
call fcn.00410940
jmp 0x415d1f
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 0x415c9e
mov esi, 0x8007000e
jmp 0x415d21
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00418bf0
jmp 0x415cc8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x415cdf
mov esi, 0x8007000e
jmp 0x415d21
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 0x415cff
call fcn.00410940
jmp 0x415d1f
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.00416a10
mov esi, eax
test edi, edi
je 0x415d2c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x415d50
lea ecx, [ebp - 0x418]
call fcn.00418e30
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.0058995a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x417f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0d9b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x6619c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [0x67c944]
test al, al
jne 0x41807d
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.005a2910
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 0x418078
push str.config_systemprofile
lea ecx, [ebp - 0x148]
call fcn.00406c30
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x130]
call fcn.00406c30
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.00418d90
movzx ecx, byte [0x67c944]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x11c]
mov edx, 1
cmovne ecx, edx
mov byte [0x67c944], cl
cmp eax, 0x10
jb 0x41803f
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004079e0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp eax, 0x10
jb 0x418078
inc eax
lea ecx, [ebp - 0x148]
push eax
push dword [ebp - 0x148]
call fcn.004079e0
mov al, byte [0x67c944]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058995a
mov esp, ebp
pop ebp
ret
Function at 0x4184a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x6619c4]
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.005a2910
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.0058995a
mov esp, ebp
pop ebp
ret

Function at 0x418540
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6619c4]
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 0x418575
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058995a
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 0x4185d3
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str._enableServer
lea ecx, [ebp - 0x24]
call fcn.00406970
lea ecx, [ebp - 0x24]
call fcn.004184a0
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4185c1
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.0058995a
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 0x41860c
cmp dword [ebp - 0x1c], 1
jne 0x41860c
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 0x41860c
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.0058995a
mov esp, ebp
pop ebp
ret
Function at 0x418640
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.0047d6b0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41865f
lea esi, [eax + 1]
jmp 0x41867c
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 0x418697
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 0x4194a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6619c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0046d450
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 0x4194ef
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
cmp dword [ebp - 0x11c], 6
jb 0x419500
test edi, edi
jne 0x419500
xor esi, esi
jmp 0x419513
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00419af0
lea ecx, [ebx + 0x2c]
call fcn.00419d30
mov esi, eax
mov eax, str.fail
test esi, esi
mov ecx, 0x631240
push 0x62f864
cmove ecx, eax
push ecx
push str.plugin_load
call fcn.0046d540
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0058995a
mov esp, ebp
pop ebp
ret

Function at 0x419c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6619c4]
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 0x419d18
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005a2910
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 0x419d18
lea ecx, [ebp - 0x20c]
call fcn.0046df90
test eax, eax
je 0x419d18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x419d18
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419d18
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 0x419d18
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 0x419cf5
cmp dword [edx], esi
je 0x419cf1
add edx, 4
cmp edx, eax
jne 0x419ce6
cmp edx, eax
jne 0x419d01
lea eax, [ebp - 0x214]
push eax
call fcn.0041a400
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058995a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0058995a
mov esp, ebp
pop ebp
ret 4
Function at 0x41a720
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x6619c4]
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 0x41a83f
test eax, eax
je 0x41a83f
push esi
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41a7e8
xor esi, esi
cmp word [ebp - 0x4bc], si
je 0x41a7e8
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 0x41a7d4
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.005b3ed0
add esp, 0xc
test eax, eax
je 0x41a7fb
add esi, 4
lea eax, [ebp - 0x4bc]
lea ecx, [esi + esi]
add eax, ecx
cmp word [eax], 0
jne 0x41a780
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058995a
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.0041a6d0
mov ecx, dword [ebp - 0x4c0]
lea eax, [ebx + edi*2]
push eax
mov edx, 0x104
call fcn.0041a620
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058995a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0058995a
mov esp, ebp
pop ebp
ret
Function at 0x41a850
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0058aa60
mov eax, dword [0x6619c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, edx
test edi, edi
je 0x41a9b4
push esi
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x41a897
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058995a
mov esp, ebp
pop ebp
ret
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.005a2910
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 0x41a970
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.005a2910
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.005a266e
add esp, 0x14
test eax, eax
je 0x41a943
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 0x41a943
lea eax, [ebp - 0x1004]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.0041a5f0
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.0058995a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.0041a5f0
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.0058995a
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 0x41a99a
push ecx
mov edx, edi
lea ecx, [ebp - 0x804]
call fcn.0041a720
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.0058995a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0058995a
mov esp, ebp
pop ebp
ret
Function at 0x41a9d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d8
mov eax, dword [0x6619c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x6d8], ebx
cmp dword [ebx + 4], 0
jne 0x41aa0e
call fcn.0041ab70
cmp dword [ebx + 4], 0
jne 0x41aa0e
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058995a
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 0x41aa59
push 0x228
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.005a2910
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 0x41aa6b
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.0058995a
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.005a2910
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 0x41ab26
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005a2910
add esp, 8
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.0041a850
add esp, 4
test eax, eax
je 0x41ab26
push 0x632fcc
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x41ab26
push str.LDSBox.exe
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x41ab44
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 0x41ab49
jmp 0x41ab2c
mov esi, dword [ebp - 0x6d0]
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41aaa0
jmp 0x41ab49
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.0058995a
mov esp, ebp
pop ebp
ret