joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b91e8
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4b91fe
add esp, 0xfffffff0
call fcn.004049a0
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4b9352
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [edi + 4]
mov edx, esi
call fcn.00405610
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040aed0
mov edx, dword [ebp - 4]
lea eax, [edi + 8]
mov ecx, 0x4b9380
call fcn.004058d4
mov dl, 1
mov eax, dword [0x41a564]
call fcn.0040460c
mov dword [edi + 0x10], eax
mov dl, 1
mov eax, dword [0x41a564]
call fcn.0040460c
mov dword [edi + 0x14], eax
mov dl, 1
mov eax, dword [0x41a564]
call fcn.0040460c
mov dword [edi + 0x18], eax
mov dl, 1
mov eax, dword [0x41a564]
call fcn.0040460c
mov dword [edi + 0x1c], eax
mov dl, 1
mov eax, dword [0x41a564]
call fcn.0040460c
mov dword [edi + 0x20], eax
mov dl, 1
mov eax, dword [0x41a564]
call fcn.0040460c
mov dword [edi + 0x24], eax
mov byte [edi + 0x3c], 0
xor eax, eax
mov dword [edi + 0x38], eax
mov eax, dword [0x56cff0]
mov eax, dword [eax]
call fcn.00405a4c
push eax
push 0
push 0x4b938c
push 0x4b9394
call sub.kernel32.dll_GetPrivateProfileIntA
mov esi, eax
mov eax, esi
cdq
push edx
push eax
call fcn.0040cd00
call fcn.00403568
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
jge 0x4b92dc
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x4b92e8
cmp eax, 0xf
jb 0x4b9331
jmp 0x4b92ea
jl 0x4b9331
mov eax, dword [edi + 8]
call fcn.00405a4c
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x56cff0]
mov eax, dword [eax]
call fcn.00405a4c
push eax
call fcn.0040cd00
call fcn.00403568
push edx
push eax
lea eax, [ebp - 8]
call fcn.0040a7e0
mov eax, dword [ebp - 8]
call fcn.00405a4c
push eax
push 0x4b938c
push 0x4b9394
call sub.kernel32.dll_WritePrivateProfileStringA
mov eax, edi
mov edx, dword [eax]
call dword [edx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9359
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055e0
ret

Function at 0x4baccc
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403b20
ret

Function at 0x4be74c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042e768
cmp ebx, dword [ebp - 8]
jge 0x4be7af
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042ebe8
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042ebe8
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042ec14
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4be775
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4be7b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042e768
cmp ebx, dword [ebp - 8]
jge 0x4be81b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042ebe8
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042ebe8
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042ec14
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4be7e1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c0ca0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c0d57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405a4c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x4c0ce2
call fcn.00404f9c
jmp 0x4c0d5e
mov eax, ebx
call fcn.00402fc4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00405a4c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x4c0d0b
call fcn.00404f9c
jmp 0x4c0d5e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c0d6c
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4c0d2c
call fcn.00404f9c
jmp 0x4c0d5e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0d5e
mov eax, dword [ebp - 8]
call fcn.00402fe0
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c0fb8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c1020
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00403b20
test ebx, ebx
jne 0x4c0ff5
mov word [ebp - 2], 0
lea ebx, [ebp - 2]
or esi, 0x4008
push esi
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push ebx
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x160]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c102c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c130c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x4c14b8
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c14b0
xor eax, eax
push ebp
push 0x4c14a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 6], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4c14c4
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x4c1384
push 0x4009
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4c14c4
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x4c13c5
push 0x4008
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, esi
call fcn.00429320
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, edi
call fcn.00429320
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, esi
call fcn.00429320
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, edi
call fcn.00429320
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x56c76c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c14b0
cmp dword [ebp - 4], 0
je 0x4c14a8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c14c8
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.004c0c94
test al, al
je 0x4c14f5
cmp dword [0x574da0], 0x40047
jl 0x4c14f5
cmp byte [0x56c76c], 0
jne 0x4c14f5
call fcn.004c130c
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x56c770]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x4c1558
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4c154d
mov word [esp], 0
mov eax, dword [esi*4 + 0x56c770]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x4e0920
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4e0928
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e0a75
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x4e097e
lea edx, [ebp - 4]
mov eax, dword [0x56cfd4]
call fcn.00407828
cmp ebx, 1
jbe 0x4e09b5
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e0a8c
call fcn.0040bc9c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00405888
jmp 0x4e09b5
lea eax, [ebp - 4]
mov edx, 0x4e0a9c
call fcn.00405654
cmp ebx, 1
jbe 0x4e09b5
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e0aac
call fcn.0040bc9c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405888
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.004058d4
mov eax, dword [ebp - 0x18]
call fcn.00405a4c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4e0a3d
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x4e09ed
mov bl, 1
jmp 0x4e0a4d
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040e398
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x56d534]
call fcn.00407828
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.004c22f4
mov eax, dword [ebp - 0x1c]
movzx ecx, word [0x4e0ab0]
xor edx, edx
call fcn.004449e8
mov bl, 2
jmp 0x4e0a4d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00405610
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0a7c
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004055e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055e0
ret

Function at 0x4e10f0
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x4e1112
mov edx, ebx
mov eax, dword [0x56d530]
call fcn.00407828
jmp 0x4e1149
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4e1142
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.0040582c
jmp 0x4e1149
mov eax, ebx
call fcn.004055bc
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x4e1acc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x4e1aff
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4e1af8
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405a3c
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x401128]
call fcn.00406360
xor eax, eax
push ebp
push 0x4e1c8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4e1c55
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push 0x4e1cb4
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00405950
mov eax, dword [ebp - 0x158]
call fcn.00405a4c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e1c49
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4e1c2e
test al, 2
jne 0x4e1c2e
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0x4e1cb4
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040582c
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00405950
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.004c0e1c
call fcn.00411240
test al, al
je 0x4e1bec
or edi, 0xffffffff
jmp 0x4e1bfb
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004c0fb8
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.004c0d80
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040582c
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4e1b81
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x4e1b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1c94
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.004055e0
lea eax, [ebp - 8]
call fcn.004055bc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401128]
call fcn.00406220
ret
Function at 0x4e2df4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e2ec1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e2ea4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
mov eax, dword [0x56d700]
cmp dword [eax + 4], 0x60000
jl 0x4e2e44
or dword [ebp - 8], 0x400000
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004e2f54
mov eax, dword [ebp - 4]
call fcn.004e0ca4
test al, al
je 0x4e2e74
mov eax, dword [ebp - 4]
call fcn.00405a4c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4e2e74
and dword [ebp - 8], 0xfffbffff
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x468]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2eab
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4e69bc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00405a4c
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4e69fe
dec eax
je 0x4e69df
sub eax, 2
je 0x4e69fe
jmp 0x4e6a0f
movzx eax, byte [ebx]
call fcn.004c2798
test al, al
je 0x4e6a0f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.00404838
jmp 0x4e6a0f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.00404838
pop esi
pop ebx
pop ebp
ret

Function at 0x4e6a14
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e6ac3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x430], 0
jne 0x4e6a62
push 0x465
mov eax, dword [ebp - 4]
call fcn.0045c35c
mov ecx, eax
mov dl, 1
mov eax, dword [0x4e30f0]
call fcn.004e315c
mov edx, dword [ebp - 4]
mov dword [edx + 0x430], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
call fcn.004e363c
lea eax, [ebp - 8]
mov edx, 0x4e6ad8
call fcn.00405654
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4e6aad
test bl, 1
je 0x4e6aa6
lea eax, [ebp - 8]
call fcn.00405aac
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004e69bc
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4e6a8a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6aca
lea eax, [ebp - 8]
call fcn.004055bc
ret
Function at 0x4e7660
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405a3c
xor eax, eax
push ebp
push 0x4e777e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e7751
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a4c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e772e
test byte [ebp - 0x14c], 0x10
jne 0x4e7711
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040582c
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00409fe0
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4e76d4
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x4e773a
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7758
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4ec358
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
movzx eax, byte [ebx + 4]
sub al, 1
jb 0x4ec367
je 0x4ec36c
jmp 0x4ec390
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x4ec38b
lea eax, [ebx + 8]
push eax
movzx eax, byte [ebx + 0xc]
push eax
mov eax, dword [0x56d45c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x5077c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405a4c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x5077dd
test al, 0x10
jne 0x5077e1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x5077e8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call fcn.00405a3c
xor eax, eax
push ebp
push 0x5079c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x20]
call fcn.00403d8c
mov edi, eax
cmp dword [ebp + 0x20], 0
je 0x507891
cmp dword [ebp - 0x10], 0
je 0x507891
mov eax, dword [ebp + 0x20]
call fcn.0040ac34
test al, al
jne 0x507847
mov eax, dword [ebp + 0x20]
call fcn.005077c4
test al, al
je 0x50786a
push 0x4000
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.00405a4c
push eax
call sub.shell32.dll_SHGetFileInfoA
jmp 0x50788b
push 0x4010
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.00405a4c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, dword [ebp - 0x174]
cmp byte [ebp + 0x1c], 0
je 0x5078b8
push 0x4000
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
push 0x5079d4
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
jmp 0x5078d7
push 0x4001
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
push 0x5079d4
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.comctl32.dll_ImageList_GetIconSize
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0041b1d0
test bl, bl
je 0x507917
cmp byte [ebp + 0x14], 0
jne 0x507917
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ec84
push eax
push edi
push esi
call sub.comctl32.dll_ImageList_Draw
test byte [ebp + 0x14], bl
je 0x5079ad
mov dl, 1
mov eax, dword [0x42c7c0]
call fcn.004331f8
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
push 0
mov eax, ebx
call fcn.004337cc
call fcn.0042ec84
push eax
push edi
push esi
call sub.comctl32.dll_ImageList_Draw
mov eax, dword [ebp - 8]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x184], eax
fild dword [ebp - 0x14]
fmul qword [ebp + 0xc]
call fcn.0040355c
add eax, dword [ebp - 8]
mov dword [ebp - 0x180], eax
fild dword [ebp - 0x18]
fmul qword [ebp + 0xc]
call fcn.0040355c
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x17c], eax
mov ecx, ebx
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 4]
call fcn.005076e8
mov eax, ebx
call fcn.0040463c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5079ca
lea eax, [ebp + 0x20]
call fcn.004055bc
ret